-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added metis rebase controller deployment scripts
- Loading branch information
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
scripts/prod/1.0.0-metis-staking/4-deploy-rebase-controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { ethers } from 'hardhat' | ||
import { deploy, getContract, updateDeployments } from '../../utils/deployment' | ||
|
||
const emergencyPauser = '' // address authorized to pause pool in case of emergency | ||
|
||
async function main() { | ||
const priorityPool = await getContract('METIS_PriorityPool') | ||
const stakingPool = await getContract('METIS_StakingPool') | ||
|
||
const rebaseController = await deploy('RebaseController', [ | ||
stakingPool.target, | ||
priorityPool.target, | ||
ethers.ZeroAddress, | ||
emergencyPauser, | ||
]) | ||
console.log('METIS_RebaseController deployed: ', rebaseController.target) | ||
|
||
updateDeployments( | ||
{ | ||
METIS_RebaseController: rebaseController.target, | ||
}, | ||
{ | ||
METIS_RebaseController: 'RebaseController', | ||
} | ||
) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) |
File renamed without changes.
File renamed without changes.