jingswap-v2/SKILL.md
Jingswap V2 limit-price auction — sbtc-stx markets with mandatory limit prices, 2-phase (no buffer), bundled close+settle. Markets: sbtc-stx-market (0% premium) and sbtc-stx-20bp-stx-premium (0.20% STX bonus).
npx skillsauth add aibtcdev/skills jingswap-v2Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Limit-price auction for swapping sBTC against STX on Stacks. Two markets:
| Market | Contract | Premium |
|--------|----------|---------|
| sbtc-stx-market (default) | SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.sbtc-stx-0-jing-v2 | 0% (oracle price) |
| sbtc-stx-20bp-stx-premium | SPV9K21TBFAK4KNRJXF5DFP8N7W46G4V9RCJDC22.sbtc-stx-20-jing-v2 | 0.20% STX bonus |
close-and-settle in a single atomic tx (reverts entirely if fails)set-stx-limit / set-sbtc-limitbun run jingswap-v2/jingswap-v2.ts <subcommand> [--market <pair>] [options]
Default market is sbtc-stx-market. All limit prices are in sats/STX.
Get current V2 cycle state (phase, blocks, totals).
bun run jingswap-v2/jingswap-v2.ts cycle-state --market sbtc-stx-20bp-stx-premium
Get deposit amounts and limit prices for a user.
bun run jingswap-v2/jingswap-v2.ts user-deposit --cycle 0 --address SP...
Simulate settlement at current oracle — shows what will clear vs roll.
bun run jingswap-v2/jingswap-v2.ts clearing-preview
Get oracle prices with default limit suggestions.
bun run jingswap-v2/jingswap-v2.ts prices
Deposit STX with limit price (sats/STX floor). Omit --limit for 20% in-the-money default.
bun run jingswap-v2/jingswap-v2.ts deposit-stx --amount 10 --limit 240
Deposit sBTC (satoshis) with limit price (sats/STX ceiling). Omit --limit for 20% in-the-money default.
bun run jingswap-v2/jingswap-v2.ts deposit-sbtc --amount 10000 --limit 360
Update STX-side limit price without re-depositing. Deposit phase only.
bun run jingswap-v2/jingswap-v2.ts set-stx-limit --limit 250
Update sBTC-side limit price without re-depositing. Deposit phase only.
bun run jingswap-v2/jingswap-v2.ts set-sbtc-limit --limit 350
Cancel STX deposit for full refund. Deposit phase only.
bun run jingswap-v2/jingswap-v2.ts cancel-stx
Cancel sBTC deposit for full refund. Deposit phase only.
bun run jingswap-v2/jingswap-v2.ts cancel-sbtc
Close deposits and settle atomically with fresh Pyth prices. Single tx, reverts entirely if settlement fails.
bun run jingswap-v2/jingswap-v2.ts close-and-settle --market sbtc-stx-20bp-stx-premium
Cancel cycle if settlement failed. Callable 42 blocks (~84s) after close. Rolls all deposits forward.
bun run jingswap-v2/jingswap-v2.ts cancel-cycle
development
Web of Trust operations for Nostr pubkeys — trust scoring, sybil detection, trust path analysis, neighbor discovery, follow recommendations, and network health. Free tier (wot.klabo.world, 50 req/day) with paid fallback (maximumsats.com, 100 sats via L402). Covers 52K+ pubkeys and 2.4M+ zap-weighted trust edges. Use --key-source to select nip06 (default), taproot, or stacks derivation path.
data-ai
BTC ordinals marketplace operations via Magic Eden — browse active listings, list inscriptions for sale via PSBT flow, submit signed listings, buy inscriptions, and cancel active listings. BTC ordinals only (not Solana). Mainnet-only.
testing
Pay-per-call access to LunarCrush social and market intelligence (Galaxy Score, AltRank, market cap rank, price, 24h change) via x402 on Stacks. USD-pegged pricing recomputed hourly from live STX/USD. Mainnet endpoint live; testnet supported.
devops
Detects HODLMM LP inventory drift (token-ratio imbalance from one-sided swap flow) and restores the target ratio via a corrective Bitflow swap plus a hodlmm-move-liquidity redeploy, gated by the 4h per-pool cooldown.