Plan a new pool on LoomDesk's hook
plan_open_poolPlans a new Uniswap v4 pool for a token on LoomDesk's open hook (LoomOpenHookV2), where nine tenths of the swap fee go to the liquidity and a tenth to the LoomDesk book, taken in the quote. Use when ladder_pools shows no pool of the token against the quote wanted, or none that pays liquidity; when a position is wanted in it right away, prefer plan_build, which opens the pool and builds in one transaction. Returns: transactions[] (to, data, value in wei, gas), check (simulated, ok, failedStep, reason, ethNeeded, ethHeld), sendWithin, ifItReverts, slippagePct, the pool's key and opening price, then (the key and price for plan_ladder with newPool). The pool opens at the price of the token's existing market and holds nothing until liquidity is added; one-off cost about a dollar. Behavior: read-only on our side; nothing is signed or sent. The plan is laid out from the chain at this block and simulated from the owner; send it within check.sendWithin, and plan again rather than resend one that reverted. Costs quota units (agent_quota). Errors: refused when the pair already has a pool on the hook, the quote has no exit (under 2,000 USDG of liquidity on the chain), or the token has no market to price from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | The wallet that signs, sends, and pays the opening cost. | |
| quote | Yes | What the token trades against: ETH, USDG, or a quote token's address (a tokenized stock, LOOM, any token with a real exit). | |
| token | Yes | The token's address. | |
| feePct | Yes | The pool's swap fee in percent: 0.1 (rungs from 0.01% wide), 0.5 (from 0.1%), or 1 to 5 (from 2%). |