From 7df36258af2a7bbe93293a4bb6f945bae2f45d03 Mon Sep 17 00:00:00 2001 From: DaveVodrazka Date: Thu, 10 Oct 2024 17:45:50 +0200 Subject: [PATCH] fix: do not show bugged proposal 106 --- src/classes/Pool.ts | 2 +- src/components/Proposal/index.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/classes/Pool.ts b/src/classes/Pool.ts index f9979dc7..4862b0ad 100644 --- a/src/classes/Pool.ts +++ b/src/classes/Pool.ts @@ -210,7 +210,7 @@ export class Pool extends Pair { this.quoteToken.id === TokenKey.USDC ) { // ETH/USDC - return [100, 200]; + return [100, 300]; } if ( this.baseToken.id === TokenKey.STRK && diff --git a/src/components/Proposal/index.tsx b/src/components/Proposal/index.tsx index 77aff8fc..92d88327 100644 --- a/src/components/Proposal/index.tsx +++ b/src/components/Proposal/index.tsx @@ -27,11 +27,17 @@ export const Proposals = () => { return ; } - if (proposals.length === 0) { + const validProposals = proposals.filter((p) => p.propId !== 106); + + if (validProposals.length === 0) { return ; } return ( - + ); };