Open NukeThemAII opened 1 month ago
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
ah got ya thanks, btw any way to better store or track logs?
ah got ya thanks, btw any way to better store or track logs?
You can use PM2
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)
}
};
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 ?