ALEX Lab Docs
whats-new-damm
whats-new-damm
  • ALEX Lab
  • What is New?
    • 🕺Permissionless Pool Creation
    • ⚡DAMM
  • Getting Started
    • 👛Connect Your Wallet
    • 👥Join the Community
    • 🪙Buy ALEX Tokens
  • What Can You Do?
    • 🔥Bitcoin Swaps
      • 💡Key Concepts
      • 📖How to Swap
      • ❓FAQs
    • 🔄Stacks Swaps
      • 💡Key Concepts
      • 📖How to Swap
      • ❓FAQs
    • 🐋Liquidity Pools
      • 💡Key Concepts
      • ↘️How to Add Liquidity
      • ↖️How to Remove Liquidity
      • ❓FAQs
    • 🌾Farming
      • 💡Key Concepts
      • ↘️How to Farm
      • ↖️How to Harvest
      • ❓FAQs
    • ⚓Stake
      • 💡Key Concepts
      • ↘️How to Stake
      • ↖️How to Harvest
      • 💧How to Liquid Stake
      • ❓FAQs
    • 🚀Launchpad
      • Join the ALEX Launchpad!
    • ⚡Surge
      • 💡Key concepts
      • 🧑‍🏫How to participate
      • ❓FAQs
  • What Can You Do as a Project Owner?
    • 🚀Launch Your Project
    • 💦Create Your Own Pool
    • 🚜Add Farming to Your Pool
  • Security
    • ✅Audits
    • 🐛Bug Bounties
  • Helpful Concepts
    • 💰Tokenomics
    • 👥ALEX DAO
    • 💱ALEX AMM
    • 🏋️ALEX APower
  • Resources
    • 🔗Official Links
    • 📃Whitepapers
      • 📃Automated Market Making of the Yield Token Pool
      • 📃Automated Market Making of the Collateral Rebalancing Pool
      • 📃Diving into Collateral Rebalancing Pools!
Powered by GitBook
On this page
  1. What Can You Do?
  2. Stacks Swaps

FAQs

Common questions that may arise when trading tokens.

PreviousHow to SwapNextLiquidity Pools

Last updated 6 days ago

Where does the swap fee go?

From the total fee charged during a swap operation, a portion is rebated to users who provide liquidity to the pool (liquidity providers), while the remaining part goes to the ALEX Lab Foundation. By default, this split is 50/50, but it may vary depending on the specific liquidity pool settings.

You can view these percentages in the Pool Info panel by navigating to the Swap -> Pool tab from the navbar and selecting your pool of interest from the list.

In which cases is routing necessary?

Token swaps on ALEX are performed on a decentralized exchange (DEX) and powered by liquidity pools. This implies that if you want to trade STX for ALEX tokens, you are interacting with the STX-ALEX liquidity pool. Since this pool exists, a direct swap is possible.

Now, suppose you want to trade MEME1 for MEME2, but there isn't a specific MEME1-MEME2 liquidity pool. In this case, the platform will use intermediate pools. For example, if there are STX-MEME1 and ALEX-MEME2 liquidity pools, they will act as intermediaries. In this case, the swap route would be MEME1 -> STX -> ALEX -> MEME2. While MEME1 is still the base token and MEME2 the target token, the swap involves two intermediate tokens (STX and ALEX).

How do token swaps work?

Swaps on ALEX's decentralized exchange (DEX) operate through smart contracts built on the Stacks network. These smart contracts manage liquidity pools, which are collections of crypto assets deposited by users. When you perform a swap, you trade tokens with the liquidity pool, eliminating the need for a direct counterparty. For example, if a user wants to trade Stacks' native currency (STX) for ALEX's governance token (ALEX), they would interact with the STX-ALEX liquidity pool on ALEX's smart contracts.

The protocol controls prices, fees, and token amounts. For further information on this topic please refer to the .

🔄
❓
Automated Market Maker (AMM)
ALEXGo Trading Pool documentation