Skip to content

Commit 6b42a29

Browse files
committed
Move SDEX to Fundamentals
1 parent 0a26478 commit 6b42a29

12 files changed

Lines changed: 26 additions & 29 deletions

File tree

docs/build/smart-contracts/example-contracts/liquidity-pool.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Soroban liquidity pools are exclusive to Soroban and cannot interact with built-
2929

3030
Implementing a liquidity pool contract should be done cautiously. User funds are involved, so great care should be taken to ensure safety and transparency. The example here should _not_ be considered a ready-to-go contract. Please use it as a reference only.
3131

32-
The Stellar network already has liquidity pool functionality built right in to the core protocol. [Learn more here](../../../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx).
32+
The Stellar network already has liquidity pool functionality built right in to the core protocol. [Learn more here](../../../learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx).
3333

3434
:::
3535

@@ -514,7 +514,7 @@ pub fn __constructor(e: Env, token_wasm_hash: BytesN<32>, token_a: Address, toke
514514
[creating its own `pool` token]: #creating-a-custom-pool-token-for-lp-shares
515515
[interacting with contracts for `token_a` and `token_b`]: #token-transfers-tofrom-the-lp-contract
516516
[`token` example contract]: ./tokens.mdx
517-
[lexicographical order]: ../../../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#liquidity-pool-participation
517+
[lexicographical order]: ../../../learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx#liquidity-pool-participation
518518

519519
### A "Constant Product" Liquidity Pool
520520

docs/data/indexers/build-your-own/ingest-sdk/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Obtain the final state of [ledger entries](../../../../learn/fundamentals/stella
2020
Ledger entries are cryptographically signed as part of each ledger and therefore represent the trusted, cumulative state at a point in time for [assets](../../../../learn/fundamentals/stellar-data-structures/assets.mdx) related to an [account](../../../../learn/fundamentals/stellar-data-structures/accounts.mdx) or [contract](../../../../learn/fundamentals/contract-development/storage/persisting-data.mdx). Examples of asset types:
2121

2222
- trustlines which hold token balances
23-
- offers which hold bid and asks on the [stellar network DEX](../../../../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#sdex)
23+
- offers which hold bid and asks on the [stellar network DEX](../../../../learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx#sdex)
2424
- contract data which holds key/value stores for contracts
2525

2626
### Ledger Metadata

docs/learn/encyclopedia/sdex/README.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/learn/encyclopedia/transactions-specialized/path-payments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Account A sells XLM → [buy XLM / sell ETH → buy ETH / sell BTC → buy BTC /
1111

1212
It is possible for path payments to fail if there are no viable exchange paths.
1313

14-
For more information on the Stellar Decentralized Exchange and Liquidity Pools, see our [Liquidity on Stellar: SDEX and Liquidity Pools Encyclopedia Entry](../sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
14+
For more information on the Stellar Decentralized Exchange and Liquidity Pools, see our [Liquidity on Stellar: SDEX and Liquidity Pools Encyclopedia Entry](../../fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx).
1515

1616
## Operations
1717

docs/learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx renamed to docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: "Liquidity Pools on the Stellar DEX: Provide Liquidity and Enable Asset Swaps"
3-
sidebar_label: "Liquidity on Stellar: SDEX and Liquidity Pools"
3+
sidebar_label: "SDEX"
44
description: "Learn how liquidity pools enable trading on the Stellar DEX. Understand how they work, provide liquidity, and enable decentralized asset swaps on the network."
5+
sidebar_position: 100
56
---
67

78
# Liquidity on Stellar: SDEX & Liquidity Pools
@@ -16,11 +17,11 @@ This section is scoped specifically to liquidity regarding the AMM and SDEX buil
1617

1718
Users can trade and convert assets on the Stellar network with the use of path payments through Stellar’s decentralized exchange and liquidity pools.
1819

19-
In this section, we will talk about the SDEX and liquidity pools. To learn about how these work together to execute transactions, see our [Path Payments Encyclopedia Entry](../transactions-specialized/path-payments.mdx).
20+
In this section, we will talk about the SDEX and liquidity pools. To learn about how these work together to execute transactions, see our [Path Payments Encyclopedia Entry](../encyclopedia/transactions-specialized/path-payments.mdx).
2021

2122
## SDEX
2223

23-
The Stellar network acts as a decentralized distributed exchange that allows users to trade and convert assets with the [Manage Buy Offer](../../../data/apis/horizon/api-reference/resources/operations/object/buy-offer.mdx) and [Manage Sell Offer](../../../data/apis/horizon/api-reference/resources/operations/object/sell-offer.mdx) operations. The Stellar ledger stores both the balances held by user accounts and orders that user accounts make to buy or sell assets.
24+
The Stellar network acts as a decentralized distributed exchange that allows users to trade and convert assets with the [Manage Buy Offer](../../data/apis/horizon/api-reference/resources/operations/object/buy-offer.mdx) and [Manage Sell Offer](../../data/apis/horizon/api-reference/resources/operations/object/sell-offer.mdx) operations. The Stellar ledger stores both the balances held by user accounts and orders that user accounts make to buy or sell assets.
2425

2526
### Order books
2627

@@ -72,7 +73,7 @@ An account can place a passive sell order via the Create Passive Sell Offer oper
7273

7374
The order price you set is independent of the fee you pay for submitting that order in a transaction. Fees are always paid in XLM, and you specify them as a separate parameter when submitting the order to the network.
7475

75-
To learn more about transaction fees, see our section on [Fees section](../../fundamentals/fees-resource-limits-metering.mdx).
76+
To learn more about transaction fees, see our section on [Fees section](./fees-resource-limits-metering.mdx).
7677

7778
## Liquidity pools
7879

docs/learn/fundamentals/stellar-data-structures/assets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Classic assets on Stellar have two identifying characteristics: the asset code a
3535

3636
An asset’s identifying code. There are three different formats: Alphanumeric 4, Alphanumeric 12, and liquidity pool shares.
3737

38-
Learn about liquidity pool shares in the [Liquidity Pool Encyclopedia Entry](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx).
38+
Learn about liquidity pool shares in the [Liquidity Pool section](../liquidity-on-stellar-sdex-liquidity-pools.mdx).
3939

4040
Learn more about asset codes in the [Naming an Asset section](../../../tokens/control-asset-access.mdx#naming-an-asset)
4141

docs/learn/fundamentals/stellar-data-structures/ledgers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Data is stored on the ledger as ledger entries. Possible ledger entries include:
2121

2222
- [Accounts](./accounts.mdx)
2323
- [Claimable balances](../../encyclopedia/transactions-specialized/claimable-balances.mdx)
24-
- [Liquidity pools](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
24+
- [Liquidity pools](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
2525
- [Contract data](../../fundamentals/contract-development/storage/persisting-data.mdx#ledger-entries)
2626

2727
## Ledger headers

docs/learn/fundamentals/transactions/list-of-operations.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Learn more about path payments: [Path Payments Encyclopedia Entry](../../encyclo
146146

147147
Creates, updates, or deletes an offer to buy a specific amount of an asset for another
148148

149-
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
149+
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
150150

151151
**SDKs**: [JavaScript](http://stellar.github.io/js-stellar-sdk/Operation.html#.manageBuyOffer) | [Java](https://github.com/lightsail-network/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/operations/ManageBuyOfferOperation.java) | [Go](https://godoc.org/github.com/stellar/go/txnbuild#ManageBuyOffer)
152152
**Threshold**: Medium
@@ -180,7 +180,7 @@ Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity
180180

181181
Creates, updates, or deletes an offer to sell a specific amount of an asset for another
182182

183-
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
183+
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
184184

185185
**SDKs**: [JavaScript](http://stellar.github.io/js-stellar-sdk/Operation.html#.manageSellOffer) | [Java](https://github.com/lightsail-network/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/operations/ManageSellOfferOperation.java) | [Go](https://godoc.org/github.com/stellar/go/txnbuild#ManageSellOffer)
186186
**Threshold**: Medium
@@ -214,7 +214,7 @@ Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity
214214

215215
Creates an offer to sell one asset for another without taking a reverse offer of equal price
216216

217-
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
217+
Learn more about passive sell offers: [Liquidity on Stellar: SDEX and Liquidity Pools](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
218218

219219
**SDKs**: [JavaScript](https://stellar.github.io/js-stellar-sdk/Operation.html#.createPassiveSellOffer) | [Java](https://github.com/lightsail-network/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/operations/CreatePassiveSellOfferOperation.java) | [Go](https://godoc.org/github.com/stellar/go/txnbuild#CreatePassiveSellOffer)
220220
**Threshold**: Medium
@@ -630,7 +630,7 @@ Parameters to this operation depend on the ordering of assets in the liquidity p
630630

631631
If the pool is empty, then this operation deposits maxAmountA of A and maxAmountB of B into the pool. If the pool is not empty, then this operation deposits at most maxAmountA of A and maxAmountB of B into the pool. The actual amounts deposited are determined using the current reserves of the pool. You can use these parameters to control a percentage of slippage.
632632

633-
Learn more about liquidity pools: [Liquidity Pools Encyclopedia Entry](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
633+
Learn more about liquidity pools: [Liquidity Pools section](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
634634

635635
**SDKs**: [Java](https://github.com/lightsail-network/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/operations/LiquidityPoolDepositOperation.java)
636636
**Threshold**: Medium
@@ -663,7 +663,7 @@ Withdraw assets from a liquidity pool, reducing the number of pool shares in exc
663663

664664
The minAmountA and minAmountB parameters can be used to control a percentage of slippage from the "spot price" on the pool.
665665

666-
Learn more about liquidity pools: [Liquidity Pools Encyclopedia Entry](../../encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx)
666+
Learn more about liquidity pools: [Liquidity Pools section](../liquidity-on-stellar-sdex-liquidity-pools.mdx)
667667

668668
**SDKs**: [Java](https://github.com/lightsail-network/java-stellar-sdk/blob/master/src/main/java/org/stellar/sdk/operations/LiquidityPoolWithdrawOperation.java)
669669
**Threshold**: Medium

docs/learn/glossary.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ This term has been deprecated in favor of [contract tokens](#contract-token).
109109

110110
A distributed exchange that allows the trading and conversion of assets on the network.
111111

112-
Learn more in our [Liquidity on Stellar](./encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#sdex) Encyclopedia Entry.
112+
Learn more in our [Liquidity on Stellar](./fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx#sdex) section.
113113

114114
### External Data Representation (XDR)
115115

@@ -215,13 +215,13 @@ Contains the transaction source account, sequence number, and the operation inde
215215

216216
An offer to buy or sell an asset.
217217

218-
Learn more in our [Liquidity on Stellar: SDEX and Liquidity Pools Encyclopedia Entry](./encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#orders).
218+
Learn more in our [Liquidity on Stellar: SDEX and Liquidity Pools section](./fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx#orders).
219219

220220
### Orderbook
221221

222222
A record of outstanding orders on the Stellar network.
223223

224-
Learn more in our [Liquidity on Stellar: SDEX and Liquidity Pools Encyclopedia Entry](./encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#order-books).
224+
Learn more in our [Liquidity on Stellar: SDEX and Liquidity Pools section](./fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx#order-books).
225225

226226
### Passive order
227227

docs/tokens/control-asset-access.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Using a distribution account is better for auditing because an issuing account c
3232

3333
One thing you must decide when issuing an asset is what to call it. An asset code is the asset’s identifying code. There are three possible formats: Alphanumeric 4, Alphanumeric 12, and liquidity pool shares.
3434

35-
Learn about liquidity pool shares in the [Liquidity Pool Encyclopedia Entry](../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx).
35+
Learn about liquidity pool shares in the [Liquidity Pool Encyclopedia Entry](../learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx).
3636

3737
- Alphanumeric 4-character maximum: Any characters from the set a-z, A-Z, 0-9 are allowed. The code can be shorter than 4 characters, but the trailing characters must all be empty.
3838
- Alphanumeric 12-character maximum: Any characters from the set a-z, A-Z, 0-9 are allowed. The code can be any number of characters from 5 to 12, but the trailing characters must all be empty.

0 commit comments

Comments
 (0)