missing check in constructor #10
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
jah
Vulnerability details
Impact
Variable fee and feeto are only set in the constructor so they can only set once and there is no zero check which means if we accidentally set them to zero we can't change it
Proof of Concept
Phttps://github.com/code-423n4/2022-01-timeswap/blob/bf50d2a8bb93a5571f35f96bd74af54d9c92a210/Timeswap/Timeswap-V1-Core/contracts/TimeswapFactory.sol#L39
Tools Used
Manual analysis
Recommended Mitigation Steps
require( fee != 0 && feeto != address(0));
The text was updated successfully, but these errors were encountered: