-
Notifications
You must be signed in to change notification settings - Fork 103
Staking Revamp #4468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staking Revamp #4468
Conversation
packages/yoroi-extension/app/UI/features/staking/module/StakingContextProvider.tsx
Outdated
Show resolved
Hide resolved
...yoroi-extension/app/UI/features/staking/useCases/DelegatedStakePoolInfo/UndelegateButton.tsx
Show resolved
Hide resolved
packages/yoroi-extension/app/UI/features/staking/module/StakingContextProvider.tsx
Show resolved
Hide resolved
...yoroi-extension/app/UI/features/staking/useCases/DelegatedStakePoolInfo/UndelegateButton.tsx
Show resolved
Hide resolved
packages/yoroi-extension/app/UI/features/staking/common/hooks/useStrings.ts
Show resolved
Hide resolved
...roi-extension/app/UI/features/staking/useCases/DelegatedStakePoolInfo/StakePoolDelegated.tsx
Outdated
Show resolved
Hide resolved
packages/yoroi-extension/app/UI/features/staking/useCases/LegacyDialogs/LegacyDialogs.tsx
Show resolved
Hide resolved
packages/yoroi-extension/app/UI/features/staking/useCases/RewardsSummary/WithdrawButton.tsx
Show resolved
Hide resolved
packages/yoroi-extension/app/UI/features/staking/useCases/RewardsSummary/RewardsSummaryCard.tsx
Show resolved
Hide resolved
| }); | ||
| } | ||
| : undefined | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Duplicate dialog opening logic in withdrawRewards handler
The withdrawRewards prop has redundant ternary branches where both isParticipatingToGovernance === false and isParticipatingToGovernance === true && isStakeRegistered === true open the same GovernanceParticipateDialog. This duplicated logic suggests the conditional may not be implementing the intended business rules correctly, as the same action is performed regardless of governance participation status when stake is registered.
task:
Note
Introduces the new staking dashboard (context, UI, dialogs) with rewards summary, delegated pool card (undelegate/update), epoch progress, pool list, and an empty-wallet banner; updates routes, i18n, and dependencies.
StakingRootlayout combiningRewardsSummaryCard,StakePoolDelegated,EpochProgress,PoolList, andLegacyDialogs.WalletEmptyBanner(testnet faucet link or buy/sell flow).DelegatedStakePoolCard,UndelegateButton(opens Tx review), and wiring viaStakePoolDelegated.EpochProgress,EpochProgressWrapper,EpochProgressCard.RewardsSummaryCard/RewardHistoryGraph: open reward history dialog, improved loading/error handling; totals rendering; y-axis masking tweak.StakingState(wallet, delegation, flags); improved graph data lifecycle (waits for reward history, resets on wallet change); unit-of-account helper; utilities.StakingSubpagesunderROUTES.STAKING_REVAMP.ROOT.CardanoStakingPagewith pool transition support.scroll; safer avatar loading inWalletDelegationBanner.@yoroi/apito6.0.0with updated peer deps in lockfile.Written by Cursor Bugbot for commit 0476e01. This will update automatically on new commits. Configure here.