Skip to main content

IMiniChefV2

Methods

deposit

function deposit(uint256 pid, uint256 amount, address to) external nonpayable

Parameters

NameTypeDescription
piduint256undefined
amountuint256undefined
toaddressundefined

emergencyWithdraw

function emergencyWithdraw(uint256 pid, address to) external nonpayable

Parameters

NameTypeDescription
piduint256undefined
toaddressundefined

harvest

function harvest(uint256 pid, address to) external nonpayable

Parameters

NameTypeDescription
piduint256undefined
toaddressundefined

poolLength

function poolLength() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

updatePool

function updatePool(uint256 pid) external nonpayable returns (struct IMiniChefV2.PoolInfo)

Parameters

NameTypeDescription
piduint256undefined

Returns

NameTypeDescription
_0IMiniChefV2.PoolInfoundefined

userInfo

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

Parameters

NameTypeDescription
_piduint256undefined
_useraddressundefined

Returns

NameTypeDescription
_0uint256undefined
_1uint256undefined

withdraw

function withdraw(uint256 pid, uint256 amount, address to) external nonpayable

Parameters

NameTypeDescription
piduint256undefined
amountuint256undefined
toaddressundefined

withdrawAndHarvest

function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external nonpayable

Parameters

NameTypeDescription
piduint256undefined
amountuint256undefined
toaddressundefined