The Repaid event is emitted with wrong arguments in the refinance function.
The Repaid event is supposed to emit the debt and collateral associated with a loan repayment. In the refinance function the event is emitted with the debt and collateral of the new borrow.
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L591-L710
Off chain integrations can be thrown off due to misinformation.
Manual review
Use the debt and collateral associated with the repaying loan.
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.