Merge branch 'fix/wb-provider-eth-mock' into 'master'

Final fix for ETH balance calculations in getUserWalletBalances

See merge request aave-tech/protocol-v2!138
This commit is contained in:
The-3D 2020-11-10 09:13:31 +00:00
commit e907f91742

View File

@ -107,7 +107,7 @@ contract WalletBalanceProvider {
} }
balances[j] = balanceOf(user, reservesWithEth[j]); balances[j] = balanceOf(user, reservesWithEth[j]);
} }
balances[reservesWithEth.length] = balanceOf(user, MOCK_ETH_ADDRESS); balances[reserves.length] = balanceOf(user, MOCK_ETH_ADDRESS);
return (reservesWithEth, balances); return (reservesWithEth, balances);
} }