Problem Statement
Token holders stake VRN tokens through the protocol, but the current staking interface is basic. A comprehensive staking management interface must be built showing staking overview, stake/unstake with cooldown, reward compounding options, DeFi yield optimization (auto-deposit idle rewards to lending protocols), and tax-report-ready transaction history.
Technical Bounds
- Staking overview: total staked, APR, user's stake, pending rewards, next reward claim date.
- Stake: amount input with APR preview, confirm via contract call.
- Unstake: amount input, cooldown countdown (14 days), unstake request and tracking.
- Yield optimization: option to auto-deposit rewards to Aave or Compound; display extra APY from DeFi.
- Tax report: CSV export of all staking rewards with USD value at time of receipt.
- Charts: staked balance over time, APR history, cumulative rewards.
Steps
- Build
StakingOverview component with portfolio stats from /api/v1/staking/overview.
- Build
StakeForm with amount input, APR preview, and contract interaction.
- Build
UnstakeForm with cooldown countdown timer and request tracking.
- Build
YieldOptimizer toggle: opt-in to auto-deposit rewards; display extra APY.
- Build
RewardsHistory table with CSV export and USD value column.
- Build
StakingChart with Lightweight Charts for balance and rewards history.
Problem Statement
Token holders stake VRN tokens through the protocol, but the current staking interface is basic. A comprehensive staking management interface must be built showing staking overview, stake/unstake with cooldown, reward compounding options, DeFi yield optimization (auto-deposit idle rewards to lending protocols), and tax-report-ready transaction history.
Technical Bounds
Steps
StakingOverviewcomponent with portfolio stats from/api/v1/staking/overview.StakeFormwith amount input, APR preview, and contract interaction.UnstakeFormwith cooldown countdown timer and request tracking.YieldOptimizertoggle: opt-in to auto-deposit rewards; display extra APY.RewardsHistorytable with CSV export and USD value column.StakingChartwith Lightweight Charts for balance and rewards history.