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
81 stars 46 forks source link

V3: fixedOutputMint does not work anymore if token is not in strict list #91

Closed llegoelkelo closed 1 month ago

llegoelkelo commented 3 months ago

fixedOutputMint does not work anymore if token is not in strict list.

Experience after switching to V3 without any other changes:

V2:

image

V3:

image

llegoelkelo commented 3 months ago

It looks like the issue may be here: https://github.com/jup-ag/terminal/blob/9c5304aec6248ed277715d4211bd786acd42933a/src/contexts/TokenContextProvider.tsx#L57

The UI is loading and caching only the strict tokens without checking the strictTokenList prop passed to init.

In the meantime, we will have to revert to V2.

llegoelkelo commented 3 months ago

I have submitted a PR. We will switch back to v2 in the meantime.

llegoelkelo commented 1 month ago

This was fixed by #94