From bbaf6cf1e2ea4237927b01f5358f13429244e83d Mon Sep 17 00:00:00 2001 From: Simone Cuomo Date: Wed, 5 Oct 2022 08:31:07 +0100 Subject: [PATCH] Fix deployment --- api/feed/getLatestDataRound.js | 3 +++ src/lib/constants.js | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/feed/getLatestDataRound.js b/api/feed/getLatestDataRound.js index 9c619ce..f991bd5 100644 --- a/api/feed/getLatestDataRound.js +++ b/api/feed/getLatestDataRound.js @@ -43,6 +43,9 @@ const getLatestDataRound = async (address, pair) => { anchor.setProvider(provider); const CHAINLINK_FEED_ADDRESS = address; + console.log('Fetching pair:', pair); + console.log('Fetching address:', address); + const feedAddress = new anchor.web3.PublicKey(CHAINLINK_FEED_ADDRESS); // load the data feed account using the predefined chainlink program ID diff --git a/src/lib/constants.js b/src/lib/constants.js index c33d9a7..f22caf9 100644 --- a/src/lib/constants.js +++ b/src/lib/constants.js @@ -14,10 +14,6 @@ export const CURRENCY_PAIRS = [ { pair: 'LINK/USD', feedAddress: process.env.REACT_APP_LINK_USD - }, - { - pair: 'USDT/USD', - feedAddress: process.env.REACT_APP_USDT_USD } ];