Skip to content

Commit

Permalink
feat: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquinBattilana committed Oct 14, 2024
1 parent 613e577 commit a80dc70
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/math-utils/src/pool-math.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
getCompoundedBalance,
calculateLinearInterest,
getReserveNormalizedIncome,
getCompoundedStableBalance,
calculateHealthFactorFromBalances,
calculateHealthFactorFromBalancesBigUnits,
calculateAvailableBorrowsMarketReferenceCurrency,
Expand Down Expand Up @@ -106,19 +105,6 @@ describe('pool math', () => {
);
});

it('should calculate compounded stable balances', () => {
const compoundedStableBalanceRequest = {
principalBalance: 2000000000000000000,
userStableRate: 500000000000000000,
currentTimestamp: 1749942229,
lastUpdateTimestamp: 1629942229,
};
const compoundedStableBalance = getCompoundedStableBalance(
compoundedStableBalanceRequest,
);
expect(compoundedStableBalance.toFixed()).toEqual('2000000003805175038');
});

it('should calculate health factor', () => {
const minHealthFactorRequest = {
collateralBalanceMarketReferenceCurrency: 100000000000000000,
Expand Down

0 comments on commit a80dc70

Please sign in to comment.