Updated on 2026-08-14
This commit is contained in:
parent
0ae9e75e90
commit
bbce67bcd2
12 changed files with 68 additions and 11 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue