protofire / tezos-defi-dapp

By November 19, 2020DApps
Click here to view original web page at github.com
CircleCI
Netlify Status

Tezos DeFi DApp

Implementations for common smart contract patterns of popular DeFi applications and a user interface with high-level DeFi functionality. These implementations can be used as templates or starter kits to bootstrap new applications, therefore, greatly increasing developer productivity at the start of new projects. Checkout a demo.

Getting started

A quick introduction to the minimum setup you need to get a Tezos DeFi DApp up and running.

Sections

Home

Modal Borrow

Modal Supply

Prerequisites

To set up a development environment, follow the links below to see installation instructions.

Setting up a development environment

git git@github.com:protofire/tezos-defi-dapp.git
cd tezos-defi-dapp/
yarn install

Contracts

The contracts are located in the folder defi-contracts . For more details, you can check out the README file.

Application

The React-based application can be found in the defi-dapp folder.

Oracle

We use an Oracle only for showing the USD on the react frontend. For more information about how the oracle works you can check the oracle repository.

Exchange Rate

Currently the exchange rate is being calculated as follows

(totalDeposits + totalBorrows) / tokenSupply

You can check it in the file poolInterest.ligo. Soon we will include several changes like management of multiple assets, prices, fees, etc, and this formula will be modified.

Blog posts

We have written a series of blog posts that will guide you through the concepts of DeFi smart contracts in Tezos.

Licensing

MIT

Implementations for common smart contract patterns of popular DeFi applications and a user interface with high-level DeFi functionality. These implementations can be used as templates or […]

Leave a Reply

All Today's Crypto News In One Place