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

Get xSAUCE Amount from SAUCE

Get the calculated xSAUCE amount from a given SAUCE amount. Function name: sauceForxSauceNo gas cost

Code Overview

Resources:
Typescript

Stake SAUCE Tokens for xSAUCE

Stake any amount of SAUCE tokens in exchange for xSAUCE tokens. Function name: enterRecommended gas: 100,000 gwei (~ $0.009 USD)
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:
Typescript

Get SAUCE Amount from xSAUCE

Get the calculated SAUCE amount from a given xSAUCE amount Function name: xSauceForSauceNo gas cost

Code Overview

Resources:
Typescript

Unstake xSAUCE Tokens for SAUCE

Unstake any amount of xSAUCE tokens in exchange for SAUCE tokens. Function name: leaveRecommended gas: 100,000 gwei (~ $0.009 USD)
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: