mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Rename variable
This commit is contained in:
parent
03c0cb5c68
commit
18e96a47f9
|
@ -20,9 +20,9 @@ contract Resolver {
|
|||
|
||||
function getUnipairInfo(
|
||||
address owner,
|
||||
address[] memory tknAddress
|
||||
address[] memory lpTknAddress
|
||||
) public view returns (uint[] memory, UnipairInfo[] memory) {
|
||||
uint _length = tknAddress.length;
|
||||
uint _length = lpTknAddress.length;
|
||||
|
||||
uint[] memory tokensBal = new uint[](_length);
|
||||
UnipairInfo[] memory unipair = new UnipairInfo[](_length);
|
||||
|
@ -31,7 +31,7 @@ contract Resolver {
|
|||
address ethAddr = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
|
||||
|
||||
for (uint i = 0; i < _length; i++) {
|
||||
UnipairInterface lp = UnipairInterface(tknAddress[i]);
|
||||
UnipairInterface lp = UnipairInterface(lpTknAddress[i]);
|
||||
|
||||
tokensBal[i] = lp.balanceOf(owner);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user