# Introduction

Welcome to JIBSWAP official document

<figure><img src="/files/w8a2nznq6xieEm71wXTp" alt=""><figcaption><p>Jibswap V1</p></figcaption></figure>

**Jibswap** is a Decentralized Exchange (DEX) using Automated Market Maker (AMM) that operates on the JIB Chain. Jibswap offers users a platform for engaging in crypto trading and exchanges in a decentralized manner. The platform is built using a system on Uniswap V2 forked, positioning it within the broader landscape of decentralized finance (DeFi).

## **Key features of Jibswap include:**

* **Decentralization**: Emphasizing user autonomy and reduced reliance on centralized authorities.
* **Crypto Trading**: Facilitating the exchange of various cryptocurrencies in a secure environment.
* **AMM System**: Utilizing an automated market-making system to provide liquidity and enable trading.
* **Community-Driven Development**: Regular updates and active development, with a focus on community involvement and open-source collaboration.

For comprehensive details about Jibswap, including specific services, user guides, and the latest updates, you can visit their official website at [Jibswap](https://jibswap.com/). The website provides a portal into the platform, offering insights into how it integrates within the DeFi ecosystem and serves its user base.


# Token listing

Everyone can add your own token pair, if you want to insert token logo, please feel free submit [this form](https://m32jbqx1hl1.typeform.com/to/CiHLdddj)


# Airdrop

To be updated...


# Liquidity Mining


# What Is Liquidity Mining?

Liquidity mining refers to injecting funds (in the form of digital assets) into liquidity pools, providing decentralized exchanges with liquidity to earn rewards.&#x20;

DeFi users injecting funds into liquidity pools are called liquidity providers (LPs). Typically, they deposit two tokens into a decentralized trading pool to earn a share of the pool’s trading fees, plus protocol tokens paid out as incentives to LPs to provide liquidity.

Liquidity mining is enabled by decentralized exchanges that deploy [automated market makers (AMMs)](https://unchainedcrypto.com/what-is-automated-market-maker/), enabling LPs to contribute liquidity into a decentralized trading smart contract to allow traders to buy and sell the (usually) two tokens held in the trading pool directly from and to the smart contract.&#x20;

ref: <https://unchainedcrypto.com/what-is-liquidity-mining/>


# How Does Liquidity Mining Work?

Now, let’s take a look at how liquidity mining works in the DeFi markets.

* A trading protocol, such as Uniswap, provides two tokens, X & Y, in an autonomous liquidity pool for trading.
* Trading requires liquidity in both tokens to ensure users can buy and sell the two tokens without significant price slippage. Liquidity providers deposit equal proportions of tokens X and Y into their liquidity pools to ensure that there’s ample liquidity for that.&#x20;
* Trading continues within the pool as users swap token X for Y and vice versa. Every trader pays a trading fee (in addition to network fees) for token swapping.&#x20;
* The protocol then distributes the fees (paid in the liquidity pool tokens) to liquidity providers, proportional to their deposited funds. Additionally, liquidity mining rewards are paid in the protocol’s governance tokens. In the case of Uniswap, that would be UNI.
* If there is an imbalance between the two tokens, the AMM adjusts its prices accordingly to encourage more investors to input liquidity into the pool.

To cash out the fees and rewards, liquidity providers must withdraw their assets from the trading pools back into their personal crypto wallets.&#x20;

ref: <https://unchainedcrypto.com/what-is-liquidity-mining/>


# Benefits of Liquidity Mining

Since the relationship between the DEX, liquidity pools, and liquidity providers is symbiotic, liquidity mining benefits all parties involved. Some of the benefits include:

* LPs earn rewards: Liquidity mining rewards liquidity providers with a yield similar to staking. The process is autonomous and on-chain, ensuring equal distribution of rewards.&#x20;
* Decision-making rights: Since the rewards are in the protocol’s native token, holders gain voting rights within the ecosystem.

ref: <https://unchainedcrypto.com/what-is-liquidity-mining/>


# Risks of Liquidity Mining

Liquidity mining also comes with certain risks, which you should know. Here are some of them.&#x20;

* Impermanent loss: Impermanent loss (IL) relates to the prices of the tokens held in the liquidity pool. A liquidity provider may have pooled their assets with a certain expectancy that may not be met depending on the volatility. It’s also not uncommon to encounter an overhyped project that doesn’t meet the investors’ standards. All the same, IL can lead to substantial, permanent losses.
* Smart contract risks: Liquidity mining depends heavily on the proper coding and execution of smart contracts. If developers write the smart contract code poorly, it opens doorways to cyberattacks. This factor is especially true for projects that don’t [audit smart contracts](https://unchainedcrypto.com/smart-contract-audit/).

ref: <https://unchainedcrypto.com/what-is-liquidity-mining/>


# Is Liquidity Mining Worth It?

Liquidity mining is one of DeFi’s most popular investment income-earning opportunities. The reason for that is the high APYs often paid (in protocol tokens) by decentralized trading pools. After all, crypto traders and investors are deploying capital in the DeFi markets to make money.&#x20;

Newer, less established decentralized trading protocols often pay higher liquidity mining rewards than their more established counterparts. However, they are often run by anonymous teams and don’t always have audited smart contracts, opening up the possibility of rug pulls or smart contract hacks.&#x20;

But even mining liquidity on more established DeFi protocols carries a significant amount of risk, ranging from impermanent loss to the compression of yields, which can result in significant losses.

**While liquidity mining can be a very lucrative venture, it requires a deep understanding of the DeFi markets and decentralized trading, making it unsuitable for beginners or crypto investors with a low risk tolerance.**

ref: <https://unchainedcrypto.com/what-is-liquidity-mining/><br>


# Fees

### Liquidity provider fees[​](https://docs.uniswap.org/contracts/v2/concepts/advanced-topics/fees#liquidity-provider-fees) <a href="#liquidity-provider-fees" id="liquidity-provider-fees"></a>

There is a **0.3%** fee for swapping tokens. **This fee is split by liquidity providers proportional to their contribution to liquidity reserves.**

Swapping fees are immediately deposited into liquidity reserves. This increases the value of liquidity tokens, functioning as a payout to all liquidity providers proportional to their share of the pool. Fees are collected by burning liquidity tokens to remove a proportional share of the underlying reserves.

Since fees are added to liquidity pools, the invariant increases at the end of every trade. Within a single transaction, the invariant represents `token0_pool / token1_pool` at the end of the previous transaction.

There are many community-developed tools to determine returns. You can also read more in the docs about how to think about [LP returns](https://docs.uniswap.org/contracts/v2/concepts/advanced-topics/understanding-returns).

**When providing liquidity on Jibswap v2:**

* The Jibswap v2 protocol only has a 0.3% fee tier.
* In v2 the fees are auto compounded into the liquidity pool. This means for every swap the fee will go back into the pool, increasing the value of your position.
* When removing Jibswap v2 liquidity positions, Fees are collected with the liquidity.


# Smart contracts

List of deployed smart contract and EOA address

## Smart contracts

<table><thead><tr><th width="146.33333333333331">Name</th><th width="457">Address</th><th>Blockchain</th></tr></thead><tbody><tr><td>Factory</td><td>0x4BBdA880C5A0cDcEc6510f0450c6C8bC5773D499</td><td><a href="https://exp-l1.jibchain.net/address/0x4BBdA880C5A0cDcEc6510f0450c6C8bC5773D499">JIBCHAIN L1</a></td></tr><tr><td>Router V.2</td><td>0x766F8C9321704DC228D43271AF9b7aAB0E529D38</td><td><a href="https://exp-l1.jibchain.net/address/0x766F8C9321704DC228D43271AF9b7aAB0E529D38">JIBCHAIN L1</a></td></tr><tr><td>Multicall3</td><td>0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC</td><td><a href="https://exp-l1.jibchain.net/address/0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC">JIBCHAIN L1</a></td></tr><tr><td>WJBC</td><td>0x99999999990FC47611b74827486218f3398A4abD</td><td><a href="https://exp-l1.jibchain.net/address/0x99999999990FC47611b74827486218f3398A4abD">JIBCHAIN L1</a></td></tr></tbody></table>

## Official bridged tokens

<table><thead><tr><th width="146">Name</th><th width="459">Address</th><th>Blockchain</th></tr></thead><tbody><tr><td>USDT</td><td>0xFD8Ef75c1cB00A594D02df48ADdc27414Bd07F8a</td><td><a href="https://exp-l1.jibchain.net/address/0xFD8Ef75c1cB00A594D02df48ADdc27414Bd07F8a">JIBCHAIN L1</a></td></tr><tr><td>USDC</td><td>0x55b25214363306686E1F5424d5f96Fb330F51D4c</td><td><a href="https://exp-l1.jibchain.net/address/0x55b25214363306686E1F5424d5f96Fb330F51D4c">JIBCHAIN L1</a></td></tr><tr><td>ETH</td><td>0x17Fc6A15d85414fb7058ee7f54496763B8594344</td><td><a href="https://exp-l1.jibchain.net/address/0x17Fc6A15d85414fb7058ee7f54496763B8594344">JIBCHAIN L1</a></td></tr><tr><td>OP</td><td>0x0D89386044FF9975deCe36E8b85b6222B7B40A2c</td><td><a href="https://exp-l1.jibchain.net/address/0x0D89386044FF9975deCe36E8b85b6222B7B40A2c">JIBCHAIN L1</a></td></tr><tr><td>BNB</td><td>0xE6Af001741A2de21aEa4Bb1DA17d32d7f579c6a1</td><td><a href="https://exp-l1.jibchain.net/address/0xE6Af001741A2de21aEa4Bb1DA17d32d7f579c6a1">JIBCHAIN L1</a></td></tr><tr><td>JFIN</td><td>0x2cd11cdBeD000B5a680C015F2825569Bc5d8CF88</td><td><a href="https://exp-l1.jibchain.net/address/0x2cd11cdBeD000B5a680C015F2825569Bc5d8CF88">JIBCHAIN L1</a></td></tr><tr><td>KUB</td><td>0x28953231bc533bE90f5FDf9CE62Ac259018ee847</td><td><a href="https://exp-l1.jibchain.net/address/0x28953231bc533bE90f5FDf9CE62Ac259018ee847">JIBCHAIN L1</a></td></tr></tbody></table>

## EOA

<table><thead><tr><th width="148">Name</th><th width="459">Address</th><th>Blockchain</th><th data-hidden>Address</th><th data-hidden></th></tr></thead><tbody><tr><td>Deployer</td><td>0x9120F4D3da3C2BDFE38C3C0fAFda0DD97301a222</td><td><a href="https://exp-l1.jibchain.net/address/0x9120F4D3da3C2BDFE38C3C0fAFda0DD97301a222">JIBCHAIN L1</a></td><td></td><td></td></tr><tr><td>Fee setter</td><td>0x9120F4D3da3C2BDFE38C3C0fAFda0DD97301a222</td><td><a href="https://exp-l1.jibchain.net/address/0x9120F4D3da3C2BDFE38C3C0fAFda0DD97301a222">JIBCHAIN L1</a></td><td></td><td></td></tr><tr><td>Grant receiver</td><td>0x03c278E16a8d255aF93f03FB47904820aDE25D9c</td><td><a href="https://exp-l1.jibchain.net/address/0x03c278E16a8d255aF93f03FB47904820aDE25D9c">JIBCHAIN L1</a></td><td></td><td></td></tr></tbody></table>


# Open APIs

Open API for JIBSWAP is available here: <https://api.jibswap.com/docs>


# Contract verification

<table><thead><tr><th width="214">Contract</th><th width="154">Compiler version</th><th>Standard JSON file</th></tr></thead><tbody><tr><td>JibswapV2Router02</td><td>0.6.6</td><td><a href="https://github.com/jibswap/jibswap-core/blob/main/deployments/jibchain/solcInputs/JibswapV2Router02.json">https://github.com/jibswap/jibswap-core/blob/main/deployments/jibchain/solcInputs/JibswapV2Router02.json</a></td></tr><tr><td>JibswapV2Pair</td><td>0.5.16</td><td><a href="https://github.com/jibswap/jibswap-core/blob/main/deployments/jibchain/solcInputs/JibswapV2Pair.json">https://github.com/jibswap/jibswap-core/blob/main/deployments/jibchain/solcInputs/JibswapV2Pair.json</a></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>


# Page 1

Liquidity Mining


