// Returns the balance of the user function getMyHoldings() external view returns(uint256 amountToken1, uint256 amountToken2, uint256 myShare) { amountToken1 = token1Balance[msg.sender]; amountToken2 = token2Balance[msg.sender]; myShare = shares[msg.sender]; } // Returns the total amount of tokens locked in the pool and the total shares issued corresponding to it function getPoolDetails() external view returns(uint256, uint256, uint256) { return (totalToken1, totalToken2, totalShares); }
0.4.18