libevm / subway

A practical example on how to perform sandwich attacks on Ethereum
MIT License
2.14k stars 534 forks source link

getUniv2ExactWethTokenMinRecv for loop never runs / function does nothing #20

Closed kshore2k closed 1 year ago

kshore2k commented 1 year ago

in getUniv2ExactWethTokenMinRecv() all of the logic within the for loop never runs, and instead it just returns the input arg since path always has a length of 2. The loop only runs while i > 1 and i == 1 always.

for (let i = path.length - 1; i > 1; i--)

libevm commented 1 year ago

skill isue