Skip to content

[BUG FIX] Preserve single-sided deposit amounts from URL parameters#8009

Open
urlaubaitos wants to merge 1 commit intoUniswap:mainfrom
urlaubaitos:fix/preserve-single-sided-url-amounts
Open

[BUG FIX] Preserve single-sided deposit amounts from URL parameters#8009
urlaubaitos wants to merge 1 commit intoUniswap:mainfrom
urlaubaitos:fix/preserve-single-sided-url-amounts

Conversation

@urlaubaitos
Copy link

BUG

Copying the URL for positions/create/ into a new tab does not correctly populate token amounts for single-sided LP positions.

REPO STEPS

Entering pool info the URL is

https://app.uniswap.org/positions/create/v3?currencyA=NATIVE&currencyB=0x754704Bc059F8C67012fEd69BC8A327a5aafb603&chain=monad&fee={%22feeAmount%22:3000,%22tickSpacing%22:60,%22isDynamic%22:false}&hook=undefined&priceRangeState={%22priceInverted%22:false,%22fullRange%22:false,%22minPrice%22:%220.023720627%22,%22maxPrice%22:%220.03260054%22,%22initialPrice%22:%22%22,%22inputMode%22:%22price%22}&depositState={%22exactField%22:%22TOKEN0%22,%22exactAmounts%22:{%22TOKEN0%22:%222%22}}&step=1

and UI
Screenshot 2026-02-25 at 4 22 58 PM

However in a new tab the URL after loading becomes

https://app.uniswap.org/positions/create/v3?currencyA=NATIVE&currencyB=0x754704Bc059F8C67012fEd69BC8A327a5aafb603&chain=monad&fee={%22feeAmount%22:3000,%22tickSpacing%22:60,%22isDynamic%22:false}&hook=undefined&priceRangeState={%22priceInverted%22:false,%22fullRange%22:false,%22minPrice%22:%220.023720627%22,%22maxPrice%22:%220.03260054%22,%22initialPrice%22:%22%22,%22inputMode%22:%22price%22}&depositState={%22exactField%22:%22TOKEN0%22,%22exactAmounts%22:{}}&step=1

and UI loads as
Screenshot 2026-02-25 at 4 25 29 PM
Notice the token amount is 0.

TESTING

I ran into some problems on my local machine. Something in the UI thinks this will be a new pool
Screenshot 2026-02-25 at 4 20 04 PM

Screenshot 2026-02-25 at 4 33 08 PM

However the URL appears to be what I expect

http://localhost:3000/positions/create/v3?currencyA=NATIVE&currencyB=0x754704Bc059F8C67012fEd69BC8A327a5aafb603&chain=monad&fee={%22feeAmount%22:3000,%22tickSpacing%22:60,%22isDynamic%22:false}&hook=undefined&priceRangeState={%22priceInverted%22:false,%22fullRange%22:false,%22minPrice%22:%220.023720627%22,%22maxPrice%22:%220.03260054%22,%22initialPrice%22:%22%22,%22inputMode%22:%22price%22}&depositState={%22exactField%22:%22TOKEN0%22,%22exactAmounts%22:{%22TOKEN0%22:%222%22}}&step=1

If you could advise on how to get around this 'new pool' flag I could test more thoroughly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant