The Swap function on the ALEX Bitcoin DeFi platform provides a trustless and decentralized exchange (DEX) of tokens.
First, select the “Swap” tab on the top menu bar to view the exchange panel:
The token at the top is the “base” token, or token that you currently hold and will submit in the exchange. The token below is the “quoted” token, or token that you will receive in the exchange. The central down pointing arrow, shows the direction of the transaction: in this example, xBTC will be exchanged for STX. The line below the quoted token box will show the current market exchange rate, as well as the USD equivalent.
Clicking on the central down pointing arrow will quickly invert the order of your transaction, so your base token becomes your quoted token and vice versa.
Clicking on the drop menu arrow on either the base or quote token will bring up the token search and selection panel:
Selecting the “gear” icon in the upper right-hand corner of the Swap panel will open the Transaction Settings panel. Here you can specify:
Selecting the “three dots” near the bottom left of the Swap panel, will show the transaction details such as:
Once you agree with the settings listed and are ready to move ahead, select “Swap” which will bring up the “Confirm Swap” panel. This provides a final overview of the details of your transaction, which as previously discussed include:
Select “Confirm” which will bring up the smart contract confirmation window. This is the final confirmation that executes the transaction:
After selecting “Confirm” a final time you will see that your transaction has been broadcast, with a “View in explorer” link to verify your transaction status.
Please note, that it may take up to 20–40 minutes for your balance to be updated in your wallet. ALEX is built through Stacks smart contracts which settle on the security and finality of Bitcoin, and this transaction time reflects the Bitcoin block speed as well processing on the Stacks network.
Thank you for successfully swapping on ALEX!