We can use assembly to emit events efficiently by utilizing scratch space and the free memory pointer. This will allow us to potentially avoid memory expansion costs. Note: In order to do this optimization safely, we will need to cache and restore the free memory pointer.
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L165
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L214
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.