Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-22 11:42:23 +04:00
parent d594af91fc
commit c3f5ea4284
10 changed files with 496 additions and 43 deletions

View file

@ -19,7 +19,6 @@ import com.tangem.datasource.local.preferences.utils.get
import com.tangem.datasource.local.preferences.utils.store
import com.tangem.datasource.local.yieldsupply.YieldMarketsStore
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.currency.CryptoCurrencyStatus
import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.walletmanager.WalletManagersFacade
import com.tangem.domain.yield.supply.YieldSupplyRepository
@ -137,13 +136,10 @@ internal class DefaultYieldSupplyRepository(
}
}
override suspend fun getPendingTxHashes(
userWalletId: UserWalletId,
cryptoCurrencyStatus: CryptoCurrencyStatus,
): List<String> {
override suspend fun getPendingTxHashes(userWalletId: UserWalletId, cryptoCurrency: CryptoCurrency): List<String> {
val walletManager = walletManagersFacade.getOrCreateWalletManager(
userWalletId = userWalletId,
network = cryptoCurrencyStatus.currency.network,
network = cryptoCurrency.network,
) ?: return emptyList()
return walletManager.wallet.recentTransactions