Abandon all hope of cleverness
Yeah actually let's just deploy the mock price feed. Adding the price
feed isn't possible unless we go via TBTCSystem, and that requires the
90-day wait to elapse because of governance. The medianizer will be
restored for Ropsten in a later release.
@@ -10,11 +10,7 @@ const TBTCDepositToken = artifacts.require("TBTCDepositToken")
const FeeRebateToken = artifacts.require("FeeRebateToken")
const VendingMachine = artifacts.require("VendingMachine")
-const {
- BondedECDSAKeepFactoryAddress,
- ETHBTCMedianizer,
- RopstenETHBTCPriceFeed,
-} = require("./externals")
+const {BondedECDSAKeepFactoryAddress, ETHBTCMedianizer} = require("./externals")
module.exports = async function(deployer, network) {
// Don't enact this setup during unit testing.
@@ -57,21 +53,8 @@ module.exports = async function(deployer, network) {
if (network === "mainnet") {
// Inject mainnet price feeds.
await satWeiPriceFeed.initialize(tbtcSystem.address, ETHBTCMedianizer)
- } else if (network === "ropsten") {
- // Inject mock price feed as base.
- const ethBtcPriceFeedMock = await ethBtcPriceFeedMock.deployed()
- await satWeiPriceFeed.initialize(
- tbtcSystem.address,
- ethBtcPriceFeedMock.address,
- )
-
- // Add medianizer intermediary.
- await satWeiPriceFeed.addEthBtcFeed(RopstenETHBTCPriceFeed)
- // Disable mock feed so medianizer intermediary is active feed until we
- // choose to muck with the price.
- await ethBtcPriceFeedMock.setValue(0)
} else {
- // Inject mock price feeds.
+ // Inject mock price feed as base.
const ethBtcPriceFeedMock = await ETHBTCPriceFeedMock.deployed()
await satWeiPriceFeed.initialize(
tbtcSystem.address,
