# Swap

For swapping, the user can head over to the below page.

{% embed url="<https://app.derpdex.com/#/swap>" %}

Below are the steps to swap token, we will be swapping some amount of WBTC for USDC.

1. Head to the [swap page](https://app.derpdex.com/#/swap) and select the token you want to Swap.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FNrYlnXXN8ZBV6R6581N1%2FScreenshot_20230601_155400.png?alt=media&#x26;token=a9360843-a65a-4948-8212-d7588d92b7d6" alt=""><figcaption></figcaption></figure>
2. Input the amount of the token you want to swap in the input box. If you wish, you can adjust the network slippage from the setting button provided in the top left corner on the swap menu. If not, it will be set to `Auto` and provide the best rates.\
   Click on `Swap` button to continue.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FOvJ69tQcXC6cJumW7YFc%2FScreenshot_20230601_155115.png?alt=media&#x26;token=4ffad1d9-412e-4f1b-8f46-23784c79f68e" alt=""><figcaption></figcaption></figure>
3. Review your swap and click on `Confirm Swap` to continue.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FCGSE8s9El6vSFFNmm0ON%2FScreenshot_20230601_155120.png?alt=media&#x26;token=34f1adb6-d50d-41ea-894b-b1bb5767af79" alt=""><figcaption></figcaption></figure>
4. If you are using the token for the first time, a `spending cap` transaction needs to be signed by the user.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FDOQDlajXVdNSbEd2rSIo%2FScreenshot_20230601_155150-1.png?alt=media&#x26;token=d626c5d6-52b1-4785-830e-edcaeab38aac" alt=""><figcaption></figcaption></figure>
5. Now the `Swap` transaction needs to be signed and Transaction needs to be confirmed.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2F4B2S4e0yA78YV6fDEtQH%2FScreenshot_20230601_155219.png?alt=media&#x26;token=55b3433c-485e-406c-9f3b-b25d4609120f" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FYlUCajROaodT1mkTaOnk%2FScreenshot_20230601_155240.png?alt=media&#x26;token=71c4e6b6-8e65-4984-b927-c4488962ccf2" alt=""><figcaption></figcaption></figure>
6. Once transaction is confirmed, `Success` page will be shown on the DEX.<br>

   <figure><img src="https://3050206827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYiUQ0TCTeU3ZWoBCdNEi%2Fuploads%2FBZm5nIN1i0ovvMkEO45k%2FScreenshot_20230601_155314.png?alt=media&#x26;token=6370da89-b5bf-44eb-8dd4-1e538a4f5c81" alt=""><figcaption></figcaption></figure>

Once complete, you can view the transaction on the explorer too by clicking on the `View on Explorer` on the Success page.
