Closed code423n4 closed 2 years ago
hickuphh3
I recommend checking ICurve(_curvePool).coins(_underlyingI) == underlying), because it verifies the correctness of the following parameters:
ICurve(_curvePool).coins(_underlyingI) == underlying)
_curvePool
_underlyingI
underlying
Add the following check in the constructor.
require(ICurve(_curvePool).coins(_underlyingI) == underlying, "invalid setting");
Isn't this a duplicate of #152 ?
Handle
hickuphh3
Vulnerability details
Impact
I recommend checking
ICurve(_curvePool).coins(_underlyingI) == underlying)
, because it verifies the correctness of the following parameters:_curvePool
_underlyingI
underlying
Recommended Mitigation Steps
Add the following check in the constructor.