Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-05 12:23:48 +03:00
parent fa6b338401
commit 564e558fcc
8 changed files with 34 additions and 28 deletions

View file

@ -100,10 +100,10 @@ suspend fun CurrencyExchangeManager.buyErc20TestnetTokens(
amountToSend,
destinationAddress,
) as? Result.Success ?: return
val fee = feeResult.data.minimum.amount
val fee = feeResult.data.minimum
val coinValue = walletManager.wallet.amounts[AmountType.Coin]?.value ?: BigDecimal.ZERO
if (coinValue < fee.value) return
if (coinValue < fee.amount.value) return
val transaction = walletManager.createTransaction(amountToSend, fee, destinationAddress)