Updated on 2026-08-14
This commit is contained in:
parent
3a321cfbe9
commit
5e3fcd146a
9 changed files with 120 additions and 121 deletions
|
|
@ -19,15 +19,10 @@ internal object InitialStakingStatePreview {
|
|||
endText = TextReference.Str("15 SOL"),
|
||||
),
|
||||
RoundedListWithDividersItemData(
|
||||
id = R.string.staking_details_apy,
|
||||
startText = TextReference.Res(R.string.staking_details_apy),
|
||||
id = R.string.staking_details_annual_percentage_rate,
|
||||
startText = TextReference.Res(R.string.staking_details_annual_percentage_rate),
|
||||
endText = TextReference.Str("2.54-5.12%"),
|
||||
),
|
||||
RoundedListWithDividersItemData(
|
||||
id = R.string.staking_details_on_stake,
|
||||
startText = TextReference.Res(R.string.staking_details_on_stake),
|
||||
endText = TextReference.Str("0 SOL"),
|
||||
),
|
||||
RoundedListWithDividersItemData(
|
||||
id = R.string.staking_details_unbonding_period,
|
||||
startText = TextReference.Res(R.string.staking_details_unbonding_period),
|
||||
|
|
|
|||
|
|
@ -100,14 +100,14 @@ internal class SetInitialDataStateTransformer(
|
|||
),
|
||||
),
|
||||
RoundedListWithDividersItemData(
|
||||
id = R.string.staking_details_apy,
|
||||
startText = TextReference.Res(R.string.staking_details_apy),
|
||||
id = R.string.staking_details_annual_percentage_rate,
|
||||
startText = TextReference.Res(R.string.staking_details_annual_percentage_rate),
|
||||
endText = getAprRange(),
|
||||
iconClick = { clickIntents.onInfoClick(InfoType.APY) },
|
||||
),
|
||||
RoundedListWithDividersItemData(
|
||||
id = R.string.staking_details_on_stake,
|
||||
startText = TextReference.Res(R.string.staking_details_on_stake),
|
||||
id = 0, // todo remove in merge
|
||||
startText = TextReference.Res(0), // todo remove in merge
|
||||
endText = TextReference.Str(
|
||||
value = BigDecimalFormatter.formatCryptoAmount(
|
||||
cryptoAmount = (yieldBalance as? YieldBalance.Data)?.getTotalStakingBalance().orZero(),
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ internal class ShowInfoBottomSheetStateTransformer(
|
|||
isShow = true,
|
||||
content = when (infoType) {
|
||||
InfoType.APY -> StakingInfoBottomSheetConfig(
|
||||
title = resourceReference(R.string.staking_details_apy),
|
||||
text = resourceReference(R.string.staking_details_apy_info),
|
||||
title = resourceReference(R.string.staking_details_annual_percentage_rate),
|
||||
text = resourceReference(R.string.staking_details_annual_percentage_rate_info),
|
||||
)
|
||||
InfoType.UNBOUNDING_PERIOD -> StakingInfoBottomSheetConfig(
|
||||
title = resourceReference(R.string.staking_details_unbonding_period),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue