urgent fix: take currency from amount, dont assume BTC

This commit is contained in:
Sebastian 2022-04-18 16:20:10 -03:00
parent 9d997280d3
commit c3e65fb49d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -77,6 +77,6 @@ export function generateFakeSegwitAddress(
}
// https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp
export function segwitMinAmount(): AmountJson {
return Amounts.parseOrThrow("BTC:0.00000294");
export function segwitMinAmount(currency: string): AmountJson {
return Amounts.parseOrThrow(`${currency}:0.00000294`);
}