Description:
The depositEgg(uint256 tokenId, address depositor) function is declared as public but is not utilized internally within the EggVault contract. This could indicate either an oversight or a potential design issue.
Impact:
Leaving unused public functions in the contract increases the attack surface and could lead to unintended usage or vulnerabilities. Additionally, it contributes to unnecessary code bloat, increasing deployment costs.
Proof of Concept:
Recommended Mitigation:
If the function is not required, remove it to reduce the attack surface and deployment costs.
If the function is intended for external use, ensure it is properly documented and secured.
If the function is meant to be used internally, change its visibility to internal or private and refactor the code accordingly.
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.