Skip to content

💱 Classifying the SDEX Holistically #3085

Open

Description

@JFWooten4

In the coming months, I will make a bona fide attempt to finish the SDEX page from #338. I want to iron out any of the alignment choices I made drafting those updates beforehand, since by the time I put in the PR, it will be pretty close to some substantive regulatory interactions. Unlike the other guides from that issue, this one will actually be relatively imminently reviewed, and I think it would benefit the network to have many of the clarifications that improve complianceness.

Yes, I decided that is a word, but more importantly than that, these are just factually proper as to the current DEX behavior. The biggest thing in my mind is the current implementation introducing the DEX & liquidity pools. I combine them into a cohesive unit:

Stellar uses two protocols to help users trade:
1. [Unified orderbook](#orderbook) for priced offers and
2. [Native AMMs](#amms) through liquidity pools.
Collectively, these connected systems create the SDEX, a decentralized market for everyone.
The SDEX works for all [assets](./stellar-data-structures/assets.mdx) on the network from the moment they're created . Its accessable to any [account](./stellar-data-structures/accounts.mdx) , and its liquidity can be seen by all as peers trade balances. You can iuse the exchange to pay someone in their preferred currency, rack prices, or even go public.

Later on, I go to define the placeholder offerIDs generated on execution of market orders and contraIDs, which we have used in our codebase with the Commission's review for at least three years. I'm less worried about the semantics on that, since they make a lot more sense in place. But just for clarity, I want to note it because a native AMM generates a contraID which the user receives in return for marketable execution against an AMM (ref #1545, but I'm not proposing the full implementation here).

Because a user can make an offer which executes against a liquidity pool, it follows that liquidity pools are part of the SDEX. The "SDEX" term itself originates from long before Protocol 18, but nobody ever really bothered to reassess it once AMMs came into Core. If you can start with the order book (via a priced offer) and end on the AMM, then logically those two are part of the same system, even without CAP-37.

Activity

  1. stellar-doxie commented on Nov 10, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    I saw this issue. I will not work it unless a maintainer calls me in.

    How to reach me:

    • Anyone with write permission can call me in. Comment /triage, add the bot:take label, or assign @kaankacar, @ElliotFriend or @wmendes.
    • On a Raven-filed issue, the raven label also calls me in.
    • The issue author can send me away with /triage stop. People with write permission can also add the bot:hands-off label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions