How it works

How automated market makers price trades

An automated market maker holds a pool of two assets and sets prices with a mathematical invariant curve instead of an order book. Each step below follows the next.

Step 01

Liquidity is deposited

Liquidity providers add matched amounts of two tokens to a shared smart contract pool.

Step 02

The invariant sets the curve

A formula such as x × y = k keeps the product of reserves constant, so price shifts as one side is bought.

Step 03

Swaps execute automatically

A trader sends tokens to the contract, which computes the output and updates reserves with no intermediary.

Try it yourself

Explore protocols on the live DEFI app

Inspect liquidity pools and swap mechanics directly on the Bloxology DEFI app. Follow each step with the concepts you just read.