# Routing & Quoting

### Quotes

Before you can execute your swap you will first need to get a quote from the aggregator network.

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FPIDC8oyZeggh4mAEiSdi%2Fimage.png?alt=media&#x26;token=e111d2c7-56d9-4d5f-b014-09be35a7d98b" alt=""><figcaption><p>Fetch Quote will open a route summary and quote overview dialog.</p></figcaption></figure>

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2Fh7YMbJoFlPrsXNvo0ZlP%2Fimage.png?alt=media&#x26;token=e1bd224a-b801-433b-959a-5c6f38053e31" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The output amount shown before a real quote is requested is an estimation that does not take into account slippage, or market depth.  price impact and volatility occuring while enroute trades are fulfilled will cause divergence from these estimates.
{% endhint %}

### Routes

Each swap quote generated on the Sherpa *Swap* interface will present a dynamic route.  These are based on a diagrammatic sankey standard for mapping transactions complex trade operation in a logical manner.  The amount of hops, pool exposure, volume, and multi input / output details are broken down.

{% tabs %}
{% tab title="Typical Map" %}

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FPBZIUjoYQLqZ3RFWRs84%2Fimage.png?alt=media&#x26;token=4c069e8e-1bec-4452-be83-7de5eda9df7a" alt=""><figcaption><p>Typical simplified 3 asset input to 3 asset output route.  More complex routes wont genrate route maps.</p></figcaption></figure>
{% endtab %}

{% tab title="Rouet Details" %}

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FJmcPiszNJR7ADDyP8enc%2Fimage.png?alt=media&#x26;token=679bae52-e666-426c-8a8e-e166b7a710a9" alt=""><figcaption><p>Hover cursor over each colored band to see the details of which DEX pool it corresponds to.</p></figcaption></figure>
{% endtab %}

{% tab title="Volume Scaling" %}

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FuC0w32KSK0jxrtYEEWCl%2Fimage.png?alt=media&#x26;token=042a4258-5752-452e-a158-b186e015939f" alt=""><figcaption><p>Higher volume legs will be illustrated as the thickest bands.</p></figcaption></figure>
{% endtab %}

{% tab title="Price Impact Warning" %}

<figure><img src="https://3023247704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmGY4Whi8NfSk5tdGdtt1%2Fuploads%2FJSeVFEAD3ctKyej3rhNV%2Fimage.png?alt=media&#x26;token=a8c6e563-c27a-4e62-aed5-d2227f380850" alt=""><figcaption><p>Note that multi-swapping with assets of very low liquidity can expose you to critical price impact losses.</p></figcaption></figure>
{% endtab %}
{% endtabs %}
