Skip to content

Commit

Permalink
updated mainnet artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
yudilevi committed Oct 26, 2023
1 parent 8d9b5c5 commit 936a637
Show file tree
Hide file tree
Showing 6 changed files with 772 additions and 1,021 deletions.
7 changes: 0 additions & 7 deletions deploy/scripts/000100-revoke-roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ const func: DeployFunction = async ({ getNamedAccounts }: HardhatRuntimeEnvironm
from: deployer
});

// renounce the vBNT ROLE_GOVERNOR role from the deployer
await renounceRole({
name: InstanceName.VBNTGovernance,
id: Roles.TokenGovernance.ROLE_GOVERNOR,
from: deployer
});

// renounce the ROLE_EMERGENCY_STOPPER role from the deployer
await renounceRole({
name: InstanceName.BancorNetwork,
Expand Down
13 changes: 6 additions & 7 deletions deploy/tests/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,7 @@ import { getNamedAccounts } from 'hardhat';
);
await expectRoleMembers(
vbntGovernance as any as AccessControlEnumerable,
Roles.TokenGovernance.ROLE_GOVERNOR,
isMainnet() ? [deployerV2] : [deployer]
);
await expectRoleMembers(
vbntGovernance as any as AccessControlEnumerable,
Roles.TokenGovernance.ROLE_MINTER,
isMainnet() ? [bntPool.address, liquidityProtection.address] : [bntPool.address]
Roles.TokenGovernance.ROLE_GOVERNOR
);

await expectRoleMembers(masterVault, Roles.Upgradeable.ROLE_ADMIN, [daoMultisig.address, network.address]);
Expand Down Expand Up @@ -337,6 +331,11 @@ import { getNamedAccounts } from 'hardhat';
// perform a few BNT deposit tests
const bntDepositAmount = toWei(10);

await vbntGovernance
.connect(foundationMultisig)
.grantRole(Roles.TokenGovernance.ROLE_GOVERNOR, daoMultisig.address);
await vbntGovernance.connect(daoMultisig).grantRole(Roles.TokenGovernance.ROLE_MINTER, bntPool.address);

for (let i = 0; i < 5; i++) {
const prevBNBNTAmount = await bnBNT.balanceOf(bntWhale.address);
const prevVBNTTokenAmount = await vbnt.balanceOf(bntWhale.address);
Expand Down
3 changes: 2 additions & 1 deletion deployments/mainnet/.migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@
"000060-bancor-network-pool-collection-type1-v11-upgrade": 1678818774,
"000061-upgrade-network-settings-v4": 1694606550,
"000062-pool-collection-type1-v12": 1694606727,
"000063-upgrade-network-v9": 1694606812
"000063-upgrade-network-v9": 1694606812,
"000064-upgrade-network-v10": 1698318798
}
90 changes: 55 additions & 35 deletions deployments/mainnet/BancorNetwork.json

Large diffs are not rendered by default.

202 changes: 118 additions & 84 deletions deployments/mainnet/BancorNetwork_Implementation.json

Large diffs are not rendered by default.

Loading

0 comments on commit 936a637

Please sign in to comment.