From 7da2fb371b8737f40ba4baed91f4750d63d42731 Mon Sep 17 00:00:00 2001 From: Jeroen Offerijns Date: Tue, 5 Nov 2024 22:00:00 +0100 Subject: [PATCH] fix: pool snapshots query --- centrifuge-js/src/modules/pools.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centrifuge-js/src/modules/pools.ts b/centrifuge-js/src/modules/pools.ts index 0ed530b3a9..e8aa7c9efd 100644 --- a/centrifuge-js/src/modules/pools.ts +++ b/centrifuge-js/src/modules/pools.ts @@ -2333,7 +2333,8 @@ export function getPoolsModule(inst: Centrifuge) { orderBy: BLOCK_NUMBER_ASC, filter: { poolId: { equalTo: $poolId }, - timestamp: { greaterThan: $from, lessThan: $to } + timestamp: { greaterThan: $from, lessThan: $to }, + epochExists: false } after: $poolCursor ) { @@ -2716,7 +2717,7 @@ export function getPoolsModule(inst: Centrifuge) { } }>( `query { - poolSnapshots(first: 1000, orderBy: PERIOD_ID_ASC) { + poolSnapshots(first: 1000, orderBy: PERIOD_ID_ASC, epochExists: false) { nodes { netAssetValue periodId