code-423n4 / 2021-10-slingshot-findings

0 stars 0 forks source link

`CurveModule::swap` declares a parameter that is never used #51

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pmerkleplant

Vulnerability details

The swap function in CurveModule.sol receives the argument jToken of type address. However, the variable is never used in the function and could therefore be deleted.

See line 44 in CurveModule.sol

tommyz7 commented 2 years ago

Duplicate of #39