Topics Stablecoin
Bybit Learn
Bybit Learn
20 de may de 2022

What Are Algorithmic Stablecoins? (Lessons Learnt From The UST/LUNA Crash)


Crypto tokens and coins have a highly volatile nature which depends upon factors such as market conditions and the demand-and-supply of the cryptocurrency. The level of risk involved can be intimidating to some people. Enter stablecoins — a crypto asset class which has become an integral part of the ecosystem in the past few years. In particular, one subtype of stablecoins — the algorithmic stablecoin — utilizes technology to help automate the trading process.

This article will take you through the concepts of stablecoins and algorithmic stablecoins, their key features, and the different types of algorithmic stablecoins currently making their rounds in the crypto market.

What Are Stablecoins? 

A stablecoin is a type of cryptocurrency that offers better stability compared to its peers, as it derives its price from another asset’s value. This process of pegging a stablecoin to an underlying asset is the main reason for its growing popularity in the crypto world. Reports suggest that the total supply for stablecoins grew by 493%, from $5.9 billion in 2020 to more than $35 billion by the beginning of 2021. Meanwhile, stablecoin usage increased by 500% between Oct. 2020 and Oct. 2021.

Stablecoins facilitate trades on crypto exchanges, including staking and lending activities on the crypto network. Additionally, stablecoins can be used to mitigate trading fees on most exchanges, since there’s no charge when exchanging U.S. dollars for a stablecoin. 

Traders have the option to exchange fiat currency for a stablecoin and then exchange the stablecoin for another cryptocurrency, thereby saving on trading fees. Instead of buying Bitcoin directly with fiat currency (e.g., the U.S. dollar), traders often exchange fiat currency for a stablecoin – and then execute a trade with the stablecoin for another cryptocurrency, such as Bitcoin.

Source: Coinbase

Most traditional stablecoins are governed by a de facto central governing authority. When you buy a stablecoin, you accept that the issuer has a sufficient amount of assets pegged to the stablecoin. The value of a stablecoin doesn’t fluctuate much over time if it’s pegged to a commodity that’s comparatively less volatile. To understand the value of a stablecoin, here’s a simple explanation:

USDT is a stablecoin that’s pegged to the U.S. dollar. If you hold 1 USDT in your wallet, its value is worth 1 USD. You can then trade the stablecoin against any crypto coin without the risk of incurring huge losses associated with market fluctuations.

A graph depicting how the total market capitalization of stablecoins has increased 10x since the beginning of 2020. Source:

Algorithmic Stablecoins

Algorithmic stablecoins don’t have any collateral attached to them. As such, they’re referred to as “non-collateralized” stablecoins. They’re decentralized in nature, and are tailored to improve market price stability without involving a central authority — which is often done by “pre-programming” the supply to match the demand of the asset. This is done by using predetermined stabilization measures hardcoded into smart contracts on Ethereum

The algorithm underlying these stablecoins is programmed to increase the supply of currency in the event of a “deflationary trend” in the token, and to decrease the supply of the currency in the event of a “decline in purchasing power.” The way these algorithmic stablecoins respond to market events with automated stabilization measures increases their decentralized nature, giving rise to a smart, responsive currency that’s not controlled by a single institution — which is similar to a central bank’s working model.

These purely algorithmic stablecoins reveal the internal logic of the tokens and any collateral used for maintaining token value, thereby maintaining transparency on the network. 

How Algorithmic Stablecoins Work

An algorithmic stablecoin stabilizes the market through the mechanisms of buying and selling the referenced asset or its derivatives. It uses an Ethereum-based cryptocurrency protocol that issues coins when the price surges and buys them from the market when the price drops. 

Here is how algorithmic stablecoins work:

  1. An oracle contract is required to help the smart contract communicate outside the blockchain. This oracle contract helps in fetching the price of the algorithmic stablecoin from different exchanges. 

  2. This stablecoin price is then passed into a rebase contract periodically (every 24 hours), so that the contract can determine whether the supply needs to be expanded or decreased.

  3. The contract then starts tallying the number of tokens that need to be burned and minted from the wallet of every user associated with the contract. The basic logic used is that if the price of the coin increases from the predefined stable value, the algorithm will start burning the tokens. Conversely, if the price of the token goes below the predefined stable value, the algorithm will mint new tokens.

A flowchart explaining the working of algorithm stablecoins. Source: blog.accubits

Key Features

An algorithmic stablecoin aims to help traders (advanced and new users) get comfortable with the idea of trading. Some features of algorithmic stablecoins include:

1. Limited Volatility = Value Addition

Stablecoins are stores of value because of the limited price volatility associated with them, along with the convenience of using these coins. Thus, stablecoins can be easily leveraged for cross-border transactions. These stablecoins also reveal collateral diversification, creating resistance to hyperinflation and market instability.

2. Responsive Reactions to the Market

The parameters of the algorithm, which is hardcoded into the smart contracts, ensure an automatic reaction to market data without direct manual intervention. These parameters aim to stabilize market supply and demand for these tokens after studying underlying market conditions.

3. Security

Stablecoins can be stored in virtual wallets to ensure security by using a private key. Only the stablecoin holder can access the associated funds. Advanced encryption technology can be leveraged for additional security levels. 

Uses for Algorithmic Stablecoins 

Algorithmic stablecoins provide true decentralization within the stablecoin market by removing third-party interference, a mechanism popular among traditional stablecoins. These stablecoins eliminate the problems that come with raising enough capital required to serve as the reserve.

Algorithmic stablecoins can be used to trade on crypto exchanges, including staking and lending on crypto networks. Investors can avoid the trading fees charged by most exchanges imposed while exchanging U.S. dollars for a stablecoin. Instead, they can exchange fiat currency for a stablecoin and then exchange the stablecoin for another cryptocurrency.

Types of Algorithmic Stablecoins

While different algorithmic decentralized stablecoins have varied features or traits, they generally follow the same protocols. Following are the different types of algorithmic stablecoins.

1. Rebasing Algorithmic Stablecoins

By rebasing algorithmic stablecoins, the supply regulates their value. The algorithm in a rebase mechanism automatically decreases the supply of coins when their price drops below a threshold, and issues additional coins when it rises above a specific level. This mechanism maintains the value of the coin, irrespective of market conditions. The idea is to ensure that if you have 1% of the supply before the rebase, you’ll still have 1% after it — even when the number of tokens in your wallet fluctuates. This means you retain your share of the network, regardless of the price of the native token. 

2. Seigniorage Algorithmic Stablecoins

In the Seigniorage Algorithmic Stablecoin model, instead of a “rebasing” currency there are two tokens: A supply-elastic currency, and investment shares of the network. Owners of the latter are sole receptors of inflationary rewards (from positive supply increases) and the sole bearers of the debt burden (when demand for the currency falls and the network contracts).

3. Over-Collateralized Algorithmic Stablecoins

Over-collateralized stablecoins need a large number of cryptocurrency tokens maintained as a reserve for issuing a lower number of stablecoins. This is done as a buffer against price fluctuations. An example of an over-collateralized stablecoin is MakerDAO's DAI, which is collateralized with ETH cryptocurrency. This stablecoin requires a minimum of 150% of collateralization. This means that if the price of the underlying cryptocurrency drops low enough, the stablecoins will automatically be liquidated. 

4. Fractional Algorithmic Stablecoins

Fractional algorithmic stablecoins are partially collateralized, and are backed by both asset collateralization and cryptographic algorithms. This protocol uses two different assets, namely the Frax (FRAX) stablecoin (to maintain a 1:1 peg to the U.S. dollar) and the Frax Share (FXS) governance and utility token. A user can mint FRAX by supplying the USDC stablecoin as collateral, along with the FXS token, in accordance with the quantity set by the Frax collateral ratio (CR).

Potential Risks

The potential risks involved with algorithmic stablecoins are that they can be tenuous in times of financial crisis or periods of extreme volatility. Here are some of these risks.

1. Influenced by Market Risk

Algorithmic stablecoins face the risk of decreased and increased supply every time the market fluctuates. In cases where the digital asset’s price exceeds the valued price, more tokens are generated by the algorithm. The newly generated tokens circulate on the network, to be purchased by potential traders. If the price drops below the valued price, the algorithm burns the tokens. This reduction in supply is compensated for by offering bonds to buyers — who get paid only when the price rises above the valued price. 

2. Oracle Smart Contract

Reliance on oracle technologies creates an information bottleneck, since blockchains cannot access data outside their protocol. Oracles are used to obtain prices from exchanges, compare these prices, and adjust the system to maintain the balance. Additionally, the acquired data has to be accurate with respect to the current price. It’s a challenge for developers or project managers to maintain the oracles’ accuracy.

3. Peg Separation

The risk of peg separation (peg break) occurs when a chain breaks away from the parent chain. This is a worst-case scenario for any stablecoin, as it can destabilize the algorithmic stablecoins and cause price fluctuations that eventually could kill the entire project.

Best Algorithmic Stablecoins

[Editor’s note: In light of the recent TerraUSD (UST) crash, please do your own research and proceed with the utmost caution if you’re looking to invest in any algorithmic stablecoin. The following is not investment advice, and Bybit will not be held responsible for any losses incurred.] 

1. DefiDollar (DUSD)

DefiDollar aims to be an index of stablecoins that uses decentralized finance (DeFi) primitives to stay near the dollar mark while subsidising the collateralization ratio in order to protect users from counterparty risk, holdings seizure risk and bank run risk, etc. DefiDollar allows investors to index varying stablecoins with a single token (DUSD) that protects users from the underlying risks attached with such tokens.

2. Empty Set Dollar (ESD)

Empty Set Dollar (ESD) offers a combination of decentralization, novel protocol mechanisms and composability that makes it a central part of the DeFi space. ESD is a decentralized, oracle-driven stablecoin that uses novel protocol mechanics to overcome the downfalls of other rebasing tokens. Token holders who do not want to actively maintain the price peg can use ESD in DApps, or hold it as a stablecoin without the need for a counterparty or committing funds to a CDP — and without needing to worry about amounts changing in their wallet.

3. Frax (FRAX)

Frax is looking to serve as a DeFi money market, including services like minting and redeeming the FRAX stablecoin, as well as staking by providing liquidity provider (LP) tokens to various trading pairs on Uniswap. The Frax crypto protocol uses two distinct stable assets: Frax stablecoin (FRAX), which is pegged 1:1 to the U.S. dollar, and the Frax Shares (FXS) governance and utility token.

4. Ampleforth (AMPL)

Ampleforth is a decentralized stablecoin that maintains price stability with a flexible supply. Rebasing is used by the underlying protocol to adjust the supply of AMPL daily. This provides better price stability as compared to fixed-supply cryptocurrencies. Ampleforth’s stablecoin, AMPL, is elastic and non-dilutive.

Case Study: TerraUSD (UST) 

One of the worst crypto crashes to date took place in April 2022, with the market still struggling to bounce back as of this writing (May 20, 2022). Although many cryptocurrencies recorded massive losses, stablecoin TerraUSD (UST) and its sister token, Terra blockchain’s native token LUNA, were arguably hit the hardest of all.

UST, an algorithmic stablecoin, saw its value plummet from $19 billion to $1 billion in the past week. As news of its crash hit various crypto-related sites, the topic of algorithmic stablecoins entered the spotlight. 

Source: Swyftx

So, why did UST crash?

  • Previously, people held UST because of Anchor Protocol — a “savings account” for cryptocurrency, which paid a high, steady interest rate of 20%. Many people chose to park their UST with Anchor Protocol.

  • In March of this year, news broke of Anchor Protocol replacing the 20% rate with a variable one. Following that, there was a mass exit from the Anchor Protocol, with large amounts of UST withdrawn all at once.

  • In a flurry of panic, traders started selling off their UST and LUNA tokens. A second group of investors began swapping their UST for other stablecoins on Curve Finance.

  • UST was also burned in exchange for LUNA, causing its supply to skyrocket and its price to plummet.

  • This mass dumping of UST caused the UST-LUNA balancing mechanism to malfunction, and both coins lost most of their value.

  • Reportedly, a $3B attempt to maintain the UST peg by the reserve fund of the Terra ecosystem Luna Foundation Guard (LFG) proved unsuccessful.

  • At the time of this writing (May 20, 2022), one UST is worth $0.08, while one LUNA is worth a mere $0.00014 (a far cry from its ATH of nearly $117.)

Are Algorithmic Stablecoins a Good Investment? 

Algorithmic stablecoins aim to stabilize market fluctuation by using smart contracts that are hardcoded to automatically decrease or increase the supply of the coin based on market conditions. This nascent technology is recognized by many investors as a potential breakthrough in the crypto world. In the next two years, the stablecoin market is expected to reach $1 trillion.

In a centralized stablecoin system, investors are susceptible to interference from government regulations in the jurisdictions in which they’re incorporated. If the government decides to freeze the bank accounts of issuers for any reason, then the redeemability of the stablecoin becomes zero, thereby negating its value The decentralized nature of an algorithmic stablecoin protects it from such risks. 

Without a doubt, the UST-LUNA collapse has shaken up the crypto industry. Some regulatory experts say this may mark the end of algorithmic stablecoins; indeed, the future of algorithmic stablecoins looks rather bleak. For now, we expect investors and institutions to stay away from algorithmic stablecoins, and it’s hard to tell what their future holds.

Closing Thoughts

Stablecoins have thus far been regarded as a new and safer form of crypto investment. Algorithmic stablecoins, however, are somewhat of an exception as they “[rely] on complex financial engineering to hold their value steady.” The UST-LUNA incident has highlighted some potential areas for concern. Perhaps current technology isn’t nearly sophisticated enough, and some amount of regulation/control is required … even for stablecoins.