updateStreamInternal
does not need msg.sender
#167
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
bitbopper
Vulnerability details
Impact
Uneeded msg.sender creating gas cost in Line:
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L203
Proof of Concept
Remove msg.sender from
updateStream
andupdateStreamInternal
like so and modify all callersSaved ~8k gas during tests calling
stake
in tests with
DAPP_BUILD_OPTIMIZE=1 DAPP_BUILD_OPTIMIZE_RUNS=9999999
Tools Used
dapptools
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: