fix: disable filters when snipe list if on

This commit is contained in:
Filip Dunder
2024-04-21 14:39:16 +02:00
parent 6dbebe2169
commit 3dbe5a5352
2 changed files with 15 additions and 7 deletions

10
bot.ts
View File

@ -131,11 +131,13 @@ export class Bot {
]);
const poolKeys: LiquidityPoolKeysV4 = createPoolKeys(accountId, poolState, market);
const match = await this.filterMatch(poolKeys);
if (!this.config.useSnipeList) {
const match = await this.filterMatch(poolKeys);
if (!match) {
logger.trace({ mint: poolKeys.baseMint.toString() }, `Skipping buy because pool doesn't match filters`);
return;
if (!match) {
logger.trace({ mint: poolKeys.baseMint.toString() }, `Skipping buy because pool doesn't match filters`);
return;
}
}
for (let i = 0; i < this.config.maxBuyRetries; i++) {