Uniswap / smart-order-router

GNU General Public License v3.0
384 stars 387 forks source link

percents start loop index #591

Open guotie opened 1 month ago

guotie commented 1 month ago

https://github.com/Uniswap/smart-order-router/blob/14815de0ee93f4abc9ad16e6a723ec185e6f15d8/src/routers/alpha-router/functions/best-swap-route.ts#L238C16-L238C32

should here be

for (let i = percents.length - 1; i >= 0; i--) {