Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EridianAlpha committed May 31, 2024
1 parent 195b2a5 commit b932111
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AavePM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit b932111

Please sign in to comment.