What Is an Automated Market Maker (AMM) and How Does It Relate to Smart Contracts?
An AMM is a smart contract that holds a pool of tokens and uses a mathematical formula to determine the price of assets. It facilitates decentralized trading without the need for a traditional order book or intermediaries.
Users trade against the pool, and the smart contract automatically executes the swap based on the liquidity and the formula.