The _user
parameter of _calculateFees
is not used
#62
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
loop
Vulnerability details
_calculateFees
only makes use of_amount
to calculate fees, the_user
parameter can be removed.Impact
Since
_calculateFees
is only called internally it does add to gas costs, an unused parameter adds a small amount of unnecessary gas.Proof of Concept
https://github.com/code-423n4/2021-11-nested/blob/main/contracts/NestedFactory.sol#L557-L559
Tools Used
Remix
The text was updated successfully, but these errors were encountered: