QA Report #268
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
QA Report
Remarks/Recommendations
epoch
always seems to be an even multiple ofrewardsDuration = 7 * 86400
. However, it would probably be better to just have an epoch number. A lot of the arithmetic would be simplified this way. Any time you need to compare against the epoch start time you could just multiply by86400*7
.Non-critical: Consider removing simple
AuraMath
functionsFunctions in
AuraMath
likeadd
andsub
have been reimplemented to take advantage of Solidity 0.8.x's over/underflow checking. But calling these functions is sure to cost more gas than simply performing the arithmetic. Consider removing the functions and just inlining the code at all the locations in the code where you use them.Non-critical: Move
require
inAuraMerkleDrop.forwardPenalty
to constructorSince
penaltyForwarder
is immutable just moverequire(penaltyForwarder != address(0), "!forwarder");
at AuraMerkleDrop.sol:152 to the constructorThe text was updated successfully, but these errors were encountered: