Updated on 2026-08-14
This commit is contained in:
parent
bedb9de62f
commit
06ace40720
2 changed files with 13 additions and 3 deletions
|
|
@ -137,6 +137,10 @@ data class TxFee(
|
|||
val gasBudget: Long,
|
||||
val gasPrice: Long,
|
||||
) : Params()
|
||||
|
||||
data class Hedera(
|
||||
val additionalHBARFee: BigDecimal,
|
||||
) : Params()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -849,6 +849,12 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
gasBudget = feeParams.gasBudget,
|
||||
)
|
||||
}
|
||||
Hedera,
|
||||
HederaTestnet,
|
||||
-> {
|
||||
val feeParams = requireNotNull(fee.params as? TxFee.Params.Hedera)
|
||||
Fee.Hedera(amount = feeAmount, additionalHBARFee = feeParams.additionalHBARFee)
|
||||
}
|
||||
// endregion
|
||||
// region Blockchains with common fees or EVM-like fees
|
||||
Unknown,
|
||||
|
|
@ -929,8 +935,6 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
ShibariumTestnet,
|
||||
Algorand,
|
||||
AlgorandTestnet,
|
||||
Hedera,
|
||||
HederaTestnet,
|
||||
Aurora,
|
||||
AuroraTestnet,
|
||||
Areon,
|
||||
|
|
@ -1900,6 +1904,9 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
gasPrice = fee.gasPrice,
|
||||
gasBudget = fee.gasBudget,
|
||||
)
|
||||
is Fee.Hedera -> TxFee.Params.Hedera(
|
||||
additionalHBARFee = fee.additionalHBARFee,
|
||||
)
|
||||
is Fee.Aptos,
|
||||
is Fee.Bitcoin,
|
||||
is Fee.CardanoToken,
|
||||
|
|
@ -1910,7 +1917,6 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
is Fee.Tron,
|
||||
is Fee.VeChain,
|
||||
is Fee.Alephium,
|
||||
is Fee.Hedera,
|
||||
-> null
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue