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

Skipping buy because one token at a time is turned on and token is already being processed #138

Open
NukeThemAII opened this issue Jun 17, 2024 · 4 comments

Comments

@NukeThemAII
Copy link

Getting a lot Skipping buy because one token at a time is turned on and token is already being processed, but nothing is being processes.

https://imgur.com/GeY6BqM

Why is that ?

@edujr1
Copy link

edujr1 commented Jun 18, 2024

https://imgur.com/GeY6BqM

This happens because your bot is already working with a token, in this case it has not yet purchased, but is monitoring it. Once finished, he is free to take another token. This is limited by the MAX_TOKENS_AT_THE_TIME env

@NukeThemAII
Copy link
Author

ah got ya thanks, btw any way to better store or track logs?

@edujr1
Copy link

edujr1 commented Jun 18, 2024

ah got ya thanks, btw any way to better store or track logs?

You can use PM2

@Ismola
Copy link

Ismola commented Jun 28, 2024

ah got ya thanks, btw any way to better store or track logs?

In bot.ts, when a transaction ocurrs:

if (result.confirmed) {
          logger.info(
            {
              dex: `https://dexscreener.com/solana/${rawAccount.mint.toString()}?maker=${this.config.wallet.publicKey}`,
              mint: rawAccount.mint.toString(),
              signature: result.signature,
              url: `https://solscan.io/tx/${result.signature}`,
            },
            `Venta confirmada tx`,
          );


          await addTransaction({
            dex: `https://dexscreener.com/solana/${rawAccount.mint.toString()}?maker=${this.config.wallet.publicKey}`,
            mint: rawAccount.mint.toString(),
            signature: result.signature ? result.signature : "",
            url: `https://solscan.io/tx/${result.signature}`,
            success: true,
            direction: 'sell',

          })

To save the Transaction in a database

export const addTransaction = async (transaction: ITransaction) => {
    try {
        const data = new Transaction(transaction);

        await data.save();

    } catch (err) {

        console.log(err)

    }
};

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