What Is a “Liquidity Pool” and How Does It Relate to TWAP Calculation?
A liquidity pool is a smart contract holding a pair of crypto assets that enables trading on a DEX. A TWAP oracle calculates its price by sampling the price of an asset from a liquidity pool at regular intervals and averaging those samples over time.
The pool's continuous trading activity provides the raw, time-stamped price data necessary for the TWAP calculation.