better-simple-arbitrage icon indicating copy to clipboard operation
better-simple-arbitrage copied to clipboard

Unnecessary conditional?

Open DL4L opened this issue 3 years ago • 0 comments

https://github.com/jacksonConrad/better-simple-arbitrage/blob/f8b96f3be6306ffc48336903852f6b82d4ca4310/src/UniswappyV2EthPair.ts#L335

What is the purpose of the statement if (ethMarket.receiveDirectly(tokenIn) === true) if the function returns the same either way

DL4L avatar Oct 19 '22 14:10 DL4L