code-423n4 / 2022-01-elasticswap-findings

1 stars 0 forks source link

Gas: `MathLib.sol` is importing `Exchange.sol` #35

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

Dravee

Vulnerability details

Remove the unused import: https://github.com/code-423n4/2022-01-elasticswap/blob/main/elasticswap/src/libraries/MathLib.sol#L4

0xean commented 2 years ago

this has no affect on gas.

GalloDaSballo commented 2 years ago

Changing to non-critical as I believe the unused import can be deleted but will not provide any gas savings