Skip to content

Commit

Permalink
feat: update caps, speeds and description
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed Oct 9, 2024
1 parent a60cc43 commit 2a78064
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
12 changes: 6 additions & 6 deletions deployments/base/aero/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": "173611111111e0",
"baseBorrowSpeed": "173611111111e0",
"baseMinForRewards": "1000e18"
},
"assets": {
Expand All @@ -30,31 +30,31 @@
"borrowCF": 0.6,
"liquidateCF": 0.65,
"liquidationFactor": 0.75,
"supplyCap": "0e18"
"supplyCap": "7500e18"
},
"USDC": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"decimals": "6",
"borrowCF": 0.65,
"liquidateCF": 0.7,
"liquidationFactor": 0.8,
"supplyCap": "0e6"
"supplyCap": "30000000e6"
},
"wstETH": {
"address": "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
"decimals": "18",
"borrowCF": 0.6,
"liquidateCF": 0.65,
"liquidationFactor": 0.75,
"supplyCap": "0e18"
"supplyCap": "5000e18"
},
"cbBTC": {
"address": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
"decimals": "8",
"borrowCF": 0.6,
"liquidateCF": 0.65,
"liquidationFactor": 0.75,
"supplyCap": "0e8"
"supplyCap": "150e8"
}
}
}
34 changes: 17 additions & 17 deletions deployments/base/aero/migrations/1728096598_configurate_and_ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default migration('1728096598_configurate_and_ens', {
},
];

const description = '# Initialize cAEROv3 on Base network\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Base network. This proposal takes the governance steps recommended and necessary to initialize a Compound III AERO market on Base; upon execution, cAEROv3 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 off of the [recommendations from Gauntlet](https://www.comp.xyz/t/gauntlet-base-aero-comet-recommendations/5790).\n\nFurther detailed information can be found on the corresponding [proposal pull request](https://github.com/compound-finance/comet/pull/937), [deploy market GitHub action run]() and [forum discussion](https://www.comp.xyz/t/gauntlet-base-aero-comet-recommendations/5790).\n\n\n## Proposal Actions\n\nThe first proposal action sets the CometFactory for the new Comet instance in the existing Configurator.\n\nThe second action configures the Comet instance in the Configurator.\n\nThe third action deploys an instance of the newly configured factory and upgrades the Comet instance to use that implementation.\n\nThe fourth action configures the existing rewards contract for the newly deployed Comet instance.\n\nTODO: Seed reserves.\n\nThe sixth 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 Ethereum Mainnet cwstETHv3 market.';
const description = '# Initialize cAEROv3 on Base network\n\n## Proposal summary\n\nCompound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Base network. This proposal takes the governance steps recommended and necessary to initialize a Compound III AERO market on Base; upon execution, cAEROv3 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 off of the [recommendations from Gauntlet](https://www.comp.xyz/t/gauntlet-base-aero-comet-recommendations/5790).\n\nFurther detailed information can be found on the corresponding [proposal pull request](https://github.com/compound-finance/comet/pull/937), [deploy market GitHub action run](https://github.com/woof-software/comet/actions/runs/11259792818) and [forum discussion](https://www.comp.xyz/t/gauntlet-base-aero-comet-recommendations/5790).\n\n\n## Proposal Actions\n\nThe first proposal action sets the CometFactory for the new Comet instance in the existing Configurator.\n\nThe second action configures the Comet instance in the Configurator.\n\nThe third action deploys an instance of the newly configured factory and upgrades the Comet instance to use that implementation.\n\nThe fourth action configures the existing rewards contract for the newly deployed Comet instance.\n\nTODO: Seed reserves.\n\nThe sixth 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 Ethereum Mainnet cwstETHv3 market.';
const txn = await govDeploymentManager.retry(async () =>
trace(await governor.propose(...(await proposal(actions, description))))
);
Expand All @@ -141,22 +141,22 @@ export default migration('1728096598_configurate_and_ens', {
const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);

// uncomment on on-chain proposal PR
// expect(stateChanges).to.deep.equal({
// USDC: {
// supplyCap: exp(30000000, 6)
// },
// WETH: {
// supplyCap: exp(7500, 18)
// },
// wstETH: {
// supplyCap: exp(5000, 18)
// },
// cbBTC: {
// supplyCap: exp(150, 8)
// },
// baseTrackingSupplySpeed: exp(15 / 86400, 15, 18), // 173611111111
// baseTrackingBorrowSpeed: exp(15 / 86400, 15, 18), // 173611111111
// });
expect(stateChanges).to.deep.equal({
USDC: {
supplyCap: exp(30000000, 6)
},
WETH: {
supplyCap: exp(7500, 18)
},
wstETH: {
supplyCap: exp(5000, 18)
},
cbBTC: {
supplyCap: exp(150, 8)
},
baseTrackingSupplySpeed: exp(15 / 86400, 15, 18), // 173611111111
baseTrackingBorrowSpeed: exp(15 / 86400, 15, 18), // 173611111111
});

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

0 comments on commit 2a78064

Please sign in to comment.