@venusprotocol/oracle 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -170,11 +170,9 @@ const func: DeployFunction = async function ({ network }: HardhatRuntimeEnvironm
|
|
|
170
170
|
if (network.live) {
|
|
171
171
|
console.log(`Configuring ${oracle} oracle for ${asset.token}`);
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
oraclesData[oracle]?.getTokenConfig(asset, networkName),
|
|
177
|
-
);
|
|
173
|
+
const getTokenConfig = oraclesData[oracle].getTokenConfig;
|
|
174
|
+
if (oraclesData[oracle].underlyingOracle.address != binanceOracle.address && getTokenConfig != undefined) {
|
|
175
|
+
const tx = await oraclesData[oracle].underlyingOracle?.setTokenConfig(getTokenConfig(asset, networkName));
|
|
178
176
|
tx.wait(1);
|
|
179
177
|
}
|
|
180
178
|
|