Improper Upper Bound Definition on the Fee #33
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
defsec
Vulnerability details
Impact
The TimeswapFactory constructor does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions.
Proof of Concept
URL
https://github.com/code-423n4/2022-01-timeswap/blob/main/Timeswap/Timeswap-V1-Core/contracts/TimeswapFactory.sol#L41
Tools Used
None
Recommended Mitigation Steps
Consider to define upper and lower bounds on the contract constructor.
The text was updated successfully, but these errors were encountered: