Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Morpher-io/MorpherProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Wiesner authored and Thomas Wiesner committed Jun 28, 2022
2 parents 368e244 + 30012e8 commit 280ac67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/addressesAndRoles.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,4 @@
"morpherColdTreasury": "0xE261D68bDa5BD518598E31320edE6E1E2d53682f"
}
}
}
}
20 changes: 11 additions & 9 deletions helpers/deployNewTradeEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 ==
Expand Down

0 comments on commit 280ac67

Please sign in to comment.