Closed code423n4 closed 2 years ago
Dravee
In TimeswapFactory and TimeswapPair: immutable variables fee and protocolFee aren't bounded. It could get troublesome for users in the case of malicious/faulty governor contract.
TimeswapFactory
TimeswapPair
fee
protocolFee
Set a max fee and a max protocolFee
Similar issue reported over here #33; hence closing this issue
Handle
Dravee
Vulnerability details
In
TimeswapFactory
andTimeswapPair
: immutable variablesfee
andprotocolFee
aren't bounded. It could get troublesome for users in the case of malicious/faulty governor contract.Recommended Mitigation Steps
Set a max fee and a max protocolFee