When giveLoan()
is called to give a loan to another address, the auctionStartTimestamp
is reset:
loans[loanId].auctionStartTimestamp = type(uint256).max;
There are no checks that there is an auction ongoing when giveLoan()
is called. The lender has an incentive to cancel auction and then restart the auction to their own advantage. They can transfer the loan to another address/pool that they also own
Lender can always cancel their ongoing auctions
Foundry
Add a check for giveLoan() to ensure that it cannot be executed when an auction has already started
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.