The buyLoan function does not update the auctionLength
property of the loan to match the new pool's auctionLength
.
The problem lies in the buyLoan function, where the auctionLength
property of the loan is not being updated. Consequently, the new lender is forced to use the old pool's auctionLength
, which may not align with their preferences.
Due to the lack of updating the auctionLength
, the loan will retain the auctionLength
from the old pool. As a result, the new lender will be unable to change the auctionLength
according to their requirements, potentially leading to suboptimal auction conditions.
Manual review
Update the auctionLength property of the loan with the value from the new pool, ensuring that the new lender can set the desired auctionLength
.
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.