💻
MISO
  • Minimal Initial SushiSwap Offering
  • Ingredients
  • Recipes
  • FAQ
  • Navigating and using MISO
    • Participating in an Auction
  • Token Factory
    • Token Minting & Verification
  • Marketplace
    • Marketplace for Tokens
    • Permission Lists
  • Liquidity
    • Post Auction Launcher
  • Farmed Produce
    • MasterChef Farming
  • Fermentation Vaults
    • Vaults & Escrow
  • Developer
    • MISOTokenFactory Contracts
      • Sushi Token Smart Contract
      • Mintable Token Smart Contract
      • Fixed Supply Token Smart Contract
      • Admin Functions Overview
    • MISOMarket Contracts
      • Hyperbolic Auction Smart Contract
      • Batch Auction Smart Contract
      • Dutch Auction Smart Contract
      • Crowdsale Smart Contract
      • Admin Functions Overview
    • MISOFarmFactory Contracts
      • Miso MasterChef Contract
      • Miso MasterChefV2 Contract
      • Admin Functions Overview
    • MISOLauncher Contracts
      • Post Auction Launcher
      • Liquidity ZAP Contract
      • Admin Functions Overview
    • MISOFermentation Contracts
      • Gnosis Safe Factory Contract
      • Token Vault Contract
      • Admin Functions Overview
  • External Links
  • Socials
Powered by GitBook
On this page
  • Address
  • Init Function
  • Deposit and withdraw Functions
  • Read-Only Functions

Was this helpful?

  1. Developer
  2. MISOFarmFactory Contracts

Miso MasterChefV2 Contract

Address

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

Parameter

Description

pid

The index number of the pool.

amount

Deposit amount number.

to

Address of the deposit owner.

Deposit LP tokens to MasterChef for SUSHI allocation.

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

Parameter

Description

pid

The index number of the pool.

amount

Withdraw amount number.

to

Address to withdraw to.

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.

PreviousMiso MasterChef ContractNextAdmin Functions Overview

Last updated 4 years ago

Was this helpful?