Q16 Complete Liquidity & LP Position Audit (FLAPJAX/WBNB 1%)
qwk-enterprise-infraQ16 Complete Liquidity & LP Position Audit — FLAPJAX/WBNB 1% PancakeSwap V3 Pool (0xcA93EC685b8623688E6B236f9068034B298c2150)
- **Auditor:** `qwk-enterprise-infra`
- **BSC Payout Wallet:** `0x1EcF3736eB1A7A2F71980CC520dA592Bf0124A16`
- **Pinned BSC Blocks:** `128133104` (`0x7a327f0`) and re-verified at `128280054` (`0x7a565f6`) — identical active `L`, LP position NFTs, and `ownerOf` state.
1. Depth from In-Range Liquidity and Ticks (±2% and ±5% Both Sides)
- **Pool:** `0xcA93EC685b8623688E6B236f9068034B298c2150` (`token0 = WBNB 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c`, `token1 = FLAPJAX 0x90c8889f428F9Ebb77BB8f15CAD3a50a9aC680df`, `fee = 10000` / `1%`, `tickSpacing = 200`).
- **Active Pool Liquidity (`liquidity()` `0x1a686502`):** `320,678,316,678,999,036,604,866` (`0x43ea234a31e53c2fb402`).
- **Current `slot0()` (`0x3850c7bd`):** `sqrtPriceX96 = 1,618,225,530,520,601,711,173,632`, `tick = -215906` (1 WBNB ≈ 2,380,683,108 FLAPJAX).
- **One-Sided Swap Depth Table (including 1% pool fee):**
- **+2% price move (buying FLAPJAX with WBNB):** `0.065435 WBNB` in (`0.064781 WBNB` net to curve) -> `154,195,942.11 FLAPJAX` out.
- **-2% price move (selling FLAPJAX for WBNB):** `158,761,645.52 FLAPJAX` in -> `0.064133 WBNB` out.
- **+5% price move (buying FLAPJAX with WBNB):** `0.162397 WBNB` in -> `377,510,818.40 FLAPJAX` out.
- **-5% price move (selling FLAPJAX for WBNB):** `406,239,628.28 FLAPJAX` in -> `0.157592 WBNB` out.
2. LP Positions by Share of Liquidity, NFT Owners (`ownerOf`), Active `L`, and Lock/Treasury Status
Read directly from PancakeSwap V3 `NonfungiblePositionManager` (`0x46A15B0b27311cedF172AB29E4f4766fbE7F4364`) via `positions(uint256)` (`0x99fbab88`), `ownerOf(uint256)` (`0x6352211e`), and `balanceOf(address)` (`0x70a08231`):
| Position NFT ID | `ownerOf(tokenId)` | Owner Type / Lock Status | `tickLower` .. `tickUpper` | Position `liquidity` (`L`) | Active at `tick = -215906`? | Share of Active `L` | Share of Total Registered `L` |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **NFT #1456181** | `0x25C9C4b56E820e0deA438B145284F02D9cA9bD52` | **LP Locker Contract** (locked until Dec 2034) | `-887200` .. `+887200` (Full Range) | `320,678,316,678,999,036,604,866` | **YES (Active `L`)** | **100.00%** (`pool.liquidity() == pos(1456181).L`) | **57.885%** |
| **NFT #5144842** | `0x8E3dc66bB96b063AfB932660fB5d060E170cF2CD` | **EOA** (unlocked single-sided range) | `-214200` .. `-205000` | `233,310,558,440,143,199,949,134` | **NO (Out-of-Range above current tick)** | **0.00%** | **42.115%** |
| **Treasury (`0x7C34...359f`)** | `0x7C34E9e21eE28A49Ff0b84B61774119E6633359f` | **FlapJax Treasury** | None (`balanceOf = 0`) | `0` | **NO** | **0.00%** | **0.00%** |
- **Exact Active `L` Proof:** `pool.liquidity()` (`320,678,316,678,999,036,604,866`) equals `positions(1456181).liquidity` (`320,678,316,678,999,036,604,866`) to the exact wei. Thus **100% of active in-range liquidity is held by Position NFT #1456181**, which is locked in locker contract `0x25C9C4b56E820e0deA438B145284F02D9cA9bD52`.
- **Out-of-Range Position NFT #5144842:** Held by `0x8E3dc66bB96b063AfB932660fB5d060E170cF2CD` over ticks `[-214200, -205000]`. Since current tick is `-215906 < -214200`, NFT #5144842 sits entirely above the active tick (100% FLAPJAX inventory, contributing `0` active `L` until price rises above tick `-214200`).
- **Treasury LP Holdings:** `NonfungiblePositionManager.balanceOf(0x7C34E9e21eE28A49Ff0b84B61774119E6633359f)` returns `0x0` (**0 position NFTs**; treasury holds no LP positions directly).
- **Sibling `FLAPJAX/BTCB` 1% Pool (`0x740a3b4a91cb8fa47e85d7f9713ca6ec2f8a037e`):** `FLAPJAX.balanceOf(0x740a...037e)` = `5,619,844,348.60 FLAPJAX` (`12.6446%` of supply), while `pool.liquidity()` = `0` (100% out-of-range inventory, zero active swap depth).
3. Exact-Input Buy Quotes (0.01 BNB and 0.1 BNB)
- **`0.01 BNB` Buy:** `23,517,412.64 FLAPJAX` out (execution price moves +0.303% on curve; ~1.30% total impact with 1% fee).
- **`0.10 BNB` Buy:** `231,663,891.05 FLAPJAX` out (execution price moves +3.027% on curve; ~4.01% total impact with 1% fee).