# Swap

## How to swap

Token swaps are a simple way to trade tokens on StarkDeFi's platform. Users can swap tokens from a growing list of crypto assets across the Starknet ecosystem.

It's as simple as this:

{% embed url="<https://youtu.be/ZB-N00NUDZo>" %}
How to swap
{% endembed %}

**Step 1**: Selects an input token (ETH in this case)

<div align="left"><figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2Fy72uymJjQuRYceFrbSqA%2Fswap-input.png?alt=media&#x26;token=92a3691f-3f2c-440d-a67d-8a4aee825e08" alt=""><figcaption><p>selecting an input token</p></figcaption></figure> <figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2FswLMZCiOP7j5v425HvdG%2Fselect-token.png?alt=media&#x26;token=cf4fc375-da56-4847-a8eb-a97566360e11" alt=""><figcaption><p>Token list</p></figcaption></figure></div>

**Step 2**: Selects an output token (USDC in this case)

<div align="left"><figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2Fvn4AqyKgrROraRpEkVdX%2Foutput-token.png?alt=media&#x26;token=d63ea278-b251-4e28-85ce-a8257f594229" alt=""><figcaption><p>selecting an output token</p></figcaption></figure></div>

**Step 3**: Enter amount of token you want to swap (ETH in this case)

<div align="left"><figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2FcB1JabDfUWT2J3gEf40I%2Fswap.png?alt=media&#x26;token=95042dfb-99cf-43d1-a0d6-3f42faf09890" alt=""><figcaption><p>choosing an input token amount</p></figcaption></figure></div>

**Step 4**: The Starknet protocol calculates the number of tokens you'll receive as output.

{% hint style="info" %}
Our AMM protocol will give an instant feedback on rates and slippage.
{% endhint %}

**Step 5**:  Clicking  "Swap" to proceed, then click "Confirm Swap" to execute.

<div align="left"><figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2FxkYerBlYi4liZRaUcV0o%2Fconfirm-swap.png?alt=media&#x26;token=5df8be03-9598-4624-a46c-4dff18e1b5bc" alt=""><figcaption><p>confirm swap</p></figcaption></figure> <figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2F1qJJxJQbzKmM4N4dKDUx%2Fconfirming.png?alt=media&#x26;token=be0f32ba-8cc5-4415-87f6-952c1a8dd3d8" alt=""><figcaption><p>confirming swap</p></figcaption></figure></div>

**All set**: You will receive your tokens once the transaction is confirmed on L2<br>

<div><figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2FTyLCT9BEyiOnyXSCkGsw%2Fsubmited-swap.png?alt=media&#x26;token=e67cdf85-78aa-4971-b3cc-5cd5be1bc8bd" alt=""><figcaption><p>swap submitted</p></figcaption></figure> <figure><img src="https://4274982886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnsPor4FRAEB97AaSdxfJ%2Fuploads%2Feo31wB5ooc5PWT5vhjAL%2Fmined.png?alt=media&#x26;token=34ecaf2d-e6e9-4bbb-9311-05ebe6898608" alt=""><figcaption><p>swap confirm on L2</p></figcaption></figure></div>
