Miso MasterChefV2 Contract


Init Function

function init(IERC20 dummyToken) external

Deposits a dummy tokens to MasterChef contract. This is required because MasterChef holds the minting rights for SUSHI. Any balance of transaction sender from dummyToken is transferred. The allocation point for the pool on MCV1 is the total allocation point for all pools that receive double incentives.

Deposit and withdraw Functions

function deposit(uint256 pid, uint256 amount, address to) public

Deposit LP tokens to MasterChef for SUSHI allocation.

function withdraw(uint256 pid, uint256 amount, address to) public

Withdraw LP tokens from MasterChef.

Read-Only Functions

function pendingSushi(uint256 _pid, address _user) external view returns (uint256)

View function to see pending SUSHI rewards for given pool Id and user.

function sushiPerBlock() public view returns (uint256 amount)

Calculates and returns the amount of SUSHI per block.

Last updated