StakingRewardsV2
A contract that enables users to stake tokens and earn rewards based on the staked amounts and durations.
Functions
stake
stake
Allows users to stake a specified amount of tokens.
Parameter | Type | Description |
---|---|---|
| uint256 | The amount of tokens to stake. |
withdraw
withdraw
Allows users to withdraw a specified amount of staked tokens.
Parameter | Type | Description |
---|---|---|
| uint256 | The amount of tokens to withdraw. |
getBoost
getBoost
Returns the boost factor for a given user's address.
Parameter | Type | Description |
---|---|---|
| address | The user's address. |
earned
earned
Calculates and returns the earned rewards for a user.
Parameter | Type | Description |
---|---|---|
| address | The user's address. |
getReward
getReward
Allows users to claim their earned rewards.
Last updated