mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 04:19:36 +00:00
minor fix
This commit is contained in:
parent
085fa71c7a
commit
53441e7c2a
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,6 @@ class ThorChainExchangeProvider extends ExchangeProvider {
|
||||||
CryptoCurrency.btc,
|
CryptoCurrency.btc,
|
||||||
CryptoCurrency.eth,
|
CryptoCurrency.eth,
|
||||||
CryptoCurrency.ltc,
|
CryptoCurrency.ltc,
|
||||||
CryptoCurrency.bch,
|
|
||||||
].contains(element))
|
].contains(element))
|
||||||
.toList())
|
.toList())
|
||||||
];
|
];
|
||||||
|
@ -79,6 +78,8 @@ class ThorChainExchangeProvider extends ExchangeProvider {
|
||||||
'from_asset': _normalizeCurrency(from),
|
'from_asset': _normalizeCurrency(from),
|
||||||
'to_asset': _normalizeCurrency(to),
|
'to_asset': _normalizeCurrency(to),
|
||||||
'amount': AmountConverter.amountToSmallestUnit(cryptoCurrency: from, amount: 1).toString(),
|
'amount': AmountConverter.amountToSmallestUnit(cryptoCurrency: from, amount: 1).toString(),
|
||||||
|
'affiliate': _affiliateName,
|
||||||
|
'affiliate_bps': _affiliateBps
|
||||||
};
|
};
|
||||||
|
|
||||||
final responseJSON = await _getSwapQuote(params);
|
final responseJSON = await _getSwapQuote(params);
|
||||||
|
@ -141,7 +142,6 @@ class ThorChainExchangeProvider extends ExchangeProvider {
|
||||||
};
|
};
|
||||||
|
|
||||||
final responseJSON = await _getSwapQuote(params);
|
final responseJSON = await _getSwapQuote(params);
|
||||||
print(responseJSON);
|
|
||||||
|
|
||||||
final expectedAmountOutString = responseJSON['expected_amount_out'] as String? ?? '0';
|
final expectedAmountOutString = responseJSON['expected_amount_out'] as String? ?? '0';
|
||||||
final expectedAmountOut = double.parse(expectedAmountOutString);
|
final expectedAmountOut = double.parse(expectedAmountOutString);
|
||||||
|
|
Loading…
Reference in a new issue