Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-06 22:10:57 +05:00
parent 540ee066e2
commit 7e5a678d84
5 changed files with 95 additions and 63 deletions

View file

@ -103,14 +103,18 @@ internal class DefaultYieldSupplyRepository(
}
override suspend fun saveTokenProtocolStatus(
userWalletId: UserWalletId,
cryptoCurrency: CryptoCurrency,
yieldSupplyEnterStatus: YieldSupplyEnterStatus,
) {
statusMap[cryptoCurrency.id.value] = yieldSupplyEnterStatus
statusMap["${userWalletId}_${cryptoCurrency.id.value}"] = yieldSupplyEnterStatus
}
override fun getTokenProtocolStatus(cryptoCurrency: CryptoCurrency): YieldSupplyEnterStatus? {
return statusMap[cryptoCurrency.id.value]
override fun getTokenProtocolStatus(
userWalletId: UserWalletId,
cryptoCurrency: CryptoCurrency,
): YieldSupplyEnterStatus? {
return statusMap["${userWalletId}_${cryptoCurrency.id.value}"]
}
private fun List<YieldMarketToken>.enrichNetworkIds(): List<YieldMarketToken> {