set sqrt price limit with single hop trades to prefer cheaper gas swaps over maximizing output/minimizing input
Open
Nobody has claimed this yet.
bug
p1
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
teo has examples
use the execution price + slippage tolerance to compute the sqrt price limit x96
execution price probably not gonna work, doing it perfectly is pretty complicated since you need to know at what point in the trade you couldn't get any extra output which means knowing tick data
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
No files, tests, or entry points are named. Start by reviewing the linked examples and the current single-hop trade flow, then determine how execution price, slippage tolerance, and tick data could define the sqrt price limit x96 while comparing cheaper gas swaps with output or input optimization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100