Giter Site home page Giter Site logo

cleancoindev2 / weidai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cleancoindev/weidai

1.0 0.0 0.0 4.46 MB

The world's first "Thriftcoin": a stablecoin protected from price inflation

License: MIT License

HTML 0.73% CSS 0.19% TypeScript 68.23% Shell 0.89% JavaScript 29.95%

weidai's Introduction

WeiDai: A stablecoin that only grows in value

backed by MakerDAO's Dai ERC20 stablecoin

  • WeiDai is issued and redeemed at an exchange rate determined by the reserve(DAI)/totalSupply(WEIDAI)
  • In addition to being a regular ERC20 token, WeiDai can be burnt. Whenever it is, the denominator of the exchange equation (above) declines, pushing up the price of WeiDai. This is the chief mechanism through which WeiDai gains value relative to Dai. Consider the following illustrative example: Suppose there are 100 WeiDai in circulation and 100 Dai in reserve. The exchange rate is 1. Nimrod owns 30 and Sarah owns 70. Nimrod decides to burn 20 for no reason because he's a little crazy. The exchange rate is now 100/80 = 1.25. Previously, Sarah could exchange her WeiDai for 70 Dai. Now she can exchange them for 87.5 Dai (=70*1.25). Her WeiDai has grown in value because Nimrod burnt some of his.
  • When WeiDai is redeemed for Dai, a percentage is burnt, implying that regular redemption gradually pushes up the price for those still holding.
  • The price cannot be pushed down through dumping since the token is 100% collateralized by DAI. Only DAI price instability can introduce instability into WeiDai
  • WeiDai is produced by mining PATIENCE : In order to produce WeiDai, holders of Dai must send their Dai to a special contract known as the Patience Regulation Engine. Their new WeiDai is immediately produced at the current exchange rate but is held in reserve. The owner is advised to wait a certain number of blocks before claiming their new WeiDai. If they claim their holding prematurely, they incur a penalty tax which starts at 100% and declines linearly until the waiting period is over. The proceeds from this impatience tax are burnt, pushing up the redeem price of the remaining WeiDai in the system. The impatience duration is akin to a mining difficulty and adjusts dynamically according to how easy or hard users find it to wait out the duration.
  • There is no need for external oracles or centralized control of any kind. Everything happens in smart contracts on the Ethereum blockchain. Price feeds are outsourced to the Dai ecosystem. This means that WeiDai is only as reliable as Dai. There is a developer donation address to fund ongoing development. To assist in making donations easier, a portion of the amount reserved for burning can be allocated as a donation to the developer donation address instead of being burnt.

Vision

By creating a token that cannot fall relative to the US dollar but which will necessarily grow, it is hoped that WeiDai will provide a risk-free, inflation beating method of saving that allows HODLers to free themselves of having to research financial or crypto markets.

In time, it is hoped that marginalized, underbanked and unbanked communities around the world will be able to safely insulate themselves from inflation both in the short, medium and long term. By creating a new era of thriftcoins which rewards saving disproportionately, the cultural damage caused by central banking credit expansion which has given rise to an ambient norm of consumerism will be gradually reversed and replaced by a thrifty culture of self-reliance and monetary frugality. In turn, communities will be able to self capitalize, enabling both charity and business finance to naturally decentralize.

Future Development

The ethos of WeiDai will be to encourage burning. As such, WeiDai allows holders to grant 3rd parties the right to burn their tokens, similar to the ERC20 approve function. This will allow for the development of dapps that make purchases through WeiDai burns or partial burns. An example could be a governance game that utilizes the concept of Harberger taxes which are paid by burning WeiDai. Such additions to the ecosystem will complement the base layer of burn incentives created by the Patience Regulation Engine contract.

Why the name?

Since I wish to make it clear that this token extends the original Dai token, I thought it would be appropriate to use the same naming convention. Dai, loosely translated, is the Chinese word for lend/borrow. Originally I thought I'd name the token Updai since the name is catchy and the intention is clear. However, charged with a desire to linguistically acknowledge Dai, I fumbled around on Google Translate for a Chinese word that means something like "insulate" or "protect" because I wish to make it clear that the two chief properties are that it beats inflation and is stable relative to the US Dollar. Eventually I stumbled on Wei which means guard/protect. I couldn't resist! Wei Dai is one of the spiritual fathers of Bitcoin (and one of the potential Satoshi Nakamoto candidates). In summary, the final name choice acknowledges both MakerDao and Wei Dai while simultaneously communicating the values of a thriftcoin.

Will WeiDai take over the world?

Bitcoin demonstrated that even the best economic theories are humbled by the chaotic winds of reality. While Austrian theory pointed to Bitcoin being an intelligent way to construct a new currency and Gresham's Law would predict holding to dominate spending, the wildness of Bitcoin's early life as well as the sociopolitical perturbations were beyond anyone's ability to predict. I have my own ideas of how WeiDai will impact the world but I have no doubt reality will be far different from my initial hopes and guesses. Like Bitcoin, it must always be borne in mind that WeiDai is an experimental digital currency and that no one can predict or promise what it will do. Also bear in mind that a total collapse of Dai would kill WeiDai instantly.

weidai's People

Contributors

gititgoro avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.