You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get new Pair Address and LP Token address and associate newly created LPToken to user's wallet.
Step 2: Add Liquidity into the new pool
Set Token Allowance for the two tokens in Pair.
Add Liquidity into the new pool.
Issue
Since its a network call in few cases the second steps fails due to many reasons
Network Error.
Delay in response to get the new pair address (we are still using JSON RPC with HashIO as provider).
If this happens the Pair get created without any liquidity and this issue reflects in SWAP page where user tries to use SWAP on the newly created pair (with no liquidity) and since this pair has no liquidity we have undefined spot prices for these tokens in Pool and SWAP does not work as expected.
Issue Fix
we need to add retry method on network call if it fails to get pair address.
Current resolution in UI
As of now to quickly fix issue in Swap Page, we can go to Pools page and add liquidity again to the new created pair if it fails this makes sure the Pool has sufficient tokens balances which results in correct spot price based on individual token amount.
Steps to reproduce
Go to Pools Page and tap Create Pool
Select any allowed token pairs and fill the tokens amount.
After tapping on Create Pool sometime it fails with rogue pair which can be seen in Pools List Page.
Additional context
No response
Hedera network
testnet
Version
v1.0
Operating system
macOS
The text was updated successfully, but these errors were encountered:
web3-nomad
added
the
P3
Low priority issue. Will not impact the release schedule if not complete.
label
Apr 4, 2024
Description
Creating a new Pool in DEX is done in 2 steps
Issue
Since its a network call in few cases the second steps fails due to many reasons
If this happens the Pair get created without any liquidity and this issue reflects in
SWAP
page where user tries to use SWAP on the newly created pair (with no liquidity) and since this pair has no liquidity we haveundefined
spot prices for these tokens in Pool andSWAP
does not work as expected.Issue Fix
we need to add retry method on network call if it fails to get
pair address
.Current resolution in UI
As of now to quickly fix issue in Swap Page, we can go to Pools page and add liquidity again to the new created pair if it fails this makes sure the Pool has sufficient tokens balances which results in correct spot price based on individual token amount.
Steps to reproduce
Additional context
No response
Hedera network
testnet
Version
v1.0
Operating system
macOS
The text was updated successfully, but these errors were encountered: