Skip to main content
Outlined below are the common operations associated with yield farming:
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 limit: 210,000
A spender allowance for the Farm contract is required for the LP token.
Depositing tokens into a farm costs $0.25 (as of July 2026), payable in HBAR. To get the current deposit fee, call the depositFee() method on the Farm contract. It returns the current value expressed in tinycent. To accurately convert this value to Tinybar, query the exchange rate from /api/v1/network/exchangerate

Code overview

Resources:

Get pending farm rewards

Get current HBAR and SAUCE yield reward values for a user. Function name: pendingSauce No gas cost — read-only call.

Code overview

Resources:

Withdraw LP tokens from a farm

Withdraw any amount of LP tokens from an existing farm. Function name: withdraw Recommended gas limit: 190,000

Code overview

Resources:

Next steps

Single-sided staking operations

Stake SAUCE for xSAUCE through contracts.

Adding liquidity (V1)

Get the LP tokens a farm deposit requires.

Contract deployments

Masterchef and token IDs for mainnet and testnet.