Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-11 12:43:15 +03:00
parent 0ae9e75e90
commit bbce67bcd2
12 changed files with 68 additions and 11 deletions

View file

@ -75,6 +75,7 @@ internal class DefaultMarketsTokenRepository(
offset = request.offset,
limit = request.limit,
timestamp = if (isFirstBatchFetching) null else requestTimeStamp.get(),
showNetworks = request.params.shouldNetworks,
).getOrThrow()
}

View file

@ -42,6 +42,13 @@ internal object TokenMarketListConverter : Converter<TokenMarketListResponse, To
tokenCharts = TokenMarket.Charts(h24 = null, week = null, month = null),
yieldRate = stakingRate ?: token.maxYieldApy?.movePointLeft(2),
updateTimestamp = value.timestamp,
networks = token.networks?.map { network ->
TokenMarket.Network(
networkId = network.networkId,
contractAddress = network.contractAddress,
decimalCount = network.decimalCount,
)
},
)
}
return TokenMarketListWithMaxApy(tokens, value.summary?.maxApy)