CompX Documentation
  • Welcome to CompX
    • Connecting to CompX
  • Portfolio Tracking
    • Portfolio Tracking Overview
  • Swap Router
    • Swap Router Overview
    • The CompX Router
    • CompX Router Layout
    • Performing a Swap
    • Minting fAssets
  • Token Streams
    • Token Streams Overview
      • Token stream UI
      • Receiving a Token Stream
      • Creating Token Streams
  • X-NFT
    • X-NFT Overview
    • X-NFT Current Status
  • xUSD
    • Overview
      • Vault Design
    • Tokenomics
      • Stability Mechanisms
        • Variable Interest Rate
        • xUSD Staking
      • Liquidation
        • Liquidation Example
        • Performing a Liquidation
      • Borrowing xUSD
      • Managing Debt
  • Staking pools
    • STAKING at CompX
    • Algorand Consensus Staking Overview
      • CompX Consensus Implementation
      • Understanding LSTs
      • Using CompX cAlgo
    • Using Time Locked Contracts
    • Using Injected Liquidity Contracts
    • Genesis Pools
      • Creating a Genesis Pool
      • Staking in a Genesis Pool
  • Governance
    • CompX Governance-Flux
    • Proposals
    • Voting
    • Maximizing Voting Power
  • Rewards
    • Overview
    • Earning Points
Powered by GitBook
On this page
  1. Swap Router

CompX Router Layout

PreviousThe CompX RouterNextPerforming a Swap

Last updated 7 months ago

  1. The Connected Wallet Address Icon displays the wallet that's currently connected to the CompX dApp. Tapping on this button reveals the "Disconnect" option, that ends the wallet connect session. Additionally, tapping on the button reveals the link to the Accolades acquired by the connected wallet. If no wallet is currently connected to the dApp, the button will display "Connect". Clicking or tapping on that will allow the user to initiate a new wallet connect session.

  2. The CompX App Navigation Menu opens a navigation window that allows users to move between different areas of the CompX dApp. This button is persistent in all areas, allowing easy navigation between CompX product and information pages.

  3. The Refresh Data button allows the user to refresh their account details by rechecking all available protocols. This can be used to refresh a session if any information is out of date.

  4. The View Current/Historical Limit orders button displays relevant Limit order information associated with the connected wallet to the user, including relevant dates and order status. Any Deflex limit order will be displayed, even those not initiated through CompX.

  5. Advanced Settings allows users to customize several swap specific parameters. When pressed, a popup will open with the following options.

    1. Default Slippage tolerance can be adjusted here with .1%, .5% and 1% being the available options.

    2. The market landscape changes in real time. The Refresh Quotes option, which is on by default, re-runs the optimization every 20 seconds to verify that no better routes have been found. This behavior can be toggled on and off here.

    3. Enable Swap Protocol allows users to select which dexes are used by the swap router. By default all are active.

  6. Use Swap Input Token Selection to select the token type that the user wants swap. The options here are limited by the opted in tokens in the user wallet.

  7. Quick Amount Selection allows users to easily select common amounts of their token to swap.

  8. The Swap Input Manual Entry/Display will auto-fill with the correct number of tokens if the Quick Amount Selection is used. Otherwise, any custom amount can be manually entered in this field.

  9. Using current pricing data, the Estimated Value field gives the approximate USD value of the tokens that are going to be swapped.

  10. This space allows the user to select the token that the user wants to receive from the swap. This is not limited to tokens already in the users wallet. If the user isn't opted into the token, the first step of the swap will be to opt into this token automatically.

  11. The amount of the token the user wants to receive is specifiable here. If a set number of tokens is manually entered into this field, the number of swapped tokens coming from the users wallet will be adjusted to achieve the entered number based on market conditions.

  12. Here the approximate USD value of the tokens the user will receive is displayed.

  13. By default the Limit Order Toggle is off. If the user wishes to create a limit order this toggle can be flipped on. The Input and Output fields will no longer be linked, and the limit order will fulfill when the relationship between sell and buy tokens is achieved.

Mobile display of the CompX Router interface. The same options are available in a similar layout for Desktop