# Zapin

The **Zapin** feature on the Overnight platform is a user-friendly tool designed to simplify the process of investing in DeFi pools. Powered by smart contracts, it enables users to create liquidity pool tokens and deposit them directly into partner protocol in a single transaction. This eliminates the need for manually interacting with multiple protocols or performing multiple steps, which can often be time-consuming and complex.

### Key Benefits of the Zapin Feature: <a href="#key-benefits-of-the-zapin-feature" id="key-benefits-of-the-zapin-feature"></a>

1. **Streamlined Investment**: Instead of performing multiple transactions, users can invest in various pools through a single, simplified process.
2. **Time-Efficient**: By automating the interaction with DeFi protocols, Zapin save users time and effort.
3. **User-Friendly**: Whether you're a beginner or an experienced DeFi user, Zapin make pool investments more accessible.
4. **Single Transaction**: Zapin consolidate the process of creating liquidity pool tokens and staking them, reducing transaction complexity.

This feature is particularly valuable for those looking to participate in liquidity pools without needing deep technical knowledge or experience with DeFi protocols.

### How to Use the Zapin Feature on Overnight <a href="#how-to-use-the-zapin-feature-on-overnight" id="how-to-use-the-zapin-feature-on-overnight"></a>

{% hint style="warning" %}
Note that a native network token, such as ETH on a Base network, cannot be used for a zap.
{% endhint %}

{% stepper %}
{% step %}
**Access Zaps**

Navigate to the **Pools** page on the Overnight dapp.

<img src="https://3675524930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HhCCgYexXiRot0OWAJY%2Fuploads%2FniQeQliNwkmMVx9FsKpO%2FScreenshot%202024-10-23%20224711.png?alt=media&#x26;token=b4ca99cd-e0f7-4597-abad-daf090443e1d" alt="" data-size="original">
{% endstep %}

{% step %}
**Choose a Pool**

* Browse the available pools and select one that suits your investment goals.
* Use the **chain filter** to narrow down options based on specific blockchain networks.
* Click the **"Deposit"** button next to the desired pool to initiate the process.
  {% endstep %}

{% step %}
**Select Tokens**

* Choose up to 3 tokens from your connected wallet that you wish to deposit in the selected pool.
* Input the amount of each token you want to invest.

<img src="https://3675524930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HhCCgYexXiRot0OWAJY%2Fuploads%2FRuTRoOilldmqG6FsrbfV%2FScreenshot%202024-10-23%20224752.png?alt=media&#x26;token=ffc4338b-c970-4d35-b209-67b90ef1d505" alt="" data-size="original">
{% endstep %}

{% step %}
**Set Slippage Tolerance**

Adjust the **slippage tolerance** to manage price deviations during the transaction.

* For stable pools, a lower slippage is often sufficient.
* For more volatile pools, a higher slippage tolerance may be needed to increase the likelihood of a successful transaction.

<img src="https://3675524930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HhCCgYexXiRot0OWAJY%2Fuploads%2FMi963s5jLqKdR0OiLr6o%2FScreenshot%202024-10-23%20224839.png?alt=media&#x26;token=5f1a8bdb-5e8e-467c-8524-83a72d10dc1f" alt="" data-size="original">
{% endstep %}

{% step %}
**Review and Confirm the Transaction**

* Carefully review the transaction details, including slippage tolerance and the resulting amount of the exchanged assets.
* If token approvals are required, approve them to authorize the transaction.
* Once satisfied, click **"Stake"** to proceed.
  {% endstep %}

{% step %}
**Complete the Transaction**

* Confirm the transaction through your connected wallet following the on-screen prompts.
* After the transaction is confirmed on the blockchain, your assets will be swapped and staked into the selected pool.
  {% endstep %}

{% step %}
**Review Your Position**

A popup window will display the transaction details, including links to:

* View your position in the pool.
* Check the transaction on the chain explorer for transparency.

When your wallet is connected, you can easily monitor your positions on the **My Positions** page. This page provides a comprehensive view of all your active liquidity positions, allowing you to manage and track your investments effortlessly.

<img src="https://3675524930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9HhCCgYexXiRot0OWAJY%2Fuploads%2F3HHasWc98LtwwduYZf2A%2FScreenshot%202024-10-23%20224933.png?alt=media&#x26;token=52c5529e-98c2-4a33-bd8e-9550214c544e" alt="" data-size="original">
{% endstep %}
{% endstepper %}

Congratulations! You've successfully used the **Zapin** feature, allowing you to quickly and easily join pools with Overnight tokens, streamlining the process to gain access to attractive yield opportunities in just one click.


---

# 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.overnight.fi/user-guides/zapin.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.
