Updated on 2026-08-14
This commit is contained in:
parent
7a2430c3d5
commit
8a7dd57c13
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue