Admin Functions Overview
Last updated
Last updated
Add a new LP to the pool. Requires Admin Role.
Update the given pools token allocation point. Requires Operator Role.
Add a new LP to the pool. Caller must be Owner of the contract.
Update the given pool's SUSHI allocation point and IRewarder
contract.
Caller must be Owner of the contract.
Parameter
Description
_allocPoint
Number of allocation points for the new LP pool.
_lpToken
LP token contract address.
_withUpdate
Whether update all pools or not.
Parameter
Description
_pid
Farming pool Id number.
_allocPoint
New number of allocation points.
_withUpdate
Whether update all pools or not.
Parameter
Description
allocPoint
Allocation point number of the new LP.
_lpToken
LP token address.
_rewarder
Address of the reward contract.
Parameter
Description
_pid
Index of the pool.
_allocPoint
New allocation point number of the LP.
_rewarder
Address of the rewarder delegate.
overwrite
True if _rewarder should be set. Otherwise _rewarder is ignored.