Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-12 13:30:25 +05:00
parent 3dc4036e3d
commit c404846b0d
3 changed files with 9 additions and 5 deletions

View file

@ -25,9 +25,10 @@ enum class StakingActionType {
UNSTAKE -> "Unstake"
CLAIM_REWARDS -> "Claim Rewards"
RESTAKE_REWARDS -> "Restake Rewards"
WITHDRAW -> "Withdraw"
CLAIM_UNSTAKED,
WITHDRAW,
-> "Withdraw"
RESTAKE -> "Restake"
CLAIM_UNSTAKED -> "Claim Unstaked"
UNLOCK_LOCKED -> "Unlock Locked"
STAKE_LOCKED -> "Stake Locked"
VOTE -> "Vote"

View file

@ -86,7 +86,9 @@ internal class StakingInfoNotificationsFactory(
resourceReference(R.string.staking_restake) to
resourceReference(R.string.staking_notification_restake_rewards_text)
}
StakingActionType.WITHDRAW -> {
StakingActionType.CLAIM_UNSTAKED,
StakingActionType.WITHDRAW,
-> {
resourceReference(R.string.staking_withdraw) to
resourceReference(R.string.staking_notification_withdraw_text)
}

View file

@ -16,9 +16,10 @@ import kotlinx.collections.immutable.toPersistentList
internal fun StakingActionType?.getPendingActionTitle(): TextReference = when (this) {
StakingActionType.CLAIM_REWARDS -> resourceReference(R.string.common_claim_rewards)
StakingActionType.RESTAKE_REWARDS -> resourceReference(R.string.staking_restake_rewards)
StakingActionType.WITHDRAW -> resourceReference(R.string.staking_withdraw)
StakingActionType.CLAIM_UNSTAKED,
StakingActionType.WITHDRAW,
-> resourceReference(R.string.staking_withdraw)
StakingActionType.RESTAKE -> resourceReference(R.string.staking_restake)
StakingActionType.CLAIM_UNSTAKED -> resourceReference(R.string.staking_claim_unstaked)
StakingActionType.UNLOCK_LOCKED -> resourceReference(R.string.staking_unlocked_locked)
StakingActionType.STAKE_LOCKED -> resourceReference(R.string.staking_stake_locked)
StakingActionType.VOTE -> resourceReference(R.string.staking_vote)