Platform: Code4rena
Start Date: 03/05/2023
Pot Size: $60,500 USDC
Total HM: 25
Participants: 114
Period: 8 days
Judge: Picodes
Total Solo HM: 6
Id: 234
League: ETH
Rank: 88/114
Findings: 1
Award: $36.24
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: rbserver
Also found by: 0xnev, ABAIKUNANBAEV, Audit_Avengers, Aymen0909, BGSecurity, BRONZEDISC, Bason, DadeKuma, GG_Security, Jerry0x, Jorgect, MohammedRizwan, REACH, Sathish9098, Shogoki, T1MOH, UniversalCrypto, aviggiano, ayden, berlin-101, bytes032, codeslide, descharre, fatherOfBlocks, hals, kaveyjoe, kodyvim, lfzkoala, lukris02, nadin, naman1778, patitonar, pontifex, sakshamguruji, squeaky_cactus, teawaterwire, wonjun, yjrwkk
36.2377 USDC - $36.24
[L-1] events are missing an important parameter The callers of these important functions are not published in emits.
Instances (3):
emit FundTreasury(fundingAmount\_, treasury);
https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-grants/src/grants/GrantFund.sol#L64
emit QuarterlyDistributionStarted( newDistributionId\_, startBlock, endBlock );
emit MoveStakedLiquidity(tokenId*, fromBuckets*, toBuckets\_);
https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-core/src/RewardsManager.sol#L187
Add caller to events. Add msg.sender parameter in event-emits.
[N-1] Invalid comments
Instances (2):
@notice User attempted to execute a proposal before the distribution period ended -> @notice User attempted to start a new distribution period before the distribution period ended
@dev Mapping of token id => ajna pool address
for which token was minted.
->
@dev A nested mapping of token id => bucket index => Position
for each token's associated position in a bucket.
https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-core/src/PositionManager.sol#L54
[N-2] Spellcheck
Instances (4):
The to -> The distributionId to https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-grants/src/grants/interfaces/IStandardFunding.sol#L263
challengephase -> challenge phase https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-grants/src/grants/base/StandardFunding.sol#L30
Consider using tools like the VSCode extension 'Code Spell Checker' or similar to help catch spelling errors during development.
[G-1] unnecessary comparison
Instances (1):
currentSlateHash!= 0
remove currentSlateHash!= 0
to save gas
#0 - c4-judge
2023-05-18T19:00:58Z
Picodes marked the issue as grade-b