Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-12 10:47:20 +03:00
parent 16e32259c6
commit 27ae1ee2a0
6 changed files with 72 additions and 69 deletions

View file

@ -1,6 +1,7 @@
package com.tangem.data.markets
import com.tangem.blockchain.common.Blockchain
import com.tangem.blockchainsdk.compatibility.applyL2Compatibility
import com.tangem.blockchainsdk.utils.fromNetworkId
import com.tangem.data.common.currency.CryptoCurrencyFactory
import com.tangem.data.common.currency.getNetwork
@ -144,7 +145,8 @@ internal class DefaultMarketsTokenRepository(
language = languageCode,
)
return TokenMarketInfoConverter.convert(response.getOrThrow())
val resultResponse = response.getOrThrow().applyL2Compatibility(tokenId)
return TokenMarketInfoConverter.convert(resultResponse)
}
override suspend fun getTokenQuotes(fiatCurrencyCode: String, tokenId: String): TokenQuotes {