From 783a8f1655415cbc2be9a89b1fa0c5a99ef16372 Mon Sep 17 00:00:00 2001 From: alexshchur <60445720+alexshchur@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:54:50 +0300 Subject: [PATCH] fix: wrong pending claimable on non-staking network (i.e. polygon) --- src/lib/gas-refund/gas-refund-api.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/gas-refund/gas-refund-api.ts b/src/lib/gas-refund/gas-refund-api.ts index 1abec3ba..bcea5d18 100644 --- a/src/lib/gas-refund/gas-refund-api.ts +++ b/src/lib/gas-refund/gas-refund-api.ts @@ -256,11 +256,7 @@ export class GasRefundApi { const latestEpochRefunded = await GasRefundDistribution.max< number, GasRefundDistribution - >('epoch', { - where: { - chainId: this.network, - }, - }); + >('epoch'); const rawPendingData: PendingRefundRawData[] = await Database.sequelize.query(PENDING_DATA_SQL_QUERY, {