Exploring Liquidity Pools: A Mathematical Perspective