Uniswap / Uniswap/interface

Auto Routing causes transaction failure

Open
#3,839 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
Auto Route select pools without proper liquidity causing transaction failure
e,g, Fail with error 'Too little received'

Steps to Reproduce

Tried to swap WLUNA for WETH
image

AutoRoute select for 10% the 0.3% pool that's empty and death
image
image

values in that pool are even off by a lot, here the "valid" 1% pool

image

Expected Behavior
I would expect Auto Route doesn't pick almost empty Pools that causes sliperage issues and doesn't pick routes without proper collateral liquidity

Additional Context
When Auto Route pick the bad pool, even having an high slipperage as 13% fails.
This mean wasting money...

Allow at least to cherry pick the pool we want (maybe in expert mode?)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Auto Route selection flow and reproduce the WLUNA-to-WETH swap described in the issue, checking how pool liquidity and route allocation are evaluated. Done means Auto Route avoids nearly empty or inadequately collateralized pools and the swap no longer fails with “Too little received,” including at high slippage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.