Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-19 15:24:20 +05:00
parent 7a2430c3d5
commit 8a7dd57c13
2 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,12 @@ internal fun checkAndCalculateSubtractedAmount(
reduceAmountBy = reduceAmountBy,
)
return if (isFeeCoverage) {
balance.minus(reduceAmountBy).minus(feeValueRounded)
val reducedAmount = balance.minus(reduceAmountBy).minus(feeValueRounded)
if (isTron(cryptoCurrencyStatus.currency.network.id.value)) {
reducedAmount.setScale(0, RoundingMode.DOWN)
} else {
reducedAmount
}
} else {
amountValue
}

View file

@ -89,7 +89,7 @@ markdownComposeView = "0.5.4"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "release-app_5.15-780"
tangemBlockchainSdk = "release-app_5.15-781"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "release-app_5.15-382"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^