We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WatchPug
Redundant code increase contract size and gas usage at deployment.
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L440-L444
if (!isSale) { // not a straight sale, so give the user some receipt tokens _mint(msg.sender, trueDepositAmt); } else { }
L443-444, else {} is redundant.
else {}
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L470-L473
if (!isSale) { _burn(msg.sender, amount); } else { }
L472-473, else {} is redundant.
The text was updated successfully, but these errors were encountered:
WatchPug issue #250
124e67c
No branches or pull requests
Handle
WatchPug
Vulnerability details
Redundant code increase contract size and gas usage at deployment.
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L440-L444
L443-444,
else {}
is redundant.https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L470-L473
L472-473,
else {}
is redundant.The text was updated successfully, but these errors were encountered: