Reader small image

You're reading from  Security Tokens and Stablecoins Quick Start Guide

Product typeBook
Published inApr 2019
Reading LevelBeginner
PublisherPackt
ISBN-139781838551063
Edition1st Edition
Languages
Concepts
Right arrow
Authors (3):
Weimin Sun
Weimin Sun
author image
Weimin Sun

Weimin Sun has 20 years' of experience working in the financial industry. He has worked for top-tier investment and commercial banks such as J.P. Morgan, Bank of America, Citibank, and Morgan Stanley, where he also managed large teams for developing IT applications. Weimin has also held corporate titles such as executive director and senior VP in some of these firms. Weimin has in-depth knowledge of the blockchain technology, data science, data architecture, data modeling, and big data platforms. He holds Ph.D, M.B.A and M.Sc degrees. He has co-authored Blockchain Quick Start Guide and published several statistical journal papers.
Read more about Weimin Sun

Xun (Brian) Wu
Xun (Brian) Wu
author image
Xun (Brian) Wu

Xun (Brian) Wu is a senior blockchain architect and consultant. With over 20 years of hands-on experience across various technologies, including Blockchain, big data, cloud, AI, systems, and infrastructure, Brian has worked on more than 50 projects in his career. He has authored nine books, which have been published by O'Reilly, Packt, and Apress, focusing on popular fields within the Blockchain industry. The titles of his books include: Learn Ethereum (First Edition), Learn Ethereum (Second Edition), Blockchain for Teens, Hands-On Smart Contract Development with Hyperledger Fabric V2, Hyperledger Cookbook, Blockchain Quick Start Guide, Security Tokens and Stablecoins Quick Start Guide, Blockchain by Example, and Seven NoSQL Databases in a Week.
Read more about Xun (Brian) Wu

Angela Kwok
Angela Kwok
author image
Angela Kwok

Angela Kwok, is a lawyer, specializing in high-tech and blockchain start-ups and venture capital financing. She also focuses on general corporate and commercial matters, fund formation, cross-border and domestic investments, mergers and acquisitions, and related tax matters in the TMT industry. She has represented clients in blockchain-related cases.
Read more about Angela Kwok

View More author details
Right arrow

Stablecoin Smart Contracts

We covered the basics of stablecoins in Chapter 4, Stablecoin. We learned what stablecoins are, why we need then, their basic types, and their challenges. In this chapter, we will explore more about these primary stablecoins, including how blockchain technologies help cryptocurrency tokens to minimize price volatility. This chapter is split into two major topics, as follows:

  • Quick primary stablecoin overview
  • Stablecoin technical design overview

Quick primary stablecoin overview

Stablecoins play an important role in the digital asset world. One of the major designs of stablecoins is to minimize digital currency price volatility. In the past couple of years, the most popular cryptocurrency prices have been very volatile, for example, bitcoin and Ethereum. Huge price fluctuations prevent the wide adoption of cryptocurrency as money for daily transactions. That is where stablecoins are designed to address this issue.

As we learned in Chapter 4, Stablecoin, stablecoins connect cryptocurrency and fiat currencies with the total amount of backed assets (mostly, this is in USD, or in a digit currency such as bitcoin, ether, or gold). It stabilizes the price with the one-to-one equivalent in USD, euros, or cryptocurrency.

Timeline...

Types of stablecoin

As we learned in Chapter 4, Stablecoin, there are several types of stablecoins. At a high level, there are three major types:

  • Fiat Collateralized
  • Crypto Collateralized
  • Non-Collateralized

The following diagram shows the major three types of stablecoin:

Let's look at them in detail.

Fiat collateralized stablecoins

Fiat collateralized stablecoins are backed by gold or fiat currencies such as the US dollar, euro, and so on. The token aims to keep a 1:1 ratio with the underlying asset. The token holder can redeem assets at any time with a stable 1:1 price peg. The centralized entity has to maintain a relative level of stability. This solution is a more off-the-chain centralized solution.

Tether and...

Stablecoin technical design overview

In this section, we will review the technical design of some major stablecoins, especially smart contracts.

Tether (USDT)

Tether stablecoins run on the bitcoin blockchain. These are designed in three layers, as shown in the following diagram:

Let's take a look at these layers:

  • Bitcoin Blockchain: Tether uses an embedded Omni consensus protocol to record Omni transactions in bitcoin transactions. Each Omni transaction has the same hash value in the blockchain.
  • Omni layer protocol: It includes Decentralized exchange, Omni Wallet, Tethers in Circulation, P2P transfer and storage, and Other features. Tether protocol can create the token and redeem the token from the circulation supply...

JPM Coin

JP Morgan announces a stablecoin, JPM Coin, in the quorum blockchain platform on February 2019. JPM Coin is still not an official release; it is in its prototype stages. The aim of JPM Coin is to be able to run on all standard blockchain networks. The JPM Coin is designed to support USD and other currencies. It has a value ratio of 1:1 to USD.

Its payment flow is considered traditional and has at least four transactions across interbank networks through a central bank. This centralized design for a payment clearing system is inefficient and slow. JPM Coin provides real-time gross settlement (RTGS) to clear and settle payments.

There are three steps in the process flow:

  1. The client deposits USD and receives the same amount of JPM Coin
  2. The client uses JPM Coin to perform a transaction with another JPM client in the blockchain network (for example, money movement and payments...

Summary

In this chapter, we reviewed the basic features of popular stablecoin and understood the three types of stablecoin, including fiat collateralized stablecoins, crypto collateralized stablecoins, and non-collateralized stablecoins.

Then, we looked into USDT, DAI, TUSD, USDC, GUSD, and PAX stablecoin smart contract design and explored the functions that are defined in these contracts. We learned how each stablecoin system maintains stable tokens with a 1:1 price peg through mint, burn, and other controllable functions.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Security Tokens and Stablecoins Quick Start Guide
Published in: Apr 2019Publisher: PacktISBN-13: 9781838551063
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (3)

author image
Weimin Sun

Weimin Sun has 20 years' of experience working in the financial industry. He has worked for top-tier investment and commercial banks such as J.P. Morgan, Bank of America, Citibank, and Morgan Stanley, where he also managed large teams for developing IT applications. Weimin has also held corporate titles such as executive director and senior VP in some of these firms. Weimin has in-depth knowledge of the blockchain technology, data science, data architecture, data modeling, and big data platforms. He holds Ph.D, M.B.A and M.Sc degrees. He has co-authored Blockchain Quick Start Guide and published several statistical journal papers.
Read more about Weimin Sun

author image
Xun (Brian) Wu

Xun (Brian) Wu is a senior blockchain architect and consultant. With over 20 years of hands-on experience across various technologies, including Blockchain, big data, cloud, AI, systems, and infrastructure, Brian has worked on more than 50 projects in his career. He has authored nine books, which have been published by O'Reilly, Packt, and Apress, focusing on popular fields within the Blockchain industry. The titles of his books include: Learn Ethereum (First Edition), Learn Ethereum (Second Edition), Blockchain for Teens, Hands-On Smart Contract Development with Hyperledger Fabric V2, Hyperledger Cookbook, Blockchain Quick Start Guide, Security Tokens and Stablecoins Quick Start Guide, Blockchain by Example, and Seven NoSQL Databases in a Week.
Read more about Xun (Brian) Wu

author image
Angela Kwok

Angela Kwok, is a lawyer, specializing in high-tech and blockchain start-ups and venture capital financing. She also focuses on general corporate and commercial matters, fund formation, cross-border and domestic investments, mergers and acquisitions, and related tax matters in the TMT industry. She has represented clients in blockchain-related cases.
Read more about Angela Kwok