Closed mcfriend99 closed 5 months ago
Make sure you pass correct input and outMint for compute and swap function, no issues was found.
I've debugged this severally, I've even hardcoded it based on the values returned from raydium.api.fetchPoolById
and It's the same. I've set the values of input and output mint directly from what was returned by fetchPoolById
.
Same behavior.
While I'm reporting this issue, more than 6 other members of my team are having the same issue with their own implementation too.
Please paste your full code here and what's the sdk version are you used?
You were right. The input and output mint were swapped by another library we all shared.
The issue is as it presents itself. I'm using the code as it is in the demo application with
No matter what I set the amount in as I always get insufficient balance whether with transaction simulation enabled or not. Even when I set the amount to 0.0001 SOL (100000 lamports) and I have as much as 5 SOLs in my wallet balance, I still get insufficient funds error.