From 002d70a79e75f5cada7c3546c0dbc9290eef8a54 Mon Sep 17 00:00:00 2001 From: EjembiEmmanuel Date: Thu, 19 Dec 2024 11:35:48 +0100 Subject: [PATCH] fix: fix eligible pools filter --- src/strategies/IStrategy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/strategies/IStrategy.ts b/src/strategies/IStrategy.ts index 21e2639..f0a24dd 100755 --- a/src/strategies/IStrategy.ts +++ b/src/strategies/IStrategy.ts @@ -222,7 +222,9 @@ export class IStrategy extends IStrategyProps { amount: string, prevActions: StrategyAction[], ) { - const eligiblePools = pools.filter((p) => p.category == Category.Stable); + const eligiblePools = pools.filter((p) => + p.category.includes(Category.Stable), + ); if (!eligiblePools) throw new Error(`${this.tag}: [F1] no eligible pools`); return eligiblePools; }