The Staking contract allows users to deposit and withdraw tokens while earning rewards in WETH. It manages user balances, claimable rewards, and updates the global index of earned rewards based on the total supply of staked tokens. The contract includes functions for depositing, withdrawing, and claiming rewards, as well as updating user-specific reward indices.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views2 pages
Stakingv 23
The Staking contract allows users to deposit and withdraw tokens while earning rewards in WETH. It manages user balances, claimable rewards, and updates the global index of earned rewards based on the total supply of staked tokens. The contract includes functions for depositing, withdrawing, and claiming rewards, as well as updating user-specific reward indices.