Yield Farming
Farm LP tokens for additional yield.
Last updated
Farm LP tokens for additional yield.
Last updated
Outlined below are the common operations associated with yield farming:
Deposit any amount of LP tokens to an existing farm to earn additional yield.
Function name: deposit
⛽ Recommended gas: 210,000 gwei (~ $0.018 USD)
uint256 _pid
Liquidity pool id
uint256 _amount
LP token amount in its smallest unit
Resources:
Get current HBAR and SAUCE yield reward values for a user
Function name: pendingSauce
⛽ No gas cost
uint256 _pid
Liquidity pool id
address _user
User's solidity address
Resources:
Withdraw any amount of LP tokens from an existing farm.
Function name: withdraw
⛽ Recommended gas: 190,000 gwei (~ $0.016 USD)
uint256 _pid
Liquidity pool id
uint256 _amount
LP token amount in its smallest unit
Resources: