Updated on 2026-08-14
This commit is contained in:
parent
85ea643f3b
commit
fa6b338401
6 changed files with 21 additions and 20 deletions
|
|
@ -56,7 +56,7 @@ class RequestFeeMiddleware {
|
|||
dispatch(FeeAction.FeeCalculation.SetFeeResult(result))
|
||||
when(result) {
|
||||
is TransactionFee.Single -> {
|
||||
val fee = result.normal.value ?: BigDecimal.ZERO
|
||||
val fee = result.normal.amount.value ?: BigDecimal.ZERO
|
||||
if (fee.isZero()) {
|
||||
dispatch(FeeAction.ChangeLayoutVisibility(main = false))
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -102,14 +102,14 @@ class FeeReducer : SendInternalReducer {
|
|||
private fun createValueOfFeeAmount(feeType: FeeType, transactionFee: TransactionFee): Amount {
|
||||
return when (transactionFee) {
|
||||
is TransactionFee.Single -> {
|
||||
transactionFee.normal
|
||||
transactionFee.normal.amount
|
||||
}
|
||||
is TransactionFee.Choosable -> {
|
||||
when (feeType) {
|
||||
FeeType.SINGLE -> transactionFee.normal
|
||||
FeeType.LOW -> transactionFee.minimum
|
||||
FeeType.NORMAL -> transactionFee.normal
|
||||
FeeType.PRIORITY -> transactionFee.priority
|
||||
FeeType.SINGLE -> transactionFee.normal.amount
|
||||
FeeType.LOW -> transactionFee.minimum.amount
|
||||
FeeType.NORMAL -> transactionFee.normal.amount
|
||||
FeeType.PRIORITY -> transactionFee.priority.amount
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue