jup-ag / terminal

Jupiter Terminal is an open-sourced, lite version of Jupiter that provides end-to-end swap flow by linking it in your HTML.
https://terminal.jup.ag
70 stars 34 forks source link

both extract doesnt work #75

Open adityadees opened 1 month ago

adityadees commented 1 month ago

I'm trying to pass swapMode: "ExactInOut", But seems doesnt work. I want make users can fill the out or in

worlddlckgh commented 1 month ago

Hi, there's no ExactInOut mode Our production does have the feature supported, let me get our team to work on this.

adityadees commented 3 weeks ago

Hi, there's no ExactInOut mode Our production does have the feature supported, let me get our team to work on this.

Hi thanks, yeah I think it will more good if we can fill on both value, if users fill out value price, the in value price will changed, and if usesrs fill on in value price then the out value price will changed.

In this case I'm trying to make out token address can't be changed but on In token address it can be changed. And I'm trying to change the price of my out token to automatic convert the in token but I also want can change the price of in token to automatic onvert the price of out token

similiar like coingecko normal input box I think, can more flexible to change the price ammount.

image
worlddlckgh commented 1 week ago

https://github.com/jup-ag/terminal/pull/84 we're trying to ship ExactInOrOut mode, similar to what you see on our Jupiter FE