gro Docs
Search…
Stake into Gro Pools

How to stake into Gro Protocol Pools

After you get some LP from the desired pool to interact with. You can call the following method with LPStakerContract here.
Also make sure you have allowance to interact with this contract as a spender (more on Check User’s Spending Limits).
1
lpTokenStakerContract.methods.deposit(PID, amount)
Copied!
  • PID: The Pool unique id - available here.
  • amount: an integer (uint256) that is the LP amount to stake into the pool.

How to unstake from Gro Protocol Pools

Once you have some liquidity staked into a pool, you can unstake with this method from LPStakerContract here.
1
lpTokenStakerContract.methods.withdraw(PID, amount)
Copied!
  • PID: The Pool unique id - available here.
  • amount: an integer (uint256) that is the LP amount to unstake from the pool.
Last modified 11d ago