Soroswap.Finance Docs
  • Welcome 👋🏼
    • What is Soroswap Finance?
    • Getting Started
      • Wallet Setup and Connection
      • How to Swap
      • Provide Liquidity
      • How the Aggregator Works
  • Concepts
    • AMM
    • Liquidity Pools
    • Swap
    • Fees
    • Slippage
    • Router
    • SDEX
    • Aggregator
    • Trustlines
    • Advanced Topics
      • Pricing
      • Understanding Returns
      • Security
      • Research
  • Soroswap AMM (DEX)
    • How Soroswap AMM works
    • Ecosystem Participants
    • Audits
    • Technical Reference
      • Smart contracts
        • SoroswapPair
        • SoroswapFactory
        • SoroswapRouter
        • SoroswapLibrary
      • Deployed Addresses
      • Error Codes
      • Using Soroswap with TypeScript
      • Smart Contract Integration
      • Deploy Soroswap Yourself
        • Setup your environment.
        • Experiment the Pair contract
        • Experiment the Factory Contract.
        • Deployments.
        • Using the Soroswap Testnet
    • Glossary
  • Soroswap Aggregator
    • Supported AMMs
    • Audits
    • Technical Reference
      • How Soroswap Aggregator works
      • Design
      • Technical Overview
      • Aggregator Operation
      • Smart Contracts
        • SoroswapAggregator
        • Adapter Trait
        • SoroswapAdapter
      • Inspirations
        • 1inch
      • Other AMMs in Soroban
        • Phoenix
    • Disclaimer
  • Soroswap API
  • Soroswap Info
  • Tutorials
    • Installing Freighter
    • Soroswap sections
    • Adding Liquidity
    • Doing Swap
    • Remove Liquidity
    • Using Stellar Classic Assets
      • Wrapping Stellar Classic Assets
      • Swap Stellar Classic Assets
      • Test Stellar Classic Assets
    • Bridge using Pendulum
    • Conclusions
  • Partnerships
    • Collaboration with Mercury and SubQuery
    • Business Partnerships
  • Support & Resources
    • About Us
    • General FAQ
    • Additional Resources
Powered by GitBook
On this page
  • Step 1: Access Soroswap
  • Step 2: Connect Your Wallet to Soroswap.Finance
  • Step 3: Navigate the Soroswap Finance Interface
  • Step 4: Execute a Token Swap
  • Step 5: Trustlines
  • Step 6: Confirm the transaction
  • Step 7: Check That Your Transaction Went Through
  • Best Practices
Edit on GitHub
  1. Tutorials

Doing Swap

PreviousAdding LiquidityNextRemove Liquidity

Last updated 1 month ago

Now that you have successfully added liquidity to a pool, let's move on to the next step: doing swaps. Swapping tokens on Soroswap allows you to exchange one token for another within the liquidity pool. Follow the steps below to perform a swap:

Step 1: Access Soroswap

Visit the official website.

Click the “Launch App” button on the homepage to access Soroswap’s decentralized platform. This action will direct you to the swap interface.

Step 2: Connect Your Wallet to Soroswap.Finance

  1. Acquire Stellar (XLM): Purchase XLM from a reputable exchange or transfer it from another wallet if you already possess some.

  2. Deposit XLM into Your Wallet: Transfer the XLM to your Stellar wallet address.

If this is your first time, ensure you acquire and transfer Stellar (XLM) to your wallet.

Step 3: Navigate the Soroswap Finance Interface

Once your Stellar wallet is connected, familiarize yourself with the Soroswap dashboard. It displays your account details, token balances, and options for swapping tokens and managing your assets.

Step 4: Execute a Token Swap

  1. Select Tokens: Choose the tokens you wish to swap from and to.

  1. Enter Amount: Specify the amount of tokens you want to exchange.

Step 5: Trustlines

When swapping a new token for the first time on Soroswap.Finance, you’ll need to sign a "trustline" transaction. Trustlines authorize your account to hold and exchange the specific asset.

  1. Transaction Request: A transaction request will be sent to authorize your wallet to hold and trade the new token.

  1. Sign the Trustline Transaction: Sign the transaction to authorize the trustline, allowing your wallet to manage the new asset.

Step 6: Confirm the transaction

  1. Sign the Transaction: Your Freighter wallet will display the transaction details. Review and click “Approve” to confirm the swap.

Congratulations! You have successfully completed a swap on Soroswap.Finance Now.

Step 7: Check That Your Transaction Went Through

After signing the transaction, it's important to confirm that everything went smoothly. To do this, check the details in your wallet or by using one of the blockchain explorers. This step ensures that the token swap has been completed and that the new tokens are now visible in your balance.

Once the transaction is confirmed, you’ll see a success message indicating the swap is complete. At this point, you can review the transaction details by selecting one of these options:

Best Practices

  1. Sufficient XLM for Fees: Ensure your wallet contains enough XLM to cover transaction fees.

  2. Review Trustlines: Confirm that all necessary trustlines are established before initiating a swap.

  3. Check Transaction History: Verify in your wallet that the swap is complete and that the new tokens are reflected in your balance.

Choose a Stellar Wallet: Select a wallet compatible with the Stellar network. For assistance, refer to this article: .

For more information, refer to the official documentation on .

Guide to Choosing a Stellar Wallet
trustlines
View in Stellar.Expert
View in StellarChain
Soroswap.Finance
Page cover image