Open code423n4 opened 2 years ago
Per warden Funen, 5. Title : simplify the number of maxSupply needed to have the link to the code added. This has now been done. Thanks
Valid Low (May raise to Med)
Valid NC
Disagree as the sponsor wants to revert on failure
Valid NC
Valid Refactoring
Valid Refactoring
Good short and sweet report 1L, 2R, 2Nc
Title : Value of certain range can be used instead of nothing -> Dup of M-11
Updated score: 2R, 2NC
Low
at Booster.sol (Line.233) was used :
but at certain range was not used, so it can be deleted as it should be or you can use implementation down below :
so the
value
was used to be on certain range and not gonna do unusual behavior.on this code was using token factory can also be immutable but at the
actual code
can't be an immutable, so comment can be removed or it can be changed instead.Tool Used
Manual Review
https://github.com/code-423n4/2022-05-vetoken/blob/2d7cd1f6780a9bcc8387dea8fecfbd758462c152/contracts/VoterProxy.sol#L282
this checked was unnecessary since it would pass to return, so instead for being checked and no checked was used. it can be deleted instead and pass it to return.
Non Critical
This cam be changed as it should be for better readibility
1.) File : contracts/VeAssetDepositor.sol (Line.93)
changed into
amount
2.) File : contracts/Booster.sol (Line.31)
changed into
platfrom
https://github.com/code-423n4/2022-05-vetoken/blob/2d7cd1f6780a9bcc8387dea8fecfbd758462c152/contracts/VeTokenMinter.sol#L15
changed to :
add
,mul
,div
into math operatorSince update into
pragma ^0.8.0
Optional: If you use SafeMath or a similar library, change x.add(y) to x + y, x.mul(y) to x * y etc.
1.) File : contracts/VeAssetDepositor.sol (Line.140)
2.) File : contracts/VeAssetDepositor.sol (Line.147)
3.) File : contracts/VeAssetDepositor.sol (Line.148)
4.) File : contracts/VeAssetDepositor.sol (Line.151)
5.) File : contracts/Booster.sol (Line.228)
6.) File : contracts/Booster.sol (Lines.518-523)
7.) File : contracts/Booster.sol (Lines.528-529)
8.) File : contracts/Booster.sol (Lines.534-L538)
9.) File : contracts/Booster.sol (Lines.582-584)
10.) File : contracts/BaseRewardPool.sol (Line.149)
11.) File : contracts/BaseRewardPool.sol (Lines.157-159)
12.) File : contracts/BaseRewardPool.sol (Lines.166-169)
13.) File : contracts/BaseRewardPool.sol (Lines.180-181)
14.) File : contracts/BaseRewardPool.sol (Lines.204-205)
15.) File : contracts/BaseRewardPool.sol (Lines.L222-223)
16.) File : contracts/BaseRewardPool.sol (Lines.249-250))
17.) File : contracts/BaseRewardPool.sol (Line.296))
18.) File : contracts/BaseRewardPool.sol (Line.303))
19.) File : contracts/BaseRewardPool.sol (Line.312))
20.) File : contracts/BaseRewardPool.sol (Line.315))
21.) File : contracts/BaseRewardPool.sol (Line.328))
22.) File : contracts/BaseRewardPool.sol (Line.330))
23.) File : contracts/BaseRewardPool.sol (Lines.332-335))
24.) File : contracts/VE3DRewardPool.sol (Lines.176-182)
25.) File : contracts/VE3DRewardPool.sol (Lines.187-194)
26.) File : contracts/VE3DRewardPool.sol (Line.202)
27.) File : contracts/VE3DRewardPool.sol (Lines.219-221)
28.) File : contracts/VE3DRewardPool.sol (Lines.243-245)
29.) File : contracts/VE3DRewardPool.sol (Lines.353-354)
30.) File : contracts/VE3DRewardPool.sol (Lines.373-382)