Skip to content

Commit

Permalink
feat: update configuration and migration after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed Feb 6, 2025
1 parent 5a73237 commit 9122f35
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions deployments/base/usds/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
},
"tracking": {
"indexScale": "1e15",
"baseSupplySpeed": "0e0",
"baseBorrowSpeed": "0e0",
"baseMinForRewards": "1000e6"
"baseSupplySpeed": "2777777777770",
"baseBorrowSpeed": "138888888888e0",
"baseMinForRewards": "100000e18"
},
"assets": {
"sUSDS": {
Expand All @@ -31,7 +31,7 @@
"borrowCF": 0.93,
"liquidateCF": 0.95,
"liquidationFactor": 0.96,
"supplyCap": "0e18"
"supplyCap": "25000000e18"
},
"cbBTC": {
"address": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
Expand All @@ -40,7 +40,7 @@
"borrowCF": 0.8,
"liquidateCF": 0.85,
"liquidationFactor": 0.95,
"supplyCap": "0e8"
"supplyCap": "0.1e8"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ export default migration('1689893694_configurate_and_ens', {
} = await deploymentManager.getContracts();

// 1.
// const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);
// expect(stateChanges).to.deep.equal({
// sUSDS: {
// supplyCap: exp(25000000, 18)
// },
// baseTrackingSupplySpeed: exp(24 / 86400, 15, 18), // 173611111111
// baseTrackingBorrowSpeed: exp(12 / 86400, 15, 18), // 173611111111
// });
const stateChanges = await diffState(comet, getCometConfig, preMigrationBlockNumber);
expect(stateChanges).to.deep.equal({
sUSDS: {
supplyCap: exp(25000000, 18)
},
baseTrackingSupplySpeed: exp(24 / 86400, 15, 18), // 277777777777
baseTrackingBorrowSpeed: exp(12 / 86400, 15, 18), // 138888888888
});

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

0 comments on commit 9122f35

Please sign in to comment.