Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Apr 20, 2024
1 parent 1fd4053 commit 324761a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/utils/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export function fetchVaultLatestData(
new Multicall3Params(strategy.id, "lpToken0ToNativePrice()", "uint256"),
new Multicall3Params(strategy.id, "lpToken1ToNativePrice()", "uint256"),
new Multicall3Params(strategy.id, "ouptutToNativePrice()", "uint256", true), // not all strategies have this
new Multicall3Params(CHAINLINK_NATIVE_PRICE_FEED_ADDRESS, "latestRoundData()", "(uint80,int256,uint256,uint256,uint80)"),
new Multicall3Params(
CHAINLINK_NATIVE_PRICE_FEED_ADDRESS,
"latestRoundData()",
"(uint80,int256,uint256,uint256,uint80)",
),
]
const results = multicall(signatures)

Expand Down
4 changes: 2 additions & 2 deletions subgraph.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ dataSources:
handler: handleGlobalStrategyPause

- kind: ethereum/contract
name: ChainlinkClock
name: ChainLinkPriceFeed
network: {{network}}
source:
address: "{{chainlinkNativePriceFeedAddress}}"
abi: ChainlinkClock
abi: ChainLinkPriceFeed
startBlock: {{vaultFactoryStartBlock}} # same as BeefyCLVaultFactory
mapping:
kind: ethereum/events
Expand Down

0 comments on commit 324761a

Please sign in to comment.