Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-04 19:47:22 +05:00
parent 2cf60002a4
commit a7f5b54078
17 changed files with 319 additions and 336 deletions

View file

@ -34,6 +34,7 @@ data class YieldBalanceItem(
)
data class BalanceItem(
val id: String,
val type: BalanceType,
val amount: BigDecimal,
val pricePerShare: BigDecimal,
@ -76,16 +77,21 @@ data class PendingAction(
}
}
enum class BalanceType {
AVAILABLE,
STAKED,
PREPARING,
UNSTAKING,
UNLOCKING,
UNSTAKED,
LOCKED,
REWARDS,
UNKNOWN,
/**
* IMPORTANT!!!
* Order is used to sort balances.
*/
@Suppress("MagicNumber")
enum class BalanceType(val order: Int) {
AVAILABLE(1),
STAKED(2),
PREPARING(3),
LOCKED(4),
UNSTAKING(5),
UNLOCKING(6),
UNSTAKED(7),
REWARDS(8),
UNKNOWN(9),
;
companion object {