Fetch owners from Ids update on Compound

This commit is contained in:
Samyak Jain 2021-01-22 19:46:09 +05:30
parent 7535345882
commit b5073684a7

View File

@ -72,7 +72,7 @@ contract Resolver is Helpers {
return tokensData;
}
function getPosition(
function getPositionByAddress(
address[] memory owners,
address[] memory cAddress
)
@ -89,4 +89,23 @@ contract Resolver is Helpers {
return _data;
}
function getPositionByAccountIds(
uint start,
uint end,
address[] memory cAddress
)
public
view
returns (datas[] memory)
{
address[] owners = getDSAWallets(start, end);
datas[] memory _data = new datas[](cAddress.length);
for (uint i = 0; i < cAddress.length; i++) {
_data[i] = datas(
getCompoundDataByToken(owners, cAddress[i])
);
}
return _data;
}
}