Updated on 2026-08-14
This commit is contained in:
parent
e2d014420a
commit
06cf8cad51
1 changed files with 3 additions and 1 deletions
|
|
@ -50,9 +50,11 @@ internal class YieldBalancesConverter(
|
|||
}
|
||||
}
|
||||
|
||||
private fun List<BalanceItem>.mapBalances() = sortedBy { it.type.order }
|
||||
private fun List<BalanceItem>.mapBalances() = asSequence()
|
||||
.filterNot { it.amount.isZero() || it.type == BalanceType.REWARDS }
|
||||
.mapNotNull(balanceItemConverter::convert)
|
||||
.sortedByDescending { it.cryptoDecimal }
|
||||
.sortedBy { it.type.order }
|
||||
.toPersistentList()
|
||||
|
||||
private fun getRewardBlockType(): RewardBlockType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue