Updated on 2026-08-14

This commit is contained in:
Tangem 2023-07-12 22:52:06 +03:00
parent d54f8452b6
commit c1935b5938
9 changed files with 24 additions and 29 deletions

View file

@ -97,9 +97,9 @@ suspend fun CurrencyExchangeManager.buyErc20TestnetTokens(
val destinationAddress = token.contractAddress
val feeResult = walletManager.getFee(
amountToSend,
destinationAddress,
) as? Result.Success ?: return
amountToSend,
destinationAddress,
) as? Result.Success ?: return
val fee = feeResult.data.minimum
val coinValue = walletManager.wallet.amounts[AmountType.Coin]?.value ?: BigDecimal.ZERO