/tezos-defi-dapp

User interface with high level of deFi functionalities

Primary LanguageTypeScriptMIT LicenseMIT

Tezos DeFi DApp

Add to Homescreen

Netlify Status

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.

Notes for @dghelm

  • adding a working "Save to Homescreen" link in the Github repo (example) | 3 shares ✅
  • using an ENS or HNS decentralized domain name for the web app | 1 share
  • use the Deploy to Skynet Github action for building and deploying your frontend automatically | 1 share ✅
  • hosting off-chain, mutable application data on Skynet using SkyDB or MySky | 1 share

This note has been added 45 days after submission and wasn't mentioned or needed as per gitcoin description of requirements.

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