mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix getUserWalletBalances of WalletBalanceProvider - 2
This commit is contained in:
parent
1d0dfb443f
commit
206d33eaa6
|
@ -96,7 +96,7 @@ contract WalletBalanceProvider {
|
||||||
|
|
||||||
uint256[] memory balances = new uint256[](reservesWithEth.length);
|
uint256[] memory balances = new uint256[](reservesWithEth.length);
|
||||||
|
|
||||||
for (uint256 j = 0; j < reservesWithEth.length; j++) {
|
for (uint256 j = 0; j < reserves.length; j++) {
|
||||||
ReserveConfiguration.Map memory configuration = pool.getConfiguration(reservesWithEth[j]);
|
ReserveConfiguration.Map memory configuration = pool.getConfiguration(reservesWithEth[j]);
|
||||||
|
|
||||||
(bool isActive, , , ) = configuration.getFlagsMemory();
|
(bool isActive, , , ) = configuration.getFlagsMemory();
|
||||||
|
@ -107,6 +107,7 @@ contract WalletBalanceProvider {
|
||||||
}
|
}
|
||||||
balances[j] = balanceOf(user, reservesWithEth[j]);
|
balances[j] = balanceOf(user, reservesWithEth[j]);
|
||||||
}
|
}
|
||||||
|
balances[reservesWithEth.length] = balanceOf(user, MOCK_ETH_ADDRESS);
|
||||||
|
|
||||||
return (reservesWithEth, balances);
|
return (reservesWithEth, balances);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user