diff --git a/contracts/ProxyLogics/InstaUniswapPool.sol b/contracts/ProxyLogics/InstaUniswapPool.sol index 0df0893..b03ae43 100644 --- a/contracts/ProxyLogics/InstaUniswapPool.sol +++ b/contracts/ProxyLogics/InstaUniswapPool.sol @@ -83,7 +83,7 @@ contract Helper { } -contract InstaUniswapPool is Helper { +contract Pool is Helper { /** * @dev Uniswap's pool basic details @@ -102,9 +102,8 @@ contract InstaUniswapPool is Helper { uint tokenReserve ) { - UniswapPool uniswapExchange = UniswapPool(poolAddress); poolAddress = getAddressPool(token); - totalSupply = uniswapExchange.totalSupply(); + totalSupply = IERC20(poolAddress).totalSupply(); (ethReserve, tokenReserve) = getBal(token, poolAddress); } @@ -155,4 +154,21 @@ contract InstaUniswapPool is Helper { IERC20(token).transfer(msg.sender, tokenReturned); } +} + + +contract InstaUniswapPool is Pool { + + uint public version; + + /** + * @dev setting up variables on deployment + * 1...2...3 versioning in each subsequent deployments + */ + constructor(uint _version) public { + version = _version; + } + + function() external payable {} + } \ No newline at end of file