Updated on 2026-08-14
This commit is contained in:
commit
ede2066c64
1 changed files with 1 additions and 8 deletions
|
|
@ -19,7 +19,6 @@ import com.tangem.features.staking.impl.presentation.state.bottomsheet.InfoType
|
|||
import com.tangem.features.staking.impl.presentation.state.converters.RewardsValidatorStateConverter
|
||||
import com.tangem.features.staking.impl.presentation.state.converters.YieldBalancesConverter
|
||||
import com.tangem.features.staking.impl.presentation.viewmodel.StakingClickIntents
|
||||
import com.tangem.lib.crypto.BlockchainUtils.isCosmos
|
||||
import com.tangem.lib.crypto.BlockchainUtils.isPolkadot
|
||||
import com.tangem.utils.Provider
|
||||
import com.tangem.utils.isNullOrZero
|
||||
|
|
@ -255,13 +254,7 @@ internal class SetInitialDataStateTransformer(
|
|||
|
||||
private fun getRewardScheduleText(rewardSchedule: Yield.Metadata.RewardSchedule): TextReference? {
|
||||
return when (rewardSchedule) {
|
||||
Yield.Metadata.RewardSchedule.BLOCK -> {
|
||||
val networkId = cryptoCurrencyStatusProvider().currency.network.id.value
|
||||
when {
|
||||
isCosmos(networkId) -> resourceReference(R.string.staking_reward_schedule_each_minute)
|
||||
else -> resourceReference(R.string.staking_reward_schedule_each_day)
|
||||
}
|
||||
}
|
||||
Yield.Metadata.RewardSchedule.BLOCK -> resourceReference(R.string.staking_reward_schedule_block)
|
||||
Yield.Metadata.RewardSchedule.WEEK -> resourceReference(R.string.staking_reward_schedule_week)
|
||||
Yield.Metadata.RewardSchedule.HOUR -> resourceReference(R.string.staking_reward_schedule_hour)
|
||||
Yield.Metadata.RewardSchedule.DAY -> resourceReference(R.string.staking_reward_schedule_each_day)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue