Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
n00b21337 committed Sep 11, 2024
1 parent 9ceb9c7 commit e9d1565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/main/008_deploy_roles_oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const func: DeployFunction = async function ({ deployments, getNamedAccounts })
if (await read('StakeRegistry', { from: deployer }, 'hasRole', adminRole)) {
const redisAddress = (await get('Redistribution')).address;
const updaterRole = await read('PriceOracle', 'PRICE_UPDATER_ROLE');
// We need to do this here and not in constructor as oracle is deployed before redis in order of deployment so it would be old
// redis assigned, could be solved with calculating the contract address
await execute('PriceOracle', { from: deployer }, 'grantRole', updaterRole, redisAddress);
} else {
log('DEPLOYER NEEDS TO HAVE ADMIN ROLE TO ASSIGN THE REDISTRIBUTION ROLE, PLEASE ASSIGN IT OR GRANT ROLE MANUALLY');
Expand Down

0 comments on commit e9d1565

Please sign in to comment.