8000 Update the supply caps based on Gauntlet recommendations by jflatow · Pull Request #629 · compound-finance/comet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update the supply caps based on Gauntlet recommendations #629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export default migration('1666906928_raise_supply_caps_and_seed_reserves_and_rew
{
contract: configurator,
signature: "updateAssetSupplyCap(address,address,uint128)",
args: [comet.address, wstETH.address, exp(60_000, 18)], // XXX
args: [comet.address, wstETH.address, exp(80_000, 18)], // ~ $100M / $1225
}, {
contract: configurator,
signature: "updateAssetSupplyCap(address,address,uint128)",
args: [comet.address, cbETH.address, exp(66_000, 18)], // XXX
args: [comet.address, cbETH.address, exp(9_000, 18)], // ~ $10M / $1091
},

// 4. Deploy and upgrade to a new version of Comet
Expand Down Expand Up @@ -79,7 +79,7 @@ export default migration('1666906928_raise_supply_caps_and_seed_reserves_and_rew
args: [comet.address, exp(1_000, 18)],
},
];
const description = "# Initialize cWETHv3 on Ethereum"
const description = "# Initialize cWETHv3 on Ethereum" // XXX
const txn = await deploymentManager.retry(
async () => trace((await governor.propose(...await proposal(actions, description))))
);
Expand Down Expand Up @@ -111,10 +111,10 @@ export default migration('1666906928_raise_supply_caps_and_seed_reserves_and_rew

// 3. & 4.
const wstETHInfo = await comet.getAssetInfoByAddress(wstETH.address);
expect(wstETHInfo.supplyCap).to.be.equal(exp(60_000, 18));
expect(wstETHInfo.supplyCap).to.be.equal(exp(80_000, 18));

const cbETHInfo = await comet.getAssetInfoByAddress(cbETH.address);
expect(cbETHInfo.supplyCap).to.be.equal(exp(66_000, 18));
expect(cbETHInfo.supplyCap).to.be.equal(exp(9_000, 18));

// 5.
const config = await rewards.rewardConfig(comet.address);
Expand Down
0