From 8acfc1a40683bb6a051de7a4c7784baf24f1c209 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Mon, 10 Jan 2022 09:39:09 +0100 Subject: [PATCH] fix: Rename last test helper with utilizationRate naming --- test-suites/helpers/utils/calculations.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test-suites/helpers/utils/calculations.ts b/test-suites/helpers/utils/calculations.ts index e78b45a48..4567a1576 100644 --- a/test-suites/helpers/utils/calculations.ts +++ b/test-suites/helpers/utils/calculations.ts @@ -431,7 +431,7 @@ export const calcExpectedReserveDataAfterBorrow = ( ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -465,7 +465,7 @@ export const calcExpectedReserveDataAfterBorrow = ( ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -496,7 +496,7 @@ export const calcExpectedReserveDataAfterBorrow = ( ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -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, @@ -880,7 +880,7 @@ export const calcExpectedReserveDataAfterSwapRateMode = ( } [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -1020,7 +1020,7 @@ export const calcExpectedReserveDataAfterStableRateRebalance = ( ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -1248,7 +1248,7 @@ export const calcExpectedInterestRates = ( reserveIndex ]; - const [borrowUsageRatio, supplyUsageRatio] = calcExpectedUtilizationRates( + const [borrowUsageRatio, supplyUsageRatio] = calcExpectedUsageRatios( totalStableDebt, totalVariableDebt, availableLiquidity, @@ -1345,7 +1345,7 @@ export const calcExpectedOverallBorrowRate = ( return overallBorrowRate; }; -export const calcExpectedUtilizationRates = ( +export const calcExpectedUsageRatios = ( totalStableDebt: BigNumber, totalVariableDebt: BigNumber, availableLiquidity: BigNumber, @@ -1562,7 +1562,7 @@ const updateLiquidityAndUsageRatios = ( ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity, @@ -1576,7 +1576,7 @@ const updateTotalLiquidityAndUsageRatio = (expectedReserveData: ReserveData) => ); [expectedReserveData.borrowUsageRatio, expectedReserveData.supplyUsageRatio] = - calcExpectedUtilizationRates( + calcExpectedUsageRatios( expectedReserveData.totalStableDebt, expectedReserveData.totalVariableDebt, expectedReserveData.availableLiquidity,