Instead of using address(this), it is more gas-efficient to pre-calculate and use the hardcoded address. Foundry’s script.sol and solmate’s LibRlp.sol contracts can help achieve this.
References: https://book.getfoundry.sh/reference/forge-std/compute-create-address
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Fees.sol#L28
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Fees.sol#L43
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L57
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.