A lender can liquidate a borrower's loan in any moment and steal his collateral by starting a very fast auction and liquidating the loan in the next block.
lender creates a pool with 1 second auction length
borrower takes a loan
lender starts an auction that will finish in the same block
lender liquidates the loan and takes the collateral realizing profit depending on maxLoanRatio
POC:
Lender can steal borrower's collateral.
Manual review
Use a MIN_AUCTION_LENGTH
constant to let the user repay its debt.
In addition you can use variables such a liquidation threshold or an expiration time as constraints to start an auction.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.