Synthetix Litepaper
Version: 1.6 (Jan 2023)
Abstract
Synthetix is a decentralized liquidity provisioning protocol built on Ethereum and Optimistic Ethereum (a layer two scaling solution built on Ethereum). Synthetic assets, and associated products, are collateralized by stakers via Synthetix Network Token (SNX), which when locked in a staking contract enables the issuance of synthetic assets (synths). This pooled collateral model allows users to perform conversions between synths directly with the smart contract, avoiding the need for counterparties. This mechanism solves the liquidity and slippage issues experienced by DEXs.
Many protocols have built ontop of the Synthetix infrastructure. Learn more about these protocols in the "Built on Synthetix" section in the docs.
https://github.com/Synthetixio/Synthetix-Gitbook-Docs/blob/en/synthetix-protocol/the-synthetix-protocol/broken-reference/README.mdCollateral within the Synthetix Protocol
How SNX backs Synths
All Synths are backed by SNX tokens. Synths are minted when SNX holders stake their SNX as collateral using the Synthetix Staking application, a decentralized application for interacting with the Synthetix contracts. Synths are currently backed by a target collateralization ratio (see Current Protocol Parameters). SNX stakers incur debt when they mint Synths, and to exit the system (i.e. unlock their SNX), they must pay back this debt by burning Synths.
Additional Collateral
Governance has at times introduced additional collateral types into the system; this has included ETH, LUSD, and DAI through loans, and wrappers. Learn more about these alternative collateral types by reading the relevant SIPs.
Why SNX holders stake
SNX holders are incentivized to stake their SNX tokens in many ways. Firstly, there are exchange rewards. These are generated whenever someone interacts with Synthetix Liquidity (i.e. on Kwenta Perpetual Futures). Each trade generates an exchange fee sent to a fee pool, available for SNX stakers to claim their proportion each week. Inflationary rewards are no longer distributed to stakers with the passage of SIP 2043.
Minting, burning, and the C-Ratio
The mechanisms above ensure SNX stakers are incentivized to maintain their Collateralisation Ratio (C-Ratio) at the target ratio. This ensures Synths are backed by sufficient collateral to absorb large price shocks. If the value of SNX or Synths fluctuates, each staker’s C Ratio will fluctuate. If it falls below the target (although there is a small buffer allowing for minor fluctuations), they will be unable to claim fees until they restore their ratio. They adjust their ratio by either minting or burning.
Stakers, debt, and pooled counterparties
SNX stakers incur a ‘debt’ when they mint Synths. This debt can increase or decrease independent of their original minted value, based on the exchange rates and supply of Synths within the network.
For example, if 100% of the Synths in the system were synthetic Bitcoin (sBTC), which halved in price, the debt in the system would halve, and each staker’s debt would also halve. This means in another scenario, where only half the Synths across the system were sBTC, and BTC doubled in price, the system’s total debt—and each staker’s debt—would increase by one quarter.
In this way, SNX stakers act as a pooled counterparty to all Synth exchanges; stakers take on the risk of the overall debt in the system. They have the option of hedging this risk by taking positions external to the system. By incurring this risk and enabling trading on Synthetix, stakers earn a right to receive fees generated by the system.
Interested in learning some of the basics about staking? See the staking section of the docs
https://github.com/Synthetixio/Synthetix-Gitbook-Docs/blob/en/synthetix-protocol/the-synthetix-protocol/broken-reference/README.mdLiquidation Risk
What are the benefits of adding liquidation to the system?
It creates a stronger incentive for stakers to maintain a healthy C-Ratio, because if they do not they will be liquidated with a penalty.
This creates stronger incentives for a healthy network C-Ratio, as other network participants can actively improve the network C-Ratio by liquidating stakers below the liquidation ratio.
It provides a solution to staking wallets that have been abandoned or whose private keys have been lost, as they will no longer drag down the network C-Ratio.
Once a person's C-Ratio goes below the liquidation ratio, and they are flagged, they will have 8 hours to raise their C-Ratio. In this scenario, one of three things will happen:
Your C-Ratio goes below the liquidation ratio, and you are flagged and do not self-liquidate.
You will be liquidated and incur a forced liquidation penalty on your staked SNX; your SNX will be used to pay off your debt, and you will be left with what is leftover; all penalty SNX will be distributed to other stakers.
Your C-Ratio goes below the liquidation ratio, and you are flagged, and you self-liquidate. Your liquidated SNX will be used to pay off your debt, leaving you with what is leftover.
You will be liquidated and incur a self-liquidation penalty on your staked SNX; all penalty SNX will be distributed to other stakers.
Your C-Ratio is above the target c-ratio after being flagged b/c you burned sUSD or minted new debt.
Nothing will happen; you will not be liquidated.
Alternatively, you can utilize the self-liquidation mechanism at any point below the target ratio.
Synthetix and Partner Protocols
Advantages of Synthetix Infrastructure and liquidity provisioning
Trading on Synthetix infrastructure provides many advantages over centralized exchanges and order book based DEX’s. The lack of an order book means all trades are executed against the contract, known as P2C (peer-to-contract) trading. Assets are assigned an exchange rate through price feeds supplied by an oracle, and can be converted using partner apps.
Spot Synths
Synthetic assets provide exposure to an asset without holding the underlying resource. This has a range of advantages, including reducing the friction when switching between different assets, expanding the accessibility of certain assets, and censorship resistance.
How Synths work
Synths are synthetic assets that track the price of the underlying asset. They allow holders to gain exposure to various asset classes without holding the underlying assets themselves or trusting a custodian.
Synthetix Futures
Synthetix Perps is a decentralized perpetual futures exchange with deep liquidity and low fees that utilizes liquidity from the Synthetix debt pool.
Users can trade perps and gain exposure to a range of assets without holding the actual asset. The margin for each position is denominated in sUSD, which can be minted and burned as needed, allowing users to avoid exposure to volatility in the value of their margin and simplifying PnL and liquidation calculations.
As the counterparty to all orders, the SNX debt pool takes on the risk of any skew in the market. A perpetual-style funding rate is paid from the heavier to the lighter side of the market to encourage a neutral balance. Perps enable a much expanded and capital-efficient trading experience by enabling leveraged long and short exposure.
Partner Protocols
The Synthetix Protocol does not operate any user-facing front-ends, which allow users to trade. Instead, it serves as a backend liquidity provisioning tool to support user-facing DeFi applications. There is a growing number of protocols that utilize this capital and generate trading fees for stakers. See the "Built on Synthetix" section to learn more.
System Architecture
Minting Synths
An SNX holder can mint sUSD by locking their SNX as collateral via the Synthetix smart contract. The steps involved when an SNX holder mints are:
The Synthetix contract checks that the SNX staker can mint Synths against their SNX, which requires their Collateralisation Ratio to be below the target c-ratio
Debt shares are issued to a staker to track stakers issued debt amount when minting or burning sUSD
With the debt assigned to the staker, the Synthetix contract instructs the sUSD contract to issue the new amount. It adds it to its total supply and assigns the newly minted sUSD to the user’s wallet.
If the price of SNX increases, an equivalent portion of a staker’s SNX is automatically unlocked as collateral. For example, if a user locks $100 of SNX as collateral, and the value of SNX doubles, then half of their SNX (total value: $200) is locked and the other half is unlocked. If they wish, that extra unlocked SNX can be staked to mint more sUSD.
Exchanges
The steps involved for the smart contracts to process a Synth exchange (from sUSD to sBTC in this example) are below:
Burn the source Synth (sUSD), which involves reducing that wallet address’s sUSD balance and updating the total supply of sUSD.
Establish the conversion amount (i.e. the exchange rate, based on the price of each currency).
Charge an exchange fee, and send the fee as sUSD to the fee pool, where it can be claimed by SNX stakers.
The remaining (after the fee) is issued by the destination Synth (sBTC) contract and the wallet address balance is updated
The sBTC total supply is updated.
No counterparty is required to exchange, as the system converts the debt from one Synth to another. Hence no order books or order matching is required, resulting in infinite liquidity between Synths. No debt change is required to be recorded against the debt pool either, as the same value is burned from the source Synth and minted from the destination Synth.
Claiming Fees
When Synthetix liquidity is used to exchange through the Synthetix contract, a fee is extracted and sent to the fee pool to be claimed by SNX stakers. When claiming fees a staker also claims their SNX staking rewards, which reward them with extra SNX for staking the SNX they currently have. The smart contracts’ process once a staker requests to claim their fees is as follows:
The fee pool checks whether there are fees currently available and whether the staker is eligible to receive fees.
The amount of fees in sUSD is sent to the staker’s wallet address and the balance of the fee pool is updated.
Inflationary rewards are no longer distributed to stakers with the passage of SIP 2043.
Fees are allocated based on the proportion of debt each staker has issued. For example, if a staker has issued 1,000 sUSD in debt, the debt pool is 10,000 sUSD, and 100 in fees are generated in a fee period, this staker is entitled to 10 sUSD because their debt represents 10% of the debt pool. The same proportional distribution mechanism is used for SNX staking rewards.
Burning debt
When an SNX staker wants to exit the system or reduce their debt and unlock staked SNX, they must pay back their debt. At its simplest: a staker mints 10 sUSD by locking SNX as collateral, and must burn 10 sUSD to unlock it. But if the debt pool fluctuates (and therefore their individual debt fluctuates) while they are staked, they may need to burn more or less debt than they minted. The process for reducing debt to zero is as follows:
The Synthetix contract determines their debt balance
The required amount of sUSD is burned, and total supply of sUSD is updated along with the sUSD balance in the user’s wallet.
Their SNX balance becomes transferrable.
The debt pool
The system tracks the debt pool by issuing debt shares (a token) to stakers when they mint or burn sUSD. A staker’s debt percentage would be their balance of tokens divided by the total supply of debt shares.
Example:
Alice mints 100 sUSD, gets issued with 100 debt shares Bob mints 100 sUSD, gets issued with 100 debt shares Both Alice and Bob each have 50% of the debt shares (100 / 200 shares)
When the total debt pool value fluctuates, the shares will be used to calculate how much debt the minter owes. For example, if the debt pool now doubles to 400 sUSD, based on the above scenario:
Alice who has 50% (100 shares), will have 200 sUSD debt Alice who has 50% (100 shares), will have 200 sUSD debt
Burning sUSD reduces the number of debt shares issued against a staker and the number of shares burnt is calculated with the total debt pool value. Continuing with the example above,
Example:
Alice now burns 100 sUSD, which burns (100 / 400) * 200 shares = 50 shares Alice would have 50 shares after her burn, ⅓ of the debt pool. Alice’s remaining debt will be (50 / 150 shares) * 300 = 100 sUSD
Oracles
The value of all synthetic assets in the Synthetix system is determined by oracles that push price feeds on-chain. It uses an algorithm with a variety of sources to form an aggregate value for each asset.
Read more about the use of oracles within the Synthetix protocol
OraclesCurrent Risks and Risk Mitigation Strategies
Current risks
There are several risks in the current architecture, as Synthetix is still an experimental system and complex systems require both empirical observations and theoretical analysis. Empirical observation and theoretical analysis ensure the mechanism design aligns incentives for all players.
One risk involves the debt SNX holders issue when they stake their SNX and mint Synths. As previously explained, this debt can fluctuate due to exchange rate shifts within the system. This means that to exit the system and unlock their staked SNX; they may need to burn more Synths than they originally minted.
Most people in the cryptocurrency space are aware of this risk, but the prices of most crypto assets are highly correlated to Bitcoin and/or Ethereum. This means it’s possible for major price fluctuations in the SNX token to occur for reasons that have little to do with SNX or the Synthetix system.
Finally, there are a number of aspects of the system that are currently centralized. This decision has been made to ensure the efficient implementation of the project. One example of centralization is the use of proxy contracts across much of the architecture. This is to ensure the system can be upgraded easily but confers a level of control to the engineering team which requires trust from users. While these aspects will be phased out over time, it is important to understand the risks inherent in the current system architecture.
Risk mitigation strategies
As a decentralized protocol, the Synthetix team is committed to decentralization and censorship resistance — this will be a gradual process as the system matures. This includes crucial areas such as our price feeds. Chainlink, reputable a provider of decentralized oracle solutions, supplies all oracles, and Synthetix does not rely on a centralized solution.
Another important area is governance, Synthetic has a system of councils that helps to oversee and govern the protocol. The Spartan Council, the key governing council of Synthetix, is elected by the community and decides which changes to the protocol are approved.
Conclusion
Synthetix has already delivered one of the most complex and useful protocols built on Ethereum to date. But the potential for liquidity provisioning for complex derivatives across DeFi is untapped, and Synthetix is excited to deliver on this.
Last updated