File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ contract LiquidityPoolAave is LiquidityPool {
142
142
uint256 totalBorrowed = IERC20 (borrowTokenData.variableDebtTokenAddress).balanceOf (address (this ));
143
143
144
144
IAaveOracle oracle = IAaveOracle (AAVE_POOL_PROVIDER.getPriceOracle ());
145
+ // Oracle accepts a list of tokens to get prices, so we need to make a list.
145
146
address [] memory assets = new address [](1 );
146
147
assets[0 ] = borrowToken;
147
148
uint256 price = oracle.getAssetsPrices (assets)[0 ];
@@ -256,9 +257,9 @@ contract LiquidityPoolAave is LiquidityPool {
256
257
uint256 debt = IERC20 (borrowTokenData.variableDebtTokenAddress).balanceOf (address (this ));
257
258
258
259
IAaveOracle oracle = IAaveOracle (AAVE_POOL_PROVIDER.getPriceOracle ());
260
+ // Oracle accepts a list of tokens to get prices, so we need to make a list.
259
261
address [] memory assets = new address [](1 );
260
262
assets[0 ] = borrowToken;
261
-
262
263
tokenPrice = oracle.getAssetsPrices (assets)[0 ];
263
264
264
265
uint256 borrowDecimals = IERC20Metadata (borrowToken).decimals ();
You can’t perform that action at this time.
0 commit comments