A local variable shadows a state variable and function in the _withdraw
function, causing potential code readability and maintainability issues.
Location: src/SablierFlow.sol
in the _withdraw
function
This local variable shadows:
State variable mapping protocolFee
in SablierFlowBase
Function protocolFee(IERC20)
in ISablierFlowBase
LOW - The shadowing is:
Limited to internal function scope
Functionally correct as it reads from the shadowed state mapping
Only affects code readability and maintenance
slither .
shadowing-local
Impact: Low
Confidence: High
[ ] ID-23
SablierFlow._withdraw(uint256,address,uint128).protocolFee shadows:
SablierFlowBase.protocolFee (state variable)
ISablierFlowBase.protocolFee(IERC20) (function)
src/SablierFlow.sol#L824-L826
manuel code review
Rename the local variable to be more specific:
0r
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.