Swap

The Swap feature allows you to easily exchange one cryptocurrency for another directly within our platform. Whether you're looking to trade popular tokens or explore new ones, the swap interface provides a seamless experience.

Our platform intelligently routes your trades through various liquidity pools to find the optimal path for your transaction. This includes:

  • Standard AMM Pools (Volatile Pools): These are the most common type of pool for general token swaps.

  • Concentrated Liquidity Pools: These pools allow liquidity providers to concentrate their capital in specific price ranges, potentially offering better rates for trades within those ranges.

  • Stable Swap Pools: Specially designed for assets that are expected to have a similar price (e.g., stablecoins or wrapped assets), these pools offer very low slippage for such pairs.

You don't need to worry about choosing the pool type; the system automatically handles this to provide you with the best possible exchange rate.

Understanding the Swap Interface

The swap interface is designed to be intuitive, allowing you to set up your trade quickly. Here's a breakdown of its main components:

Token Selection

  • Input and Output Tokens: You'll see two main fields, labeled "Buy" and "Sell".

    • The "Sell" field is for the token you currently have and wish to exchange.

    • The "Buy" field is for the token you want to acquire.

  • Choosing Tokens: To select a token, click on the default token name (e.g., APT or USDC) or the placeholder. This will open a token list. You can then scroll through the list or use the search bar to find your desired token. Click on the token to select it.

Entering Amounts

  • Flexible Input: You can enter the amount you wish to trade in either the "Sell" field or the "Buy" field.

    • If you type an amount in the "Sell" field, the interface will automatically calculate and display the estimated amount you'll get in the "Buy" field.

    • Conversely, if you type an amount in the "Buy" field, it will show you how much you need to pay.

  • Using Max Balance: You might see a "Max" button next to the "Sell" field. Clicking this will automatically fill in the maximum amount of the selected token that you hold in your connected wallet.

Flipping Tokens

  • Swap Direction Button: Look for an arrow icon or a similar button between the two token fields. Clicking this button will swap the input and output tokens. For example, if you had APT in "Sell" and USDC in "Buy", clicking this button would switch them, so USDC is in "Sell" and APT is in "Buy".

Pre-Swap Information and Settings

Before you confirm your swap, the interface provides several key pieces of information and settings to help you understand the trade and manage your risk:

Estimated Output

Once you've selected your tokens and entered an amount, the interface will show you an estimated amount of the token you will receive. Keep in mind that this is an estimate; the actual amount might vary slightly due to rapid price changes in the market before your transaction is confirmed on the blockchain.

Price Impact

The price impact is the effect your trade will have on the market price of the token pair. It's shown as a percentage.

  • A low price impact means your trade is small relative to the available liquidity and won't significantly change the price.

  • A high price impact (e.g., above 1-2%) indicates that your trade is large for the current liquidity, or the pool has low liquidity. This means you'll get a less favorable rate. Be cautious with high price impact trades.

Slippage Tolerance

Slippage tolerance is a crucial setting that determines how much the price can change between the time you submit your transaction and when it's confirmed on the blockchain.

  • How it works: If the price changes unfavorably by more than your set percentage, your transaction will revert (fail) to protect you from overpaying.

  • Settings: You can usually choose from predefined percentages (e.g., 0.5%, 1%) or set a custom value. Some platforms also offer an "auto" slippage setting.

  • Trade-offs:

    • Low slippage (e.g., 0.1%) offers better price protection but increases the chance of your transaction failing during volatile market conditions.

    • High slippage (e.g., 3%) increases the likelihood of your transaction succeeding but means you might get a worse rate than initially estimated.

Minimum Received

Based on your input amount and slippage tolerance, the interface will often display a "Minimum Received" amount. This is the guaranteed minimum quantity of the output token you will receive if your transaction is successful. If the price shifts beyond this point, the transaction will not execute.

Trading Fees

Trading fees are a small percentage charged by liquidity pools on each swap. These fees reward liquidity providers for supplying tokens to the pool. The estimated output amount and price impact you see on the interface already factor in these trading fees.

Price Chart

To help you make informed decisions, a price chart is often available for the selected token pair.

  • Accessing the Chart: Look for a chart icon or button, typically near the swap settings or header.

  • Understanding the Chart: The chart displays historical price movements, which can give you insights into recent trends and volatility for the tokens you are considering swapping.

Executing the Swap

Once you're satisfied with your selected tokens, amounts, and the pre-swap information, you're ready to execute the swap. Here's how:

  1. Ensure Your Wallet is Connected:

    • To perform a swap, your cryptocurrency wallet (e.g., Petra, Martian) must be connected to the platform.

    • If your wallet isn't connected, the button at the bottom of the swap interface will likely say "Connect Wallet". Click it and approve the connection in your wallet extension.

  2. Initiate the Swap:

    • With your wallet connected and all details double-checked (tokens, amounts, slippage, price impact), click the main "Swap" button.

  3. Confirm in Your Wallet:

    • After initiating the swap, your wallet will prompt you to confirm the transaction.

    • A pop-up from your wallet extension will appear, displaying the details of the transaction, including the tokens and amounts involved, and the estimated gas fees.

    • Crucial Step: Carefully review these details in your wallet before proceeding.

    • If everything looks correct, approve the transaction in your wallet.

    • Sometimes you might be presented with a conversion transaction to sign BEFORE the swap transaction. This occurs when you are swapping legacy Aptos Coins. Tapp Exchange uses the up to date FA (Fungible Asset) Aptos standard, and will converet legacy coins to FA tokens before performing the swap for your convenience.

  4. Transaction Processing and Completion:

    • Once you approve in your wallet, the transaction is broadcast to the Aptos network.

    • Notifications:

      • Success: Upon successful completion, a notification will appear confirming that your swap was executed. Your new token balances should reflect in your wallet shortly.

      • Failure: If the transaction fails for any reason (e.g., too much slippage beyond your tolerance, insufficient network fees), a notification will inform you of the error. The reason for the failure will also be displayed.

Troubleshooting Common Swap Issues

Sometimes, a swap transaction might not go through as expected. Here are some common issues and how to address them:

General Error Messages

If your swap fails, you might see a general error notification like "Error! Please try again" or a more specific message from the system or your wallet. Try the action again, and if the problem persists, check the points below.

Insufficient APT for Gas Fees

  • Issue: All transactions on the Aptos blockchain require a small amount of APT tokens to cover gas fees. If your APT balance is too low, your transaction will fail. You might see a message like "Insufficient APT to cover gas fees."

  • Solution: Ensure you have enough APT in your wallet to pay for the transaction costs. You may need to acquire more APT and send it to your wallet address.

Insufficient Liquidity / Trade Exceeds Available Amount

  • Issue: This error appears if your desired trade amount is too large for the liquidity available in the pool, or if it exceeds certain platform safety limits (e.g., trying to swap more than a certain percentage of pool depth). You might see "Insufficient liquidity for this trade" or "Amount exceeds maximum allowed."

  • Solution: Try reducing the amount you're trying to swap. If the pool is very small, you might need to break your trade into smaller chunks or find an alternative token pair with deeper liquidity.

Transaction Failed Due to Slippage

  • Issue: If the market price of the tokens changes significantly (beyond your set slippage tolerance) between when you submit the transaction and when it's processed by the network, the transaction will fail. This is a safety measure to prevent you from getting a much worse price than expected.

  • Solution:

    • Try submitting the transaction again. Market conditions might have stabilized.

    • If the market is highly volatile, you could consider slightly increasing your slippage tolerance. However, be cautious, as this increases your risk of getting a less favorable price.

Wallet or Network Issues

  • Issue: Sometimes, the problem might not be with the swap platform itself but with your wallet or network connection.

  • Solution:

    • Ensure your internet connection is stable.

    • Make sure your wallet extension is updated to the latest version.

    • Try refreshing the page or restarting your browser.

    • If your wallet allows, check if its connection to the Aptos network (RPC node) is healthy, or try switching to a different RPC if possible.

A Note on Token Types (Coin vs. Fungible Asset)

On the Aptos network, tokens can be represented in a few ways, primarily as the native APT coin or as Fungible Assets (FA) defined by a specific standard.

You might encounter tokens that are technically "Coins" and others that are "Fungible Assets." Our swap platform is designed to handle these different representations seamlessly. If you're trading a token that requires a one-time registration or a minor conversion step to ensure compatibility, the system typically manages this for you automatically in the background when you make your first swap involving such a token.

This ensures you can trade a wide variety of Aptos tokens without worrying about the underlying technical details.

Last updated