# Welcome

<div align="left"><figure><img src="https://4116110341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLpthpZ7K8YiWK3WgXdzC%2Fuploads%2FHkplUVnNMqiK78czvMeb%2Flogo_wide.png?alt=media&amp;token=006410e3-76d9-4f8b-aae0-b6f0b41f8215" alt="" width="200"><figcaption><p>https://zklite.io</p></figcaption></figure></div>

\
[**zkLite exchange**](https://zklite.io) is a fork of [ZigZag](https://zigzag.exchange), thanks to its open-source codes.

The platform is a decentralized order book exchange built on ZK Rollups.<br>

{% hint style="info" %}
Unfortunately, ZigZag is discontinued due to the pressure from US regulators. \
zkLite Exchange will continue this mission to provide order-book trading experience on zkSync Lite and so on.
{% endhint %}

{% embed url="<https://twitter.com/ZigZagExchange/status/1778851424014671969>" fullWidth="false" %}


# Referral Program

zkLite Exchange Referral Program - Terms and Conditions

**Welcome to the Referral Program of**[ **zkLite Exchange**](https://zklite.io/)**, where you can earn extra rewards just by inviting your friends! 🚀🌍**

### **How to join?**

Getting started with **zkLite Exchange**'s Telegram Chatbot to create your referral link and share it with your friends. Update soon...

### Here's how it works: <a href="#heres-how-it-works" id="heres-how-it-works"></a>

* 1️⃣ Refer your friends to **zkLite Exchange** using your unique referral link. For every successful referral [**(A)**](#terms-and-conditions), you'll earn <mark style="color:blue;">**`2 USDT`**</mark>**,** and up to <mark style="color:blue;">**`100 USDT`**</mark> trading volume commission [**(B)**](#terms-and-conditions)! 💰 The more friends you invite, the more coins you get!
* 2️⃣ As a bonus, the top 3 users with the most successful referrals every month will share a <mark style="color:blue;">**`500 USDT`**</mark> prize [**(C)**](#terms-and-conditions)! 🏆 It's a friendly competition to see who can spread the word about **zkLite Exchange** the best!
* 3️⃣ By joining our Referral Program, you'll also be among the first to know about and participate in our upcoming operations on other L2 chains! 🎁

### Terms and conditions:

* [**(A)**](#terms-and-conditions) A successful referral is acknowledged when they have completed at least 3 trades, and the total traded volume must be at least <mark style="color:blue;">**`200 USD`**</mark> notional value.
* [**(B)**](#terms-and-conditions) You will receive a commission <mark style="color:blue;">**`0.1%`**</mark> from your friend's trading volume. For example, if your friend made 3 trades, and the volume is worth 5000 USD, you will receive: <mark style="color:blue;">**`2 + 5000 * 0.1% = 7 USDT`**</mark>
* [**(C)**](#terms-and-conditions) The prize will be paid on the last date of each month and announced on our website and social media.\
  **The split for the top 3 will be&#x20;**<mark style="color:blue;">**`250$ - 150$ - 100$`**</mark>**&#x20;corresponding to their position.**
* **Referral rewards will be accumulated, we take snapshots weekly on Sunday, and your rewards will be paid within the next week (7 days), and the minimum pay threshold is 1 USDT.**&#x20;
* **We carefully review each invited referee when they reach condition** [**(A)**](#terms-and-conditions)**, manipulating trading volume using fake market-maker bots is prohibited and will not be paid.**&#x20;
* **The duration of the Referral program is limited and could be ended anytime, so take your chance now!**


# Links

#### Website <a href="#website" id="website"></a>

* ​Landing page: [https://zklite.io/​](https://zklite.io)
* zkSync Lite DEX: [https://trade.zklite.io/](https://trade.zklite.io)

#### Social Media and Community <a href="#social-media-and-community" id="social-media-and-community"></a>

* ​Twitter: <https://twitter.com/zklite_exchange>​
* ​Telegram: <https://t.me/zklite_exchange>​
* ​Discord: <https://discord.gg/ebA2eXba>

#### Support <a href="#support" id="support"></a>

You can contact zkLite Exchange through email <contact@zklite.io>. Another option is to join the Community Discord or Telegram if you want quick answers to your questions or if you want to get in touch with support.


# Overview

[**zkLite Exchange**](https://zklite.io) was launched on zkSync Lite (previously zkSync 1.0) in Apr 2024 based on ZigZag legacy source codes. On this page, you will find more information about how the DEX works.

## Atomic swaps <a href="#atomic-swaps" id="atomic-swaps"></a>

zkSync Lite does not support smart contracts, but only pre-compiled contracts by MatterLabs. zkLiteExchange is utilizing the built-in [atomic swap](https://docs.lite.zksync.io/dev/swaps/#atomic-swaps) feature to provide swaps to users. **zkLite Exchange** matches users with market maker bots. Users and market-maker bots can post liquidity in the order book, but only market-maker bots can fill orders. Unfortunately, zkSync Lite does **not support partial fills**. This means that orders will only get executed when a market maker can fully fill the order. More information on market maker bots can be found on the [Market Maker page](/zksync-lite/market-maker-bot).

## Swap fees <a href="#swap-fees" id="swap-fees"></a>

There are no fees for placing or canceling orders. **zkLite Exchange** is also not charging any protocol fee for the use of the platform. Users only pay swap fees (around $0.05) to cover[ zkSync network fees ](https://docs.lite.zksync.io/userdocs/tokens/#fee-costs)(as found on [transactions in the explorer](https://zkscan.io/), or on [L2Fees](https://l2fees.info/)). Market maker bots pay these network fees, but users pay the swap fee to the market maker. Swap fees are [paid with the token you're trading](https://docs.lite.zksync.io/userdocs/tokens/#supported-tokens). You don't need ETH for swap fees for example. If you bridge over DAI to zkSync, you can trade DAI for ETH and pay the gas fee with your DAI.

zkSync network fees depend on network activity and L1 gas. With more activity on zkSync, swap fees will go down. Thus, swap fees will lower over time. In the beginning, network fees were $1 on zkSync, but have now lowered to $0.05.

## Limit order system <a href="#limit-order-system" id="limit-order-system"></a>

The limit order system is live on zkSync Lite. After 7 days of placing a limit order, it will expire and a new order has to be placed. On zkSync Lite you can only have **one** order open at a time. If you have a limit order open, you can't place other orders on that account. If you make a normal transaction (sending funds from your account) or a bridge transaction, your limit order will be canceled.

## Bridging/Deposit/Withdraw <a href="#bridging-and-fees" id="bridging-and-fees"></a>

* zkSync Lite portal: <https://lite.zksync.io/>
* LayerSwap: <https://www.layerswap.io/app>

## **List your pair on zkLite Exchange**

If your token isn't available on **zkLite Exchange**,  you can submit a request via our [community channels](/links#social-media-and-community). We will list your token as soon as liquidity providers are ready for it.

## What is the account activation fee? (Change Pubkey transaction) <a href="#what-is-the-account-activation-fee-change-pubkey-transaction" id="what-is-the-account-activation-fee-change-pubkey-transaction"></a>

The account activation fee is a one-time fee imposed by zkSync to[ register your account with zkSync](https://docs.lite.zksync.io/userdocs/tutorials/#account-activation). This fee only applies to your first zkSync transaction. The registration process happens directly on the Ethereum smart contract and therefore it is an L1 transaction, so the activation fee is to pay the Ethereum miners and not zkSync validators.

## Tokens listed on zkLite Exchange <a href="#tokens-listed-on-zigzag" id="tokens-listed-on-zigzag"></a>

All tokens listed on **zkLite Exchange** can be found here: <https://zkscan.io/explorer/tokens/>. zkSync filters out tokens and lists the correct ones based on CoinGecko and Uniswap. This means that only legit tokens will get their correct ticker. Scam tokens will be listed as ERC20-XXX tokens. **zkLite Exchange** can only list tokens that have been bridged through zkSync's smart contract. The token name and ticker are pulled from the token contract and can be found in the pair.

Clarification on certain tokens:

* FTM - Native
* MATIC - Native
* SOL - Wormhole
* AVAX - Wormhole

## What is the difference between an Initiated, Committed, and Verified transaction on zkScan? <a href="#what-is-the-difference-between-an-initiated-committed-and-verified-transaction-on-zkscan" id="what-is-the-difference-between-an-initiated-committed-and-verified-transaction-on-zkscan"></a>

The differences can be found in [zkSync's FAQ](https://docs.lite.zksync.io/userdocs/faq/#faq):

* **Initiated:** the zkSync server has received and processed the transaction.
  * If you made a **transfer** or **swap**, your funds are available immediately.
* **Pending:** the transaction appears in a block that is committed to the L1 smart contract.
* **Complete:** the transaction’s block has been proven and verified on the L1 smart contract.

## Nonce mismatch <a href="#nonce-mismatch" id="nonce-mismatch"></a>

Occasionally a ‘nonce mismatch’ error can come up when placing an order, resulting in a rejected order. This does **not** result in deducted gas or trading fees. What you can do as user is to refresh, reconnect your wallet, and place a new order.

When a user signs an order, the nonce is included in the signed message. So when the swap is submitted, the user's nonce has to match the signed nonce. If the user or the market maker increases their nonce before the swap is submitted (by making any other transaction, eg transfer, withdraw or another swap) then the order they signed becomes invalid. This becomes especially apparent when a market maker has to process a lot of swaps at a time.


# Guide

If you want to use [**zkLite Exchange**](https://zklite.io) on zkSync, you will first need to bridge your funds from Ethereum Layer 1 to zkSync Layer 2. After that, a [one-time activation fee ](https://docs.lite.zksync.io/userdocs/faq/#what-is-the-account-activation-fee)is required by zkSync's design to activate your account. You're then ready to start trading on [zkLite.io](https://zklite.io)

1. Go to <https://lite.zksync.io/>, switch your wallet network to Ethereum, connect your wallet, and sign the message to access your account
2. Go to [Top up -> Bridge](https://lite.zksync.io/transaction/deposit) and fill in the amount and the token you want to transfer from L1 to L2.
   * Alternatively, you can also top-up/deposit via Bybit, LayerSwap, ..v.v
3. Confirm the transaction in your wallet and wait until your funds are bridged to zkSync
4. Once your funds have arrived, sign zkSync's one-time activation fee and start trading at <https://trade.zklite.io/>

Check your account and transaction details:

* Balances:
  * zkSync Lite wallet: [https://lite.zksync.io/](https://lite.zksync.io/transaction/deposit)
  * Or go to <https://trade.zklite.io/> and click the 'Balances' tab next to 'Orders' and 'Fills'
  * [zkscan.io](https://zkscan.io/)
* Transaction details: [zkscan.io](https://zkscan.io/)


# Market-maker bot

Instead of traditionally LP'ing funds into a liquidity pool, on **zkLite Exchange**'s order book users can run a market maker bot. This means users are stepping into DeFi and getting yield on their funds without impermanent loss. Market making provides liquidity for **zkLite Exchange** while earning a profit from the spread. Make sure to rebalance when needed!

Anyone can run a market maker bot on zkSync Lite. The market maker bot fills the market and limit orders. Technical instructions on how to run the bot can be found in the [README in the market-maker repository](https://github.com/zklite-exchange/market-maker) on GitHub. The code can be found on [this specific GitHub page](https://github.com/zklite-exchange/market-maker).\
\
Please replace the corresponding API endpoints of ZigZag with **zkLite exchange's** API endpoint:&#x20;

* <https://api.zklite.io>
* wss\://api.zklite.io


