Contracts have owners with privileged rights to perform admin tasks and need to be trusted to not perform malicious updates or drain funds.
address(0)
when assigning values to address state variablesCheck for address(0)
when assigning values to address state variables.
public
functions not used internally could be marked external
Instead of marking a function as public
, consider marking it as external
if it is not used internally.
Found in src/ScoreBoard.sol Line: 46
Found in src/ScoreBoard.sol Line: 50
Found in src/ScoreBoard.sol Line: 54
Found in src/ScoreBoard.sol Line: 61
Found in src/ScoreBoard.sol Line: 77
Found in src/ScoreBoard.sol Line: 81
Found in src/ScoreBoard.sol Line: 94
Found in src/ThePredicter.sol Line: 46
Found in src/ThePredicter.sol Line: 62
Found in src/ThePredicter.sol Line: 72
Found in src/ThePredicter.sol Line: 85
Found in src/ThePredicter.sol Line: 101
Found in src/ThePredicter.sol Line: 111
constant
variables instead of using literalsIf the same constant literal value is used multiple times, create a constant state variable and reference it throughout the contract.
Solc compiler version 0.8.20 switches the default target EVM version to Shanghai, which means that the generated bytecode will include PUSH0 opcodes. Be sure to select the appropriate EVM version in case you intend to deploy on a chain other than mainnet like L2 chains that may not support PUSH0, otherwise deployment of your contracts will fail.
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.