Withdraw from a farm
Withdrawing Rewards and staked tokens from a farm contract
Withdraw
function withdraw(
uint256 _amount,
uint256 stakeId
)Parameters
Type
Description
Get Stake Ids and Stake Details
function getUserStakesAndPendingAmounts(address user)
external view returns (uint256[] memory, uint256[] memory, uint256[] memory)Parameters
Type
Description
Parameters
Type
Description
Example script for withdrawing
Last updated