decodeDataAndRequire() can be declared pure #85
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
palina
Vulnerability details
Impact
OperatorHelpers::decodeDataAndRequire(bytes memory _data, address _inputToken, address _outputToken) does not read or modify the storage and can, therefore, be declared
pure
.Proof of Concept
https://github.com/code-423n4/2021-11-nested/blob/5d113967cdf7c9ee29802e1ecb176c656386fe9b/contracts/libraries/OperatorHelpers.sol#L49
Tools Used
Manual Analysis
Recommended Mitigation Steps
Consider adding
pure
modifier to the function signature.The text was updated successfully, but these errors were encountered: