singletonly Profile picture
Jul 2, 2022 32 tweets 22 min read Read on X
UST failed. Many wondered if that’s the end of algorithmic stablecoins.

@fraxfinance wants to prove them wrong.

Learn how Frax is an innovative alchemy mixer, risk assessment and alphas.

This is part 6 of #stablecoinwar. Let’s dive in. 🧵 1/n
@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.

Did we get the correct answer? 9/n
@fraxfinance 💡 Yes we did!

@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
@fraxfinance In @terra_money, only #LUNA is used to maintain $UST's price stability. But @fraxfinance uses a mix of both collateral and FXS to maintain FRAX's peg.

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.

Enter the AMOs. 22/n
@fraxfinance @terra_money AMOs are algorithmic market operations.

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

Let's go through an AMO example! 23/n
@fraxfinance @terra_money Collateral Investor

1) Decollateralise: place idle collateral in DeFi protocols
2) Market ops: Compounds investments
3) Recollateralise: Withdraw investments from protocols
4) FXS1559: Revenue from investments in protocols

There are a few other AMOs. 24/n
@fraxfinance @terra_money They include:
- Curve
- Uniswap V3
- FRAX lending

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 Image
@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.

I also defer to people smarter than me. 28/n
@fraxfinance @terra_money @0xroborosCap has done an analysis on FRAX and @fraxfinance.

Look at the numbers yourself, and DYOR! Next up- alphas for you. 29/n
@fraxfinance @terra_money @0xroborosCap C/ Possible alphas
Investment: If you believe in the innovations behind @fraxfinance, you can get their governance token FXS. 30/n
@fraxfinance @terra_money @0xroborosCap Building: @0xHamz also has a brilliant thread on how @fraxfinance needs to evolve. But the ideas also extend to other possible DeFi protocols. 31/n
@fraxfinance @terra_money @0xroborosCap @0xHamz That's it for the #stablecoinwar series!

Follow me @0x_armin to not miss the upcoming #multichainfuture series, where we will dive into #BTC, @ethereum and other L1s.

Like/Retweet the first tweet below to help your friends learn about @fraxfinance: 32/end

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with singletonly

singletonly Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @0xsingletonly

Aug 13, 2022
Optimistic rollups. zk rollups. While we wait for the merge, rollups are quite the rage.

So how do rollups work? What's the scalability gain we can get from them? And how do they compare with each other?

This is part 6 of #multichainfuture. Let's get rolling. 🧵 1/n
In the previous issue of #multichainfuture, you learnt about sharding.

The key idea was splitting verification of a block across many validators. Why?

There are too many transactions to be verified by all validators.

Rollups take a different approach. 😉 2/n
Instead of trying to process all the data/computations on the @ethereum network, rollups ask- do we even need to do that?

In fact, can we shift some of those computation/data publication to other platforms? 3/n
Read 20 tweets
Jul 30, 2022
High gas fees. Environmental concerns. Network congestion.

These are problems that plague @ethereum. Then there's the merge. But what exactly is it?

Understand the merge, and its impact on performance & price.

This is part 4 of #multichainfuture. Let's dive in. 🧵 1/n
A/ What the merge is
You've probably heard of terms like 'the merge', 'sharding', 'L2s'. But you may be unclear what upgrades the merge entails.

The merge actually involves only one core technological change- 2/n
A transition to proof of stake from proof of work. That's it. Nothing to do with 'sharding', 'L2s' etc.

To be clear, this change paves the way for further upgrades. But when the merge drops, the only difference is that @ethereum will use PoS.

Now for those key questions: 3/n
Read 35 tweets
Jun 18, 2022
The largest decentralised stablecoin. The OG dapp on @ethereum.

@MakerDAO and DAI are one of the most successful #DeFi stories, but how do they work?

Understand Maker Protocol, assess DAI risk & alphas for you.

This is part 4 of #stablecoinwar series. Let's dive in. 🧵 1/n
@ethereum @MakerDAO A/ Mechanics of @MakerDAO

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
Read 32 tweets
Jun 11, 2022
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
Read 28 tweets
May 18, 2022
.@a16z released their annual #crypto report.

I've read the 56 slides so you don't have to. 🙃

A summary of the actual use cases, trends, and what's next. 🧶 1/n
A) Actual use cases

A common criticism of #web3 is the lack of actual use cases. Let's see if that's true. 2/n
#Crypto has increased the financial freedom of the average consumer.

This applies for both poorer and richer nations.

Time to check some numbers. 3/n
Read 16 tweets
May 17, 2022
.@stablekwon has proposed to fork #Terra_Luna blockchain. This is a momentous decision.

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.

The community responded. 3/n
Read 14 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(