Contract ID: Masterchef
Query https://api.saucerswap.finance/farms/ for all eligible farm pool IDs.
Query https://api.saucerswap.finance/pools/ for all available pool IDs
Deposit LP Tokens to a Farm
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)A spender allowance for the Farm contract is required for the LP token.
It costs $0.25 USD, payable in HBAR, to deposit the tokens into a farm. To get the current deposit creation fee, call the depositFee() method from the Farm contract. This will will return the current value expressed in Tinycent. To accurately convert this value to Tinybar, query the exchange rate from /api/v1/network/exchangerate
Code Overview
- JavaScript SDK
Get Userโs Current Farm Reward
Get current HBAR and SAUCE yield reward values for a user Function name: pendingSauce โฝ No gas costCode Overview
- JSON RPC
Withdraw LP Tokens from a Farm
Withdraw any amount of LP tokens from an existing farm. Function name: withdraw โฝ Recommended gas: 190,000 gwei (~ $0.016 USD)Code Overview
- JavaScript SDK
Resources:
Typescript