Automated Market Maker Crypto: How It Works
An automated market maker (AMM) is a way to organize trading in which software-defined rules and liquidity pools support swaps, rather than relying on the conventional centralized-exchange model of an off-chain limit order book. In the AMM-based decentralized-exchange model described by the Bank for International Settlements (BIS), smart contracts implement trading through liquidity pools, and transactions settle when included in a blockchain block. That description is a useful system boundary: it covers a trading mechanism and its settlement path, not every service surrounding a crypto asset or every design called a decentralized exchange.
Understanding the distinction matters for builders and operators. A user-facing interface may help construct and submit a transaction, but the documented AMM mechanism is the contracts, pools, and blockchain inclusion process. The details of pool rules, transaction ordering, and supporting services depend on the particular implementation. The general model therefore explains how decentralized swaps can occur without an exchange maintaining the familiar off-chain order book, but it does not establish that every AMM works identically or that a swap will execute at a particular price or time.
What Automated Market Maker Crypto means
A centralized crypto exchange commonly maintains off-chain records of outstanding buy and sell orders in a limit order book. The order book records bids and offers, and the venue uses its matching process to connect them. Individual centralized venues can add other matching models and order types, so even this description is not universal.
An AMM-based decentralized exchange uses a different organizing mechanism. Trading is implemented through smart contracts and liquidity pools. Instead of requiring a user’s order to match a particular resting order in a conventional book, the swap interacts with a pool according to the contract’s rules. The transaction is then settled when it is included in a blockchain block. This replaces one matching arrangement with another; it does not remove the need for executable rules, assets available in pools, or blockchain settlement.
The term “automated” should be read narrowly. It describes trading governed by programmatic rules, not a claim that every part of a trading experience is autonomous. Interfaces, routing, wallet signing, transaction submission, and network operation may involve separate systems or actors. The accepted evidence establishes the contract-and-pool model and block-based settlement, but does not specify a universal contract formula, fee schedule, pool design, or interface architecture.
The term “decentralized” also does not by itself settle questions about control. A contract-based swap can still depend on the particular software, blockchain, transaction pathway, and services a user or operator chooses. Assessment should distinguish what the contract executes from what surrounding systems do, rather than treating a label as evidence of a uniform trust model.
Core components of Automated Market Maker Crypto
The core architecture can be understood through four connected elements:
- Smart contracts: The BIS model describes contracts as implementing trading. Their actual rules are implementation-specific; the general description does not establish that different contracts use the same pricing or pool logic.
- Liquidity pools: These are the pools through which the AMM-based exchange implements trading. The pool’s available depth matters to execution: BIS identifies pool depth as one factor that can affect an AMM swap before block inclusion.
- A transaction and blockchain: A swap is represented as a transaction, and settlement in the described model occurs when that transaction is included in a blockchain block. The path between preparing a transaction and block inclusion is therefore part of the operating model, not an incidental detail.
- Interfaces and transaction services: These may be used to prepare or submit a swap, but the accepted claims do not prescribe a single interface, wallet, or transaction-submission service. Teams should map these dependencies for the implementation under review instead of assuming they are part of the pool contract.
These elements form a dependency chain. The contract supplies execution rules; the pool supplies the trading venue described by those rules; a transaction expresses the requested operation; and blockchain inclusion supplies the stated settlement point. A disruption or change at one layer may affect the user’s experience without changing the definition of an AMM itself. Whether a particular system has additional routing, custody, or operational components must be established from its own documentation.
This architecture differs from the described centralized-exchange arrangement in where the trading records and execution live. A centralized venue commonly maintains its limit-order-book records off-chain. In the AMM DEX model, trading is implemented through smart contracts and pools, with settlement tied to blockchain inclusion. This is a comparison of these documented models, not a claim that all centralized exchanges or all decentralized exchanges share one architecture.
How Automated Market Maker Crypto works
A high-level swap flow can be traced in stages. Exact interfaces and transaction fields vary by implementation; the following is the system-level path supported by the accepted claims.
- A participant prepares a swap. The participant uses a chosen interface or other transaction method to specify an intended operation. The source pack does not define a universal interface or prescribe how a wallet signs or submits the transaction, so those steps must be verified for the system being evaluated.
- The transaction targets the AMM mechanism. In the documented AMM DEX model, smart contracts and liquidity pools implement trading. The transaction is processed under the relevant contract’s rules; the general model does not specify one formula or guarantee a particular execution result.
- The transaction enters an execution and ordering environment. On public blockchains, transaction visibility and execution ordering can matter before a block includes the swap. BIS identifies public transaction visibility, execution ordering, pool depth, and price impact as factors that can affect an AMM swap before block inclusion. Other designs—including private order flow, batch auctions, encrypted mempools, rollups, and other approaches—can alter the ordering model.
- The transaction is included in a block. In the BIS model, transactions settle when included in a blockchain block. Until that point, the submitted transaction has not reached the stated settlement event. The accepted claims do not define a universal confirmation threshold or recovery procedure.
- The result is interpreted by the participant’s tools. An interface or other system may display transaction status and resulting balances, but display behavior is implementation-dependent. Teams should verify how their chosen tools identify block inclusion and report transaction outcomes rather than treating a screen status as a general protocol guarantee.
This sequence clarifies why “the AMM price” is not enough to characterize execution. A swap interacts with pool depth, can have price impact, and passes through a transaction-ordering environment before inclusion. Market liquidity is multidimensional: it reflects the time and expense of buying or selling, including spread, transaction cost, price impact, and immediacy. It also changes with transaction size and market conditions. The presence of a pool therefore does not, on its own, establish that every trade can be completed quickly or with low impact.
Trust and control boundaries
An AMM’s contracts and pools define part of the execution environment, but the complete operational path can include other components. A practical review should separate at least three questions:
- What is enforced by the trading contract? Consult implementation-specific documentation and, where applicable, the deployed contract’s verified behavior. The accepted claims establish that smart contracts implement AMM trading, not that every contract has the same controls or has been independently validated.
- What happens before block inclusion? Transaction visibility and ordering can affect swaps on public blockchains. The ordering model may differ where a design uses private order flow, batch auctions, encrypted mempools, rollups, or other mechanisms. A claim about one public-chain pathway should not be generalized to all AMM execution environments.
- Which surrounding services are involved? An interface or transaction service may be separate from the pool contracts. The source pack does not establish who operates any specific service, whether it holds assets, or what continuity or recovery process it provides. These are implementation questions that require direct evidence.
This separation also prevents an overly broad use of “decentralized.” The term does not answer who controls an interface, what transaction pathway is used, or how a particular contract behaves. Nor does the AMM model imply the business structure of a centralized exchange. BIS notes that centralized crypto exchange operators may combine third-party trading, proprietary trading, margin lending, token issuance, and custody, but not every exchange performs every function; combining roles can create operational dependencies and conflicts. That observation is about CEX business functions, not an assertion that AMMs have the same structure.
Limitations and failure modes
AMMs do not eliminate execution trade-offs. Pool depth and price impact can affect a swap, while transaction visibility and ordering can affect what happens before block inclusion. Because market liquidity includes time, expense, spread, transaction cost, price impact, and immediacy, a single liquidity indicator cannot describe every execution condition. These dimensions vary with trade size and market conditions.
The transaction also depends on blockchain inclusion for settlement in the documented model. A submitted transaction and a settled transaction are therefore distinct states. The source pack does not establish how long inclusion takes, what fees apply, whether a transaction can be replaced or canceled, or how a failed transaction is recovered. Those questions are protocol-, network-, and tool-specific and should not be answered from the generic AMM definition.
Finally, model-level descriptions are not security findings. The accepted claims do not establish that a particular contract is free of defects, that an interface is reliable, or that assets can be recovered after an operational problem. They also do not establish a universal pool formula, pricing outcome, or protection against adverse ordering. Teams should treat these as evidence questions for the implementation rather than infer guarantees from the AMM label.
What teams should verify
A technical assessment can follow the transaction path and gather evidence at each layer:
- Identify the exact design. Confirm that the system uses an AMM-based DEX model with smart contracts and pools, or determine whether it instead uses an order book, auction, intent-based, cross-chain, or hybrid execution path. DEX designs can differ, so the label alone is insufficient.
- Read the contract and pool documentation. Establish which contracts implement trading, how the relevant pool is identified, and what rules the implementation documents. Do not infer a formula, fee, or control from the general AMM description.
- Map the transaction lifecycle. Record how an operation is prepared and submitted, what chain or execution environment it targets, and what evidence marks block inclusion and settlement. Confirm how the chosen interface reports these stages.
- Assess ordering assumptions. Determine whether execution occurs in a public transaction environment or uses a different model. Check whether the implementation documents private order flow, batch auctions, encrypted mempools, rollups, or another approach, and avoid applying public-blockchain findings unchanged where the pathway differs.
- Evaluate liquidity in context. Consider pool depth alongside transaction size, price impact, spread, transaction cost, and immediacy. These dimensions can change with market conditions; a pool’s existence is not proof of a particular execution quality.
- Separate protocol evidence from service claims. Identify which functions belong to contracts and which depend on interfaces or other operators. Seek implementation-specific evidence for operational, custody, and recovery questions; the general AMM model does not resolve them.
- Record scope and unknowns. Note the chain, contracts, interface, transaction pathway, and date of the evidence reviewed. Keep documented behavior distinct from assumptions, especially when comparing deployments or designs.
The central takeaway is architectural: an AMM-based decentralized exchange implements trading through smart contracts and liquidity pools, with transactions settling when included in a blockchain block. That mechanism enables a pool-based alternative to the commonly described centralized limit-order-book model. Its actual execution and operational characteristics still depend on the implementation, transaction-ordering environment, pool depth, and surrounding services—each of which should be verified rather than assumed.
Sources and references
- The Future Monetary System — Bank for International Settlements; retrieved 2026-10-18.
- The Anatomy of Decentralised Exchanges — Bank for International Settlements; retrieved 2026-10-18.
- Trading in the DeFi era: automated market-makers — Bank for International Settlements; retrieved 2026-10-18.
- Market and funding liquidity - an overview — Bank for International Settlements; retrieved 2026-10-18.