Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-07 21:21:36 +05:00
parent 480bfdd412
commit 971c419623
3 changed files with 4 additions and 3 deletions

View file

@ -39,7 +39,8 @@ internal class DefaultYieldSupplyRepository(
}
override suspend fun updateMarkets(): List<YieldMarketToken> = withContext(dispatchers.io) {
val response = yieldSupplyApi.getYieldMarkets().getOrThrow()
val chains = Blockchain.yieldSupplySupportedBlockchains().map { it.getChainId() }.joinToString(",")
val response = yieldSupplyApi.getYieldMarkets(chainId = chains).getOrThrow()
val domain = response.marketDtos.map(YieldMarketTokenConverter::convert)
store.store(response.marketDtos)
domain