From 18e96a47f97b3fa20fd0b4153123161222ed251b Mon Sep 17 00:00:00 2001 From: Mubaris NK Date: Tue, 22 Dec 2020 20:17:58 +0530 Subject: [PATCH] Rename variable --- contracts/protocols/uniswap_lp.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/protocols/uniswap_lp.sol b/contracts/protocols/uniswap_lp.sol index 83c2594..e0ae6b1 100644 --- a/contracts/protocols/uniswap_lp.sol +++ b/contracts/protocols/uniswap_lp.sol @@ -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);