Updated on 2026-08-14

This commit is contained in:
Tangem 2024-01-11 18:24:16 +03:00
parent 993c28ecfd
commit 0b7e1f6bb5
9 changed files with 54 additions and 6 deletions

View file

@ -386,6 +386,18 @@ class DefaultWalletManagersFacade(
return if (manager is ExistentialDepositProvider) manager.getExistentialDeposit() else null
}
@Deprecated("Will be removed in future")
override suspend fun getDustValue(userWalletId: UserWalletId, network: Network): BigDecimal? {
val blockchain = Blockchain.fromId(network.id.value)
val manager = getOrCreateWalletManager(
userWalletId = userWalletId,
blockchain = blockchain,
derivationPath = network.derivationPath.value,
)
return if (manager is ExistentialDepositProvider) manager.dustValue else null
}
@Deprecated("Will be removed in future")
override suspend fun getReserveAmount(userWalletId: UserWalletId, network: Network): BigDecimal? {
val manager = getOrCreateWalletManager(

View file

@ -145,6 +145,9 @@ interface WalletManagersFacade {
@Deprecated("Will be removed in future")
suspend fun getExistentialDeposit(userWalletId: UserWalletId, network: Network): BigDecimal?
@Deprecated("Will be removed in future")
suspend fun getDustValue(userWalletId: UserWalletId, network: Network): BigDecimal?
/**
* Returns reserve amount which is required to create an account
*