diff --git a/src/AaveFunctions.sol b/src/AaveFunctions.sol index 36421f7..2cff327 100644 --- a/src/AaveFunctions.sol +++ b/src/AaveFunctions.sol @@ -130,22 +130,6 @@ contract AaveFunctions is TokenSwaps { (totalCollateralBase, totalDebtBase, availableBorrowsBase, currentLiquidationThreshold, ltv, healthFactor); } - /// @notice // TODO: Add comment. - function _getTotalDebtInterest(uint256 totalDebtBase, uint256 reinvestedDebtTotal, uint256 withdrawnUSDCTotal) - internal - pure - returns (uint256 interest) - { - interest = 0; - if ((totalDebtBase - (reinvestedDebtTotal * 1e2) - (withdrawnUSDCTotal * 1e2)) < 0) { - revert IAavePM.AavePM__NegativeInterestCalc(); - } else { - uint256 interestInBaseUnits = (totalDebtBase - (reinvestedDebtTotal * 1e2) - (withdrawnUSDCTotal * 1e2)); - interest = interestInBaseUnits / 1e2; - } - return interest; - } - /// @notice // TODO: Add comment. function _getTotalCollateralDelta( uint256 totalCollateralBase, diff --git a/src/interfaces/IAavePM.sol b/src/interfaces/IAavePM.sol index 03b677f..fdee4bd 100644 --- a/src/interfaces/IAavePM.sol +++ b/src/interfaces/IAavePM.sol @@ -116,7 +116,6 @@ interface IAavePM { function getSlippageToleranceMaximum() external pure returns (uint16 slippageToleranceMaximum); function getContractBalance(string memory _identifier) external view returns (uint256 contractBalance); function getRoleMembers(string memory _roleString) external view returns (address[] memory); - function getTotalDebtInterest() external view returns (uint256 totalDebtInterest); function getWithdrawnUSDCTotal() external view returns (uint256 withdrawnUSDCTotal); function getReinvestedDebtTotal() external view returns (uint256 reinvestedDebtTotal); function getTotalCollateralDelta() external view returns (uint256 totalCollateralDelta, bool isPositive);