The debt of the loan at hand gets subtracted twice when refinancing it through refinance()
.
Lender.sol
's refinance()
subtracts debt
from the pool balance twice, which will lock another debt
amount's worth of tokens in the new pool.
It will lock debt * 2
worth of tokens in the new pool.
Manual Review
Consider removing the following line: https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L698
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.