Skip to content

Commit

Permalink
chore: EmissionsController deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Dec 6, 2021
1 parent 23c8a44 commit 8303d31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 9 additions & 3 deletions tasks/deployEmissionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ task("deploy-emissions")
const emissionsController = await deployEmissionsController(signer, hre)

console.log(`Set RewardsDistributor in the networkAddressFactory to ${emissionsController.address}`)

const votiumBribeForwarder = await deployVotiumBribeForwarder(signer, hre)
console.log(`Set VotiumForwarder to ${votiumBribeForwarder.address}`)
})

task("deploy-bridge-forwarder", "Deploys a BridgeForwarder contract on mainnet for Polygon dials.")
Expand Down Expand Up @@ -74,6 +71,15 @@ task("deploy-basic-forwarder", "Deploys a basic rewards forwarder from the emiss
await deployBasicForwarder(signer, emissionsControllerAddress, taskArgs.recipient, hre, taskArgs.owner)
})

task("deploy-votium-forwarder", "Deploys a Votium forwarder from the emissions controller.")
.addOptionalParam("speed", "Defender Relayer speed param: 'safeLow' | 'average' | 'fast' | 'fastest'", "fast", types.string)
.setAction(async (taskArgs, hre) => {
const signer = await getSigner(hre, taskArgs.speed)

const votiumBribeForwarder = await deployVotiumBribeForwarder(signer, hre)
console.log(`Set VotiumForwarder contract name in networkAddressFactory to ${votiumBribeForwarder.address}`)
})

task("deploy-revenue-buy-back")
.addOptionalParam("speed", "Defender Relayer speed param: 'safeLow' | 'average' | 'fast' | 'fastest'", "fast", types.string)
.setAction(async (taskArgs, hre) => {
Expand Down
3 changes: 1 addition & 2 deletions tasks/utils/networkAddressFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ export const getChainAddress = (contractName: ContractNames, chain: Chain): stri
return "0xe595D67181D701A5356e010D9a58EB9A341f1DbD"
case "RewardsDistributor":
case "EmissionsController":
// TODO change after Emissions Controller deployment
return "0x04dfDfa471b79cc9E6E8C355e6C71F8eC4916C50"
return "0xFC33923d604b91579F045dFB36A6bdb885961C38"
case "PolygonRootChainManager":
return "0xA0c68C638235ee32657e8f720a23ceC1bFc77C77"
case "PolygonPoSBridge":
Expand Down

0 comments on commit 8303d31

Please sign in to comment.