Platform: Code4rena
Start Date: 18/05/2023
Pot Size: $24,500 USDC
Total HM: 3
Participants: 72
Period: 4 days
Judge: LSDan
Id: 237
League: ETH
Rank: 31/72
Findings: 1
Award: $16.19
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: ABA
Also found by: 0x4non, 0xHati, 0xMosh, 0xSmartContract, 0xWaitress, 0xhacksmithh, 0xnev, 0xprinc, Arabadzhiev, BLACK-PANDA-REACH, Deekshith99, Dimagu, KKat7531, Kose, LosPollosHermanos, MohammedRizwan, QiuhaoLi, RaymondFam, Rickard, Rolezn, SAAJ, Sathish9098, Shubham, SmartGooofy, Tripathi, Udsen, V1235816, adriro, arpit, ayden, bigtone, codeVolcan, d3e4, dwward3n, fatherOfBlocks, favelanky, jovemjeune, kutugu, lfzkoala, lukris02, matrix_0wl, minhquanym, ni8mare, parsely, pxng0lin, radev_sw, ravikiranweb3, rbserver, sces60107, souilos, tnevler, turvy_fuzz, yellowBirdy
16.1907 USDC - $16.19
During the audit, 1 low and 3 non-critical issues were found.
â„– | Title | Risk Rating | Instance Count |
---|---|---|---|
L-1 | Missing check for zero address | Low | 4 |
NC-1 | Unused imports | Non-Critical | 1 |
NC-2 | Empty function bodies | Non-Critical | 1 |
NC-3 | Constant is missing a leading underscore | Non-Critical | 1 |
If address(0x0) is set it may cause the contract to revert or work wrong.
projectToken = _projectToken;
pool = _pool;
_projectTokenIsZero = address(_projectToken) < address(_weth);
weth = _weth;
Add checks.
Remove the import if it is not needed.
The code should be refactored such that empty blocks no longer exist, or the block should do something useful, such as emitting an event or reverting. Or, there should be comments why the block is empty.
Internal and private constants should have a leading underscore.
Add leading underscores for private constants.
#0 - c4-judge
2023-06-02T11:03:53Z
dmvt marked the issue as grade-b