Staking
Yield and staking management interface for depositing tokens, viewing rewards, and unstaking.
Overview
The Staking component provides a complete interface for staking operations. It displays staking pools, current stakes, rewards, and allows users to stake or unstake tokens.
Props
Props
| Name | Type | Default | Description |
|---|---|---|---|
onSuccess | (txHash: string) => void | - | Callback fired when staking succeeds |
onError | (error: string) => void | - | Callback fired when staking fails |
Usage
StakingExample.tsx
import { Staking } from 'hyperkit';
function App() {
return (
<Staking />
);
}