AMM Evolution - From Bancor to XRPL | AMMs on XRPL | XRP Academy - XRP Academy
Skip to main content
beginner55 min

AMM Evolution - From Bancor to XRPL

Learning Objectives

Trace the history of AMMs from academic concept through Bancor, Uniswap, and beyond

Explain why AMMs exist and what problems they solve that order books cannot

Compare major AMM platforms by TVL, volume, and design philosophy

Evaluate XRPL's positioning in the AMM landscape with honest assessment

Identify key innovations that differentiated successful AMM implementations

For most of financial history, trading meant order books. A buyer posts a price they'll pay. A seller posts a price they'll accept. When prices match, a trade executes. Simple, effective, proven across centuries.

Then cryptocurrency happened.

By 2017, thousands of tokens existed. Each token theoretically needed trading pairs against dozens of other tokens. Traditional order books require market makers—professional traders who commit capital to provide continuous buy and sell quotes. But who would market-make for the 5,000th altcoin? Who would provide liquidity for a token with $10,000 daily volume?

The answer: Almost no one.

This created a paradox. Tokens couldn't get volume without liquidity. They couldn't get liquidity without volume. Order books require professional market makers who need sufficient trading activity to justify their capital commitment. For most tokens, that activity would never come.

The AMM breakthrough was recognizing that liquidity provision could be automated and democratized. Instead of professionals committing capital with sophisticated strategies, anyone could deposit assets into a pool and let a formula handle pricing. The formula wouldn't be as efficient as a professional market maker, but it would exist—and existing liquidity, even inefficient liquidity, beats no liquidity.

This lesson examines how that insight evolved into an industry managing tens of billions of dollars.


Before AMMs, cryptocurrency trading meant order books. Even decentralized exchanges like XRPL's native DEX (launched 2012) used order book models.

ORDER BOOK MECHANICS

Buyers place bids:
├── "I'll buy 100 XRP at $0.50"
├── "I'll buy 500 XRP at $0.49"
└── "I'll buy 1000 XRP at $0.48"

Sellers place asks:
├── "I'll sell 100 XRP at $0.52"
├── "I'll sell 300 XRP at $0.53"
└── "I'll sell 500 XRP at $0.55"

Trade occurs when:
├── Market order crosses the spread
├── Limit order matches existing order
└── Orders at same price meet

Market makers profit from:
├── Spread (buy at $0.50, sell at $0.52 = 4% gross)
├── Requires constant position management
├── Sophisticated inventory and risk controls
└── Needs sufficient volume to justify capital
```

  • Price discovery through genuine supply/demand
  • Minimal slippage for small orders in liquid markets
  • Professional price improvement from market makers
  • Time-tested across traditional finance
  • Requires active market makers
  • Thin books create massive slippage
  • Illiquid pairs are effectively untradeable
  • Market makers need economic incentive (volume)
TOKEN DISTRIBUTION (2017 ERA)

By trading volume:
├── Top 10 tokens: ~90% of all volume
│ └── Plenty of market makers, tight spreads
├── Top 100 tokens: ~9% of volume
│ └── Some market making, wider spreads
├── Top 1000 tokens: ~0.9% of volume
│ └── Minimal market making, very wide spreads
└── Everything else: ~0.1% of volume
└── Effectively no market making, untradeable

Problem:
├── Thousands of tokens existed
├── Most had legitimate (or semi-legitimate) use cases
├── Users wanted to trade them
├── No one would provide liquidity
└── Without liquidity, tokens were worthless
```

This was the "long tail" problem. Professional market makers optimize for profitability, which means focusing on high-volume pairs. The long tail—thousands of tokens with minimal trading activity—was economically irrational to serve.

Centralized exchanges partially solved this with listing fees (forcing projects to pay for liquidity) and market-making agreements. But for decentralized trading, no solution existed.

DEX LANDSCAPE (2016-2017)

XRPL DEX:
├── Launched: 2012
├── Model: Order book
├── Liquidity: Concentrated in XRP pairs
├── Long tail: Not addressed
└── Still operating today

EtherDelta:
├── Launched: 2016
├── Model: Order book smart contract
├── Liquidity: Very thin
├── UX: Terrible
└── Outcome: Hacked, abandoned

0x Protocol:
├── Launched: 2017
├── Model: Order book with off-chain matching
├── Liquidity: Dependent on relayers
├── Long tail: Not addressed
└── Status: Still exists, modest usage

Common problem: All required someone to make markets
```

The DEX space in 2016-2017 was functional but limited. You could trade on these platforms if someone happened to want the opposite side of your trade. For popular pairs, this worked acceptably. For everything else, you waited—often indefinitely.


In 2017, Bancor raised $153 million in one of the largest ICOs ever. Their innovation: eliminate the need for counterparties by using a formula to determine prices.

BANCOR INNOVATION

Traditional trade:
Buyer → Exchange → Seller
(Requires both parties)

Bancor trade:
Trader → Liquidity Pool → Trader
(Pool is counterparty using formula)

Key insight:
├── Pool holds reserves of two tokens
├── Formula determines exchange rate
├── Any trade possible at any time
├── No need to wait for counterparty
└── Liquidity exists by construction

Bancor formula:
Price = ConnectorBalance / (ConnectorWeight × Supply)

Problems:
├── Complex mechanism
├── Required BNT token in all pairs
├── Gas costs high
├── Adoption limited
└── But: Proved the concept
```

Bancor demonstrated that automated liquidity was possible. The execution had issues—complex design, mandatory inclusion of their native token, high costs—but the core concept worked. Trades executed. Prices adjusted automatically. Liquidity existed without market makers.

This was genuinely revolutionary, even if Bancor itself didn't become the dominant implementation.

In November 2018, Hayden Adams launched Uniswap v1. Where Bancor was complex, Uniswap was brutally simple.

UNISWAP V1 DESIGN

The formula:
x × y = k

Where:
├── x = Token A reserves
├── y = Token B reserves
├── k = Constant product (stays same after trades)
└── Price = y/x (amount of Y per unit of X)

Example:
Pool: 1,000 ETH × 2,000,000 DAI = 2,000,000,000
Price: 2,000,000/1,000 = 2,000 DAI per ETH

Buy 10 ETH:
├── Pool must maintain k = 2,000,000,000
├── New ETH: 1,000 - 10 = 990
├── Required DAI: 2,000,000,000 / 990 = 2,020,202
├── You pay: 2,020,202 - 2,000,000 = 20,202 DAI
└── Effective price: 20,202/10 = 2,020.20 DAI/ETH

Why this works:
├── Simple formula, easy to understand
├── No external dependencies
├── Anyone can provide liquidity
├── Any token pair possible
└── Permissionless and decentralized
```

Uniswap's genius was simplicity. One formula. No governance tokens initially. No complex mechanisms. Just a constant product formula that anyone could understand in five minutes.

The trade-offs were real: constant product AMMs are capital-inefficient (liquidity spread across infinite price range), slippage can be brutal for larger trades, and impermanent loss is significant for volatile pairs. But it worked, and "works" beats "optimal but complex" in crypto.

In 2020, everything changed. Compound launched liquidity mining. Yield farming emerged. Users suddenly had reasons to provide liquidity beyond trading fees.

DEFI SUMMER 2020

Timeline:
├── June: Compound launches COMP mining
├── July: Yearn launches YFI
├── August: SushiSwap forks Uniswap
├── September: Uniswap launches UNI
└── TVL: $1B → $15B in 4 months

AMM TVL Growth:
├── Jan 2020: ~$50M
├── June 2020: ~$150M
├── Sept 2020: ~$3B
├── Dec 2020: ~$10B
└── Growth: 200x in one year

What drove it:
├── Yield farming rewards (tokens for LPing)
├── Composability (LP tokens as collateral)
├── Token launches via AMMs
├── DEX volume explosion
└── Genuine innovation cycle
```

DeFi Summer proved AMMs weren't a curiosity—they were infrastructure. By year-end 2020, billions of dollars flowed through AMM pools daily. The long tail problem was solved. Any token could have liquidity if anyone cared enough to provide it.

Uniswap continued evolving:

UNISWAP EVOLUTION

V1 (2018):
├── ETH pairs only
├── Simple constant product
├── No flash swaps
└── Basic but functional

V2 (2020):
├── Any ERC-20 pair
├── Flash swaps enabled
├── Price oracles (TWAP)
├── Improved efficiency
└── Became dominant DEX

V3 (2021):
├── Concentrated liquidity
├── LPs choose price ranges
├── Up to 4000x capital efficiency
├── Multiple fee tiers
├── Fundamentally different model

V3 Innovation:
├── Problem: Constant product spreads liquidity infinitely
├── Most trades happen near current price
├── Liquidity far from price = wasted capital
├── Solution: Let LPs concentrate in price ranges
└── Trade-off: More complexity, active management required

Uniswap v3's concentrated liquidity was a major innovation. Instead of providing liquidity across all possible prices (most of which will never be used), LPs could focus capital in narrow ranges. This dramatically improved capital efficiency but introduced complexity—LPs now needed to actively manage positions.


AMM MARKET SHARE (APPROXIMATE)

By TVL:
├── Uniswap (Ethereum + L2s): ~$5-6B
├── Curve: ~$2-3B
├── Balancer: ~$800M-1B
├── PancakeSwap: ~$2-3B
├── Raydium (Solana): ~$500M-1B
├── Orca (Solana): ~$200-400M
├── XRPL AMM: ~$20-50M
└── Total AMM TVL: ~$15-20B

By Daily Volume:
├── Uniswap: ~$1-3B
├── PancakeSwap: ~$300M-1B
├── Curve: ~$100-300M
├── Others: ~$500M combined
├── XRPL AMM: ~$1-5M
└── Total AMM volume: ~$3-6B daily

XRPL Position:
├── TVL: ~0.2-0.3% of total AMM TVL
├── Volume: ~0.05-0.1% of AMM volume
├── Ecosystem: Tiny relative to Ethereum
└── Honest assessment: Minor player currently
```

AMM DESIGN PHILOSOPHIES

Uniswap (Ethereum):
├── Philosophy: Simple, permissionless, composable
├── Innovation: Constant product → concentrated liquidity
├── Strength: Dominant ecosystem, network effects
├── Weakness: Gas costs, MEV exposure
└── Position: Market leader

Curve (Ethereum):
├── Philosophy: Optimized for stable pairs
├── Innovation: StableSwap invariant (less slippage)
├── Strength: Best for pegged assets
├── Weakness: Complex governance, recent exploits
└── Position: Dominant for stablecoins

Balancer (Ethereum):
├── Philosophy: Flexible weighted pools
├── Innovation: Multi-asset pools, custom weights
├── Strength: Index fund-like pools possible
├── Weakness: Complexity, smaller ecosystem
└── Position: Niche but established

XRPL AMM:
├── Philosophy: Protocol-native, MEV-resistant
├── Innovation: Continuous auction mechanism
├── Strength: No smart contract risk, low fees
├── Weakness: Small ecosystem, limited composability
└── Position: New entrant, unproven at scale
```

AMM DESIGN TRADE-OFFS

Capital Efficiency vs Simplicity:
├── Uniswap v2: Simple but capital-inefficient
├── Uniswap v3: Efficient but complex for LPs
├── Curve: Efficient for stable pairs only
└── Trade-off is fundamental, not solvable

Permissionless vs Optimized:
├── Uniswap: Anyone can create any pool
├── Curve: Governance-approved pools only
├── XRPL: Anyone can create, protocol-native
└── Permissionless enables long tail but worse UX

Fee Flexibility vs Simplicity:
├── Uniswap v2: Fixed 0.3%
├── Uniswap v3: 0.01%, 0.05%, 0.3%, 1%
├── Curve: Variable based on pool
├── XRPL: Configurable per pool
└── More options = harder to choose

MEV Protection vs Speed:
├── Ethereum: Significant MEV extraction
├── Solana: Less MEV (speed helps)
├── XRPL: Continuous auction (theoretically helps)
└── No perfect solution exists yet
```


XRPL launched in 2012 with an order book DEX—one of the first functioning decentralized exchanges. For over a decade, this order book served the XRPL ecosystem without automated market making.

XRPL DEX HISTORY

2012-2023:
├── Order book only
├── Worked well for XRP pairs
├── Market makers provided liquidity
├── Auto-bridging through XRP
├── No AMM functionality
└── Missed DeFi Summer entirely

Why no AMM until 2024?
├── Conservative development philosophy
├── Order book worked for main use case
├── Protocol changes require consensus
├── Community debate on whether needed
└── Eventually: XLS-30 proposed and passed

XLS-30 Timeline:
├── Proposal: 2022
├── Development: 2022-2023
├── Testing: 2023
├── Mainnet activation: 2024
└── Now: Operational but nascent
```

When XRPL finally added AMM functionality, it made distinctive design choices:

XRPL AMM DESIGN CHOICES

Protocol-native implementation:
├── AMM is part of ledger protocol
├── Not a smart contract
├── Same security model as XRPL itself
├── Upgrades via amendments
└── Trade-off: Less flexible, more secure

Continuous auction mechanism:
├── Unique to XRPL
├── Traders bid for discounted rates
├── Proceeds go to LPs
├── Intended to reduce MEV
└── Novel and unproven

Constant product formula:
├── Same as Uniswap v2
├── x × y = k
├── Well-understood mechanics
├── Not capital-efficient as v3
└── Simpler to understand/use

Integration with order book:
├── Both venues operate simultaneously
├── Pathfinding considers both
├── Users get best execution
├── Unique hybrid approach
└── Potential for better liquidity
XRPL AMM: SWOT ANALYSIS

Strengths:
├── Protocol-native (no smart contract risk)
├── Extremely low fees (~$0.0002)
├── Continuous auction mechanism
├── Order book integration
└── Same security as core XRPL

Weaknesses:
├── Tiny ecosystem (~$50M TVL vs $5B+ Uniswap)
├── Limited composability
├── No concentrated liquidity
├── Late entrant to mature market
└── Less developer tooling

Opportunities:
├── Payments use case drives natural flow
├── RLUSD stablecoin integration
├── ODL creates trading activity
├── Less MEV than Ethereum
└── Unique positioning possible

Threats:
├── Network effects favor incumbents
├── Limited innovation budget vs well-funded competitors
├── If payments don't grow, ecosystem stagnates
├── Developers building elsewhere
└── May remain niche indefinitely
```

The honest reality: XRPL's AMM is technically competent but operates in a market where network effects matter enormously. Uniswap's dominance comes not from superior technology but from ecosystem size—more tokens, more traders, more integrations, more composability. XRPL's AMM needs the broader XRPL ecosystem to grow for its AMM to become significant.


AMM SUCCESS FACTORS

Simplicity wins:
├── Uniswap beat Bancor with simpler design
├── Complexity is adoption friction
├── Users don't read documentation
└── Simpler = faster adoption

Ecosystem matters more than tech:
├── Uniswap on Ethereum > better AMMs elsewhere
├── Network effects compound
├── Being where tokens exist matters
└── Technology is necessary but not sufficient

Permissionless enables long tail:
├── Anyone can create pools
├── Long tail tokens got liquidity
├── Gatekeeping limits growth
└── Permissionless is competitive advantage

Composability creates value:
├── LP tokens as collateral
├── Integration in DeFi protocols
├── Yield farming opportunities
└── Isolated systems less valuable
```

AMM FAILURES AND LESSONS

Bancor's forced BNT:
├── Requiring native token in all pairs
├── Created friction and complexity
├── Market rejected design
└── Lesson: Don't force unnecessary dependencies

Complex governance:
├── Curve's vote-lock mechanisms
├── Created gaming and complexity
├── Multiple exploits resulted
└── Lesson: Simple systems are safer

Ignoring MEV:
├── Ethereum AMMs lost billions to MEV
├── LPs systematically disadvantaged
├── Sandwich attacks extract value
└── Lesson: MEV protection matters

Token-gated features:
├── Required governance tokens for basic use
├── Created barriers to adoption
├── Users resented extraction
└── Lesson: Value creation > value extraction
```

LESSONS APPLIED TO XRPL

Positive signals:
├── Simple design (constant product)
├── Protocol-native reduces some risks
├── Continuous auction addresses MEV
├── Permissionless pool creation
└── Low fees reduce friction

Concerning signals:
├── Ecosystem size is tiny
├── Composability limited
├── Developer attention elsewhere
├── Late entry to mature market
└── Success depends on ecosystem growth

Key question:
Will XRPL's payments focus create natural
AMM usage, or will the AMM remain a
feature that few users need?

Answer depends on:
├── ODL growth trajectory
├── RLUSD adoption
├── XRPL ecosystem development
├── Token launches on XRPL
└── Mostly: External factors
```


AMMs solve the long tail problem. Eight years of evidence shows AMMs enable trading for tokens that would have no market maker interest.

Constant product formula works. Billions in daily volume through x × y = k formula demonstrates reliability.

Network effects dominate. Uniswap's market position comes from ecosystem, not technology.

⚠️ Whether continuous auction materially helps LPs. XRPL's mechanism is novel with limited data.

⚠️ Whether XRPL ecosystem will grow significantly. AMM success depends on broader ecosystem health.

⚠️ Optimal AMM design. Constant product vs concentrated liquidity debate continues.

📌 Assuming technology determines winners. Ecosystem size matters more than technical elegance.

📌 Expecting XRPL to replicate Ethereum DeFi growth. Different ecosystem, different use cases, probably different outcomes.

📌 Ignoring opportunity cost. Capital in XRPL AMM could be in larger, more liquid Ethereum AMMs.

AMMs are proven technology solving a real problem. XRPL's implementation is technically sound but operates in a small ecosystem. The question isn't whether XRPL's AMM works—it does. The question is whether the XRPL ecosystem will grow enough for the AMM to matter. That depends on factors (ODL adoption, RLUSD success, regulatory clarity) largely outside the AMM's control.


Assignment: Create a comprehensive timeline of AMM evolution with analysis of key innovations and market impact.

Requirements:

  • Pre-AMM DEXs (2012-2017)

  • Bancor launch and key innovations (2017)

  • Uniswap v1 launch (2018)

  • DeFi Summer and TVL explosion (2020)

  • Major protocol launches (Curve, Balancer, SushiSwap)

  • Uniswap v2 and v3 launches

  • XRPL AMM launch (2024)

  • Date

  • Key innovation or change

  • Market impact (TVL, volume if available)

  • Significance for AMM evolution

  • Core mechanism

  • Problem it solved

  • Trade-offs it introduced

  • Market reception (adoption level)

  • Monthly TVL for top 5 AMMs for past 12 months

  • Market share percentages

  • XRPL AMM TVL relative to leaders

  • What factors determine AMM success?

  • Why has Uniswap maintained dominance?

  • What would XRPL need to become significant?

  • Is the market winner-take-all or room for multiple players?

  • Research thoroughness (25%)

  • Timeline accuracy and completeness (25%)

  • Innovation analysis quality (25%)

  • Competitive assessment insight (25%)

Time Investment: 3-4 hours


Knowledge Check

Question 1 of 4

What was the primary problem that AMMs solved that order books could not?

  • Uniswap v1 whitepaper (Hayden Adams)
  • Bancor whitepaper (2017)
  • "DeFi Summer" retrospectives (various sources)
  • XLS-30 specification (XRPL documentation)
  • Uniswap v3 whitepaper (concentrated liquidity)
  • Curve StableSwap paper
  • DeFiLlama (TVL tracking)
  • Dune Analytics (AMM volume)
  • CoinGecko/CoinMarketCap (historical data)

For Next Lesson:
Prepare to dive deep into the mathematics of constant product markets. Review basic algebra and be ready to work through formula derivations. Lesson 2 will prove why the x × y = k formula produces the price and slippage behaviors we observe.


End of Lesson 1

Total words: ~5,800
Estimated completion time: 55 minutes reading + 3-4 hours for deliverable

Key Takeaways

1

AMMs solved the order book's long tail problem.

By automating market making, AMMs enabled trading for tokens that professional market makers would never serve.

2

Uniswap's simplicity won the market.

Despite more complex alternatives, the brutally simple constant product formula dominated because it was easy to understand and deploy.

3

Ecosystem matters more than technology.

Uniswap leads not because of technical superiority but because it operates where the tokens are. XRPL's technical merits mean little without ecosystem growth.

4

XRPL entered late to a mature market.

The AMM launched in 2024 into a market where billions in TVL had already consolidated on Ethereum. Catching up requires ecosystem-level growth.

5

Success depends on external factors.

XRPL AMM's future depends on ODL adoption, RLUSD success, and broader ecosystem development—not on the AMM mechanism itself. ---