Skip to content

Commit

Permalink
fix: Rename last test helper with utilizationRate naming
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Jan 10, 2022
1 parent 4e2c5e8 commit 8acfc1a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test-suites/helpers/utils/calculations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export const calcExpectedReserveDataAfterBorrow = (
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -465,7 +465,7 @@ export const calcExpectedReserveDataAfterBorrow = (
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -496,7 +496,7 @@ export const calcExpectedReserveDataAfterBorrow = (
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -602,7 +602,7 @@ export const calcExpectedReserveDataAfterRepay = (

// Update usage ratio because of debt change
[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -880,7 +880,7 @@ export const calcExpectedReserveDataAfterSwapRateMode = (
}

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -1020,7 +1020,7 @@ export const calcExpectedReserveDataAfterStableRateRebalance = (
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down Expand Up @@ -1248,7 +1248,7 @@ export const calcExpectedInterestRates = (
reserveIndex
];

const [borrowUsageRatio, supplyUsageRatio] = calcExpectedUtilizationRates(
const [borrowUsageRatio, supplyUsageRatio] = calcExpectedUsageRatios(
totalStableDebt,
totalVariableDebt,
availableLiquidity,
Expand Down Expand Up @@ -1345,7 +1345,7 @@ export const calcExpectedOverallBorrowRate = (
return overallBorrowRate;
};

export const calcExpectedUtilizationRates = (
export const calcExpectedUsageRatios = (
totalStableDebt: BigNumber,
totalVariableDebt: BigNumber,
availableLiquidity: BigNumber,
Expand Down Expand Up @@ -1562,7 +1562,7 @@ const updateLiquidityAndUsageRatios = (
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand All @@ -1576,7 +1576,7 @@ const updateTotalLiquidityAndUsageRatio = (expectedReserveData: ReserveData) =>
);

[expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] =
calcExpectedUtilizationRates(
calcExpectedUsageRatios(
expectedReserveData.totalStableDebt,
expectedReserveData.totalVariableDebt,
expectedReserveData.availableLiquidity,
Expand Down

0 comments on commit 8acfc1a

Please sign in to comment.