web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[docs] need to know what liquidity is required for the in-app token swap

Open augchan42 opened this issue 1 year ago • 3 comments

Summary

Trying to do an in-app swap for a small token, contract address: 0x5988Bf243ADf1b42a2Ec2e9452D144A90b1FD9A9 In app swap calls this API: https://rpc.walletconnect.org/v1/convert/quotes?projectId=6bcaa0ca1d1e4a65d6c46eb2d1f3f781&amount=310142198149821370737&userAddress=0x888C57DE1960068d822833E2EA48479257E94b0d&from=eip155%3A137%3A0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&to=eip155%3A137%3A0x5988bf243adf1b42a2ec2e9452d144a90b1fd9a9&gasPrice=74249409156

The token uses UniV3 liquidity, so slippage is small even though liquidity is low. Get the following error in browser console when trying to do a swap. So, walletconnect RPC should either detect UniV3 liquidity error or provide a better error message to notify how much liquidity is needed and what type (v2?)

{ "status": "FAILED", "reasons": [ { "field": "", "description": "Conversion parameter error: insufficient liquidity" } ] }

Link to the related docs page

https://docs.reown.com/appkit/features/swaps

augchan42 avatar Oct 23 '24 01:10 augchan42

@Sam-Newman for prio

arein avatar Dec 12 '24 04:12 arein

any update on this @augchan42

Rizwankmc avatar Mar 27 '25 06:03 Rizwankmc

@Rizwankmc are you still getting this error ? can you give me more context

rtomas avatar Apr 15 '25 01:04 rtomas