refinance()
does not consider when the loan is being auctioned. And this function can only be called by the borrower. If the loan is being auctioned by lender. The borrower does not want to be auctioned. He will call the refinance()
and reflesh the loans[loanId].auctionStartTimestamp = type(uint256).max;
. And the Auction
will be fail.
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L591
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L692
It will cause lender unable to acution the loan
manual
check if loans[loanId].auctionStartTimestamp == type(uint256).max
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.