parse instead of fromFloat
This commit is contained in:
parent
1f60ac76f9
commit
ac9b4bfd0e
@ -249,7 +249,9 @@ function CreateCashout({
|
||||
const sellRate = config.ratios_and_fees.sell_at_ratio;
|
||||
const sellFee = !config.ratios_and_fees.sell_out_fee
|
||||
? zero
|
||||
: Amounts.fromFloat(config.ratios_and_fees.sell_out_fee, balance.currency);
|
||||
: Amounts.parseOrThrow(
|
||||
`${balance.currency}:${config.ratios_and_fees.sell_out_fee}`,
|
||||
);
|
||||
const fiatCurrency = config.fiat_currency;
|
||||
|
||||
if (!sellRate || sellRate < 0) return <div>error rate</div>;
|
||||
|
Loading…
Reference in New Issue
Block a user