graceful-unwinding-widget

0.2.0 • Public • Published

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

Name Description Value
distributorAddress The address of deployed Unwind contract. Valid Ethereum address i.e. 0x598542705F413191ffc9975C353B13CC593d80A4
cdpId Id of Vault to perform unwinding on. numeric value i.e. 777

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

Package Sidebar

Install

npm i graceful-unwinding-widget

Homepage

atomica.org

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

3.19 MB

Total Files

34

Last publish

Collaborators

  • k.svirski