Description: It is recommended to use a specific version of Solidity in the SpookySwap
contract rather than a wide version range. For example, replace pragma solidity ^0.8.24;
with pragma solidity 0.8.24;
.
Impact:
Using a specific Solidity pragma version (e.g., pragma solidity 0.8.24;
) rather than a range (e.g., pragma solidity ^0.8.0 <0.9.0;
) is beneficial for security, compatibility, and predictability of contract behavior. Specifying the exact compiler version minimizes the risk of unintended behavior due to differences in compiler versions and ensures that the contract code behaves consistently across deployments.
Found in src/TrickOrTreat.sol
Recommended Mitigation: Use a specific Solidity pragma version (e.g., pragma solidity 0.8.24;
)
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.