Questions tagged [token-swap-program]
2 questions
2
votes
1 answer
How can I retrieve market ids for Solana token swap program?
Having mint addresses of two spl tokens on Solana mainnet, I need to find public key of all possible markets (i.e. marketId in the following code snippet) available on Solana to get token swap info from:
const tokenSwap = await…

Ehsan Khodarahmi
- 4,772
- 10
- 60
- 87
1
vote
1 answer
Can't use Uniswap V3 SwapRouter for multihop swaps, SwapRouter.exactInput(params) throws 'UNPREDICTABLE_GAS_LIMIT'
I'm trying to implement swap with new Uniswap V3 contracts.
I'm using Quoter contract for getting the quotes out and SwapRouter for making the swaps.
If I'm using methods for direct swap (when tokens have pools) for example - -
ethersProvider = new…

mps
- 13
- 1
- 3