Hey guys, I'm really interested in exploring the math behind Automated Market Makers (AMMs) like Uniswap and SushiSwap. I've been reading up on the topic and I'm still trying to wrap my head around how they optimize for liquidity and minimize slippage. Has anyone else dived deep into the math behind these protocols?