mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-24 06:48:38 +02:00
Fixate decimal points to 2 (#2066)
This commit is contained in:
@@ -168,8 +168,7 @@ class MoonPayProvider extends BuyProvider {
|
|||||||
|
|
||||||
final params = {
|
final params = {
|
||||||
'baseCurrencyCode': baseCurrencyCode,
|
'baseCurrencyCode': baseCurrencyCode,
|
||||||
'baseCurrencyAmount': amount.toString(),
|
'baseCurrencyAmount': amount.toStringAsFixed(2),
|
||||||
'amount': amount.toString(),
|
|
||||||
'paymentMethod': paymentMethod,
|
'paymentMethod': paymentMethod,
|
||||||
'areFeesIncluded': 'false',
|
'areFeesIncluded': 'false',
|
||||||
'apiKey': _apiKey
|
'apiKey': _apiKey
|
||||||
@@ -232,7 +231,7 @@ class MoonPayProvider extends BuyProvider {
|
|||||||
? '#${Palette.blueCraiola.value.toRadixString(16).substring(2, 8)}'
|
? '#${Palette.blueCraiola.value.toRadixString(16).substring(2, 8)}'
|
||||||
: '#${Palette.moderateSlateBlue.value.toRadixString(16).substring(2, 8)}',
|
: '#${Palette.moderateSlateBlue.value.toRadixString(16).substring(2, 8)}',
|
||||||
'baseCurrencyCode': isBuyAction ? quote.fiatCurrency.name : quote.cryptoCurrency.name,
|
'baseCurrencyCode': isBuyAction ? quote.fiatCurrency.name : quote.cryptoCurrency.name,
|
||||||
'baseCurrencyAmount': amount.toString(),
|
'baseCurrencyAmount': amount.toStringAsFixed(2),
|
||||||
'walletAddress': cryptoCurrencyAddress,
|
'walletAddress': cryptoCurrencyAddress,
|
||||||
'lockAmount': 'false',
|
'lockAmount': 'false',
|
||||||
'showAllCurrencies': 'false',
|
'showAllCurrencies': 'false',
|
||||||
|
|||||||
Reference in New Issue
Block a user