可初始化的 SmartChef
SmartChefInitializable
Contract Roles
Owner (onlyOwner)
The contract owner
Owner
Address can be different depending on the pool, however, is usually 0xad9d97fc7bf0ac6dc68d478dcb3709454519b358
This address controlled is by gnosis multisignature contract with a threshold of 3/6
Functions
emergencyRewardWithdraw
- Owner
emergencyRewardWithdraw
- OwnerIn case of an emergency, the Owner can withdraw the rewards from a pool contract.
recoverWrongTokens
- Owner
recoverWrongTokens
- OwnerUsed by the Owner to recover tokens other than the stakedToken
and rewardToken
in case they are mistakenly sent to the contract.
stopRewards
- Owner
stopRewards
- OwnerIf a pool need stop distributing rewards prior to the intended end of the reward distribution, the Owner can call this function.
updatePoolLimitPerUser
- Owner
updatePoolLimitPerUser
- OwnerOwner can call this function to update the staking limit for each pool. The staking limit can only be increased, never decreased. This ensures that no user ever has more staked than the staking limit.
UpdateRewardPerBlock
- Owner
UpdateRewardPerBlock
- OwnerCan be called by the Owner, but only prior to the start of the pool. This cannot be modified once the pool has begun.
updateStartAndEndBlocks
- Owner
updateStartAndEndBlocks
- OwnerCan be called by the Owner, but only prior to the start of the pool. This cannot be modified once the pool has begun.
transferOwnership
- Owner
transferOwnership
- OwnerIf the Owner needs to change the ownership of the contract, they can call this function.
Last updated