diff --git a/docs/addressesAndRoles.json b/docs/addressesAndRoles.json index f99a9e3..eb50043 100644 --- a/docs/addressesAndRoles.json +++ b/docs/addressesAndRoles.json @@ -193,4 +193,4 @@ "morpherColdTreasury": "0xE261D68bDa5BD518598E31320edE6E1E2d53682f" } } -} \ No newline at end of file +} diff --git a/helpers/deployNewTradeEngine.js b/helpers/deployNewTradeEngine.js index a52b965..6d98409 100644 --- a/helpers/deployNewTradeEngine.js +++ b/helpers/deployNewTradeEngine.js @@ -32,6 +32,17 @@ module.exports = async function (callback) { ); console.log("New Trade Engine", newTradeEngine.address); + const morpherState = await MorpherState.at(contracts.MorpherState.address); + await morpherState.grantAccess(newTradeEngine.address, { + from: roles.owner, + }); + console.log("✅ Granted access for new Trade Engine"); + await morpherState.enableTransfers(newTradeEngine.address, { + from: roles.owner, + }); + console.log("✅ Granted Transfers for new Trade Engine"); + + const morpherOracle = await MorpherOracle.at(contracts.MorpherOracle.address); await morpherOracle.setTradeEngineAddress(newTradeEngine.address); console.log("✅ Set new Trade Engine in Oracle"); @@ -71,15 +82,6 @@ module.exports = async function (callback) { // ); } - const morpherState = await MorpherState.at(contracts.MorpherState.address); - await morpherState.grantAccess(newTradeEngine.address, { - from: roles.administrator, - }); - console.log("✅ Granted access for new Trade Engine"); - await morpherState.enableTransfers(newTradeEngine.address, { - from: roles.administrator, - }); - console.log("✅ Granted Transfers for new Trade Engine"); if ( addressesAndRoles[chain].contracts.MorpherTradeEngine.oldAddresses ==