Skip to content

Commit

Permalink
feat: update configs with speeds and caps, update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed May 20, 2024
1 parent e5a8449 commit f8ab42e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
12 changes: 6 additions & 6 deletions deployments/optimism/usdt/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"borrowBase": 0.015
},
"tracking": {
"indexScale": "1e15",
"baseSupplySpeed": "0e15",
"baseBorrowSpeed": "0e15",
"indexScale": "1e15",
"baseSupplySpeed": "57_870_370_370e0",
"baseBorrowSpeed": "57_870_370_370e0",
"baseMinForRewards": "1000e6"
},
"assets": {
Expand All @@ -32,7 +32,7 @@
"borrowCF": 0.65,
"liquidateCF": 0.7,
"liquidationFactor": 0.8,
"supplyCap": "0e18"
"supplyCap": "400000e18"
},
"WETH": {
"address": "0x4200000000000000000000000000000000000006",
Expand All @@ -41,7 +41,7 @@
"borrowCF": 0.83,
"liquidateCF": 0.9,
"liquidationFactor": 0.95,
"supplyCap": "0e18"
"supplyCap": "1600e18"
},
"WBTC": {
"address": "0x68f180fcCe6836688e9084f035309E29Bf0A2095",
Expand All @@ -50,7 +50,7 @@
"borrowCF": 0.8,
"liquidateCF": 0.85,
"liquidationFactor": 0.95,
"supplyCap": "0e8"
"supplyCap": "60e8"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,20 +220,19 @@ export default migration('1713012100_configurate_and_ens', {

const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);

// uncomment on on-chain proposal PR
// expect(stateChanges).to.deep.equal({
// WBTC: {
// supplyCap: exp(400, 8)
// },
// WETH: {
// supplyCap: exp(11_000, 18)
// },
// OP: {
// supplyCap: exp(10_000_000, 18)
// },
// baseTrackingSupplySpeed: exp(5 / 86400, 15, 18),
// baseTrackingBorrowSpeed: exp(5 / 86400, 15, 18),
// });
expect(stateChanges).to.deep.equal({
WBTC: {
supplyCap: exp(60, 8)
},
WETH: {
supplyCap: exp(1600, 18)
},
OP: {
supplyCap: exp(400000, 18)
},
baseTrackingSupplySpeed: exp(5 / 86400, 15, 18),
baseTrackingBorrowSpeed: exp(5 / 86400, 15, 18),
});

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

0 comments on commit f8ab42e

Please sign in to comment.