mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Fetch owners from Ids update on Compound
This commit is contained in:
parent
7535345882
commit
b5073684a7
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user