xSynth Litepaper
Version: 1.6 (Jan 2023)
Abstract
xSynth is a decentralized liquidity provisioning protocol built on Ethereum and Optimistic Ethereum (a layer two scaling solution built on Polygon). Synthetic assets, and associated products, are collateralized by stakers via Xsynth Network Token (SYN), 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 xSynth infrastructure. Learn more about these protocols in the "Built on xSynth" section in the docs.
Collateral within the xSynth Protocol
How SYN backs Synths
All Synths are backed by SYN tokens. Synths are minted when SYN holders stake their SYN as collateral using the xSynth Staking application, a decentralized application for interacting with the xSynth contracts. Synths are currently backed by a target collateralization ratio (see ). SYN stakers incur debt when they mint Synths, and to exit the system (i.e. unlock their SYN), 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 XSYN holders stake
XSYN holders are incentivized to stake their SYN tokens in many ways. Firstly, there are exchange rewards. These are generated whenever someone interacts with xSynth Liquidity (i.e. on Bit Bank Perpetual Futures). Each trade generates an exchange fee sent to a fee pool, available for XSYN stakers to claim their proportion each week. The other incentive for SYN holders to stake/mint is XSYN staking rewards, which comes from the protocol’s inflationary monetary policy. As of February of 2022, the xSynth inflationary system is derived from a target staking ratio. This change introduces a target ratio for staking of 85%. It then adjusts the inflation weekly up or down by 10% depending on whether the staking ratio is below or above the target ratio to incentivize stakers to hit this target. If it is between 80-90%, then inflation is decreased by 5%. These XSYN tokens are distributed to SYN stakers weekly on a pro-rata basis provided their collateralization ratio does not fall below the target threshold.
Minting, burning, and the C-Ratio
The mechanisms above ensure XSYN 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 XSYN 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
XSYN 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, SYN 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 xSynth xSynth, 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
Liquidation 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 SYN; your SYN will be used to pay off your debt, and you will be left with what is leftover; all penalty SYN will be distributed to other stakers.
Your C-Ratio goes below the liquidation ratio, and you are flagged, and you self-liquidate. Your liquidated XSYN 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 SYN; all penalty SYN 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.
xSynth and Partner Protocols
Advantages of xSynth Infrastructure and liquidity provisioning
Trading on xSynth 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.
xSynth Futures
xSynth Perps is a decentralized perpetual futures exchange with deep liquidity and low fees that utilizes liquidity from the xSynth 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 xUSD, 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 XSYN 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 xSynth 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 xSynth" section to learn more.
System Architecture
Minting Synths
An XSYN holder can mint xUSD by locking their XSYN as collateral via the xSynth smart contract. The steps involved when an SYN holder mints are:
The xSynth contract checks that the XSYN staker can mint Synths against their XSYN, 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 xUSD
With the debt assigned to the staker, the xSynth contract instructs the xUSD contract to issue the new amount. It adds it to its total supply and assigns the newly minted xUSD to the user’s wallet.
If the price of SYN increases, an equivalent portion of a staker’s XSYN is automatically unlocked as collateral. For example, if a user locks $100 of SYN as collateral, and the value of SYN doubles, then half of their SYN (total value: $200) is locked and the other half is unlocked. If they wish, that extra unlocked SYN can be staked to mint more sUSD.
Exchanges
The steps involved for the smart contracts to process a Synth exchange (from xUSD to xBTC in this example) are below:
Burn the source Synth (xUSD), which involves reducing that wallet address’s sUSD balance and updating the total supply of xUSD.
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 xUSD to the fee pool, where it can be claimed by XSYN stakers.
The remaining (after the fee) is issued by the destination Synth (xBTC) contract and the wallet address balance is updated
The xBTC 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 Xsynth liquidity is used to exchange through the xSynth contract, a fee is extracted and sent to the fee pool to be claimed by XSYN stakers. When claiming fees a staker also claims their SYN staking rewards, which reward them with extra XSYN for staking the XSYN 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 xUSD is sent to the staker’s wallet address and the balance of the fee pool is updated.
Additionally, a pro-rata amount of escrowed (inflationary)SYN is assigned to the wallet address from the SYN staking rewards contract.
Fees are allocated based on the proportion of debt each staker has issued. For example, if a staker has issued 1,000 xUSD in debt, the debt pool is 10,000 xUSD, 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 SYN staking rewards.
Burning debt
When an XSYN staker wants to exit the system or reduce their debt and unlock staked XSYN , they must pay back their debt. At its simplest: a staker mints 10 sUSD by locking SYN 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 xSynth contract determines their debt balance
The required amount of xUSD is burned, and total supply of xUSD is updated along with the sUSD balance in the user’s wallet.
Their XSYN 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 xUSD, 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 xUSD, based on the above scenario:
Alice who has 50% (100 shares), will have 200 xUSD debt Alice who has 50% (100 shares), will have 200 xUSD 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 xUSD, 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 xSynth 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 xSynth protocol
Current Risks and Risk Mitigation Strategies
Current risks
There are several risks in the current architecture, as xSynth 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 XSYN holders issue when they stake their XSYN 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 SYN; 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 XSYN token to occur for reasons that have little to do with SYN or the xSynth 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 xSynth 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 xSynth 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 xSynth, is elected by the community and decides which changes to the protocol are approved.
Conclusion
xSynth has already delivered one of the most complex and useful protocols built on Polygon to date. But the potential for liquidity provisioning for complex derivatives across DeFi is untapped, and xSynth is excited to deliver on this.
Last updated