Skip to content

Commit

Permalink
Update 1717936901_configurate_and_end.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jun 13, 2024
1 parent fea4ccb commit c3bdeac
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ export default migration('1717936901_configurate_and_end', {
expect(await WBTCInfo.supplyCap).to.be.eq(exp(250, 8));
expect(await GMXInfo.supplyCap).to.be.eq(exp(100_000, 18));

// check speeds
expect(await comet.baseTrackingSupplySpeed()).to.be.equal(exp(12 / 86400, 15, 18));
expect(await comet.baseTrackingBorrowSpeed()).to.be.equal(exp(10 / 86400, 15, 18));

expect(await comet.pauseGuardian()).to.be.eq('0x78E6317DD6D43DdbDa00Dce32C2CbaFc99361a9d');

// 2. & 3. & 4. & 5.
Expand Down Expand Up @@ -317,12 +321,5 @@ export default migration('1717936901_configurate_and_end', {
},
],
});
console.log(exp(12 / 86400, 15, 18).toString()); // 12 * 1e15 / 86400 = 13888888888888888
console.log(exp(10 / 86400, 15, 18).toString()); // 10 * 1e15 / 86400 = 11574074074074074


// 8.
expect(await comet.baseTrackingSupplySpeed()).to.be.equal(exp(12 / 86400, 15, 18)); // 12 * 1e15 / 86400 =
expect(await comet.baseTrackingBorrowSpeed()).to.be.equal(exp(10 / 86400, 15, 18));
}
});

0 comments on commit c3bdeac

Please sign in to comment.