Upon refinancing, the new pool's poolBalance will be decreased twice.
Both of the following codeblocks are within the refinance method
Upon refinancing debt will be reduced twice. If there is enough liquidity for the transaction not to revert, these funds will be lost forever and remain stuck at the contract.
Permanent loss of funds for the pool.lender
Manual review
Remove either one of the codeblocks.
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.