# Welcome to Tesseract

Avalanche's liquidity marketplace, move and swap any assets across Avalanche and it's ecosystem of L1s at lightning speed.

Built using Avalanche ICM and [ICTT](https://medium.com/@michelle.tian_5324/avalanche-interchain-token-transfer-09a7417d3e99) technology, Tesseract is a trustless, non-custodial, on-chain trading platform designed to connect liquidity between the C-Chain and Avalanche's growing network of L1s.&#x20;

By tapping into the entire Avalanche liquidity ecosystem, C-Chain and Avalanche L1 users will benefit by getting the best price on their trades. Plus, with a simple integration, L1 operators can tap into Avalanche's deep liquidity without needing to deploy their own DEX or manage liquidity pools themselves.

Tesseract is an Avalanche-native protocol built by Contributors behind the successful [Yield Yak](https://yieldyak.com) platform, and has been audited by leading security firm [OpenZeppelin](https://openzeppelin.com).&#x20;


# Features

1. **Seamless cross-L1 swaps on Avalanche**

Tesseract solves liquidity fragmentation by routing swaps across the Avalanche ecosystem, supporting both the C-Chain and your favourite Avalanche L1s, decentralized exchanges (DEXes), and tokens. You'll also be able to use the Tesseract UI to bridge tokens across Avalanche.&#x20;

Here's how a Tesseract swap works:&#x20;

<figure><img src="/files/iAEC3lh6xXNjrpADx60i" alt=""><figcaption></figcaption></figure>

2. **Best Prices via ecosystem-wide liquidity**

Benefit from the entirety of the Avalanche Ecosystem.  Tesseract checks for the best price for your swap, taking into account gas-fees and leveraging multi-hop routes on both the C-Chain and on Avalanche L1s.&#x20;

3. **Simple integration for Avalanche L1 developers**

Running an Avalanche L1?  Deploy Tesseract in a few simple steps to access all of Avalanche's deep liquidity.  With Tesseract deployed there's no need to manage your token(s) liquidity on your L1, as Tesseract will seamlessly connect users to its C-Chain liquidity.&#x20;

4. **Fast and Optimal user experience with automatic liquidity sourcing**

&#x20;Experience complete round trips to and from the C-Chain in less than 10 seconds, setting the standard for cross-L1 efficiency.  The Tesseract's UI keeps users updated on progress as the transaction progresses.&#x20;

5. **No RPC Switching**:&#x20;

Conduct swaps from your source L1 without the need to switch Remote Procedure Call (RPC) endpoints.

6. **Cost-Effective**:&#x20;

Tesseract ensures reasonable slippage and gas costs, optimizing your trading experience.

7. **Open-Source**:&#x20;

Tesseract smart contracts and front-end are open-source, ensuring transparency and encouraging community contributions and collaboration.  Check out the [Tesseract Github](https://github.com/tesseract-protocol/smart-contracts)

8. **Extensive L1 and Token Support**:&#x20;

Tesseract will support a core set of popular L1s and tokens, while offering long-tail support for a wide range of Avalanche L1s, DEXes, and tokens.


# Supported DEXes and L1s

Decentralized Exchanges (DEXes):

* [LFJ](https://lfj.gg)
* [Pharaoh](https://docs.tesseract.finance/www.pharaoh.exchange/swap)
* [Uniswap](https://app.uniswap.org)
* [WooFi](https://www.fi.woo.org)
* [Curve](https://curve.fi)
* [GMX (v1)](https://www.app.gmx.io)
* [Wombat](https://app.wombat.exchange)
* [Pangolin](https://pangolin.exchange)
* [Benqi ](https://benqi.fi)(native sAVAX minting)
* [Blackhole DEX](https://www.blackhole.xyz/)
* [Dexalot](https://dexalot.com)

**Avalanche L1s:**

* [The Grotto](https://enterthegrotto.xyz)
* [Blaze Stream](https://blaze.stream)
* [Orange Web3](https://orangeweb3.com)
* [Kite AI (Testnet)](https://gokite.ai)


# Frequently Asked Questions

<details>

<summary>Why should I use <strong>Tesseract instead of my favourite Avalanche DEX?</strong></summary>

Tesseract will check the best price for you across multiple DEXes, saving you time & money.  Tesseract will also perform multi-hop routes, taking advantage of any arbitrage opportunities.&#x20;

But what makes Tesseract unique is that it will also check liquidity pools on other Avalanche L1s and route trades through them if it's cheaper to do so, saving you even more. &#x20;

</details>

<details>

<summary>Is Tesseract safe to use? </summary>

Tesseract has been audited by [OpenZeppelin](https://openzeppelin.com), a leading blockchain security firm. The audit can be found here: <https://blog.openzeppelin.com/tesseract-protocol-audit>

</details>

<details>

<summary> <strong>Which wallets will I be able to use with Tesseract?</strong> </summary>

We recommend using the Avalanche native [Core Wallet](https://join.core.app) for the best experience. However, Tesseract will also supports other Avalanche-compatible wallets such as Rabby, MetaMask and WalletConnect-compatible wallets.

</details>

<details>

<summary>Does Tesseract charge a fee? </summary>

Tesseract charges a protocol fee of 0.1% (10 bips) for swaps and multi-hop routes which benefit from Tesseract scanning both the Avalanche C-Chain and integrated L1s to provide the best price.  There is no fee for simple single-hop cross-chain transfers.

</details>

<details>

<summary>What happens if a swap fails mid-route? </summary>

In rare cases a swap may fail mid-route, for example if pricing changes dramatically mid-swap.  In these cases Tesseract will roll back your funds to the previous chain prior to the failure.  The Tesseract UI will notify you of where your funds are in these rare cases.&#x20;

</details>

### Support

If you don't see your question answered here, please create a Support Ticket in [Tesseract's Official Discord. ](https://discord.gg/BFk32ZVXgk)


# Audit

Tesseract smart contracts have been audited by OpenZeppelin.  You can read the audit on their blog here: <https://blog.openzeppelin.com/tesseract-protocol-audit>


# Guide for L1s

Below is an overview for Avalanche L1 developers looking to integrate Tesseract into their L1. Tesseract facilitates fast and simple token swaps between Avalanche L1s, and by integrating your L1, you can offer your users seamless cross-chain functionality.

<figure><img src="/files/1OIfBBbNaF4js2mAdQhD" alt=""><figcaption><p>Integration takes just a few steps</p></figcaption></figure>

### Integration Steps

1. **Deploy ICTT Contracts**

Implement the Avalanche Interchain Token Transfer (ICTT) standard on your L1 by deploying the necessary contracts:

* Deploy TokenHome and TokenRemote contracts
* Ensure your native token and any other desired tokens you'd like your users to have access to on your L1 are deployed through ICTT

For more info on ICTT, refer to this overview: [Avalanche Interchain Token Transfer](https://medium.com/@michelle.tian_5324/avalanche-interchain-token-transfer-09a7417d3e99)

2. **Deploy Tesseract Cell**

* Deploy Tesseract [smart contracts](https://github.com/tesseract-protocol/smart-contracts) on your L1

3. **Contact Tesseract Team**

A Telegram channel to support developers can be joined [here](https://t.me/yakdevs).  Once the Tesseract cell is deployed, simply alert contributors who will add your L1 to the preferred registry, unlocking access to the wider Avalanche Ecosystem.


