-
Notifications
You must be signed in to change notification settings - Fork 6
DApp User Guide
The USDB DApp is a utility allowing users to utilize BNT for the creation and destruction of collateralized USDB tokens.
The top of the page allows the user to select which token they wish to interact with. In this case it is USDB or BNT. This should be chosen before selecting one of the pages below.
The first tab is the token information page. This page shows the user’s current balance, the total supply of the selected token, and the current oracle value.
Note: When operating on the Rinkeby testnet, additional faucet buttons allow the user to request testnet BNT or USDB.
The vaults page displays vaults existing for the selected token.
- When USDB is selected the vault page relates to “Vault A”, or the ability to mint/destroy stable tokens collateralized by BNT.
- When BNT is selected the vault page relates to “Vault B”, allowing for USDB stabletokens to be used as collateral for borrowing BNT. The table on this page displays a list of addresses, how much collateral they have deposited, quantity of debt, if they are insolvent, and if there is an active auction.
The details page provides detailed information about the contract as well as information relating to the user’s collateral/debt.
This page is currently exclusive to the USDB token and provides a page allowing for the user to deposit, withdraw, borrow and repay Vault A.
The Deposit section displays the user’s current balance. In order to deposit they must first unlock, or authorize the contract to withdraw tokens into the contract. Once the contract has been authorized a text field will appear, allowing the user to specify a quantity of tokens to deposit. Pressing the Deposit button will instruct the contract to transfer the specified quantity of tokens into the contract, serving as collateral.
The Borrow section displays the user’s current debt, available credit, and allows for borrowing against collateral if sufficient credit is available. Enter the quantity of tokens to be borrowed and click Borrow in order to issue collateralized tokens.
The Repay section displays the user’s current debt and balance of the corresponding token. Enter the desired amount of tokens to repay and press the Repay button.
The Withdraw section displays how much excess, or free collateral the user has and allows them to withdraw collateral. Note: This accounts for any collateral not currently securing debt. Enter the quantity of collateral to withdraw and press the Withdraw button.