Skip to content

Commit

Permalink
post deploy update
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jul 15, 2024
1 parent 210f59a commit 8d4b6b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions deployments/optimism/weth/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"tracking": {
"indexScale": "1e15",
"baseSupplySpeed": "0e15",
"baseBorrowSpeed": "0e15",
"baseSupplySpeed": "46296296296e0",
"baseBorrowSpeed": "34722222222e0",
"baseMinForRewards": "1e18"
},
"assets": {
Expand All @@ -30,23 +30,23 @@
"borrowCF": 0.88,
"liquidateCF": 0.93,
"liquidationFactor": 0.97,
"supplyCap": "0e18"
"supplyCap": "1_300e18"
},
"rETH": {
"address": "0x9Bcef72be871e61ED4fBbc7630889beE758eb81D",
"decimals": "18",
"borrowCF": 0.9,
"liquidateCF": 0.93,
"liquidationFactor": 0.97,
"supplyCap": "0e18"
"supplyCap": "470e18"
},
"WBTC": {
"address": "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
"decimals": "8",
"borrowCF": 0.8,
"liquidateCF": 0.85,
"liquidationFactor": 0.90,
"supplyCap": "0e8"
"supplyCap": "60e8"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default migration('1720515728_configurate_and_ens', {
];

// the description has speeds. speeds will be set up on on-chain proposal
const description = '# Initialize cWETHv3 on Optimism\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Optimism network. This proposal takes the governance steps recommended and necessary to initialize a Compound III WETH market on Optimism; upon execution, cWETHv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the [Comet scenario suite](https://github.com/compound-finance/comet/tree/main/scenario). The new parameters include setting the risk parameters based on the [recommendations from Gauntlet](https://www.comp.xyz/t/add-market-eth-on-optimism/5274/5).\n\nFurther detailed information can be found on the corresponding [proposal pull request](https://github.com/compound-finance/comet/pull/882) and [forum discussion](https://www.comp.xyz/t/add-market-eth-on-optimism/5274).\n\n\n## Proposal Actions\n\nThe first action bridges 10 ETH as seed reserves from Mainnet Timelock to Optimism L2 Timelock using OpL1StandardBridge.\n\nThe second action sets the Comet configuration and deploys a new Comet implementation on Optimism. This sends the encoded `setFactory`, `setConfiguration` and `deployAndUpgradeTo` calls across the bridge to the governance receiver on Optimism. It also calls `setRewardConfig` on the Optimism rewards contract, to establish Optimism’s bridged version of COMP as the reward token for the deployment and set the initial supply speed to be 4 COMP/day and borrow speed to be 3 COMP/day. The last two steps are to wrap ETH into WETH and transfer seed reserves into Comet\n\nThe third action updates the ENS TXT record `v3-official-markets` on `v3-additional-grants.compound-community-licenses.eth`, updating the official markets JSON to include the new Optimism cWETHv3 market.';
const description = '# Initialize cWETHv3 on Optimism\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Optimism network. This proposal takes the governance steps recommended and necessary to initialize a Compound III WETH market on Optimism; upon execution, cWETHv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the [Comet scenario suite](https://github.com/compound-finance/comet/tree/main/scenario). The new parameters include setting the risk parameters based on the [recommendations from Gauntlet](https://www.comp.xyz/t/add-market-eth-on-optimism/5274/5).\n\nFurther detailed information can be found on the corresponding [proposal pull request](https://github.com/compound-finance/comet/pull/882), [deploy market GitHub action run](https://github.com/woof-software/comet/actions/runs/9941213214/job/27464571077) and [forum discussion](https://www.comp.xyz/t/add-market-eth-on-optimism/5274).\n\n\n## Proposal Actions\n\nThe first action bridges 10 ETH as seed reserves from Mainnet Timelock to Optimism L2 Timelock using OpL1StandardBridge.\n\nThe second action sets the Comet configuration and deploys a new Comet implementation on Optimism. This sends the encoded `setFactory`, `setConfiguration` and `deployAndUpgradeTo` calls across the bridge to the governance receiver on Optimism. It also calls `setRewardConfig` on the Optimism rewards contract, to establish Optimism’s bridged version of COMP as the reward token for the deployment and set the initial supply speed to be 4 COMP/day and borrow speed to be 3 COMP/day. The last two steps are to wrap ETH into WETH and transfer seed reserves into Comet\n\nThe third action updates the ENS TXT record `v3-official-markets` on `v3-additional-grants.compound-community-licenses.eth`, updating the official markets JSON to include the new Optimism cWETHv3 market.';
const txn = await govDeploymentManager.retry(async () => {
return trace(await governor.propose(...(await proposal(actions, description))));
}
Expand Down Expand Up @@ -185,20 +185,20 @@ export default migration('1720515728_configurate_and_ens', {

// 2.
// uncomment on on-chain proposal PR
// const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);
// expect(stateChanges).to.deep.equal({
// rETH: {
// supplyCap: exp(470, 18)
// },
// wstETH: {
// supplyCap: exp(1_300, 18)
// },
// WBTC: {
// supplyCap: exp(60, 8)
// },
// baseTrackingSupplySpeed: exp(4 / 86400, 15, 18), // 46296296296
// baseTrackingBorrowSpeed: exp(3 / 86400, 15, 18), // 34722222222
// });
const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);
expect(stateChanges).to.deep.equal({
rETH: {
supplyCap: exp(470, 18)
},
wstETH: {
supplyCap: exp(1_300, 18)
},
WBTC: {
supplyCap: exp(60, 8)
},
baseTrackingSupplySpeed: exp(4 / 86400, 15, 18), // 46296296296
baseTrackingBorrowSpeed: exp(3 / 86400, 15, 18), // 34722222222
});

const config = await rewards.rewardConfig(comet.address);
expect(config.token).to.be.equal(COMP.address);
Expand Down

0 comments on commit 8d4b6b5

Please sign in to comment.