Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issues - ^1.3.1-beta.57 #15

Open
gladwinput opened this issue Jul 11, 2024 · 9 comments
Open

Compatibility issues - ^1.3.1-beta.57 #15

gladwinput opened this issue Jul 11, 2024 · 9 comments
Assignees

Comments

@gladwinput
Copy link

src/RaydiumSwap.ts:109:7 - error TS2353: Object literal may only specify known properties, and 'makeTxVersion' does not exist in type 'LiquiditySwapInstructionSimpleParams'.

109 makeTxVersion: useVersionedTransaction ? 0 : 1,
~~~~~~~~~~~~~

src/RaydiumSwap.ts:249:52 - error TS2345: Argument of type 'PublicKey' is not assignable to parameter of type 'number'.

249 const currencyIn = new Token(TOKEN_PROGRAM_ID, currencyInMint, currencyInDecimals)
~~~~~~~~~~~~~~

src/RaydiumSwap.ts:251:53 - error TS2345: Argument of type 'PublicKey' is not assignable to parameter of type 'number'.

251 const currencyOut = new Token(TOKEN_PROGRAM_ID, currencyOutMint, currencyOutDecimals)
~~~~~~~~~~~~~~~

@gladwinput gladwinput changed the title Bunch of bugs Compatibility issues - ^1.3.1-beta.57 Jul 11, 2024
@akegaviar
Copy link
Contributor

Can you provide more details on your env and your scenario?

@akegaviar akegaviar self-assigned this Jul 27, 2024
@growwnoww
Copy link

@akegaviar Hi sir , i have clone above repo. i have initialized swap and it gives me hash https://solscan.io/tx/2EaXLWdLV9uTujQnw7gmWtqYjWeTxXu9rFxsH6VL9EvuQmPLoHpwAm1Qzap6q1mGiUji3Aw4Jpfo8DjjskYAjC23 but when i went to solana scan i got not transaction found. why?
please help me

@growwnoww
Copy link

@akegaviar please reply sir.

@akegaviar
Copy link
Contributor

@growwnoww there could be a lot of reasons for why — from not enough fees with the transactions to not having a node rpc endpoint that's propagating 100%. I suggest you add some logging and try and troubleshoot.

@growwnoww
Copy link

@akegaviar
Screenshot 2024-10-25 at 2 26 13 AM
my secret key wallet which i used to do swap has 3 usdc / 0.01242 solana in mainnet. after that i have used chainstack rpc mainnet url . i get transaction hash also. but when i go on that transaction hash i could not see anything. they said no transaction found.

@growwnoww
Copy link

image
@akegaviar you can see sir here i have solana on mainnet. i have used same wallet private key. i have used proper chainstack rpc url. but i could't get transaction on solana explorer

@growwnoww
Copy link

i have also set executable Swap true. in swapConfig.tsx file

@akegaviar
Copy link
Contributor

@growwnoww This is most likely due to the transaction not actually landing. Three options here: 1) Add retries until a transaction lands; 2) Significantly increase fees; or 3) Use Trader nodes which provide 100% landing rate but come at a cost and start from the Business plan.

@growwnoww
Copy link

@akegaviar It's working fine . but where i can new listed token pool info . currrently mainnet.json file have old token pool info. i searched on raydium docs they also have old tokens pool. they doesn't have newly listed token pool info. where i can get this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants