[Total Owed * (1 + Reward %)]
current date > loan expiration
dateTotal Owed: Value of the loan borrowed and the interest owed
Reward: Fee given to liquidator, initially set to 5%
collateral deposited
falls below the value of [Total Owed * (1 + Reward %)]
, the loan is available for liquidation. Likewise, if the current date is greater than the loan expiration date, the loan is available for liquidation.collateral deposited plus the funds in escrow
falls below the value of [Total Owed * (1 + Reward %)]
, the loan is available for liquidation. Likewise, if the current date is greater than the loan expiration date, the loan is available for liquidation.develop
branchgit pull
yarn
.env
file has the proper mnemonic you want to usetruffle exec --network rinkeby ./scripts/loans/liquidate.js --tokenName {DAI} --collTokenName {ETH} --senderIndex 0