From c0142e665bddbc695c22d7c8b7576a098daa6c16 Mon Sep 17 00:00:00 2001 From: Syed Asif Date: Mon, 17 Nov 2025 19:59:25 +0400 Subject: [PATCH 1/3] Fix volume not working for flash, Depreacate Community.3 --- dexs/flashtrade/index.ts | 11 ++++++++--- fees/flashtrade.ts | 18 +++++++++--------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/dexs/flashtrade/index.ts b/dexs/flashtrade/index.ts index 2d60f36bfe..7245c5e73b 100644 --- a/dexs/flashtrade/index.ts +++ b/dexs/flashtrade/index.ts @@ -10,8 +10,8 @@ const pools = [ "Governance.1", "Community.1", "Community.2", - "Community.3", "Trump.1", + "Ore.1", ] const fetch = async (_a: any, _b: any, options: FetchOptions) => { @@ -20,8 +20,13 @@ const fetch = async (_a: any, _b: any, options: FetchOptions) => { let dailyVolume = 0; for (const pool of pools) { const url = `https://api.prod.flash.trade/pnl-info/cumulative-pnl-per-day?poolName=${pool}&startDate=2023-01-01%2000:00:00&endDate=${targetDate}%2023:59:59`; - const res = await fetchURL(url); - dailyVolume += (res[targetDate]?.totalVolume / 1e6) || 0; + try { + const res = await fetchURL(url); + dailyVolume += (res[targetDate]?.totalVolume / 1e6) || 0; + } catch { + // Treat failures as zero volume and continue with the remaining pools + continue; + } } return { dailyVolume } } diff --git a/fees/flashtrade.ts b/fees/flashtrade.ts index da0af67ba4..fb94ed3161 100644 --- a/fees/flashtrade.ts +++ b/fees/flashtrade.ts @@ -27,8 +27,8 @@ const pools = [ "Governance.1", "Community.1", "Community.2", - "Community.3", "Trump.1", + "Ore.1", ] const fetch = async (_a: any, _b: any, options: FetchOptions): Promise => { @@ -37,18 +37,18 @@ const fetch = async (_a: any, _b: any, options: FetchOptions): Promise Date: Tue, 18 Nov 2025 00:01:40 +0700 Subject: [PATCH 2/3] keep old pools --- dexs/flashtrade/index.ts | 3 +++ fees/flashtrade.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/dexs/flashtrade/index.ts b/dexs/flashtrade/index.ts index 7245c5e73b..433cef71ad 100644 --- a/dexs/flashtrade/index.ts +++ b/dexs/flashtrade/index.ts @@ -12,6 +12,9 @@ const pools = [ "Community.2", "Trump.1", "Ore.1", + + // keep historical pools + "Community.3", ] const fetch = async (_a: any, _b: any, options: FetchOptions) => { diff --git a/fees/flashtrade.ts b/fees/flashtrade.ts index fb94ed3161..27ee7154d2 100644 --- a/fees/flashtrade.ts +++ b/fees/flashtrade.ts @@ -29,6 +29,9 @@ const pools = [ "Community.2", "Trump.1", "Ore.1", + + // keep historical pools + "Community.3", ] const fetch = async (_a: any, _b: any, options: FetchOptions): Promise => { @@ -80,6 +83,7 @@ const fetch = async (_a: any, _b: any, options: FetchOptions): Promise Date: Fri, 5 Dec 2025 11:42:49 +0530 Subject: [PATCH 3/3] Add support for Remora Pools --- dexs/flashtrade/index.ts | 1 + fees/flashtrade.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dexs/flashtrade/index.ts b/dexs/flashtrade/index.ts index 433cef71ad..bc62effe79 100644 --- a/dexs/flashtrade/index.ts +++ b/dexs/flashtrade/index.ts @@ -12,6 +12,7 @@ const pools = [ "Community.2", "Trump.1", "Ore.1", + "Remora.1", // keep historical pools "Community.3", diff --git a/fees/flashtrade.ts b/fees/flashtrade.ts index 27ee7154d2..dd36e9363e 100644 --- a/fees/flashtrade.ts +++ b/fees/flashtrade.ts @@ -29,7 +29,7 @@ const pools = [ "Community.2", "Trump.1", "Ore.1", - + "Remora.1", // keep historical pools "Community.3", ] @@ -86,6 +86,7 @@ const fetch = async (_a: any, _b: any, options: FetchOptions): Promise