Unnecessary struct in SingleNativeTokenExitV2 #177
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
Handle
kenzo
Vulnerability details
These are the structs in SingleNativeTokenExitV2: (Code ref)
ExitTokenStructV2 contains an array of ExitUnderlyingTrade , and ExitUnderlyingTrade is just an array of ExitUniswapV2SwapStruct. So ExitUnderlyingTrade is unnecessary.
For clarity, I suggest removing ExitUnderlyingTrade and just having an array of ExitUniswapV2SwapStruct in ExitTokenStructV2 .
The text was updated successfully, but these errors were encountered: