Skip to main content




The Brilliant Algorithm Behind TerraUSD (UST) on the Terra (LUNA) Blockchain



Edit: Yup. Ignore this article. The Brilliant Algorithm turned out to be not so brilliant. 

Most cryptocurrency investors are familiar with stablecoins; incredibly useful crypto assets that are (usually) pegged to the US dollar. But the methods used to achieve the stability of these assets is often questionable and not necessarily decentralised. For example, USDC is a centralised crypto asset issued by Coinbase, and DAI, while appearing to be decentralised, has 61% of its collateral as USDC. USDT has severe transparency issues. So, is there a solution to all of this?

Well, dear reader, this is where the Terra ecosystem comes in. Terra aims to provide algorithmically designed stablecoins that are fully decentralised; and that they have. The native token of the Terra blockchain is the LUNA, and its US-peg coin is the TerraUSD / UST.

How it works

Let’s take a dive into an overview of how UST works. Take a look at the following diagram [source: Terra YouTube Channel]:



Let the total market value of all the UST be represented by the value of this pool. The height of the pool represents the value of one UST, and the width and length of the pool represent the total supply of UST. 

When more people want UST, the demand for it increases. This means the value of UST must rise above a dollar. The dimensions of the water tank remain the same but the height increases, representing this increase in value of each UST token.

But the whole point of UST is to be a stable $1, right? The way the algorithm works is by introducing more supply of UST to keep the water height at the fixed $1. The more demand of UST is adjusted for by increasing the length and width of the pool.

 


 

But where is this new UST coming from? On the Terra blockchain, people can buy and hold LUNA in a way that such that when the price of UST is increasing due to market demand, people can swap their LUNA for a bit more than a dollar for freshly minted UST. This new UST expands the length and width of the pool, increasing the total supply of UST, and keeping UST worth $1.



When this happens, LUNA becomes more scarce and as a result is now more valuable, and the price of UST remains a dollar. This way of keeping LUNA pegged to a dollar is fully decentralised and does not need a centralised collateral to be backed by.

What if people start selling UST?

Let’s imagine the opposite scenario: A lot of people selling UST and, as a result, the price of UST starting to drop. In this case, UST holders can simply swap their UST for LUNA for a profit. Once again, this method of swapping removes the total number of UST in circulation and mints back more LUNA. This reduces total length and width of the pool, keeping the water height at $1; i.e. keeping the price of UST $1.

What’s wrong with USDC? Everyone uses it!

USDC is centralised. USDC is a token that is issued by Coinbase; for each one USDC token, Coinbase has one US dollar stored. Coinbase can essentially freeze (and they have in the past!) any wallet address if required. This defeats the purpose of cryptocurrencies: decentralisation.

I am not saying USDC is bad. It’s a great asset for a stable currency but it isn’t decentralised. UST is simply a way forward to a decentralised future.

What about DAI?

DAI is certainly a better alternative to USDC in terms of decentralisation, but it uses other cryptocurrencies as collateral to maintain its peg, with 61% of it being USDC. If, for example, Coinbase got robbed (big time!) and there was nothing to back USDC, not only would USDC crash but also DAI. Do note that this happening is incredibly unlikely!

Unlike USDC, Coinbase cannot freeze DAI wallet addresses.

The future

It is still early days for the Terra blockchain and the utility it brings is simply incredible; and this really shows with the price of LUNA skyrocketing in recent times. Currently as of writing this article, LUNA is rank 9 on CoinMarketCap, which it has achieved in a relatively short period of time. In the world of cryptocurrencies, stablecoins will always be needed as a way of storing assets without fear of volatility, and Terra is perhaps the best decentralised contender there is.

What are your thoughts? Leave a comment below!


Links:

https://www.terra.money/

https://coinmarketcap.com/currencies/terra-luna/

https://coinmarketcap.com/earn/project/terra

Comments







Popular posts from this blog

Bitcoin prices surge as hopes of 100K BTC by the end of 2021 soars

Loopring recently received its post-mortem announcement from Gamestop about their NFT marketplace, bringing the dead currency from 6 feet under to 60% above. Following this rather unexpected announcement, now Bitcoin seems to be wanting a piece of the pie as well. It has surged more than 25% since late last month; giving hope to many small-time cryptocurrency owners that there still may be a chance that it reaches 100K by the end of 2021. Many investors have taken to the r/cryptocurrency community of Reddit , the social media platform, to express their feelings: “Finally, 100K bitcoin  🥲 ” “EOY 2021 100K bitcoin back on the table?” “The suicide hotline operators can finally go on a break” It was clear that emotions were running high, and there were many tears of happiness But many users warned that the advice given on the close-knit community were not ones to follow. “Do not follow this subreddit. The market does the exact opposite that of the current sentiments of this

Ledger Live Collects Your IP Address – And They Lied That They Don’t

Ledger devices have been used for a better part of a decade; and they are indeed excellent hardware wallets. They are supported by numerous third-party crypto wallets, and arguably provide the best consumer-end cryptocurrency security out there. But the problem lies within the company’s first-party application – Ledger Live. Ledger Live - What is it? Ledger Live is the main application used to interact with your Ledger hardware wallet. It can install various apps that are required for interacting with specific blockchains, update your Ledger device firmware and keep track of a list of crypto assets. In other words, for the average user, the application is necessary to actually use the ledger device, even if the user only intends to use it with third party applications. Ledger Live’s Data Collection Policy Here’s what Ledger’s Chairman and Co-Founder says, replying to a post on Reddit: [Source: https://www.reddit.com/r/ledgerwallet/comments/8xdgfi/comment/e22jqdi/?utm_

Monero investor barely escapes with his life after boating accident

  What Happened? In the wee hours of 15 th April 2022, a Florida cryptocurrency investor was out boating, enjoying the solitude. “It was perfect. The birds were singing their morning songs, the light from the break of dawn was dancing on the tiny waves. I was so happy.” But then, his worst fears came true. A piranha attacked his boat. The Accident “It came from nowhere! Not a single sound, no warning, then just bam!” He then described how the piranha systematically pinched a hole in his boat – and his dignity. The notoriously ferocious fish ate away at the bottom of the hull, where small boats are the weakest. Then it swam up and used its sharp teeth to strike a hole where the boat structure is the thinnest. “I was in shock. I had no clue what I was gonna do. Am I gonna die?” The investor then described how the water started to flow in. The boat was slowly sinking. He tried bucketing away the water, but it was of little avail. With no other choice, the poor man had