Platform: Code4rena
Start Date: 03/03/2023
Pot Size: $90,500 USDC
Total HM: 4
Participants: 42
Period: 7 days
Judge: 0xean
Total Solo HM: 2
Id: 219
League: ETH
Rank: 23/42
Findings: 1
Award: $72.43
π Selected for report: 0
π Solo Findings: 0
π Selected for report: rbserver
Also found by: 0x6980, 0xAgro, 0xSmartContract, 0xmichalis, 0xnev, BRONZEDISC, DevABDee, IceBear, RaymondFam, Rolezn, SaeedAlipoor01988, Sathish9098, arialblack14, brgltd, chrisdior4, codeislight, descharre, imare, lukris02, luxartvinsec, matrix_0wl, tnevler, yongskiws
72.4344 USDC - $72.43
L-N | Issue |
---|---|
[Lβ01] | Missing event emission on setter function |
Total: 1 issue
N-N | Issue |
---|---|
[Nβ01] | Contract layout and order of function |
[Nβ02] | Unused import and custom error |
[Nβ03] | Typos in the comments |
[Nβ04] | Functions are missing override keyword |
Total: 4 issues
File: CounterV2.sol
setNewVariable
is missing event emission which might not be good for off-chain monitoring. Emit an event on state change.
File: MajorityVotingBase.sol
The Solidity style guide recommends declaring internal functions below external functions. If possible, consider adding internal functions below external functions for the contract layout. Furthermore, itβs also recommended to declare pure and view functions at the end of a grouping. Also It is a best practice that custom errors, structs and events are declared in the interface not in the implementation contract.
IProposal
import is not unused and can be removed
File: MajorityVotingBase.sol
/// @param VoteReplacment
-> /// @param VoteReplacement
proposa
-> proposal
comparision
-> comparison
File: PluginSetupProcessor.sol
inidcated
-> indicated
File: TokenVotingSetup.sol
worng
-> wrong
deployes
-> deploys
override
keywordFunctions from IMajorityVotingBase.sol
that are declared in its implementation MajorityVotingBase.sol
are missing override keyword. Consider adding it.
#0 - c4-judge
2023-03-12T16:04:42Z
0xean marked the issue as grade-b
#1 - novaknole20
2023-03-13T17:49:19Z
None of these bring any advantage to security or gas optimization. The typos for sure, but wouldn't be important and we won't fix them in the near future, hence disregarding this.
#2 - c4-sponsor
2023-03-13T17:49:24Z
novaknole20 marked the issue as sponsor disputed
#3 - c4-sponsor
2023-03-13T17:49:28Z
novaknole20 requested judge review