Skip to main content

MasterChef

Methods

BONUS_MULTIPLIER

function BONUS_MULTIPLIER() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

add

function add(uint256 _allocPoint, contract IERC20 _lpToken, bool _withUpdate) external nonpayable

Parameters

NameTypeDescription
_allocPointuint256undefined
_lpTokencontract IERC20undefined
_withUpdateboolundefined

bonusEndBlock

function bonusEndBlock() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

deposit

function deposit(uint256 _pid, uint256 _amount) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined
_amountuint256undefined

dev

function dev(address _devaddr) external nonpayable

Parameters

NameTypeDescription
_devaddraddressundefined

devaddr

function devaddr() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

emergencyWithdraw

function emergencyWithdraw(uint256 _pid) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined

getMultiplier

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

Parameters

NameTypeDescription
_fromuint256undefined
_touint256undefined

Returns

NameTypeDescription
_0uint256undefined

massUpdatePools

function massUpdatePools() external nonpayable

migrate

function migrate(uint256 _pid) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined

migrator

function migrator() external view returns (contract IMigratorChef)

Returns

NameTypeDescription
_0contract IMigratorChefundefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

pendingSushi

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

Parameters

NameTypeDescription
_piduint256undefined
_useraddressundefined

Returns

NameTypeDescription
_0uint256undefined

poolInfo

function poolInfo(uint256) external view returns (contract IERC20 lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accSushiPerShare)

Parameters

NameTypeDescription
_0uint256undefined

Returns

NameTypeDescription
lpTokencontract IERC20undefined
allocPointuint256undefined
lastRewardBlockuint256undefined
accSushiPerShareuint256undefined

poolLength

function poolLength() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

set

function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined
_allocPointuint256undefined
_withUpdateboolundefined

setMigrator

function setMigrator(contract IMigratorChef _migrator) external nonpayable

Parameters

NameTypeDescription
_migratorcontract IMigratorChefundefined

startBlock

function startBlock() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

sushi

function sushi() external view returns (contract SushiToken)

Returns

NameTypeDescription
_0contract SushiTokenundefined

sushiPerBlock

function sushiPerBlock() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

totalAllocPoint

function totalAllocPoint() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

updatePool

function updatePool(uint256 _pid) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined

userInfo

function userInfo(uint256, address) external view returns (uint256 amount, uint256 rewardDebt)

Parameters

NameTypeDescription
_0uint256undefined
_1addressundefined

Returns

NameTypeDescription
amountuint256undefined
rewardDebtuint256undefined

withdraw

function withdraw(uint256 _pid, uint256 _amount) external nonpayable

Parameters

NameTypeDescription
_piduint256undefined
_amountuint256undefined

Events

Deposit

event Deposit(address indexed user, uint256 indexed pid, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressundefined
pid indexeduint256undefined
amountuint256undefined

EmergencyWithdraw

event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressundefined
pid indexeduint256undefined
amountuint256undefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Withdraw

event Withdraw(address indexed user, uint256 indexed pid, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressundefined
pid indexeduint256undefined
amountuint256undefined