Skip to content

Commit 8e8447f

Browse files
authored
Add comments LiquidityPoolAave.sol
1 parent a77b426 commit 8e8447f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/LiquidityPoolAave.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ contract LiquidityPoolAave is LiquidityPool {
142142
uint256 totalBorrowed = IERC20(borrowTokenData.variableDebtTokenAddress).balanceOf(address(this));
143143

144144
IAaveOracle oracle = IAaveOracle(AAVE_POOL_PROVIDER.getPriceOracle());
145+
// Oracle accepts a list of tokens to get prices, so we need to make a list.
145146
address[] memory assets = new address[](1);
146147
assets[0] = borrowToken;
147148
uint256 price = oracle.getAssetsPrices(assets)[0];
@@ -256,9 +257,9 @@ contract LiquidityPoolAave is LiquidityPool {
256257
uint256 debt = IERC20(borrowTokenData.variableDebtTokenAddress).balanceOf(address(this));
257258

258259
IAaveOracle oracle = IAaveOracle(AAVE_POOL_PROVIDER.getPriceOracle());
260+
// Oracle accepts a list of tokens to get prices, so we need to make a list.
259261
address[] memory assets = new address[](1);
260262
assets[0] = borrowToken;
261-
262263
tokenPrice = oracle.getAssetsPrices(assets)[0];
263264

264265
uint256 borrowDecimals = IERC20Metadata(borrowToken).decimals();

0 commit comments

Comments
 (0)