jingswap-cycle-agent

Installation
SKILL.md

jingswap-cycle-agent

What it does

Monitors the active JingSwap cycle and evaluates whether the Pyth oracle settlement rate offers a favourable sBTC acquisition opportunity relative to live DEX prices.

Data source What it reads Why it matters
sbtc-stx-jing-v2 contract (Hiro read-only API) Cycle ID, phase, blocks elapsed, deposits, minimums Is the cycle in deposit phase? Is sBTC available?
Pyth Hermes oracle BTC/USD and STX/USD live prices Computes oracle STX/sBTC settlement rate
get-dlmm-price (contract) DLMM pool price (1e10 / raw) Best DEX rate for comparison
get-xyk-price (contract) XYK pool price (raw / 1e8) Secondary DEX rate cross-check

JingSwap settles at the Pyth oracle rate, not the DEX rate. When oracle < DEX, depositing STX acquires sBTC cheaper than buying on-market — the arbitrage window. This skill quantifies that spread in real time.

Why agents need it

JingSwap's API (faktory-dao-backend.vercel.app) requires an x-api-key. This skill bypasses it entirely by reading the Stacks contract directly via the public Hiro read-only endpoint. No credentials needed.

Related skills
Installs
31
Repository
aibtcdev/skills
GitHub Stars
6
First Seen
Apr 8, 2026