Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-27 19:53:49 +05:00
parent 68f800a495
commit 2883c49098
32 changed files with 578 additions and 634 deletions

View file

@ -16,6 +16,7 @@ import com.tangem.domain.demo.models.DemoConfig
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.network.Network
import com.tangem.domain.models.wallet.UserWallet
import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.transaction.FeeRepository
import com.tangem.domain.walletmanager.WalletManagersFacade
import java.math.BigDecimal
@ -31,11 +32,11 @@ internal class DefaultFeeRepository(
}
override suspend fun getEthereumFeeWithoutGas(
userWallet: UserWallet,
userWalletId: UserWalletId,
cryptoCurrency: CryptoCurrency,
): Fee.Ethereum {
val walletManager = walletManagersFacade.getOrCreateWalletManager(
userWalletId = userWallet.walletId,
userWalletId = userWalletId,
network = cryptoCurrency.network,
)