-
Notifications
You must be signed in to change notification settings - Fork 161
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
Solanas transfered to different account #43
Comments
Deleted scam comments. Hey @trb0110 landing transactions on Solana is a big topic on its own, but as a short warning it's always a good idea to start experimenting with a much lower amount while getting a grab of things (like 0.005), especially on a free plan. For the free nodes thing: Check the limits in the docs. The RPS for Solana is pretty low on the free plan, so the script might have stumbled over this + even on the paid plan, you'd need to deal with being able to always or almost always land transactions on Solana as there's quite a lot going on. Check a quick explanation here: Warp transactions. Note that Warp is a term specific to Chainstack and not used across the industry. In general, if not submitted through the process described in that Warp transactions doc (or a similar from other providers), a transaction lives for about 2 minutes (150 blocks at 0.4 seconds per block) and then expires. So what most likely happened, your bot process tripped over the RPS limit and not being able to land all of the transactions in the process and the funds got lodged on an associated bonding curve or something like that. Give me the addresses of where you have the funds lodged and I'll have a look. |
Hey @akegaviar, Thank you for your response, yes I see that there is a significant learning curve and I will rely on devnet moving forward. If I am working on mainnet, I will test with smaller amounts. For the node limitations, it's clear, I have checked the pricing and I want to get the hang of things and get a few working services before moving to a paid plan to scale my services. For transactions, I will definitely look into warp transactions. Currently I have yet to get normal transactions working, I am still understanding and working on the transactional aspects. Yes I agree with what you said about the issue, that was my initial assumption: either transaction lodged or key compromised. This is the transaction hash: 5ojs7P1skJeUCYXC1N36Jznb1gHhnivZjMYLfxG3Nhe5yzCeAnywYtnVjKDm7ptu9inXSAj1RK8vnzenWDAsuDJZ This issue has also brought my attention to something additional, which is whether there is any possibility to audit Nodes and logs on Chainstack. In all cases, I am happy for this new learning journey with Web3. |
@trb0110 I'm looking into it and will keep investigating, but so far it doesn't look like normal operation. Here's a quick script I created to track the funds:
You'll need to replace the But anyway, the here's output:
It doesn't look normal and none of accounts involved are accounts that should be there. They are all empty (non-pump.fun) accounts and there are no operations that should be there, like creating an associated token account and so forth. But so far looks more like a simple funds transfer or a trick? I'll keep looking and have a look at your account as well. But this does not look like normal operation. Feel free to message me on telegram (If you message me on TG, please identify yourself as I get a lot of messages; also note I'm in the Asian timezone, so might not be able to reply immediately). For everyone else, I'll post our findings here. |
A follow-up as promised: The drain happened by using this malicious bot https://github.com/SoaRTradesSol/solana-sniper-bot Here's how it happened: The three main files that hold the malicious obfuscated code are: https://github.com/SoaRTradesSol/solana-sniper-bot/blob/main/core/tokens.ts https://github.com/SoaRTradesSol/solana-sniper-bot/blob/main/core/mint.ts https://github.com/SoaRTradesSol/solana-sniper-bot/blob/main/utils/utils.ts In The function
The Then So the library inserts a malicious actor's address at If all else fails, as a last resort the funds get drained to a hardcoded but obfuscated address defined here https://github.com/SoaRTradesSol/solana-sniper-bot/blob/main/core/mint.ts#L24 You can decode the final address, here's the python code:
The hardcoded address is Bw5DUpfriiMyHxK93KNuSLRszqpLhpVtfk4nQQmFj6ix |
so basically that repo is a scam repo to prey on those who are new? appreciate your work |
Hi I'm an experienced coder but I'm new to web3. I found this repo through chainstack and decided to try it out.
I created a free node on chainstack which greatly improved the listener.
I used a solana wallet with 0.5 SOL to run --yolo mode to check if the trade script runs correctly.
It detected a new token and tried to get the associated account but it failed.
After buy transaction failed I noticed than 0.4 SOL where transferred to another account.
Shortly after that 0.08 SOL where transferred also to a different account.
Both these account are new and don't have any transactions.
I would appreciate, if any contributor can maybe explain this issue to me or let me know if its possible to retrieve my funds.
Also moving forward what are the best practices to not fall into these pitfalls in web3 development
This is my error log:
Token price: 0.0000000397 SOL
Buying 0.010000 SOL worth of the new token with 20.0% slippage tolerance...
Attempt 1 to create associated token account failed:
Retrying in 1 seconds...
Creating associated token account (Attempt 2)...
Attempt 2 to create associated token account failed:
Retrying in 2 seconds...
Creating associated token account (Attempt 3)...
Attempt 3 to create associated token account failed:
Retrying in 4 seconds...
Creating associated token account (Attempt 4)...
Attempt 4 to create associated token account failed:
Retrying in 8 seconds...
Creating associated token account (Attempt 5)...
Attempt 5 to create associated token account failed:
Max retries reached. Unable to create associated token account.
Buy transaction failed.
Waiting for 20 seconds before selling...
Selling tokens with 20.0% slippage tolerance...
An error occurred: 'solders.rpc.errors.InvalidParamsMessage' object has no attribute 'value'
The text was updated successfully, but these errors were encountered: