# Frictionless FX Swaps

{% hint style="success" %}
Frictionless FX Swaps enable Investors to invest instantly, securely and risk-free at super low cost in multiple currencies.
{% endhint %}

The FX Swap contracts in the Frictionless protocol provide an instant/atomic swap of a currency pair at a quoted spot or forward rate.

Built on cash custody with G-SIB banking providers and FX partners in the EU, the list of supported currencies and currency pairs is maintained in our  [Frictionless Institutional Deposit Tokens](https://docs.frictionless.markets/developer/smart-contracts/deployments/institutional-deposit-tokens) listing.

{% hint style="info" %}
Frictionless FX Swaps remove the complexity of investing in multi-currency, whilst providing ultimate flexibility and transparency of FX rates and settlement.
{% endhint %}

FX Swaps work by automating the treasury operations in an FX transaction, namely:

<figure><img src="https://257329724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn1p8Xj3fTDixdW6ELAVY%2Fuploads%2FLMrzE8cpKfyrDqeu0WUE%2Ffrictionless-protocol-img-src-Frictionless-FXSwap.drawio%20(1).png?alt=media&#x26;token=04f903f2-9d1b-4a21-b42e-c3140120b69f" alt=""><figcaption><p>Schematic a Frictionless FX Swap</p></figcaption></figure>

1. Establishment of optional FX fees to be paid by the seller of `currency A`,
2. Utilization of the buying rate for `currency Z` in the swap. The rate utilized in the Frictionless protocol is obtained from our FX partners, the Frictionless Markets team support both spot and forward rates for FX Swaps offering clients the ultimate flexibility and transparency in FX swaps.
3. Execution of the swap as a single atomic transaction whereby `currency A` and `currency Z` are burned and minted from/to two counterparties with the automatic collection of optional fees. This operation can only be directed by the PROTOCOL\_TREASURY to avoid market manipulation of FX rates.

An example of a live FX Swap on the Avalanche C-Chain is at <https://snowtrace.io/tx/0x115570645b70ac573e9ce2f2d4e03f0bd71f502e4dd7019bab6a155417138851?chainId=43114>.

In this FX Swap USD was sold for 5,000 EUR. The rate used was a spot rate provided to the Frictionless Markets team. In the block explorer, you can see the collection of fees, burn of fsUSD and mint of fsEUR. The swap and fee collection ran as a single atomic transaction and cost 0.80 USD to execute on the Avalanche C-Chain.

<figure><img src="https://257329724-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn1p8Xj3fTDixdW6ELAVY%2Fuploads%2Fdn4vBrU76RQDk0RC65z5%2FScreenshot%202023-12-28%20at%2018.44.33.png?alt=media&#x26;token=c115c656-6ffa-4144-974a-c230be2d5c14" alt=""><figcaption><p>Live FX Swap - fsUSD for fsEUR (spot rate from Alpha FX)</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.frictionless.markets/developer/smart-contracts/smart-contract-docs/frictionless-fx-swaps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
