A PoC algorithmic stablecoin created using lisk-sdk.
-
The blockchain app contains three types of tokens: Nash, Bond, and Share.
- Nash: This is the core token of the system, which is expected to be pegged to one US Dollar.
- Bond: Non-fungible tokens resealed when the price is under the pegg. These are only purchasable by Nash tokens. At prices higher than the pegg, these tokens will automatically be turned into Nash tokens.
- Share: There is a reserve of ‘LSK’ coins. Any user can invest in the reserve in exchange for Share tokens. A part of Nash tokens generated at prices higher than the pegg are distributed among the shareholders.
-
The current PoC implementation supports:
- Purchasing unsold Bonds
- Transfer LSK or Nash tokens
- Trading Share tokens in exchange for Nash tokens
- Pricing the Nash and test the reaction of the system to price changes
cd blockchain_app && npm i
cd frontend_app && npm icd blockchain_app; node index.jscd frontend_app; npm start- In the first step, please initialize the app using genesis passphrase.
- There are several default accounts that can be used for testing transactions.
- Please note that there is a 10s latency between transactions in the pricing process.
- The frontend app is not auto-refreshing. Once a request is submitted, it should be refreshed manually.
- A block cannot contain multiple transactions from the same sender; make sure the senders are different.