DeFiLive Preview
Staking Interface
Props-driven staking pool list with expandable details, stake/unstake toggle, per-pool userStaked amount, and APR display. No injected CSS.
stakingyieldaprpool
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
pools* | StakingPool[] | — | Available staking pools (id, name, token, icon, apr, lockPeriod, totalStaked, userStaked, minStake) |
onStake | (poolId: string, amount: string) => void | — | Called when user stakes into a pool |
onUnstake | (poolId: string, amount: string) => void | — | Called when user unstakes from a pool |
stakingPoolId | string | — | Pool ID currently being staked to (shows loading spinner) |
className | string | — | Additional CSS classes |