Closed miaoluyao closed 4 months ago
please try set higher priority fee and increase slippage, it will go through smoothly. just had a try swap RAY -> USDC and it works well
looks like you might uncomment fee setting directly and the units in example is not correct, updated in commit: https://github.com/raydium-io/raydium-sdk-V2-demo/commit/692b67ad1a975f1f175869b054853a033140194a pull latest code and try it again
yarn dev .\src\amm\swap.ts
txid:
https://solscan.io/tx/5bRpSutAuqGJwGHvi8eAX9HSJ7dwejbAMMGfnZsZGvSeCphHxrktFhgasMMzPiqPypTaWY33oVdZbjFCxMP4Q2Da