Stake into Gro Pools
After you get some LP from the desired pool to interact with. You can call the following method with LPTokenStaker.
Also make sure you have allowance to interact with this contract as a spender (more on Check Spending Limits).
lpTokenStakerContract.methods.deposit(PID, amount)
- amount: an integer (
uint256
) that is the LP amount to stake into the pool.
Once you have some liquidity staked into a pool, you can unstake with this method from LPTokenStaker.
lpTokenStakerContract.methods.withdraw(PID, amount)
- amount: an integer (
uint256
) that is the LP amount to unstake from the pool.
Last modified 11mo ago