# What is MiaSwap?

<figure><img src="/files/2xcQloY0ChBe6SKcsEG6" alt=""><figcaption></figcaption></figure>

**MiaSwap is the leading Decentralized Cryptocurrency Exchange (DEX) on ONUS Chain with strong liquidity and a wide range of permissionless liquidity products and solutions.**&#x20;

MiaSwap provides liquidity with instant access to any token pairs and aims to become the Best DEX on ONUS Chain based on multiple factors such as trading volume and DeFi market share. But not just that, MiaSwap also has a variety of Farming and Staking pools with the best APY you can find.

### Features

#### Swapping Tokens

Simply connect your wallet and start trading anytime, anyplace with no lengthy processes or waiting periods.

#### **Adding Liquidity**

MiaSwap allows anyone to provide liquidity by contributing their assets to a liquidity pool in exchange for attractive rewards.

#### Farming

Yield Farms allow users to generate passive income over an extended period. Yield farming is a way to put your LP tokens to work.

#### Mining Pools

MiaSwap's mining pools are designed to maximize stakeholder earnings with minimal fees to the protocol.


# Quickstart Guide

{% content-ref url="/pages/0GVe8kANyb4pkvmZJwpj" %}
[How to Connect Your Wallet](/features-and-tutorials/wallets-and-funds/how-to-connect-your-wallet)
{% endcontent-ref %}

{% content-ref url="/pages/uGwew1UFEbxTJ4vbGm1D" %}
[How to Add Funds](/features-and-tutorials/wallets-and-funds/how-to-add-funds)
{% endcontent-ref %}

{% content-ref url="/pages/WOafefxWVGPOsnqt6feq" %}
[How to Swap Tokens](/features-and-tutorials/swap/how-to-swap-tokens)
{% endcontent-ref %}

{% content-ref url="/pages/nQJL1MyU1TvImxlgGtvh" %}
[How to Add Liquidity](/features-and-tutorials/liquidity/how-to-add-liquidity)
{% endcontent-ref %}

{% content-ref url="/pages/rTQO9SWdIECZ0NgS6Hxy" %}
[How to Yield Farm](/features-and-tutorials/yield-farms/how-to-yield-farm)
{% endcontent-ref %}

{% content-ref url="/pages/rmQ6Xj1yTdBm9qQxWquA" %}
[How to Stake Tokens](/features-and-tutorials/mining-pools/how-to-stake-tokens)
{% endcontent-ref %}

{% content-ref url="/pages/uZlckbtZ7EOdl6Cq6KB2" %}
[How to play Lottery](/features-and-tutorials/lottery/how-to-play-lottery)
{% endcontent-ref %}

{% content-ref url="/pages/pG9pbFYUDfPAOx2g7ypw" %}
[How to Mint Free](/features-and-tutorials/mint-free/how-to-mint-free)
{% endcontent-ref %}


# General FAQs

## Is MiaSwap safe?

Transparent:

* For maximum transparency, we are built on open-source software: our website and all of our Smart Contracts are publicly visible.&#x20;
* You can check your contract on [ONUS Explorer](https://explorer.onuschain.io/)

Best practices for security:

* multisig for all contracts
* contracts’ time-lock

## How do I stake MIA?

MiaSwap Mining Pools allow you to stake your MIA. Go to the [Mining Pools](/features-and-tutorials/mining-pools) section. If you need help getting started with staking, read our [How to Stake Tokens](/features-and-tutorials/mining-pools/how-to-stake-tokens) guide.

## How do I farm?&#x20;

If you want to learn how to farm, check our [How to Yield Farm](/features-and-tutorials/yield-farms/how-to-yield-farm) guide.

## What's the difference between staking and farming?&#x20;

Staking in Mining Pools and farming with Yield Farming are two ways to support MiaSwap and earn more MIA.&#x20;

To earn MIA or other tokens through staking, simply add some MIA to a Mining Pool.                   Find out more about [Mining Pool](/features-and-tutorials/mining-pools).&#x20;

Farming is more difficult and requires LP Tokens to earn MIA.                                                          Find out more about [Yield Farming](/features-and-tutorials/yield-farms).

## How can I link my wallet to the ONUS Chain and MiaSwap?&#x20;

We have a detailed guide on [How to Connect Your Wallet](/features-and-tutorials/wallets-and-funds/how-to-connect-your-wallet) to MiaSwap.

## When will you be opening new pools?&#x20;

MiaSwap is constantly adding new Pools.&#x20;

Before the opening of new pools, there will always be an announcement. Join the [announcements Telegram group](https://t.me/onuschain) to be one of the first to learn about new Pools.

## Where can I access Analytics?&#x20;

You can view MiaSwap's analytics by clicking on the link below:

Analytics: <https://miaswap.io/analytics/>

## I can't seem to find an answer to my question. Where can I look for an answer?&#x20;

If you can't find what you're looking for in the documentation, post your query on [MiaSwap official social media platforms](/contact-us/social-platforms) and we will do our best to assist you.


# Contact Us

### Community

Join MiaSwap's social media communities to discuss our team's news and updates with other users. For a complete list of channels and resources, see the Social Platforms page:

{% content-ref url="/pages/0sImcFMKhqgJ4GaCwX6k" %}
[Social Platforms](/contact-us/social-platforms)
{% endcontent-ref %}

### Partnerships

Contact our amazing Business Development team today to list your token on MiaSwap and gain valuable benefits by joining the ecosystem! Visit our Business Partnerships page for more information:

{% content-ref url="/pages/LrzZ864jnwLfqwJvh3FS" %}
[Business Partnerships](/contact-us/business-partnerships)
{% endcontent-ref %}


# Social Platforms

MiaSwap has built a strong global community of users, and our core team is dedicated to caring for and supporting each and every community member. We are constantly informing our community about the latest MiaSwap news and announcements, and we encourage positive, engaging conversation across all of our social channels.

### Twitter

<https://twitter.com/MiaSwap>

### Telegram

Group: [<mark style="color:blue;">https://t.me/miaswap\_globalcommunity</mark>](https://t.me/miaswap_globalcommunity)

Channel: <https://t.me/miaswap_global>

### Medium

[https://medium.com/miaswap ](https://medium.com/miaswap)

### Discord

<https://discord.gg/2x3NDfS3jn>


# Business Partnerships

## Listing on the Exchange <a href="#exchange" id="exchange"></a>

### How do I get my token listed on the exchange?&#x20;

Any ONUS network token can be "listed" on MiaSwap by anyone. You are not required to contact us or seek permission. All you have to do is [add liquidity to a liquidity pool](/features-and-tutorials/liquidity/how-to-add-liquidity). Traders can then trade your token by entering the contract address of your token.

### How do I add my token to the default list?&#x20;

The default list is based on the highest volume over a specific time period. In terms of the Extended list, projects hosting Farms are usually added, as are other tokens chosen by the MiaSwap core team.&#x20;

We do not accept applications for these positions. Users can still manually add your token by entering its contract address.

### Someone created a copy of my token! Can you stop it?&#x20;

We are unable to prevent the trading of any token due to MiaSwap's nature as an AMM-based DEX. We recommend making your token contract visible and verifiable on your website, as well as educating your users on how to trade your token safely.

## Farms and Mining Pools

Farms incentivize users to provide liquidity for your trading pair by distributing MIA to LP Token holders of your pair.

Mining Pools allow you to distribute your tokens to ONUS users who have staked MIA in the pool.

On MiaSwap, these two products complement each other: when a project provides tokens for a Mining Pool, we will also create a Farm. Contact us if you want to distribute tokens and incentivize liquidity.

[**​Contact us to run a Farm or Mining Pool** ](https://t.me/miaswap_globalcommunity)

## Something else

Contact us if the above parts don't cover your business proposal:

[**Contact us for other business proposal**](https://t.me/miaswap_globalcommunity)

Please do not attempt to contact us via this form for [customer support](/customer-support); it is not intended for that purpose, and we will not respond; instead, you should seek assistance with the product through the [Telegram or Reddit communities](/contact-us/social-platforms).

## How long will it take to get a response?

We work very hard to respond to applications within a week, but due to the volume of requests, we are unable to respond to each and every applicant. If you haven't heard back from us within two weeks, try contacting us on our [Telegram Community](https://t.me/miaswap_globalcommunity).


# Common Errors

Sometimes you may find yourself facing a problem that doesn't have a clear solution. These troubleshooting tips may help you solve problems you run into.

## **Issues on the Exchange**

### **INSUFFICIENT\_OUTPUT\_AMOUNT**

You're trying to swap tokens, but your slippage tolerance is too low or liquidity is too low.

{% tabs %}
{% tab title="Solution" %}

1. Refresh your page and try again later.
2. Try trading a smaller amount at one time.
3. Increase your slippage tolerance:
   1. Tap the settings icon on the liquidity page.
   2. Increase your slippage tolerance a little and try again.&#x20;
4. Lastly, try inputting an amount with fewer decimal places.

{% endtab %}

{% tab title="Reason" %}
**This usually happens when trading tokens with low liquidity.**

That means there isn't enough of one of the tokens you're trying to swap in the Liquidity Pool: it's probably a small-cap token that few people are trading.

However, there's also the chance that you're trying to trade a scam token which cannot be sold. In this case, MiaSwap isn't able to block a token or return funds.
{% endtab %}
{% endtabs %}

### TRANSFER\_FAILED

### Transaction cannot succeed / **Price impact too high**

Try trading a smaller amount, or increase slippage tolerance via the settings icon and try again. This is caused by low liquidity.

### **Execution reverted: TransferHelper: TRANSFER\_FROM\_FAILED.**

> The transaction cannot succeed due to error: execution reverted: TransferHelper: TRANSFER\_FROM\_FAILED.

When trying to swap tokens, the transaction fails and this error message is displayed.

{% tabs %}
{% tab title="Solution" %}

1. Check to make sure you have sufficient funds available.
2. Ensure you have given the contract allowance to spend the amount of funds you're attempting to trade with.
   {% endtab %}

{% tab title="Reason" %}
This error happens when trading tokens with insufficient allowance, or when a wallet has insufficient funds.
{% endtab %}
{% endtabs %}

## **Issues with Mining Pools**

### Out of Gas

> Warning! Error encountered during contract execution \[out of gas]

You have set a low gas limit when trying to make a transaction.

{% tabs %}
{% tab title="Solution" %}
Try manually increasing the **gas limit** (not gas price!) in your wallet before signing the transaction.

Check your wallet's documentation if you aren't sure how to adjust the gas limit.
{% endtab %}

{% tab title="Reason" %}
Basically, your wallet (Metamask, RICE Wallet, etc.) can't finish what it's trying to do.

Your wallet estimates that the gas limit is too low, so the function call runs out of gas before the function call is finished.
{% endtab %}
{% endtabs %}

### Transfer amount exceeds allowance

> Fail with error 'ERC20: transfer amount exceeds allowance'

{% tabs %}
{% tab title="Solution" %}

1. Approve the contract again, without setting a limit on spend allowance
2. Try interacting with the contract again.
   {% endtab %}

{% tab title="Reason" %}
This happens when you set a limit on your spend allowance when you first approved the contract, then try to swap more than the limit.
{% endtab %}
{% endtabs %}


# Customer Support

If you're experiencing issues when using MiaSwap's features, try these steps first:

* Refresh the page
* Clear your browser's cache
* Restart your device

If these steps don't resolve the problem, try these additional product-specific steps below.

* Retry your transaction with higher gas fees.
* Uninstall and reinstall your wallet. **(Make sure you know your seed phrase first!)**

### **Need Further Assistance?**

If you’re experiencing issues, we recommend reaching out to our team through our [social media platforms](/contact-us/social-platforms).

If you choose to reach out via Telegram, be aware that our admins will NEVER contact you asking for personal information or for funds.

{% hint style="danger" %}
Our team members and admins will NEVER DM you first!&#x20;

**Never, under any circumstances, give someone your private key/seed phrase/recovery key!**
{% endhint %}


# Wallets & Funds

To use the platform's features, users must connect a crypto wallet to the MiaSwap website.

* Recommended Wallet: [**RICE Wallet**](https://ricewallet.io/) and [**MetaMask**](https://metamask.io/)

**Other Supported Wallets**

Are you unfamiliar with MetaMask? No worries. MiaSwap works with a variety of wallets, including:

* [WalletConnect](https://walletconnect.com/)
* [TokenPocket](https://www.tokenpocket.pro/en)
* [MathWallet](https://www.mathwallet.org/en-us/)
* [Coin98](https://coin98.com/)

Visit the [How to Connect Your Wallet page](/features-and-tutorials/wallets-and-funds/how-to-connect-your-wallet) for instructions on using MiaSwap's products with your wallet.


# How to Connect Your Wallet

You've made a wallet and gotten your tokens on ONUS Chain, now you just need to connect your wallet with MiaSwap and you're ready to go!

## Smartphone/Mobile

{% tabs %}
{% tab title="RICE Wallet" %}
To connect RICE Wallet follow the steps below:

1. Open RICE Wallet and tap the **DApps** button on the bottom of the screen.
2. Search for MiaSwap or go to <https://miaswap.io/>
3. A new page will open with the MiaSwap logo and some information.
4. Your wallet will be aumatically connected.

[**Download RICE Wallet**](https://ricewallet.io/apps) (Automatically detects device)
{% endtab %}

{% tab title="MetaMask" %}
To connect MetaMask to MiaSwap follow the steps below.

1. Open MetaMask and tap on the **burger icon** in the top-left.
2. Tap **Settings** in the menu.
3. In the Settings menu, tap on **Network**.
4. Tap on the **Add Network** button at the bottom.
5. On the page that opens, type in the following details:

**Network Name:** ONUS Chain\
**RPC Url:** <https://rpc.onuschain.io/>\
**Chain ID:** 1975\
**Symbol:** ONUS\
**Block Explorer URL:** <https://explorer.onuschain.io/>

1. Once you've confirmed entry into the new network, go back to the burger menu and tap **Browser**.
2. Type "miaswap.io" into the search field. Tap to enter it.
3. Your wallet will ask you to connect. Tap **Connect** to connect to MiaSwap.

###

[**Download MetaMask**](https://metamask.io/download.html) (Automatically detects device)
{% endtab %}
{% endtabs %}

### Desktop

#### First, let's connect your wallet to ONUS Chain

**Step 1.** Go to [**https://onuschain.io/**](https://onuschain.io/)

**Step 2.** Select **Add ONUS Network** in the top right corner

### How to connect your Metamask Wallet to MiaSwap

1. Visit the [`MiaSwap Swap Page`](https://miaswap.io/swap/). In the top right corner, you'll see the **Connect** button. Click it.

<figure><img src="/files/2dqsNykzA8ATHOYZTVWM" alt=""><figcaption></figcaption></figure>

2\. A window will appear asking you to choose a wallet to connect to. Click on your desired wallet.

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

Continue to our [Swap page](/features-and-tutorials/swap) to learn how to trade tokens on the MiaSwap DEX.


# How to Add Funds

The native tokens of ONUS Chain are **ERC20**.

To do most things on ONUS Chain, you will need to pay gas, which comes in the form of ONUS.

You will also need the ERC20 version of any token on ONUS Chain you want to trade, stake, etc. on MiaSwap.

You can go a few ways about adding funds, but here is the one we recommend:

* [**goonus.io/en/**](https://goonus.io/en/) - You can deposit ONUS or MIA tokens on ONUS Chain from ONUS Applicaton.

📖 [Here's a quick guide they made to help you out.](https://goonus.io/en/basic-guide-03-how-to-deposit-and-withdraw/)


# Swap

MiaSwap is an Automated Market Maker (AMM). MiaSwap lets users trade without the need to go through a Centralized Exchange. Everything you do on MiaSwap is routed directly through your own wallet — no need to trust someone else with your coins!

Swap on MiaSwap is a quick and easy way to exchange a token for another using automated liquidity pools.

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

When you swap (trade) on the exchange, you will be charged a 0.25% trading fee, which is divided as follows:

**0.05%** - returned to Liquidity Pools as fee rewards for liquidity providers

**0.05%** - added to [The USDO Collateral](https://usdo.finance/)

**0.12%** - used to buy back and burn the MIA token

**0.03%** - goes to Treasury


# How to Swap Tokens

Trading on MiaSwap is very simple. There will be no charts or jargon to confuse you, and all calculations will be done for you.&#x20;

### Getting Ready to Swap

You will need an ONUS Chain-compatible wallet before you can trade. You can find out how to get one [here](/features-and-tutorials/wallets-and-funds). You will also require ERC20 tokens on ONUS Chain to trade with. You can find out how to get some [here](/features-and-tutorials/wallets-and-funds/how-to-add-funds).

## How to Swap tokens on MiaSwap

1\. Go to the [MiaSwap Exchange](https://miaswap.io/swap/).

2\. If you haven't already connected your wallet to MiaSwap, see the guide [here](/features-and-tutorials/wallets-and-funds/how-to-connect-your-wallet).

3\. In the "From" section, select the token you want to trade from the dropdown menu.

<figure><img src="/files/0i96IBg3B76MixFSqDqY" alt=""><figcaption></figcaption></figure>

Whatever token you choose, make sure you have enough to trade with. The balance is displayed bellow the token input box.&#x20;

4\. In the "From" section, select the token you want to trade with. Then, by clicking inside the input box, enter an amount for your "From" currency.

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

The amount in your "To" currency will be calculated automatically. If you prefer, you can type your "To" amount and have the "From" amount estimated automatically.&#x20;

5\. Carefully check your information and then click the Swap button.

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

1. A window with additional information will appear. Check if the information is correct.

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

When you're finished, press the **Confirm Swap** button. Your wallet will request confirmation of the action.&#x20;

7\. You can view your transaction details on the [ONUS Explorer](https://explorer-testnet.onuschain.io/).

## Why isn't my transaction going through?

MiaSwap is a DeFi application that works with the wallet to complete on-chain transactions such as swapping, staking in farms and pools, and so on.

### Gas Fees

As a result, the first step is to ensure that you have enough ONUS to cover the gas fee for on-chain transactions. Typically, the gas fee varies with the number of transactions in the queue; if there are more transactions, a higher gas fee may be required to push the transaction through.

### Transaction Fees

If your swapping action still fails and an error message prompts you to revise the slippage, you may want to check if the tokens you are attempting to swap have **any transaction fees or restrictions**.

It is not uncommon for tokens to include a **transaction fee** in their contracts; typically, these fees could be used for burning, funding a treasury of a fair launch project.

The transaction fee, whether inclusive (a portion of the swap amount is sent elsewhere than your address, resulting in a lower output than expected for the estimated input) or exclusive (requiring an additional transfer from your address to send extra tokens, resulting in a higher input than expected for the estimated output), affects the input and output amounts that you agree to when signing the transaction. Because of the tax, many transactions are unable to meet the input and output requirements.

### Swapping with Transaction Fees

Before you exchange any tokens, check their website to see if they have a transaction fee mechanism (or tax as many projects put it). If there is, make sure you set a slippage that is sufficient to accommodate the transaction fee — for example, if there is a 5% transaction fee, your slippage must be at least 5% plus the normal trading slippage based on your trading amount and the liquidity of the token, say 5.5%-6%.

In some extreme cases, including some scams, some tokens even have a block on most or all chain transfers, or only allow certain addresses to sell, making it impossible to successfully swap the token. Learn about the token you want to exchange and be aware of any fees or restrictions!


# Liquidity

Add your token to a Liquidity Pool to receive Liquidity Provider (LP) tokens and share in the fees.

## LP Tokens

If you deposited **ONUS** and **MIA** into a Liquidity Pool, for example, you would receive **MIA-ONUS** LP tokens.&#x20;

Your portion of the MIA-ONUS Liquidity Pool is represented by the number of LP tokens you receive.&#x20;

You can also withdraw your liquidity at any time to redeem your funds.

## Liquidity Providers earn trading fees

When people use your liquidity pool, you receive a portion of their trading fees.&#x20;

When a trader uses MiaSwap, they pay a 0.25% fee, of which 0.05% goes into the Liquidity Pool of the swap pair they traded on.&#x20;

You can put your LP tokens to work with the [Yield Farms](/features-and-tutorials/yield-farms) while still earning your 0.05% trading fee reward, making being a liquidity provider even more worthwhile.

## Impermanent Loss

Providing liquidity is not without risk, as you may be exposed to impermanent loss.


# How to Add Liquidity

"Liquidity" is essential to the operation of MiaSwap's Exchange. Staking both tokens on the Liquidity page will add liquidity to any token pair.&#x20;

You will receive trading fees for that pair in exchange for adding liquidity, as well as LP Tokens that you can stake in[ Farms](/features-and-tutorials/yield-farms) to earn rewards!

## How to Add Liquidity

To provide liquidity, you must commit an amount of any token pair of your choice. Your lowest (in USD) token value will be the limit to the liquidity you can provide.&#x20;

You can easily trade for whatever tokens you require. If you need to, refer to our [How to Swap Tokens guide](/features-and-tutorials/swap/how-to-swap-tokens).&#x20;

We will add liquidity in this example by using MIA and BUSD.

1. Go to [MiaSwap Exchange](https://miaswap.io/swap/).
2. Go to the Liquidity section.

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

2\. Select the **Add Liquidity** button.

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

3\. Click 'Select a token' for the top Input. Then select one of the tokens in the liquidity pair to which you want to add liquidity. We will choose MIA as an example here.

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

Then, click 'Select a token' for the bottom input. And then select the other token in the liquidity pair to which you want to add liquidity. BUSD will be used as an example in this section.

4\. Fill in the amount on one of the tokens under "Input." The other should be automatically calculated and filled.

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

(If one of the tokens does not have enough balance, an error message will appear and the button will be greyed out; please enter a lower amount to proceed.)

5\. Click the **Approve MIA** button. Your wallet will ask you to confirm the action.

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

6\. The **Supply** button will then light up. Click to proceed. Your wallet will ask you for confirmation. Confirm your transaction from your wallet.

Soon after, your LP Token balance will appear.

You can repeat the above steps to add more liquidity or add liquidity to different pairs.


# Yield Farms

Users can stake liquidity provider (LP) tokens in MiaSwap Yield Farms to increase earning power through native MIA token rewards.

### How Yield Farms Work

MiaSwap Yield Farms are primarily intended to incentivize users to provide liquidity for their preferred DeFi projects. MIA utility tokens will be awarded to users who create and stake their liquidity provider tokens in a Yield Farm.&#x20;

Liquidity is critical to a healthy ecosystem as a DeFi platform. With more liquidity available to MiaSwap, more users will be able to trade their favorite tokens at low fees. As a result, encouraging liquidity for popular trading pairs on MiaSwap is in everyone's best interests, because popular trading pairs require more liquidity and generate more trading fee revenue.

### Earning Rewards

Farm returns, like Mining Pools, are expressed in APR, which is displayed in each farm. This is the expected number of MIA tokens that will be earned while your liquidity provider tokens are staked, expressed as a percentage of the staked input tokens and calculated at current rates.&#x20;

APRs and APYs, like Staking Pools, are displayed to help users understand their potential return on staking and are not guaranteed. The actual rate of return is affected by a variety of factors, and your rewards may fluctuate over time.


# How to Yield Farm

Yield Farming in Farm is an excellent way to earn MIA token rewards.&#x20;

Farms, as opposed to Mining Pools, require you to stake two tokens to obtain LP Tokens, which you then stake in the Farm to earn rewards. This allows you to earn MIA while maintaining a position in your other tokens!

{% hint style="warning" %}
Yield farming can provide better rewards than Mining Pools, but it is subject to **Impermanent Loss**. It's not as frightening as it sounds, but it's worth learning about the concept before you begin.
{% endhint %}

## Preparation

Yield farming requires some effort to get started.&#x20;

To enter a Farm, you must first obtain some "LP Tokens." Farms can only accept LP Tokens that are identical to their own; for example, the MIA-ONUS Farm will only accept MIA-ONUS LP Tokens.&#x20;

To obtain the precise LP Token, you must provide liquidity for that trading pair; for example, to obtain MIA-ONUS LP Tokens, you must first provide liquidity for the MIA-ONUS pair.

It may appear intimidating, but it is not overly complicated. Let's take it one step at a time.

### Locating Your Farm

Before you begin, you should select the Farm that is best for you. A list of available Farms can be found on the [Farms page](https://miaswap.io/farm/).

<figure><img src="/files/JgiiPa8UpThBaH25mw1y" alt=""><figcaption><p>Farm page</p></figcaption></figure>

When you find a Farm that you'd like to use, note down the trading pair, e.g. MIA-BUSD in case you need it later.

Now that you've found a Farm to invest in, you'll need to add liquidity in order to receive your LP Tokens. Select the Farm from the list.

## Putting your LP Tokens into a farm

**Step 1**: Navigate to the Farms page and find your Farm.

**Step 2**. Click Enable Contract and confirm your action in your wallet.&#x20;

After a brief delay, the Enable Contract button will be replaced with Stake LP. When you click it, a new window will open.&#x20;

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

**Step 3**: Enter the number of LP Tokens you want to farm into the field, or simply click Max to use all of your LP Tokens.&#x20;

When you have entered the amount, the Confirm button will light up. Click on it. Your wallet will request confirmation of your action.

## Collecting rewards

Farming will eventually bring you MIA rewards. You can collect these rewards and use them to obtain more LP Tokens, stake them in Mining Pools, or do anything you want with them. To receive your rewards, go to your chosen Farm and collect the MIA that is waiting for you.&#x20;

**Step 1.** Back to the Farms page.&#x20;

**Step 2.** Find the Farm where you staked your LP Tokens and click the row to see more information.

**Step 3.** Click the **Harvest** button and confirm the action in your wallet. After a short delay, the MIA will be claimed and added to your wallet.

<figure><img src="/files/t5dtQrMQHFGdqGHvWLzE" alt=""><figcaption><p>Select 'Harvest' to collect rewards</p></figcaption></figure>

### How frequently should I collect my rewards?

It is up to you how frequently you harvest your rewards, but keep in mind that there is a small fee associated with harvesting.&#x20;

When you confirm after clicking **Harvest**, you will see this fee in your wallet. The information will be displayed differently in different wallets. Consider leaving your rewards to grow for a while to reduce the frequency with which you pay fees.&#x20;

And that's the end of it! You might also be interested in learning how to use MiaSwap's [Mining Pools](/features-and-tutorials/mining-pools) to earn rewards. Best wishes!


# Mining Pools

### What are Mining Pools

Mining Pools enable users to stake ONUS and MIA utility tokens that they have purchased, converted, or earned through yield farming or lending in order to earn more of them or tokens from partner projects.&#x20;

Each mining Pool has both an input and a reward token. The input token for each Mining Pool in MiaSwap is either ONUS or MIA. MIA or a token from a MiaSwap partner project are the reward tokens.

### How Mining Works

Staking tokens to mine rewards is one of the numerous ways MiaSwap generates passive income for users. When a user "stakes" a token, the token is transferred from the user's wallet to the protocol's smart contract. The protocol provides rewards in the form of additional tokens, either of the same types as the staked token or of a different token, in exchange for this temporary commitment of capital.&#x20;

MiaSwap's staking options are designed to maximize stakeholder earnings while minimizing protocol fees. MiaSwap takes this approach to ensure that our users' resources are always prioritized.

Single-asset Mining Pools are the simplest method of earning returns. Users only need one type of token to utilize a Mining Pool, which offers returns in another token of choice.


# How to Stake Tokens

## Staking Tokens

**Step 1.** Navigate to the [Pool page](https://miaswap.io/pool/).

**Step 2.** If you haven't connected your wallet, selects the Connect button to link to your ONUS Chain-compatible wallet (top right-hand side).

<figure><img src="/files/79bBeE6wG9NXqgsQMEa4" alt=""><figcaption><p>Press to connect a wallet</p></figcaption></figure>

Select your wallet and connect.

**Step 3.** Select the Mining Pool of your choice and click the **Enable Contract** button. Your wallet will ask you to confirm the action.

<figure><img src="/files/2bY0BPdCUrzrSMgddohN" alt=""><figcaption><p>A stake pool</p></figcaption></figure>

The **Enable Contract** button should now be replaced with **Stake.**

**Step 4.** Choose the amount of tokens you would like to stake.

<figure><img src="/files/r8xrWPjiFo1OcTzCYSFw" alt=""><figcaption><p>Choose amount and comfirm stake</p></figcaption></figure>

**Step 5.** Confirm the transaction in your wallet.

Done! You are now staking your tokens for more rewards.

## Collecting rewards

Staking will eventually bring you rewards. To receive them, go to your chosen Pool and collect the rewards that are waiting for you.&#x20;

**Step 1.** Back to the Pool page.&#x20;

A Staked only toggle is located at the top of the list. Toggle the switch. You should now only see the Pools in which you have staked tokens, making it easier to find your Pool.&#x20;

**Step 2.** Find the Pool where you staked your LP Tokens.

**Step 3.** Click the **Harvest** button and confirm the action in your wallet. After a short delay, the rewards will be claimed and added to your wallet for you to use as you see fit.

<figure><img src="/files/aOtfJFfy6blpTEQsKtPH" alt=""><figcaption><p>Press button to collect reward</p></figcaption></figure>


# Lottery

Play MiaSwap Lottery and get a chance to win huge MIA prizes! It's easy, fair, and you can enter as long as you have enough MIA for tickets.

## **Specifics**

* Lottery ticket cost for 1 ticket: 1 USDO \~ xxx MIA
* Lottery entry cap per person: There is no overall cap. You can buy as many tickets as you like.
* Users may select a number between 0 and 999999 when purchasing a ticket.
* If there is only 1 winner, 100% of the prize will be distributed to that person.
* If two or more people win, the prize will be divided equally. If no one wins, the winnings will be rolled over to the next day (after burning 10% of which). The minimum value of the bonus pool will be 1000 MIA.
* Lottery number draws at 10AM UTC everyday.
* 10% of the claim-transaction value is taxed.
* Authentic & safe randomization is initially established in our Smart Contracts.
* If the actual snapshot pool at 09:59AM UTC is worth less than 1000 MIA, the winners still share the full 1000 MIA value.

## Ticket costs and bulk purchase discount

Purchasing many Lottery tickets at once results in a bulk discount. You may buy up to 100 tickets in one transaction, with the discount starting modest at 2 tickets and increasing to 33% at 100 tickets.

## How to win

* A winning Lottery is determined by an integer random generator.
* If you match the drawn number, you'll win the grand prize.
* The digits on your ticket must match in the correct order to win. Here’s an example Lottery draw, with two tickets, A and B.

<figure><img src="https://lh3.googleusercontent.com/wbhMtcbpzWYCUpocdn2GZb9YfTEcHngam2MO8p_CFAPCtiicvm_ej_wpWL1UszadKH-2iwd-7uaOvcz4lrPdm2J1fQ-mr9JzpkBsdYlKtytOIEAkdJaprRpU8cLI_KWOrS4iZ7uB0m-VOTIpA-TF8M_S41yxsrQcStOfCy-_gOrrwd8Vpr6kqJmSwzpcFQ" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/pCxbNhohXvIuXOVDkJ1Yta0MYJVV60gHsNj1D1wgrqJUxc6ABiURCaoNXMPxj5fGnmAFjSijdEjo8N3N-6quMCHQ0gIL6nQa1WgJ8mJbD910oviFxBz5IxVLGfqF4QnNsgV_2tJgIfx1lFBj8iw3lyAdjihvYe88I32Icl_OgFfuogsIpXRAjlEKsY5wpQ" alt=""><figcaption></figcaption></figure>

## **Prize Funds**

The prizes for each Lottery round come from three sources:

Ticket Purchases: 100% of the MIA paid by people buying tickets that round goes back into the prize pools.

Rollover Purchases: After every round, if nobody wins in one of the prize brackets, the unclaimed MIA for that bracket rolls over into the next round and are redistributed among the prize pools.

MIA Injections: An average total of 35,000 MIA from the treasury is added to Lottery rounds over the course of a week. This MIA is of course also included in rollovers!&#x20;

<br>

<figure><img src="https://lh5.googleusercontent.com/3ZA97ucB_AWIURxqh_OFvkZ1w6bmLE4o9aTWQ3CFleT_mPjj8OjPABeqb_tnUmqS0dUylXYeekcw_TuV0zCCSsrdsPB2kFabJg6XLea8lCihvcjjURGmAPR-yv3q_8RaL-oM7e8IEjKz8P_T6gGYxJ9hfGf6O2dNYd1x15GrqSqA4g9VjD1nlMVG3-69Jw" alt=""><figcaption></figcaption></figure>

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


# How to play Lottery

## When to enter a round?

Not all Lottery games are created equal. When a Lottery jackpot is not won, the reward pool for the following round grows; the longer it has been since someone has won the jackpot, the greater the Lottery prize pool will be.

The longer a round is available, the more individuals who can purchase a ticket. Each ticket purchased adds to the prize pool. Here's how to see the prize pool and remaining time for the current round.

‌1. Visit the[ ](https://pancakeswap.finance/lottery)MiaSwap Lottery page

<figure><img src="https://lh6.googleusercontent.com/jVFSd834onISiHySnauPRIYBuVgoOVPVR49WbmxNTRe7IWFDnZZWgnCt5ydIoPWEJYfJBgvk56gIRHz_5Ixg-JO-cHrCzb-t-KwL5rfGzVf1fOLR0MWCL9lhInGgfXv_HXiN35yhM4ufjll3pESdTEK1d3xjpLfORJHRtoc06eXvenDEKwHuPjqAG4BbRw" alt=""><figcaption></figcaption></figure>

This is the amount to be shared between all winners.

‌2. The remaining time before the current round is drawn may be found a bit lower down the page.

<figure><img src="https://lh4.googleusercontent.com/GnaKylQTcE8V4p282xEOOIPEosczPR4B1hfk34NJL-K78ykJ9IFbPDdwSIKkSz-IJn7E29yW1hAXJ58sVOhWaA94MOVEBn2o3aWE_FDPjkRI88UCqoGi-6U27iBrwCCACOI3NfGuJ2tv5_ijtJFmXyPhTsgkqAd0CwxmWMBEC6FxmEOmRXCk8ng0ie69WA" alt=""><figcaption></figcaption></figure>

Keep in mind that a lot might happen in the remaining period. It is possible that many more tickets will be sold. Each ticket sold raises the prize pool while decreasing the probability of an individual ticket winning.

If you're undecided, you may always decide later in the round when you have more knowledge. Just don't wait too long or you'll miss out!

## **Buying** Lottery **tickets**

Purchasing tickets is simple.

You need a little Mia: each ticket costs around 20 Mia

## Randomized ticket numbers

1\. On the MiaSwap Lottery page, click the **Get Ticket Now** button.

<figure><img src="https://lh4.googleusercontent.com/QYxezT_2InBU6XQV9h_q0PIIAldiCNd45_gR9RtQghj2vB6DwtUCQ-jJjZZYwc0SjRnfLkq6J_ObYiFFwzNFNXuN2l2q5RasQmrc2MDPUXrxKkUWWcvCmcPeVtm3RusG-V3ZB0SY3EuwC52dj7CXYGRv9X_NgWhmX2QN3ID0_dBIdpjMfOLIp0E7rynTCw" alt=""><figcaption></figcaption></figure>

2\. A window will appear, allowing you to select the number of tickets you want to purchase. Enter the number of tickets you want to buy into the form. You can also utilize the preset buttons located beneath the screen.

<figure><img src="https://lh3.googleusercontent.com/oOm8ZimCrYbvzBHCAgMR-2ZEx6M8F4b8XwKIPrLCKgYCMQhWb9ninb624HzJsBrhsW0aUbjQ7t30ARjsoLyS9GC-0nqIXcv_8IDJpIcyd0jswrjvNJTtgPDPxgDhp1n8yd2fokJyUZvJtcIPeqyenI78DHQgcatVLJuMb0xXtqEeteC8Bvo4Viw8T9LEoQ" alt=""><figcaption></figcaption></figure>

3\. Press the Randomize button to choose a random lucky number.

<figure><img src="https://lh3.googleusercontent.com/tbBBbrw5uLUH7f0gBcHCOMaDI2n3gE4Z7yKtFapOTKHAUxCKo4lAZsgT1QFJFvH3UtikFgXpa2i9o9W20AHbwpEHI3n5zFIyobRmh-4DK5DqSh6VzBIBD_rrdNT6TPVfTUteephPh4M2UkB4MkyVfcHzaBi-DIKltb4vacoXOZwMQgMj5OQ-PM55TQHCPQ" alt=""><figcaption></figcaption></figure>

4.When you are satisfied with the number of tickets you want to buy, click **"Buy Ticket"**

5\. Wait a few seconds to complete the transaction<br>

<figure><img src="https://lh6.googleusercontent.com/IThrgcik3AwH63ngWH1SZI6XF7dzWRsHfk_ENvaDPSiRDLRhsnHexOkqyumg0ENyiV7JbKGc71FMwr-rh1h6DvAMNfrc0ns5kFigQaMQIMc3t1CzlEsRCYpQx_vfxsjpYaZcJ5v50OQyTAep9CyWMasM2IJ-1qh6g6_53TTjKjMBaRGroOHxmagVXoy2xA" alt=""><figcaption></figcaption></figure>

## Manual ticket numbers

1\. On the MiaSwap Lottery page, click the **Get Ticket Now** button.

<figure><img src="https://lh3.googleusercontent.com/vmOWkiiAstBxxU8AWlJ5LgRgcsecyNgBShXPyXEnQZjt7r73F_ZzyHzuBC7yPp8bsjo8mZXZ7Xg-xdAlJJ5oTECGas28ss_tZSilCmK2iA5VjKyLYWoW3ypEpaZ3U5iAgRMxVk-IfU7U5z7oq0h054JMbaE6Houa6G7Pu7sk1F0FlOtbbRG4nKRS1pbH8w" alt=""><figcaption></figcaption></figure>

2\. A window will appear, allowing you to select the number of tickets you want to purchase. Enter the number of tickets you want to buy into the form. You can also utilize the preset buttons located beneath the screen.

<figure><img src="https://lh6.googleusercontent.com/3rbTQvpfZ76gakhg0fDX1yzXohHMb2Y4g-HqzDb1WY2cKHO-d-aeSsWDviNz5bPPvUzLa1AtLyQBy-91Y09W2vCtXOsIdJcpO5VtfbZe4dx4W5AFeCrS2dXOdm90WUMUe9BGUOeUvkQBeEIgNSIiRZvu_BV5T07vzHSY9V7wDKbVN9Lds62f4vFBWVeKHg" alt=""><figcaption></figcaption></figure>

3\. Select the ticket and enter the desired lucky number.

<figure><img src="https://lh5.googleusercontent.com/lp5chkdo8_txzxSclHj4XkQgn_-exPJYzOEvg5ONHWbqsfL7F4WOYAsA8di560olqOC9T7N28Yz98gT7VeVYzKS3bJMtr6PbNDq1EisPGYcPggWVGHkeouUsvrmkGN_qMh4mtHa9kTt3w9Gol1AY53XNPr2k4lRryUJlb8IrarbCRoYQPDyXcN5iEDKFUQ" alt=""><figcaption></figcaption></figure>

4\. When you are satisfied with the number of tickets you want to buy, click **"Buy Ticket"**

5\. Wait a few seconds to complete the transaction

<figure><img src="https://lh3.googleusercontent.com/Btqqiavq0ugTkVU5qC3ASG-MMxj4GnCjR2p6bnWPjxTvx1yNBOqNLG2E3NjRuvtuUeSE34AD5OVOP-pVRae04trktk5xzw2S4g03WnvmcZClJSIchJFirTLiEIa98zEM_vrIK2Tuj4wzp1fgeaj3GowlNDn1PdqiRDyIfrr2lyYbyP800nSJiNkdLRkggg" alt=""><figcaption></figcaption></figure>

## Viewing your purchased tickets

After purchasing your tickets, you can view them before the round's numbers are drawn.

1\. Go to **View Your Tickets.**

<figure><img src="https://lh3.googleusercontent.com/_fGnpNzh_LVDtCzbZcHm-11H-eGaZ1vFuO2grnuRrrYK9eJIdl19dt9sjNKKHp5_ynk-TO--YHTl2-PD8T26troOskXfD9fp4xM38NqtZCNEqf4WPyFCY3I-qdHpzz31LnJsv82Tg5ZQMoJWSxPcOQATda3syulHBphWku7fWp96RPpsfsS31-ud4IivZA" alt=""><figcaption></figcaption></figure>

2\. A window will appear with all of your tickets and their corresponding numbers. It will also give you the option to purchase additional tickets if desired.

<figure><img src="https://lh6.googleusercontent.com/ZvLFuf27ORoVI2yPaIvqwvlk8ebhAgk9VtBjdMmIGcl0D9d9-h-4p7W9gfx-3ydA47pdrgK5pgRRQmAWCdJq3TR0AEV9n7cUBKe9MUeE0blZMO8nO99PLNmalaCxdMJcnhzbPJbkt7IQPbugXB1KQw2Ul-vZOGAhy975XXR_FinVtsAdL9vqD1SskbQORA" alt=""><figcaption></figcaption></figure>

## Get reward

‌When the round is over and the winning numbers are known, check your tickets to see if you won.

**Lottery results will appear in the "Check out the result" section**

<figure><img src="https://lh5.googleusercontent.com/3bd9tPNrSyb-vBL6X8OgrHeIADBxI_6RSB_dNV2fNxkPU5hE-vOSZaHUx0JrLTepPEIP9_-RMsUkAcexFRp6z7NI_Ccn3Z1wPvFFJ5ZYqf6E7w3eHfN2uIdW5hChyQ0LqFbVo3BJe3TNpD_E07sjsnhGLfdFbISQHtOwrosZ3VtLNP78Y12s3DsrzRlJsw" alt=""><figcaption></figcaption></figure>

‌1. Click "**Claim Prize**" to receive the prize

<figure><img src="https://lh5.googleusercontent.com/0nC3xolboe0p8e08HeI29xY2A4KFxkdziPhELBeAFAVzRTmo6VSx8AN92pSOANfr-LsslHg5QFK0qOrpxxYd1U4z_v1ML26eHr-afEL8skKrGvDgqRoGLeR6NcD8xzmuMVCOeCfnas_FuRTCIdtHvPHellAJzosumIjvIvlV4XtiYg9buU0XSFZSR7gNVg" alt=""><figcaption></figcaption></figure>

2\. A window will appear, displaying the winning numbers as well as all of your tickets.


# Mint Free

### Coming soon


# How to Mint Free

**Coming soon**


# Info & Analytics

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

MiaSwap's native analytics site can be found [here](https://miaswap.io/analytics/).


# MIA

## Overview

MIA is the currency token that powers the MiaSwap ecosystem. Everyone can earn MIA from Farms and Mining Pools, Mint Free MIA, or buy it on the exchange, then explore its use cases:

* Stake it in [Mining Pools](/features-and-tutorials/mining-pools) to earn free tokens
* Use it in [Yield Farms](/features-and-tutorials/yield-farms) to earn more MIA

**MIA Token Metrics**

* Token Name: MIA
* Ticker: MIA
* Blockchain: ONUS Chain
* Token Type: Utility


# MIA Tokenomics

MIA's primary function is to incentivize farming and providing liquidity on MiaSwap. At Mainnet, MiaSwap will launch as an MVP (minimum viable product) with the contract emitting 40 MIA per block and 5,250,000 MIA as an initial supply.

### First Initial

To hit the ground running, 5,000,000 MIA will be used for the initital coin offering and 250,000 MIA for Marketing purposes.&#x20;

MIA is only open for sale once on [ONUS Application](https://goonus.io/apps) with NO private sale and seed round. 20% of ICO tokens are unlocked at TGE. The remaining 80% will go under linear vesting for 8 months. This offering is only available for ONUS Shares members and ONUS business partners.

### Emission Amount

| **Metric**    | **Emission/block (MIA)** | **Emission/day (MIA)** |
| ------------- | -----------------------: | ---------------------: |
| Emission      |                       40 |              1,152,000 |
| Burned Daily​ |                      -36 |             -1,036,800 |
| Reward        |                      2.5 |                 72,000 |

**Why does MIA have immediate burning?**

* The max MIA minted per block is locked in the contract, if it gets hacked, this is still the maximum they can change it to.
* This allows us to control the daily emission of MIA that actually enters circulation.
* We can adjust in the future in case we need to (lower the burn rate to increase daily supply, increase the burn rate to lower the daily supply).

### Distribution Amount

<table data-header-hidden><thead><tr><th width="232"></th><th width="155" align="right"></th><th width="157" align="right"></th><th width="141" align="right"></th></tr></thead><tbody><tr><td>Distributed to</td><td align="right">Reward/block (% of emission)</td><td align="right">Reward/block (total MIA)</td><td align="right">Reward/day</td></tr><tr><td>Liquidity Farming Pools</td><td align="right">1.3%</td><td align="right">0.5</td><td align="right">14,400</td></tr><tr><td>Staking Pools</td><td align="right">4.54%​</td><td align="right">​1.75</td><td align="right">50,400</td></tr><tr><td>Mint Free (coming soon)</td><td align="right">0.75%</td><td align="right">0.25</td><td align="right">7,200</td></tr><tr><td><strong>Total Daily MIA Emission</strong></td><td align="right">​</td><td align="right">​</td><td align="right"><strong>72,000</strong></td></tr></tbody></table>

While waiting for the Mint Free feature, the 0.25 MIA Reward/block will be used for Staking pools.

**Why only 4 MIA per block?**

* The amount of MIA doesn’t really matter for rewards(4 MIA at $10 each vs 10 MIA at $4 each). But it’s easier to pump a coin with a lower supply.
* With MIA at a higher price, it’s easier to attract more farmers and liquidity providers.


# MIA Supply Management

There's currently no hard cap on the supply of MIA tokens, making it an inflationary token. So we aim to **make deflation higher than emission** by building deflationary mechanisms into MiaSwap's products. Our goal is to have the daily burn rate slightly higher than the daily emission rate.

This means the token is targeted to be slightly deflationary. This allows the price to rise, which in turn increases the incentive to farm and provide liquidity for more pairs and draw in even more users who want to stake and swap different pools.

## Liquidity Pool Rewards

Users earn MIA tokens when they deposit LP into our farms.

In addition to these rewards, LPs are also able to claim MIA that is purchased using the 0.05% fees from the transaction fees.

Users must be providing the LP for the full rebase in order to get the fee. This is to prevent users from adding lots of LPs at the last minute, getting the fees, and withdrawing immediately.

The amount of MIA a user can claim is based on their share of the LP.

## Staking Rewards

Users earn MIA tokens when they stake in our pool.

Each pool will have a base weightage and a weightage boost. To adjust rewards for each pool, we then adjust the weightage boost.

## Free Mint Claim (coming soon)

Any users can have the ability to mint MIA for free by making a transaction to indicate when they want to withdraw their free MIA.

Users can choose 1 pool per wallet to claim. It costs gas to make a claim. Each pool has a different claim time. Users can only claim the MIA after the lock-up period is over.

## Burning MIA

### AMM Transactions

0.12% of AMM fees will be used to buy and burn MIA.

The flow of fees:

* After each rebases
* From the fees in that rebase
* We will deposit the LP tokens and get back both tokens then swap to MIA
* Send it to a burn address (This will remove the MIA from the circulating supply)

### Withdrawal Fees From USDO

More details at [**`USDO Documentation`**](https://docs.usdo.finance/)

### Minigame

* Lottery USDO (coming soon)
* Price Prediction (coming soon)


# MiaSwap Contracts

List of current MiaSwap smart contracts deployed on ONUS Chain.

| **Smart contract**                  | **Address**                                |
| ----------------------------------- | ------------------------------------------ |
| Factory                             | 0xA5DA4dC244c7aD33a0D8a10Ed5d8cFf078E86Ef3 |
| Router                              | 0x785bc3471e839FB32Ec6Dc1b8A5C5f568DA9cD56 |
| MIA Token                           | 0x5Df107F23d3Ec5efA926B999Ce285A88955Ae56B |
| Main Mining/Liquidity Pool Contract | Coming soon                                |


