Borrower could prevent his loan from being seized by refinancing
In refinance logics, the loan's auction timestamp is to max uint256, which is revert condition in seize logic.
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L692
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L554-L555
Borrower could refinance to prevent his loan from being seized => Lender could not seize loan to get collateral from borrower
Foundry
Not allow borrower to refinance after auction period by adding this line in refinance
function:
if (block.timestamp > loan.auctionStartTimestamp + loan.auctionLength) revert AuctionEnded();
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.