Updated on 2026-08-14
This commit is contained in:
parent
06e726d9ad
commit
a6ec3453dd
5 changed files with 69 additions and 44 deletions
|
|
@ -21,9 +21,10 @@ object FeeCalculationUtils {
|
|||
isAmountSubtractAvailable: Boolean,
|
||||
cryptoCurrencyStatus: CryptoCurrencyStatus,
|
||||
amountValue: BigDecimal,
|
||||
feeValue: BigDecimal,
|
||||
feeValue: BigDecimal?,
|
||||
reduceAmountBy: BigDecimal,
|
||||
): BigDecimal {
|
||||
if (feeValue == null || feeValue.isZero()) return amountValue
|
||||
val balance = cryptoCurrencyStatus.value.amount ?: return amountValue
|
||||
val isFeeCoverage = checkFeeCoverage(
|
||||
isSubtractAvailable = isAmountSubtractAvailable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue