Creating an Order
Understanding the Cockpit, the Order Form, Customization Card, supported assets, getting weth, segmented swaps, choosing policies.
Every swap order begins by providing order details. These define the constraints that the system will use to optimize results.

The Cockpit

The Execution Cockpit
After you sign in to the web 3 environment with your preferred wallet, you'll land into this view on the web app. Let's take a better look at what we've got going on here.

The Order Form

The Order Form lets you indicate the input token and output token, select the order type, grant approval to the input token amount, indicate order type specific policies, review the base rate, and submit the order when ready.
  1. 1.
    Your input token requires approval. The lock icon will turn from red to green when approval has been granted. To do this, first enter an input amount then click the icon. You have the choice to 1) approve a specific amount (say 30 UNI) or 2) approve infinite UNI (so for any txn you spend UNI on you are always approved. We recommend going with the infinite approval.
  2. 2.
    After you've entered the required fields for the Order Form the Estimated Outcomes will automatically request a quote.
  3. 3.
    If you like what you see, you can submit a recommended order.

Customization Card

The customization card lets you configure Order Policies beyond those from the Order Form. These include configuring the number of swaps, gas strategy, expiration time, and max slippage. Apply changes to update the Estimated Outcomes.

Supported Tokens

Token swaps are performed without taking custody of assets. This is possible because ERC20 tokens allow token owners to grant spend allowances to 3rd parties. Note that ETH itself is not an ERC20 token, and therefore cannot be automated for swapping. Instead, users must first wrap ETH into the WETH token and use that for swapping instead. Use the Get WETH in the navbar (coming live soon).
Dexible supports any ERC20 token, but by default, it only displays tokens available from Uniswap's default TokenList. To add a custom token, simply enter its contract address into the token selector search field and it will resolve the token details on-chain and store those details locally in your browser.

Segmented Swapping

A key characteristic of Dexible is its ability to size an order based on past market behavior. Most small/mid-cap tokens with low liquidity incur significant slippage if a single swap contains too many tokens. To minimize slippage, QuantOS breaks the order into a series of rounds or segments. The size of each rounds is determined by analyzing past token swap behavior to determine the best number of tokens to swap per round. Once this is determined, a proper estimate can be made on the expected costs and outcomes depending on the type of order being executed.
Last modified 3mo ago