Uniswap / Uniswap/interface

set sqrt price limit with single hop trades to prefer cheaper gas swaps over maximizing output/minimizing input

Open
#1,653 0 comments 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.