Use assembly for math instead of Solidity. You can check for overflow/underflow in assembly to ensure safety. If using Solidity versions < 0.8.0 and you are using Safemath, you can gain significant gas savings by using assembly to calculate values and checking for overflow/underflow.
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L723-L725
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L618
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.