I can’t compute ‘amountOut’ and get ‘poolKeys’ for a swap on raydium. Can someone provide a simple example?
const amountOut = Liquidity.computeAmountOut({
poolKeys,
poolInfo,
amountIn: amountIn,
currencyOut: this.config.quoteToken,
slippage,
}).amountOut;
New contributor
forexmp45 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.