Stablecoins 101
In 2023, I had the good fortune of working for a crypto company called Switcheo, where I worked on an options exchange for cryptocurrencies called Demex. While working on it, I inevitibly had to learn about stablecoins, which are a fundamental component of the DeFi ecosystem. Here’s a rundown of what I learnt:
1. What is a stablecoin?
Stablecoins are cryptocurrencies whose value is pegged, or tied, to that of fiat currency (like USD).
Technically, you can peg a stablecoin to anything (gold, carrots, socks), but fiat currency is the most common. The idea is that 1 stablecoin is always worth 1 USD, so if you have 1000 stablecoins, you should be able to exchange them for 1000 USD.
Why not just use fiat?
Well most crypto platforms dont accept fiat currency (for fees, collateral etc), owing to the fact that they are decentralized and hence do not have access to traditional banking services.
Why not use other cryptocurrencies like Bitcoin or Ethereum?
One of the main criticisms of traditional cryptocurrencies is their volatility, which makes them less than ideal as a medium of exchange or store of value. It’s hard to price an asset with a currency that fluctuates in value so frequently. Here’s a chart depicting the Bitcoin prices over the last decade or so:
Stablecoins aim to be a bridge between the traditional financial world and the crypto world, by providing the benefits of cryptocurrencies (fast, cheap, borderless transactions) without the volatility. As such, they have become an incredibly popular tool for the purchase of goods and services across decentralized platforms.
As of late July 2023, the stablecoin Tether (USDT), was the third-largest cryptocurrency (behind ETH and BTC) by market capitalization, worth more than $83 billion
2. Types of stablecoins
The fundamental characteristic of a stablecoin is that it is pegged to a fiat currency, but how is this peg actually maintained? There are there main types of stablecoins and they achieve this peg in different ways:
2.1 Fiat Collateralized
The value of these stablecoins is backed by a reserve of traditional fiat currencies, such as the US dollar or the euro, held in a bank account.
2.2 Token Collateralized
The value of these stablecoins is backed by a reserve of other cryptocurrencies, frequently with smart contracts and algorithms to maintain the stablecoin’s value.
2.3 Algorithm-backed
The value of these stablecoins do not rely on physical or digital assets as collateral but instead use only algorithms and smart contracts to control supply and demand, keeping the coin’s value stable
3. Fiat Collateralized Stablecoins
Fiat stablecoins use the concept of collateralization to peg its value to a fiat currency. This means that for every stablecoin in circulation, there is an equivalent amount of fiat currency held in reserve.
A fiat-backed cryptocurrency ensures you can exchange 1 token for 1 USD at all times. This is usually done with a reserve of USD in a bank account, owned by a third party.
Such reserves are maintained by independent custodians and are regularly audited. Tether (USDT) and TrueUSD (TUSD) are popular stablecoins backed by U.S. dollar reserves.
3.1 Pricing mechanism
It seems pretty intuitive at first how a 1 to 1 that’s always available can maintain the peg, but how does it actually work? Let’s quickly run through the mechanics of how a fiat-backed stablecoin maintains its peg.
We’ll run through the concept using two scenarios, one with an underpeg (the price of a token falls below 1 USD) and an overpeg (the price of token rises above 1 USD).
Arbitrage is an important concept in understanding these mechanisms; it might be worth learning about it here if you’re not familiar with it.
3.1.1 Underpeg
If the token is now worth 0.95 cents, arbitrage can happen → I buy USDT from you and exchange USDT for 1 USD at Tether Exchange (Profit of 0.05 USD and lowering the overall supply)
This lowering of supply creates a scarcity of the token, driving the price up back up. This happens till the token reaches a price of 1 USD.
3.1.2 Overpeg
If the token is now worth 1.05, arbitrage can happen → I go to Tether Exchange and buy 1 USDT for 1 USD, then I sell (Profit of 0.05 USD and increasing overall supply)
This increasing of supply creates an abundance of the token, driving the price down. This happens till the token reaches a price of 1 USD.
3.2 Risks
The entire premise of a fiat-backed stablecoin is reliant on the fact that it has enough reserves to back the tokens in circulation.
From the earlier underpeg/overpeg scenarios, notice how the pricing mechanism is entirely predicated by the fact that I can exchange 1 USDT for 1 USD. If I can’t do that, the entire system falls apart.
A 1:1 backing ratio ensures that users can redeem the stablecoin for an equivalent amount of fiat currency at any time. This guarantees liquidity, as users have confidence that they can convert their stablecoins back to fiat without loss of value.
Drama?
Tether (USDT) is, behind Bitcoin and Ethereum, the third most used cryptocurrency in the world. Each Tether token is intended to be backed by one USD held in reserve by the issuing company, Tether Limited. Currently, there is 120 billion Tether in circulation, with presumably 120 billion USD in reserve.
However, Tether has been the subject of controversy and legal issues, with critics questioning whether the company has the reserves to back the tokens in circulation.
Tether holds an enormous amount of capital in its reserves and (in theory) should hold most of this in cash or liquid assets to ensure that users can always redeem USDT for USD. However, the incentive to cheat is strong. If Tether parks this money in higher yielding but less liquid assets, they can make a lot of money.
Checkout these articles for more information on the Tether drama:
4. Token Collateralized Stablecoins
Similar to fiat-backed stablecoins, token-backed stablecoins are backed by a reserve of other cryptocurrencies (tokens) rather than traditional fiat currencies. So instead putting up USD, I put up another token like BTC for collateralisation instead. This design allows the stablecoin to leverage the transparency and efficiency of blockchain technology while striving to maintain a stable value.
Using tokens instead of fiat currency as collateral
The use of tokens as collateral over fiat gives rise to a few extra rules:
-
The value of the token minted will always be lower than the value of the tokens used as collateral due to the volatility of token prices
-
Some token-backed coins employ dynamic interest rates to keep the peg at 1 USD, this dynamic interest rate is determined by the protocol or centralized authority, manipulating the supply to maintain price stability
Here’s where things might get a tad complicated, so let’s use an example to illustrate how this works.
Let’s take a look at the Carbon USD stablecoin (USC) as an example, a stablecoin minted by the Carbon Protocol.
Carbon Token (USC)
Carbon USD, USC, is Carbon’s native stablecoin that follows the MakerDAO’s Collateral Debt Position (CDP) model that mints the popular DAI stablecoin. This over-collateralization mechanism ensures that each USC is always backed by more than $1 worth of collateral.
USC is available for minting via its native Nitron money market platform
4.1 Pricing Mechanism
The pricing mechanism of USC is mainly controlled with the Dynamic Interest Rate Model. The interest rate of USC will be automatically adjusted upwards or downwards every 6 hours. The following section will be an explanation of how this dynamic interest rate interacts with the price of USC to maintain the peg.
4.1.1 Interest Rate vs Price
We know that the protocol uses interest rate to control the price, but what exactly is the mechanism in the relationship between price and interest rate?
The way interest rate controls the price, is through the exertion of buying pressure in the free market. We’ll explore this in the following underpeg and overpeg examples:
How is interest accrued?
Interest is accrued in every 6 hour time block.
Let’s say I mint 1000 USC, I now have a base debt of 1000 USC. Assuming a interest rate of 1% (per annum), then after 6 hours, I will accrue an interest of 1.1416 x 10-6 USC (1 percent divided by 365 days, divided by 24 hours, times 6 hours).
Since this interest rate (possibly) changes every 6 hours, the interest accrued on your minted USC will also be calculated every 6 hours.
4.1.2 Dynamic Interest Rate Model
How does the protocol decide how much interest rate to charge?
The adjustment will be based on the Time-Weighted Average Price (basically an average of the price of the token over the last couple hours) of USC.
The formula used is shown below:
rt represents the interest rate at any given 6 hour block. As you can see, the interest rate at any given time is dependent on two factors (omitting the adjustor coefficient which is a constant): the current price of USC and the interest rate of the token from the previous 6 hour time block, rt - 1.
Try to sub in your own values and you’ll find that interest rates are positive for underpegs (price of USC < 1 USD) and 0 for overpegs (price of USC > 1 USD).
All this is probably a tad confusing, so let’s take a look at some scenarios, and see how the peg is maintained from a token holders’ perspective.
4.1.3 Underpeg
Let’s assume that the current interest rate of USC = 1.5% and AdjustorCoefficient of 1.
If the price of USC falls below the peg to an average of $0.95 over a 6-hour time block, the interest rate will be gradually increased to promote the purchase of USC, which will raise the price of USC back up to the peg.
Let’s look at the formula again:
In this scenario, we have a rt - 1 of 1.5% and a price of 0.95 USD. Subbing in the values, we get a new interest rate of 1.55%.
Why would the price go up? → With the higher interest rate, minters are now incentivized to not only mint less USC, but also exert buying pressure in the free market, driving up demand and hence increasing the price of USC.
4.1.4 Overpeg
Let’s assume that the current interest rate of USC = 1.5%.
If the price of USC rises above the peg to an average of $1.005 over a 6-hour epoch, the interest rate will be gradually decreased to promote the purchase of USC, which will raise the price of USC back up to the peg.
Let’s look at the formula again:
In this scenario, we have a rt - 1 of 1.5% and a price of 1.005 USD. Subbing in the values, we get a new interest rate of 0.5%.
Why would the price go down? → With the lower interest rate, minters are now incentivized to incentivized mint more USC, and buying pressure is lowered in the free market as individuals are less pressured to pay back the interest, lowering demand and hence dropping the price of USC.
5. Algorithm-based Stablecoins
So we’ve explored two types of stablecoins, fiat and token collateralised, which involves holding actual assets in hand to maintain the peg.
However, this third kind of stablecoin does not rely on physical or digital assets as collateral but instead uses only algorithms and smart contracts to control supply and demand, keeping the coin’s value stable.
Non-collateralized stablecoins use algorithms to control the expansion and contraction of supply, hence controlling price. This is done through the minting and burning dynamic of two tokens (we’ll cover more of this below).
This means that they approximate the value of the US dollar, but don’t hold US dollars.
5.1 Mint-Burn dynamic
The core of algorithmic stablecoin is the mint-burn dynamic between two tokens. The first token is the stablecoin itself, while the other token is called a governance token.
These two tokens have a symbiotic relationship, where the stablecoin can burned to mint the governance token, and the governance token can be burned to mint the stablecoin. This is the crux of the algorithmic mechanism that maintains the peg.
We’re gonna use the Terra blockchain as an example, which uses the LUNA as a stablecoin and UST as a governance token pair to maintain the peg.
5.2 Pricing Mechanism
Let’s explore how this mint-burn dynamic holds the value of stablecoin. We’ll be using the LUNA/UST pair as an example.
Remember: UST is the stablecoin that we are trying to peg to 1 USD. LUNA can take on any price as long as UST is at 1 USD.
So the mint-burn dynamic works as follows:
Users can ALWAYS burn one UST to mint $1 worth of LUNA and burn $1 worth of LUNA to mint one UST
We don’t care how much the price of LUNA is.
If LUNA is at $100, you can redeem it for 100 UST, or redeem $100 UST for 1 LUNA. Conversely, if LUNA is at 0.01 USD, you can redeem 1 UST using 100 LUNA.
This is the core axiom that holds the peg. Let’s explore how it works through the underpeg and overpeg scenarios.
5.2.1 Underpeg
Let’s say UST is now trading at 0.95 USD.
Arbitrageurs can take advantage of the mint-burn dynamic to buy UST at 0.95 USD, burn it to mint 1 USD worth of LUNA, and sell it on the free market for a profit of 0.05 USD.
This exerts buying pressure on UST, driving the price up and moving the peg to 1 USD.
5.2.2 Overpeg
Let’s say UST is now trading at 1.05 USD.
Arbitrageurs can take advantage of the mint-burn dynamic by burning 1 USD worth of LUNA for 1 UST, and selling it on the free market for a profit of 0.05 USD.
This exerts selling pressure on UST, driving the price down and moving the peg back to 1 USD.
5.3 Risks
If you were following the crypto space in 2022, you might heard of this token called LUNA which crashed from around 120 USD to 0.00003 USD in a matter of days. There were a couple of influencers who were caught up in the crash, with KSI (popular UK influencer) losing 3 million USD.
Historically, most stablecoins that have collapsed have been algo-backed stablecoins.
Death Spiral
Why does this happen? Doesn’t the mint-burn dynamic ensure that the peg is maintained?
Let’s take a look again at the fundamental rule that this stablecoin mechanism relies on:
Users can ALWAYS burn one UST to mint $1 worth of LUNA and burn $1 worth of LUNA to mint one UST
Let’s assume a scenario where UST deviates extremely far from the peg, say it starts selling at 0.5 USD (underpeg) in the free market. Like in the scenario we went through above, arbitrageurs will move in to exploit this price gap and mint more LUNA, exchanging 1 UST (which is worth 0.5 USD) for 1 dollar worth of LUNA. By buying 1 UST for 0.5 USD and getting 1 USD worth of LUNA, arbitrageurs can make a profit of 0.5 USD (per UST). This exerts a buying pressure on UST, driving the price up and moving the peg back to 1 USD.
But problems arise when we look at the price of LUNA. In the above example, arbitrageurs move to mint massive amounts of LUNA to take advantage of the price gap. This floods the market with more LUNA (as I’m selling it for profit), driving the price of LUNA down.
This dip in price of LUNA is where the death spiral begins. For each UST I burn for 1 USD worth of LUNA, I get even more LUNA as the price of LUNA falls. This means that I have to mint even more LUNA to cover the UST supply, which drives the price of LUNA down even further.
At its lowest LUNA, was worth around 0.00003 USD, which meant that burning 1 UST would get you more than 30,000 LUNA.
LUNA as a volatility absorber
Through the mint-burn dynamic of UST and LUNA, we can see that LUNA’s price and supply is used to cushion the blow of UST’s price fluctuations.
LUNA’s price and market cap has to grow with UST’s market cap. If LUNA’s price does not increase sufficiently with UST market cap expansion, then over time UST essentially becomes less ‘backed’ by LUNA. In other words, if the market cap of UST is higher than the market cap of LUNA, UST is less and less stable. This is exactly what happened. As seen below, the market cap of UST continued to rise, and from its peak ratio of 635% in November, it fell to 149% in May.
6. Stablecoins
I think stablecoins, much like the rest of crypto, gets a bad rep for being a shame of sorts. But once you dive into the mechanics of how they work, you’ll find that under the hood there are very concrete rules and mechanisms that hold the peg.
Fundamentally, the rules and algorithms don’t create value (or money) out of thin air, but they leverage the value of other token and commodities to maintain its pegged value.