Platform: Code4rena
Start Date: 27/11/2023
Pot Size: $60,500 USDC
Total HM: 7
Participants: 72
Period: 7 days
Judge: Picodes
Total Solo HM: 2
Id: 309
League: ETH
Rank: 71/72
Findings: 1
Award: $11.32
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: osmanozdemir1
Also found by: 0xCiphky, Audinarey, Banditx0x, CRYP70, Cryptor, D1r3Wolf, KupiaSec, LokiThe5th, Sathish9098, Skylice, ThenPuli, Topmark, Udsen, ZanyBonzy, baice, ether_sky, fatherOfBlocks, foxb868, grearlake, hihen, hubble, hunter_w3b, lanrebayode77, leegh, lsaudit, minhtrng, nocoder, onchain-guardians, ptsanev, ro1sharkm, seaton0x1, sivanesh_808, t4sk, tapir, tpiliposian, ustas
11.3163 USDC - $11.32
contracts/types/TokenId.sol
L337/338/339/340/341/342/343/344/345/346/353 - Multiple numbers 2 ** 64/112/160/208 are used and the optionRatios value is set with a number between 0 and 4 , but they are not defined with a name that explains their meaning, this is important to increase the understanding of the code.
L377/385/386 - A division is made by an input that is int24 tickSpacing, therefore it could be zero and generate an error, it should be previously validated and an appropriate exception thrown.
contracts/libraries/Math.sol
contracts/libraries/CallbackLib.sol
contracts/libraries/PanopticMath.sol
contracts/SemiFungiblePositionManager.sol
#0 - c4-judge
2023-12-14T17:04:44Z
Picodes marked the issue as grade-b