# Liquidity & Swap

{% 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: 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://smart-tools.gitbook.io/smart-tools-docs/liquidity-and-swaps/liquidity-and-swap.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.
