Protocol Due Diligence: Synthetix (SNX)
Please start by reading: https://blog.synthetix.io/what-you-need-to-know-before-staking-snx-for-the-first-time/
Multi-sig: Yes
- SNX multisign is https://gnosis-safe.io/app/#/safes/0xEb3107117FEAd7de89Cd14D463D340A2E6917769. It's using a 4/8 ratio. The MS is the owner of the Synthetix system.
Upgradable Contracts: No
AddressResolver
which points to different contracts and that's what we use inside the strategy.AddressResolver
does not have a timelock. As for monitoring, we can listen for events AddressResolver.AddressImported
, or even listen for SystemStatus.SystemSuspended
with reason 1 - that's a system upgrade that precedes any changes.
Decentralization:
Audits are listed here: https://docs.synthetix.io/contracts/audits/
The SnxSusdMinter
strategy is in charge of minting sUSD and depositing it into the sUSD vault, earning:
The APR will change based on SNX usage. It's composed of
Exchange fees are generated whenever a user exchanges one synthetic asset (Synth) for another through Synthetix.Exchange. Fees are typically between 10-100 bps (0.1%-1%), though usually 30 bps, and when generated are sent to the fee pool, where it is available to be claimed proportionally by SNX stakers each week.
SNX staking rewards are generated through the inflationary monetary policy implemented in March 2018. At the same time as they claim their exchange fees stakers can claim their staking rewards, which are escrowed for a year. The SNX staking rewards enabled by the inflationary supply are set to decrease gradually until September 2023, where it will become a 2.5% annual terminal inflation rate.
The sUSD vault will be composed of different strategies, but the main one will be single side into yearn v1 crvSAAVE. That strategy is returning an APY of 43.47%.
Here are a couple of things which are out of the ordinary and might be of a surprise when reading the code.
If you have SNX in your wallet and you mint sUSD, your token is not replaced with another token, it's just non transferable.
When you stake SNX and mint sUSD, you create a 'debt,' which is how much sUSD you need to burn to unlock your SNX again. Your debt represents a proportion of all the debt in the system. Whenever someone makes a gain through Synths, they make it against all the debt in the system. Therefore, if the system debt increases, your debt will proportionately increase as well.
Here's a snapshot:
There is $50k of sUSD in circulation, which represents the total value of all Synths. You then stake your SNX and mint $50k of sBTC (10 sBTC worth $5000 sUSD each) so there's now $100k in total worth of Synths. So, now we have 50k sUSD and 10 sBTC. Now the price of sBTC doubles. There is now 150k in the network in sUSD. So you want to leave. At the time you joined your proportion of the debt was 50%. So you are responsible for 50% now, which is $75k USD. But BTC is $10k, so you will need 7.5 sBTC to exit. This would leave you with 2.5 sBTC free.
WAIT! Where did that 'free money' come from? The answer is that the total debt of the other SNX stakers, the ones who supplied the sUSD, went up by 50% from $50k sUSD to $75k sUSD. So now they will need to burn that much to unlock their SNX.
Source: https://synthetix.community/docs/staking#why-does-my-total-debt-fluctuate-over-time
Read: https://medium.com/acdx/synth-bc0e3f7178d7
The Collateralization Ratio aka C-Ratio needs to be above
the protocol issuance ratio to issue sUSD and claim rewards.
At the time of writing the value is 500%.
This is the ratio at which your SNX can be liquidated. At the time of writing, this is 200%. If your C-Ratio goes below, there is currently a 72 hours delay period before user can be liquidated.
SNX staking rewards have an escrow period of one year before they can be vested.
This has two implications in the strategy:
When the strategy issues more sUSD it needs to wait 24hs before paying it back.
Before calling harvest()
and or tend()
we need to make sure the other strategy in the vault has enough capital in case there are withdrawals.
Yes. It delegates minted sUSD to the sUSD vault.
Would be an endorsed version of what's pushed into ape tax.
0.3.5
0.3.5
We already have a 0.3.1 SNX vault doing generic lender with Cream. At the moment, with 1,329.45 SNX (30k usd aprox). That vault will be closed and we will ask users to withdraw.
The new 0.3.5 SNX vault will use a GenLender + this new minter strategy. The minted sUSD will be deposited into the sUSD vault in ape-tax. The sUSD vault just deposits in aave using generic lender.
Once we make sure everything is working correctly, we want to upgrade the sUSD vault to start using the single side deposit into the curve's saave pool. To do that we will need a new sUSD vault and point the snx minter strategy to the new sUSD vault.
Yes
Yes
GenLender first, snx minter second.
GenLender 10%. minter 90%
No
Once we are ready to prod, we should do:
80% Gen Lender, 20% snx minter
The final state should be: