Skip to main content

create-v3-pools

Creates Pool<YES, DUSDC> + Pool<NO, DUSDC> on DeepBook V3 via create_permissionless_pool (500 DEEP fee each). Writes pool ids back into registry.json. Skips legs whose pool already exists.
pnpm tsx scripts/create-v3-pools.ts --slug btc_80k_eoy --execute
Flags
FlagRequiredDescription
--slugyesMarket slug from registry
--tick-sizenoV3 tick size (default: 1_000)
--lot-sizenoV3 lot size (default: 100_000)
--executenoSign + submit
The script auto-buys DEEP with SUI when the book can fill, else exits with the exact ask.
Testnet DEEP had been blocked until 2026-06-11. The DeepBook team granted 1000 DEEP + 200 DUSDC and pool creation worked exactly as designed. The full 1000 DEEP was consumed as the 2×500 creation fees (tx 3Bq5VDoacnmgdHU6WfHaMVxkwC7LD5U86MUYFxetYm6W).

seed-v3-liquidity

Bootstraps a two-sided book on both pools in one PTB:
  1. Mint YES + NO pairs from wallet DUSDC (5% fee headroom).
  2. Deposit tokens + bid funds into a BalanceManager (created + shared in-PTB, or reused via --bm).
  3. POST_ONLY bid/ask per pool with pay_with_deep=false (input-token fees).
pnpm tsx scripts/seed-v3-liquidity.ts \
  --slug btc_80k_eoy \
  --qty 50 \
  --bid 0.45 \
  --ask 0.55 \
  --execute
Flags
FlagRequiredDescription
--slugyesMarket slug from registry
--qtynoPer-side quantity (default: 50)
--bidnoBid price (default: 0.45)
--asknoAsk price (default: 0.55)
--bmnoReuse an existing seeder BalanceManager id
--executenoSign + submit
Exits 3 with DEEP guidance until create-v3-pools has run. The seeder BalanceManager id (printed at first run) gets reused via --bm to top up or re-quote without re-creating.