Auto Routing causes transaction failure
Nobody has claimed this yet.
- 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

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


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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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