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 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.
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.
npm i -s graceful-unwinding-widget
Add the component to suitable place on your page like this:
import GracefulUnwindingWidget from 'graceful-unwinding-widget';
...
<GracefulUnwindingWidget
cdpId={cdp.id}
distributorAddress={'0x598542705F413191ffc9975C353B13CC593d80A4'}
/>
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 |