Open strictly-scarce opened 3 years ago
debtAsset
collateral
SwapValueInBase(collateral)
debtAmount
interestPaid
collateral - interestPaid <= 1.01 * debtAmount
Partially implemented in https://github.com/vetherasset/vaderprotocol-contracts/pull/65
Implementation
Draw Debt
debtAsset
fromcollateral
.SwapValueInBase(collateral)
is sensed, corresponding base amount taken from reserve, swapped todebtAsset
.debtAmount
is stored.Pay Back
debtAsset
into vault, decrementdebtAmount
.Interest
interestPaid
collateral - interestPaid <= 1.01 * debtAmount
then member can be purged for a feeLiquidate
collateral - interestPaid <= 1.01 * debtAmount
then member can be liquidated for a fee