💻
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
  • Read-Only Functions

Was this helpful?

  1. Developer
  2. MISOFarmFactory Contracts

Miso MasterChef Contract

Address

Init Function

function initFarm(
        address _rewards,
        uint256 _rewardsPerBlock,
        uint256 _startBlock,
        address _devaddr,
        address _admin
    ) 
        public override

Parameter

Description

_rewards

Reward token address

_rewardsPerBlock

Number of rewards available per block.

_startBlock

Block number when rewards start to be distributed.

_devaddr

Developer address.

_admin

Admin address.

Initializes Farm with required variables.

Read-Only Functions

function poolLength() external view returns (uint256)

Returns the number of farming pools.

function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256)

Parameter

Description

_from

Block number marking the begining of desired period.

_to

Block number marking the end of desired period.

Returns reward multiplier over the given _from to _to block.

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

Parameter

Description

_pid

Farming pool Id number.

_user

User address.

Function to display pending rewards for a user.

function blocksRemaining() public view returns (uint256)

Returns the number of blocks remaining with the current rewards balance.

PreviousMISOFarmFactory ContractsNextMiso MasterChefV2 Contract

Last updated 4 years ago

Was this helpful?