XRP Ledger Standards
XLS-30.1 Draft Amendment

AMM Pseudo-Account Owned Entries

Lists the entries an AMM pseudo-account may own under the XLS-64.2 ownership invariant

Author
Vytautas Vito Tumas
Created
2026-11-25
Updated
2026-11-25
Discussion
XRPLF/XRPL-Standards/discussions/78
Amendment
fixCleanup3_5_0
Patch of
XLS-0030: Automated Market Maker on XRPL

30.1 AMM Pseudo-Account Owned Entries

1. Abstract

Under the fixCleanup3_5_0 amendment, XLS-64.2 requires every entry a transaction adds to a pseudo-account's owner directory to be one that the owning object's specification allows. This patch lists the entries an AMM pseudo-account may own.

This patch changes the parent XLS-30 AccountRoot ledger entry only. All other parent behavior is unchanged.

2. Motivation

An AMM pseudo-account cannot sign transactions, so an entry linked into its owner directory that the AMM does not manage could never be removed, and would block deletion of the AMM. Listing the entries the AMM manages lets the invariant reject any other entry.

3. Specification

3.1. Ledger Entry: AccountRoot

3.1.1. Invariants

When the amendment is enabled, the AMM pseudo-account (the AccountRoot with AMMID) may own only:

  • the AMM entry identified by AMMID;
  • its holding of AMM.Asset or AMM.Asset2: the RippleState for an IOU or the MPToken for an MPT. XRP has no holding entry;
  • a RippleState for the AMM's LP token in which the pseudo-account is one side.

When the amendment is not enabled, the entries the AMM pseudo-account owns are not checked.

4. Rationale

These are the entries that AMMCreate, AMMDeposit, AMMWithdraw and AMMDelete create and remove. Liquidity providers' LP token trust lines are linked into the AMM pseudo-account's directory because it issues the LP token.

5. Security Considerations

The list must include every entry the AMM transactions link into the pseudo-account's directory. An entry missing from it would make a valid AMM transaction fail the invariant.