Remove unused modifier/function argument "who" #43
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
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
GiveMeTestEther
Vulnerability details
Impact
The modifier "updateStreams" (L197) takes an argument "address who" and passes it to the function "updateStreamInternal" (L203). But this argument is never used in "updateStreamInternal" function.
To save gas by passing arguments that are not used, remove function parameter "address who" from the modifier and the function declaration.
Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L197
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L203
Tools Used
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: