Skip to content

Commit

Permalink
fix: fix eligible pools filter
Browse files Browse the repository at this point in the history
  • Loading branch information
EjembiEmmanuel committed Dec 19, 2024
1 parent f2d34b5 commit 002d70a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/strategies/IStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 002d70a

Please sign in to comment.