0.2.0 • Published 4 years ago

graceful-unwinding-widget v0.2.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

Graceful Unwinding Widget

Travis npm package Coveralls

Embeddable widget (React component) for distribution Graceful Unwinding App.

Graceful Unwinding widget provides functionality for a specified Vault (former CDP) in Oasis Borrow UI of Maker DAO Multi-collateral. The widget communicates with the Graceful Unwinding App smart contracts which are available in Kovan testnet.

Graceful Unwinding App

Graceful unwinding App is an Ethereum smart contract based software application, aimed at supporting collateralization level above a certain threshold for Maker DAO Multi-collateral Vaults. It is designed to be a free tool with open source code, that is offered to wallet providers to embed in their applications.

How it works

When a Vault collateralizaton level hits a certain (set in the app) %, then a small part of the collateral is extracted by Graceful Unwinding App and then sold for DAI, with the proceeds being used to pay back the loan. This happens in perpetuity until the loan is fully paid off.

Installation

npm i -s graceful-unwinding-widget

Usage

Add the component to suitable place on your page like this:

import GracefulUnwindingWidget from 'graceful-unwinding-widget';

  ...

  <GracefulUnwindingWidget
    cdpId={cdp.id}
    distributorAddress={'0x598542705F413191ffc9975C353B13CC593d80A4'}
  />

Parameters definition

NameDescriptionValue
distributorAddressThe address of deployed Unwind contract.Valid Ethereum address i.e. 0x598542705F413191ffc9975C353B13CC593d80A4
cdpIdId of Vault to perform unwinding on.numeric value i.e. 777
0.2.0

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago