From b932111a5e56b726ed1bad99f7f339ce23f418f5 Mon Sep 17 00:00:00 2001 From: Eridian <86061486+EridianAlpha@users.noreply.github.com> Date: Fri, 31 May 2024 20:45:43 +0100 Subject: [PATCH] Update comments --- src/AavePM.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AavePM.sol b/src/AavePM.sol index 073a988..e956e88 100644 --- a/src/AavePM.sol +++ b/src/AavePM.sol @@ -294,6 +294,8 @@ contract AavePM is uint256 suppliedCollateral = _convertExistingBalanceToWstETHAndSupplyToAave( this, getContractAddress("aavePool"), getTokenAddress("wstETH") ); + + // If any collateral was supplied, update the total. if (suppliedCollateral > 0) s_suppliedCollateralTotal += suppliedCollateral; // During a rebalance, I want to know how much debt was repaid. @@ -307,6 +309,8 @@ contract AavePM is uint256 suppliedCollateral = _convertExistingBalanceToWstETHAndSupplyToAave( this, getContractAddress("aavePool"), getTokenAddress("wstETH") ); + + // If any collateral was supplied, update the total. if (suppliedCollateral > 0) s_suppliedCollateralTotal += suppliedCollateral; // Reinvest any excess debt or collateral.