uint256 totalShares; // Stores the total amount of share issued for the pool uint256 totalToken1; // Stores the amount of Token1 locked in the pool uint256 totalToken2; // Stores the amount of Token2 locked in the pool uint256 K; // Algorithmic constant used to determine price (K = totalToken1 * totalToken2) uint256 constant PRECISION = 1_000_000; // Precision of 6 decimal places mapping(address => uint256) shares; // Stores the share holding of each provider mapping(address => uint256) token1Balance; // Stores the available balance of user outside of the AMM mapping(address => uint256) token2Balance;
0.4.18