From aa4d75c5c6e94471abe2bf84f79ea6a196ed7734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:17:11 +0100 Subject: [PATCH] Fixes --- src/vault-compound.ts | 2 +- subgraph.template.yaml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vault-compound.ts b/src/vault-compound.ts index 5eac01c..187b298 100644 --- a/src/vault-compound.ts +++ b/src/vault-compound.ts @@ -62,7 +62,7 @@ function handleStrategyFees( collect.collectedAmount1 = collectedAmount1 collect.token0ToNativePrice = vaultData.token0ToNativePrice collect.token1ToNativePrice = vaultData.token1ToNativePrice - collect.nativeToUSDPrice = collect.nativeToUSDPrice + collect.nativeToUSDPrice = vaultData.nativeToUSDPrice collect.save() /////// diff --git a/subgraph.template.yaml b/subgraph.template.yaml index c74a383..d2a6c19 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -107,8 +107,6 @@ templates: eventHandlers: - event: Initialized(uint8) handler: handleInitialized - - event: OwnershipTransferred(indexed address,indexed address) - handler: handleOwnershipTransferred - event: Deposit(indexed address,uint256,uint256,uint256) handler: handleDeposit - event: Withdraw(indexed address,uint256,uint256,uint256) @@ -131,8 +129,6 @@ templates: eventHandlers: - event: Initialized(uint8) handler: handleInitialized - - event: OwnershipTransferred(indexed address,indexed address) - handler: handleOwnershipTransferred - event: Paused(address) handler: handlePaused - event: Unpaused(address)