Introduction
For stablecoin lovers, there are now multiple options to pick from when choosing where to invest. And it's not all fiat-backed stablecoins either. There's a wide variety of methods and networks experimenting with ways of keeping stablecoins pegged. Terra is one such project developing a unique approach to stablecoins and the tools developers can use to create their own pegged tokens.
What does Terra do?
Terra is a blockchain that lets users create stablecoins pegged to fiat currencies. These coins primarily use the network's seigniorage mechanism. The network was founded by Do Kwon and Daniel Shim of Terraform labs in 2018 and uses Tendermint Delegated-Proof-of-Stake (DPoS) as its consensus mechanism. Terra provides smart contract capability for the creation of a wide range of different stablecoin types. The project has proved popular in the Asian markets for e-commerce and has a large userbase in South Korea, where its headquarters are. For example, taxi users in Mongolia can pay some drivers in the stablecoin Terra MNT pegged to the Mongolian tugrik. Tokens minted on the platform are known as Terra currencies and exist alongside the network's native token for governance and utility LUNA. Terra and LUNA have a complementary relationship.
Terra already has stablecoins pegged to the US Dollar, South Korean Won, and Euro, among others. Within a short time, the project has seen wide popularity with the stablecoins minted on the platform. TerraUSD has, as of writing, already made it to the fifth-largest stablecoin by market cap.
What are Terra stablecoins?
Stablecoins on the Terra network use a different method to collateralize fiat-backed stablecoins and crypto-backed stablecoins. Collateralized stablecoins typically allow the holder to exchange their stablecoin for an equivalent amount of fiat or some amount of crypto. This is the case with BUSD, which maintains audited US dollar reserves. The same is true for DAI, which is backed up with over-collateralized cryptocurrencies. Terra's stablecoins, however, use algorithmic methods to control their supply. Each stablecoin is, in effect, backed up and exchangeable for the governance and utility token LUNA. Terra acts as a counterparty for anyone looking to swap their stablecoin for LUNA and vice versa, which affects the two tokens' supplies.
How do Terra stablecoins work?
Imagine you want to mint $100 of TerraUSD (UST), which is equal to 100 UST at the peg. To mint the UST, you'll need to convert an equivalent monetary amount of LUNA tokens. Terra will then burn the tokens you supply. So, if the price of LUNA is $50 per coin, the algorithm would require you to burn 2 LUNA to mint 100 UST. Previously, Terra only burned a portion of the tokens provided, but with the introduction of the Columbus-5 update, 100% is burned.
You can also mint LUNA with Terra tokens. Minting $100 of LUNA (2 LUNA) would require burning 100 UST. Even if the market price of UST isn't $1 per token, the conversion rate for minting treats 1 UST as equal to $1. This exchange mechanism is what gives TerraUST its price stability.
Let's look at an example to see exactly how the algorithm works to try and keep the price stable:
1. The price of 1 UST falls to $0.98, 2 cents lower than its intended pegged value. However, for all conversions between Terra stablecoins and LUNA, 1 UST is treated as being worth $1.
2. An arbitrageur sees this price difference and notices an opportunity to make some profits. They proceed to buy 100 UST for $98 and then convert it to $100 of LUNA.
3. The arbitrageur can either keep their $100 of LUNA or convert it to fiat and cash out their profit. While $2 doesn't sound like much, bigger profits can be made on a larger scale. This difference between the price of minting the tokens and their value is known as seigneurage.
But how does this end up stabilizing the price at $1? First, the increased demand for UST by arbitrageurs increases UST's price. Terra burns the UST during the exchange to LUNA, reducing its supply and increasing UST's price. Once 1 UST reaches $1, the arbitrage opportunity closes.
The same process works in reverse when the price of UST is above $1. Let’s see another example.
1. The price of 1 UST rises $1.02, which also provides arbitrageurs a way to make a profit.
2. Arbitrageurs purchase $100 of LUNA and convert it to 1 UST worth $102. Terra burns the LUNA, and there's an increase in the supply of UST.
3. In combination with a decrease in demand for UST due to its high price, UST's price decreases to $1.
The LUNA token is integral to all of this and acts as collateral for all Terra stablecoins. There's no need to over collateralize, and the token absorbs the UST price volatility. In many ways, Terra acts as a central bank with an elastic monetary policy, carefully controlling the supply of its currencies. When compared to over-collateralized projects like MakerDAO, the Terra model is highly scalable and more affordable.
What's LUNA?
LUNA is Terra's cryptocurrency that plays four different roles on the platform:
1. A method to pay transaction fees in its gas system (utility token).
2. A way to take part in the platform's governance system. By staking your LUNA tokens, you can create and vote on proposals with changes regarding the Terra protocol.
3. A volatility absorber for the price of stablecoins minted on Terra.
4. A token to stake in the DPoS consensus mechanism behind validators processing network transactions. LUNA has a maximum target supply of one billion tokens. If the network exceeds one billion LUNA, Terra will burn LUNA until its supply returns to the equilibrium level.
Staking rewards from LUNA
Holders of LUNA tokens can stake their tokens in the Terra ecosystem's consensus mechanism. By staking LUNA, users receive rewards taken directly from swap fees on the Terra platform. Users pay these fees any time they switch between LUNA and a Terra stablecoin. Before the Columbus-5 update, rewards were also taken from a portion of each swap's seigniorage. The new system should, in theory, provide staking yields of around 7-9%. These rewards provide an incentive for users and validators to take part in the Tendermint DPoS. If you're familiar with mining on the Bitcoin network, the principle is similar.
How to buy LUNA?
LUNA can be purchased on cryptocurrency exchanges like Binance.
1. To begin, log in to your Binance account and head to the classic or advanced exchange view. You'll find this under the [Trade] tab at the top of the home page.
2. On the left side of the screen, hover over the crypto pair displayed to open up the search bar.
3. In the search bar, type "LUNA" to see a list of the available pairs to purchase. In this example, we'll use [LUNA/BNB]. Alternatively, you can use this link to navigate to the LUNA/BNB pair.
4. Next, head to the [Spot] tab and enter the amount of LUNA you want to purchase. In our example, we've chosen to purchase at the spot price by selecting the [Market] order type. You can then confirm the transaction by pressing [Buy LUNA].
How does Terra's Delegated Proof of Stake consensus mechanism work?
The Terra blockchain was built using Cosmos SDK, making Tendermint DPoS a natural choice. The consensus mechanism is part of the Cosmos technology suite and is an environmentally-friendly alternative to Proof of Work. As of October 2021, Terra uses a group of up to 130 validators to process transactions. Users (or delegators) stake their tokens behind a validator. In turn, the validator secures the network by processing transactions similar to the work of a miner on Bitcoin. A delegator will stake their LUNA tokens behind a validator they believe will effectively and honestly process network transactions. Each validator can also set a custom percentage of the rewards they will distribute to their delegators.
For example, the validator may process double-spent transactions or include false ones. In this case, the validator can have their rewards slashed or even lose their initial stake (bond). “Terra taxes” on transactions and airdrops provide the rewards given to delegators and validators. Each delegator's share will depend on the amount they stake and the validator's commission rate.
hat is Terra Station?
Terra Station is the official Terra crypto wallet and dashboard that allows LUNA holders to access their funds, stake, and participate in governance. It's available as both an app for mobile devices and as a browser extension.
1. The Terra Station dashboard displays a range of on-chain data, including transaction volume, staking returns, and the number of active accounts.
2. Terra Station's wallet is non-custodial, meaning that only you have access to your private keys. If you open a Terra Station wallet, make sure to keep your seed phrase in a safe and secure place. If you lose it, there's no way to retrieve your funds.
3. The governance portal allows you to create new proposals and take them to the voting stage by depositing 512 LUNA. Other users may deposit the 512 LUNA for you instead if you don't have the funds. When a new proposal is created, other LUNA holders can stake their tokens to cast their votes.
4. The staking tokens section lets you delegate, check your rewards, bond LUNA as a validator, and take part in every stage of the DPoS consensus mechanism.