> For the complete documentation index, see [llms.txt](https://smart-tools.gitbook.io/smart-tools-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smart-tools.gitbook.io/smart-tools-docs/liquidity-and-swaps/liquidity-and-swap.md).

# Liquidity & Swap

Deploy liquidity pools and execute coordinated buys in one atomic transaction—perfect for IDOs, stealth launches, and anti-frontrunning strategies.

{% hint style="info" %}

### &#x20;**Key Advantages**

* **Simultaneous LP creation + batch buys** (up to 47 wallets)
* **Frontrun protection** with sub-second execution
* **Multi-DEX support** (Uniswap V2, GraFun & more)
* **Gas-optimized** batch processing
* **Enterprise-grade security** (all keys processed locally)
  {% endhint %}

***

## **Setup Process**

### **1. Configure Buy Wallets**

**Option A: Manual Entry**

text

```
0xPRIVATEKEY1 (Buys 0.5 ETH worth)  
0xPRIVATEKEY2 (Buys 1.2 ETH worth)  
```

**Option B: CSV Upload**

csv

```
private_key,buy_amount  
0xKEY1,0.5  
0xKEY2,1.2  
```

> *Pro Tip:* Use "Max Balance" buttons to auto-calculate optimal buy amounts

***

### **2. Liquidity Pool Setup**

**a) Select DEX**

* Uniswap V2
* GraFun
* (More networks coming)

**b) Define Token Pair**

| Field                    | Example          |
| ------------------------ | ---------------- |
| **Token A** (Your Token) | `0xYourToken...` |
| **Token B** (Pair Asset) | WETH/USDT        |
| **Initial Ratio**        | 50/50 or custom  |

***

### **3. Fee Structure**

* **Service fee:** 0.01 ETH per buy wallet
* **Gas costs:** Covered by liquidity wallet
* **All fees deducted automatically** from LP creator

***

{% hint style="danger" %}

### &#x20;**Critical Security Checklist**

✔ **Test first** on Goerli/Sepolia\
✔ Verify **token contract addresses** 3x\
✔ Ensure **liquidity wallet** has extra ETH for:

* LP creation
* Service fees
* Gas for all buys\
  ✔ **Never use shared devices** for private key entry
  {% endhint %}

***

### **💡 Advanced Strategies**

| Scenario            | Tactical Advantage                        |
| ------------------- | ----------------------------------------- |
| **IDO Launch**      | Team/VC buys execute at LP creation block |
| **Anti-Snipe**      | Buys complete before bots detect LP       |
| **OTC Settlement**  | Coordinated bulk purchases post-funding   |
| **Token Migration** | Seamless transition to new liquidity pool |

***

### **Execution Flow**

1. **Deploy LP** → Creates pool at target ratio
2. **Atomic Buys** → All wallets purchase simultaneously
3. **Confirmation** → Real-time status updates

***

#### **🚨 Pro Reminder**

> "Always keep **10-15% extra ETH** in your liquidity wallet for unexpected gas spikes during network congestion." — Smart Tools Dev Team


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://smart-tools.gitbook.io/smart-tools-docs/liquidity-and-swaps/liquidity-and-swap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
