/compound

An implementation of the compound protocol based on Mixin MTG technology.

Primary LanguageGoMIT LicenseMIT

compound

An implementation of the compound protocol based on Mixin MTG technology.

Key Words

A public blockchain driven by TEE (Trusted Execution Environment) based on the DAG with aBFT. Unlike other projects which have great theories but hardly any actual implementations of blockchain transaction solution, Mixin Network provides a more secure, private, 0 fees, developer-friendly and user-friendly transaction solution with lightning speed.

An alternative to smart contacts on Mixin Network.

Basically, MTG is a Multi-signature custodian consensus solution. Several teams will be selected and arranged as the “Trusted Group” in Pando, becoming the “Nodes”. Concensus has to be reached among the nodes to perform certain administrative actions. As a result, stable services and asset safety are guaranteed.

For example, let’s say there is a M/N multi-sig group where M represents the number of nodes, and the group manages some assets in the multi-sig address. When one of the nodes needs to transfer some assets out, it needs to collect at least N signatures from others to perform the action.

MTG is the framework. Pando is an application designed using the framework on Mixin Network.

CToken

The corresponding certificate token that you obtained when you supply an number of cetain encrypted currency to the market.

Functions

Supply

Users supply encrypted currencies to the market to provide liquidity, and obtain the corresponding token.and obtain corresponding income as a reward for providing liquidity.

Pledge

Users should mortgage CToken to the market before borrow.

Unpledge

Users take back the CToken that pledged to the market.

Redeem

Users return the CToken and obtain the corresponding encrypted currency that supplied before, including interest as the liquidity reward.

Borrow

Users borrow encrypted currencies from the market, and will pay a certain interest to repay the loan.

Repay

Users repay the borrowed encrypted currency and need to pay an extra interest.

Liquidation

As the market price changes, the user A's loan has exceeded his mortgaged assets, that is to say, A's loan liquidity is less than or equal to 0, then other users can use a lower price to obtain A's mortgage assets to help A's repayment of part of the debt has made A's loan liquidity greater than 0.


MIT License

Copyright (c) 2020 Fox.ONE

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.