|
@@ -1,9 +1,10 @@
|
|
|
import { Connection } from '@solana/web3.js';
|
|
|
import { LiquidityPoolKeysV4, Token, TokenAmount } from '@raydium-io/raydium-sdk';
|
|
|
import { BurnFilter } from './burn.filter';
|
|
|
+import { MutableFilter } from './mutable.filter';
|
|
|
import { RenouncedFreezeFilter } from './renounced.filter';
|
|
|
import { PoolSizeFilter } from './pool-size.filter';
|
|
|
-import { CHECK_IF_BURNED, CHECK_IF_FREEZABLE, CHECK_IF_MINT_IS_RENOUNCED, logger } from '../helpers';
|
|
|
+import { CHECK_IF_BURNED, CHECK_IF_FREEZABLE, CHECK_IF_MINT_IS_RENOUNCED, CHECK_IF_MUTABLE, logger } from '../helpers';
|
|
|
|
|
|
export interface Filter {
|
|
|
execute(poolKeysV4: LiquidityPoolKeysV4): Promise<FilterResult>;
|
|
@@ -35,6 +36,10 @@ export class PoolFilters {
|
|
|
this.filters.push(new RenouncedFreezeFilter(connection, CHECK_IF_MINT_IS_RENOUNCED, CHECK_IF_FREEZABLE));
|
|
|
}
|
|
|
|
|
|
+ if (CHECK_IF_MUTABLE) {
|
|
|
+ this.filters.push(new MutableFilter(connection));
|
|
|
+ }
|
|
|
+
|
|
|
if (!args.minPoolSize.isZero() || !args.maxPoolSize.isZero()) {
|
|
|
this.filters.push(new PoolSizeFilter(connection, args.quoteToken, args.minPoolSize, args.maxPoolSize));
|
|
|
}
|