mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
minor bug fix
This commit is contained in:
parent
84d2703923
commit
8f69b46c77
|
@ -65,10 +65,10 @@ contract Resolver is Helpers {
|
|||
function getAaveDataByReserve(address[] memory owners, address reserve, AaveInterface aave) public view returns (AaveData[] memory) {
|
||||
AaveData[] memory tokensData = new AaveData[](owners.length);
|
||||
for (uint i = 0; i < owners.length; i++) {
|
||||
(uint collateral, uint debt, uint principalDebt,,,,,,,) = aave.getUserReserveData(reserve, owners[i])
|
||||
(uint collateral, uint debt,,,,,,,,) = aave.getUserReserveData(reserve, owners[i])
|
||||
tokensData[i] = AaveData(
|
||||
collateral,
|
||||
debt + principalDebt // TODO: is this right?
|
||||
debt
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user