The Lender::refinance() emits incorrect event parameters.
The refinance() emits incorrect event parameters: debt and collateral. Specifically, the debt and collateral variables in question contain amounts related to the new pool, not the previous pool.
https://github.com/Cyfrin/2023-07-beedle/blob/658e046bda8b010a5b82d2d85e824f3823602d27/src/Lender.sol#L680-L681
The incorrect event logs may cause off-chain services to malfunction.
Manual Review
Emit the loan.debt and loan.collateral variables instead to fix this issue.
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.