mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
fix amount formatting if buying crypto amount
This commit is contained in:
parent
4312f08ee5
commit
6f85aa5065
1 changed files with 5 additions and 2 deletions
|
@ -195,8 +195,11 @@ class SimplexAPI {
|
|||
final SimplexQuote _quote = SimplexQuote(
|
||||
crypto: quote.crypto,
|
||||
fiat: quote.fiat,
|
||||
youPayFiatPrice: quote.youPayFiatPrice,
|
||||
youReceiveCryptoAmount: Decimal.parse(cryptoAmount),
|
||||
youPayFiatPrice: quote.buyWithFiat
|
||||
? quote.youPayFiatPrice
|
||||
: Decimal.parse("${jsonArray['fiat_money']['base_amount']}"),
|
||||
youReceiveCryptoAmount:
|
||||
Decimal.parse("${jsonArray['digital_money']['amount']}"),
|
||||
id: jsonArray['quote_id'] as String,
|
||||
receivingAddress: quote.receivingAddress,
|
||||
buyWithFiat: quote.buyWithFiat,
|
||||
|
|
Loading…
Reference in a new issue