From cdc2de60b4a0164b941b627ba92cce007f901956 Mon Sep 17 00:00:00 2001 From: 0xlucian <0xluciandev@gmail.com> Date: Fri, 16 Feb 2024 09:36:13 +0200 Subject: [PATCH 1/2] chore: add token pricefeed config for opbnbmainnet --- helpers/deploymentConfig.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/helpers/deploymentConfig.ts b/helpers/deploymentConfig.ts index b8992937..9f9fec04 100644 --- a/helpers/deploymentConfig.ts +++ b/helpers/deploymentConfig.ts @@ -734,6 +734,38 @@ export const assets: Assets = { price: "7000000000000000000", }, ], + opbnbmainnet: [ + { + token: "BTCB", + address: "0x7c6b91d9be155a6db01f749217d76ff02a7227f2", + oracle: "binance", + }, + { + token: "ETH", + address: "0xe7798f023fc62146e8aa1b36da45fb70855a77ea", + oracle: "binance", + }, + { + token: "USDT", + address: "0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3", + oracle: "binance", + }, + { + token: "WBNB", + address: "0x4200000000000000000000000000000000000006", + oracle: "binance", + }, + { + token: "XVS", + address: "0x3E2e61F1c075881F3fB8dd568043d8c221fd5c61", + oracle: "binance", + }, + { + token: "FDUSD", + address: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", + oracle: "binance", + }, + ], }; export const getOraclesData = async (): Promise => { From 4868926be37b57600301587bad4b81bfcc9c41d0 Mon Sep 17 00:00:00 2001 From: 0xlucian <0xluciandev@gmail.com> Date: Fri, 16 Feb 2024 12:11:10 +0200 Subject: [PATCH 2/2] fix: chainlink oracle deployment might not be available on some networks --- deploy/3-vip-based-configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/3-vip-based-configuration.ts b/deploy/3-vip-based-configuration.ts index 770bdbfd..021b1dc3 100644 --- a/deploy/3-vip-based-configuration.ts +++ b/deploy/3-vip-based-configuration.ts @@ -25,7 +25,7 @@ const configurePriceFeeds = async (hre: HardhatRuntimeEnvironment): Promise