From b28be731121f69595cb1958e8cc5ee798aab319e Mon Sep 17 00:00:00 2001 From: Reppelin Tom Date: Tue, 30 Jul 2024 11:42:59 +0200 Subject: [PATCH] feat(adding: base and quote for decoding the data) --- src/hooks/useFetchOracleData.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useFetchOracleData.ts b/src/hooks/useFetchOracleData.ts index ad17e81..c361f2c 100644 --- a/src/hooks/useFetchOracleData.ts +++ b/src/hooks/useFetchOracleData.ts @@ -53,6 +53,8 @@ const useFetchOracleData = () => { const correctOracleData = oracleDataList.find( (data: any) => + data.baseVault === oracleData?.baseVault && + data.quoteVault === oracleData?.quoteVault && data.baseFeed1 === oracleData?.baseFeed1 && data.baseFeed2 === oracleData?.baseFeed2 && data.quoteFeed1 === oracleData?.quoteFeed1 &&