Admin Functions Overview

MasterChef Contract

function addToken(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public

Add a new LP to the pool. Requires Admin Role.

function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public

Update the given pools token allocation point. Requires Operator Role.

MasterChefV2 Contract

function add(
    uint256 allocPoint, 
    IERC20 _lpToken, 
    IRewarder _rewarder
) 
    public onlyOwner

Add a new LP to the pool. Caller must be Owner of the contract.

function set(
    uint256 _pid, 
    uint256 _allocPoint, 
    IRewarder _rewarder, 
    bool overwrite
) 
    public onlyOwner

Update the given pool's SUSHI allocation point and IRewarder contract. Caller must be Owner of the contract.

Last updated