shalzz / anchor

BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Anchor Protocol

Architecture

Anchor is a fork of Compound. The main compound contracts (CToken, Comptroller, etc are not changed). The only change to the Compound protocol is the PriceOracle implementation which plugs into Chainlink feeds.

The main goal of the Anchor project is to re-use Compound's loan and debt management plumbing for the purpose of synthetic asset creation (Turning Compound into MakerDAO/Synthetix). This is achieved by creating an ERC20 token for each synth, minting it and supplying it exclusively to the protocol which will lend it to others in exchange for collateral.

This achieves essentially the same architecture as MakerDAO but with few important differences:

The main new contracts introduced are the following:

Initial launch phase: The main goal during the launch is to be as lean as possible. Anchor is very ambitious project but it must first be proven in its most simple form:

Installation

Prerequisite: Install yarn

    git clone https://github.com/InverseFinance/anchor.git
    cd anchor
    yarn install --lock-file

Check out .env.example and copy it for .env file template

Compiling

yarn compile

Testing

yarn test

Documentation

You can read more about Inverse finance documentation here