NestedReserve.transferFromFactory
function increases deployment gas costs unnecessarily
#27
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
TomFrench
Vulnerability details
Impact
NestedReserve.transferFromFactory
is unused and so increases deployment costs for no gainProof of Concept
NestedReserve
has atransferFromFactory
which can be seen not to be used in the codebase (and in the case theNestedFactory
needs to send tokens to the reserve it can do so directly.)https://github.com/code-423n4/2021-11-nested/blob/5d113967cdf7c9ee29802e1ecb176c656386fe9b/contracts/NestedReserve.sol#L55-L60
Recommended Mitigation Steps
Remove this function.
The text was updated successfully, but these errors were encountered: