To ameliorate rounding errors and increase the theoretical minimum tick size for liquidity provision, pairs burn the first MINIMUM_LIQUIDITY pool tokens.
Happens automatically during the first liquidity provision.
Returns the reserves of token0 and token1 used to price trades and distribute liquidity. Also returns the block.timestamp (mod 2**32) of the last block during which an interaction occurred for the pair.
Returns the sum of the token's price for every second in the entire history of the contract.
Can be used to track accurate time-weighted average prices (TWAP)s across any time interval.
The TWAP is constructed by reading the cumulative price at the beginning and at the end of the desired TWAP interval. The difference in this cumulative price can then be divided by the length of the interval to create a TWAP for that period.
Allows a user to withdraw the difference between the current balance of the pair and 2^112 - 1 to the caller, if that difference is greater than 0.
Used as a recovery mechanism in case enough tokens are sent to a pair to overflow the two uint112 storage slots for reserves, which could otherwise cause trades to fail.