@fraxfinance A/ How FRAX works
In part 1 of our #stablecoinwar series, the crypto world gave you a quest to create the ultimate stablecoin.
You succeeded in creating 3 types of stablecoins- fiat-backed, crypto-backed and algorithmic. You've also learnt about the 3C framework- 2/n
@fraxfinance Each type of stablecoin trades off some aspect of collateral, capital efficiency and centralisation.
Now it's 2022, and the crypto world has another quest for you. 3/n
@fraxfinance They want you to create a new type of stablecoin.
This may feel difficult. Aren't there only 3 types of stablecoins? How do you create another type of stablecoin?
Don't worry, I've a little hint for you. 😁 4/n
@fraxfinance Imagine if you've a soda machine that can dispense any of the 3 drinks- coke, sprite and orange juice.
You now have to create a new flavor using this soda machine. What will you do? 5/n
@fraxfinance If you've answered- I'll just mix 2 drinks to create a new flavor, you're right! ✅
This is the insight into @fraxfinance- you just need to mix 2 types of stablecoins together!
What are the 2 types you'll choose then? 6/n
@fraxfinance We know that algorithmic stablecoins are the ideal dream- capital efficient and decentralised. Alright, let's pick algorithmic as the first flavor.
We need to make sure that our second flavor complements algorithmic, so let's consider algorithmic's downside. 7/n
@fraxfinance Algorithmic stablecoins can be highly volatile. In UST's case, it had a free fall to zero.
We need to pair algorithmic with something that is very stable. Is fiat-backed or crypto-backed a better fit? 8/n
@fraxfinance Well, we know that crypto-backed stablecoins' collateral can be highly volatile.
In contrast, fiat-backed stablecoins are usually more stable, especially if the underlying collateral is USD.
@fraxfinance is an algorithmic-collateral stablecoin. It combines 2 different types of stablecoins.
Let's go through how this actually works. 10/n
@fraxfinance The most important aspect of a stablecoin is price stability. No one wants a stablecoin that has its price going around in fucking circles. ⭕️
Similar to UST, @fraxfinance uses an algorithm to maintain price stability. 11/n
@fraxfinance@fraxfinance promises that you can always redeem 1 FRAX for 1 USD of collateral and FXS (the governance token) and vice versa.
This mechanism allows for arbitrage, thus keeping the price of each FRAX at around 1 USD.
A quick example- 12/n
@fraxfinance Suppose 1 FRAX = 1.1 USD. We want to bring FRAX's price down to 1 USD.
1) Traders can put in 1 USD of collateral + FXS to mint 1 FRAX. 2) They will then sell this FRAX for 1.1 USD, thus making 0.1 USD profit.
Notice what happens in step 1? 13/n
@fraxfinance As new FRAX are minted, their supply increases. This brings FRAX's price down.
You may find this mechanism very similar to UST-LUNA. However, there is a key difference. 14/n
Wait, how do we even decide what ratio of collateral and FXS to use?
Time to go through a central idea- collateral ratio. 15/n
@fraxfinance@terra_money FRAX starts off as being fully backed by USDC. In other words, its collateral ratio (CR) is 100%.
Remember how an algorithmic stablecoin works by having enough people believe in it?
Likewise, @fraxfinance decreases the CR when more users believe in FRAX. How do they tell? 16/n
@fraxfinance@terra_money They will look at the growth ratio. Uhh what, another ratio? No worries, let's break this down quickly!
Growth ratio = FXS liquidity / FRAX supply
Let me give you an easy interpretation! 17/n
@fraxfinance@terra_money A high growth ratio means that more FRAX can be redeemed with less percentage change in FXS supply.
E.g. FXS liquidity = 500, FRAX supply = 2. After redeeming 1 FRAX, we still have FXS liquidity of 501, a 0.2% increase.
What if FXS liquidity = 5, FRAX supply = 2? 18/n
@fraxfinance@terra_money After redeeming 1 FRAX, we have FXS liquidity of 6, a 20% increase. But why does this matter anyway?
Do you remember when do we redeem FRAX for FXS? We do so as part of the price stability mechanism when 1 FRAX < 1 USD.
This accounts for the most dire outcome. 19/n
@fraxfinance@terra_money The LUNA-UST death spiral occurred when people continually burned UST to mint LUNA. Each successive UST burnt led to exponentially increasing LUNA mint.
By only decreasing CR when growth ratio is increasing, @fraxfinance reduces the odds of death spiral.
Spot something? 20/n
@fraxfinance@terra_money@fraxfinance allows the market to settle on the CR! When people believe in FRAX, the CR will be lower; when people are fearful, the CR will be higher.
This is different from UST & USDC, which are 100% algorithmic & fiat respectively.
Time for our last concept- honoring CR! 21/n
@fraxfinance@terra_money When the CR decreases, there will be excess collateral. When the CR increases, there will be a shortage of collateral.
@fraxfinance needs to ensure that decollateralisation (reducing collateral) & recollateralisation (increasing collateral) goes smoothly.
They are financial lego blocks with the 4 operations: 1) decollateralise 2) market ops 3) recollateralise 4) FXS1559, which specifies profit sources to be distributed to staked FXS holders
They have similar structure, so I'll let you read up yourself. 😃
Alright, here's a friendly flowchart to summarise your learning!
We'll go through risk assessment next. 25/n
@fraxfinance@terra_money B/ Risk assessment
I'll be honest. I'm not exactly sure. The system works well in theory, but UST sounded great when I read the whitepaper too.
What are some of my concerns? 26/n
@fraxfinance@terra_money 1) UST's tps limit affected the mint/redeem mechanism. Is this applicable to FRAX-FXS too? 2) The key to a stable peg is smooth recollateralisation. Is there a scenario that @fraxfinance incurs significant slippage as they recall the collateral?
My takeaway- 27/n
@fraxfinance@terra_money 1) Treat the governance token as the investment, not the stablecoin. 2) Use the stablecoin for transactions, but do not hold more than you can afford to lose.
A quick refresher on types of #stablecoins- there are 1) fiat-backed 2) crypto-backed 3) algorithmic
DAI is a crypto-backed stablecoin, which means that all of its assets live on the blockchain! How do we make that happen? 2/n
@ethereum@MakerDAO At its core, we have Maker Protocol. It is essentially a set of smart contracts that provide all the rules for this financial system.
This may sound confusing, so let's use a simple analogy! 3/n
USDC- safe alternative to USDT. Most people think so.
Wait, there's more. I believe #USDC is the McDonald's of #stablecoins.
My thesis on why USDC is a sleeping giant, risk assessment, and possible alphas.
This is part 3 of the #stablecoinwar series. Let's dive in. 🧶 1/n
I'm going to get to what I mean by McDonald's of stablecoins. Ngl, I was blown away while reading @centre_io's whitepaper.
So let us run through how #USDC works, and I'll tell you about Centre's audacious vision. 2/n
@centre_io Similar to #USDT, USDC is a fiat-backed stablecoin. I've gone through the 3C framework and USDT in previous threads, so I won't go into detail here. (No worries, I'll link them at the end of this thread.)
Remember how USDT is backed by a confusing list of financial assets? 3/n
Before voting on it, let's first look at 2 notable blockchain forks. Why we needed those forks, who proposed them, and how it ended.
Let's dive in. 👇 1/n
1. The infamous DAO hack.
In 2016, a group of @ethereum users launched a DAO- an investment fund that allowed members to vote on and fund future Ethereum-related projects. They raised more than $160 million worth of #ETH from about 11k investors.
Then came the hackers. 🥲 2/n
They found a bug in the smart contract and siphoned 3.6mil ether from the fund.
Think of smart contracts as vending machines. Pop in a dollar, pick the drink and it should dispense it. A vulnerability is akin to getting a free drink without paying.