Thaddeus19 / dsr-demo

DSR Demo Made with React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dai Savings Rate Integration Example

This React integration example uses the dai-mcd-plugin in the Dai.js library to implement Dai Savings Rate functionality. This plugin has easy to call functions that interact with the MCD smart contracts.

In this example you can:

  • Approve the system to transfer Dai from your wallet to the DSR contract
  • Transfer Dai from your wallet to the DSR contract
  • Retrieve a portion or all of your Dai from DSR

The DSR logic is implemented in src/components/DsrDemo.js

Prerequisites

Steps to run the example:

  • run npm install or yarn
  • run npm start or yarn start

References and Guides

About

DSR Demo Made with React


Languages

Language:JavaScript 85.6%Language:HTML 9.3%Language:CSS 5.1%