Skip to main content
Outlined below are the common operations associated with single-sided staking:
Contract ID: Mothership
Refer to Single-sided staking for concept-level documentation.

Get xSAUCE amount from SAUCE

Get the calculated xSAUCE amount from a given SAUCE amount. Function name: sauceForxSauce No gas cost — read-only call.

Code overview

Resources:

Stake SAUCE tokens for xSAUCE

Stake any amount of SAUCE tokens in exchange for xSAUCE tokens. Function name: enter Recommended gas limit: 100,000
A spender allowance for the Mothership contract is required for the SAUCE token.
Ensure that the client has the xSAUCE token ID associated beforehand.
To calculate the amount of xSAUCE tokens a user will receive from a given SAUCE amount, use the sauceForxSauce() Solidity function in MotherShip.sol. Alternatively calculate the amount using the current SAUCE/xSAUCE ratio value.

Code overview

Resources:

Get SAUCE amount from xSAUCE

Get the calculated SAUCE amount from a given xSAUCE amount. Function name: xSauceForSauce No gas cost — read-only call.

Code overview

Resources:

Unstake xSAUCE tokens for SAUCE

Unstake any amount of xSAUCE tokens in exchange for SAUCE tokens. Function name: leave Recommended gas limit: 100,000
To calculate the amount of SAUCE tokens a user will receive from a given xSAUCE amount, use the xSauceForSauce() Solidity function in MotherShip.sol. Alternatively calculate the output amount using the current SAUCE/xSAUCE ratio value.
Ensure that the client has the SAUCE token ID associated beforehand.

Code overview

Resources:

Next steps

Single-sided staking concepts

How xSAUCE and the staking pool work.

Yield farming operations

Deposit LP tokens and read pending rewards.

Contract deployments

Mothership and token IDs for mainnet and testnet.