From d0c5cf36a4fbe868d0a2526d3e165ed7431c7302 Mon Sep 17 00:00:00 2001 From: qwer951123 Date: Thu, 5 Oct 2023 18:11:29 +0800 Subject: [PATCH] fix earn project config --- packages/earn-subql/project.yaml | 8 ++++---- packages/earn-subql/src/handlers/claim-rewards.ts | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/earn-subql/project.yaml b/packages/earn-subql/project.yaml index 31b094c..ee57b74 100644 --- a/packages/earn-subql/project.yaml +++ b/packages/earn-subql/project.yaml @@ -28,22 +28,22 @@ dataSources: filter: module: incentives method: ClaimRewards - - handle: handleUnbonded + - handler: handleUnbonded kind: substrate/EventHandler filter: module: earning method: Unbonded - - handle: handleBonded + - handler: handleBonded kind: substrate/EventHandler filter: module: earning method: Bonded - - handle: handleWithdrawn + - handler: handleWithdrawn kind: substrate/EventHandler filter: module: earning method: Withdrawn - - handle: handleRebonded + - handler: handleRebonded kind: substrate/EventHandler filter: module: earning diff --git a/packages/earn-subql/src/handlers/claim-rewards.ts b/packages/earn-subql/src/handlers/claim-rewards.ts index c8f3b48..dd785c0 100644 --- a/packages/earn-subql/src/handlers/claim-rewards.ts +++ b/packages/earn-subql/src/handlers/claim-rewards.ts @@ -1,7 +1,6 @@ import { SubstrateEvent } from "@subql/types/dist/interfaces"; import { ClaimRewards, LoyaltyBonusPool, LoyaltyBonusReward, UserPool } from "../types"; import { forceToCurrencyName } from '@acala-network/sdk-core'; -import { getPoolEntity } from "../utils"; export const handleClaimRewards = async (event: SubstrateEvent) => { /**