1826/woofi-zero-slippage/SKILL.md
Optimize token swaps with zero/near-zero slippage using WOOFi's sPMM across 12+ chains. Query routes, calculate price impact, execute swaps with minimal slippage.
npx skillsauth add starchild-ai-agent/community-skills @1826/woofi-zero-slippageInstall 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.
Optimize token swaps with zero/near-zero slippage using WOOFi's sPMM (Synthetic Proactive Market Making) algorithm across 12+ EVM chains.
WOOFi uses Synthetic Proactive Market Making (sPMM) to simulate CEX-style orderbooks on-chain:
| Chain | Network ID | Quote Token | WooRouterV2 | |-------|-----------|-------------|-------------| | Arbitrum | 42161 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | Avalanche | 43114 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | BSC | 56 | BUSD/USDT | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | Optimism | 10 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | Polygon | 137 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | Base | 8453 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | Linea | 59144 | USDC | 0x4c4AF8DBc524681930a27b2F1Af5bcC8062E6fB7 | | zkSync | 324 | USDC | 0x09873bfECA34F1Acd0a7e55cDA591f05d8a75369 |
woofi_query_swapQuery optimal swap amount with zero slippage estimation.
Parameters: chain, from_token, to_token, amount (wei) Returns: to_amount, price_impact, route, gas_estimate
woofi_get_supported_tokensGet all supported tokens on a chain.
Parameters: chain Returns: quote_token, base_tokens[]
woofi_calculate_slippageCalculate expected slippage for swap size.
Parameters: chain, from_token, to_token, amount, tolerance (bps, default 50) Returns: expected_slippage (bps), min_output, is_zero_slippage
woofi_build_swap_transactionBuild swap transaction ready for signing.
Parameters: chain, from_token, to_token, amount, slippage_bps, recipient, use_router (default true) Returns: to, data, value, gas_limit, min_output
woofi_compare_routesCompare WOOFi vs traditional AMM for best execution.
Parameters: chain, from_token, to_token, amount Returns: woofi_output, amm_output, savings, savings_usd, recommendation
quote = woofi_query_swap(
chain="base",
from_token="0x4200000000000000000000000000000000000006",
to_token="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
amount="1000000000000000000"
)
tx = woofi_build_swap_transaction(
chain="arbitrum",
from_token="native",
to_token="0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
amount="1000000000000000000",
slippage_bps=50,
recipient="0xYourAddress"
)
tx_hash = wallet_transfer(to=tx["to"], amount=tx["value"], data=tx["data"], chain_id=42161)
Traditional AMM (x*y=k): Price moves against trader, slippage scales quadratically
WOOFi sPMM:
Formula: Price = Oracle_Price × (1 ± Spread)
For trades <1% of pool, slippage approaches zero.
woofi_query_swapdevelopment
OpenSea API integration for NFT and token discovery, marketplace intelligence, and order/transaction workflows. Use when working with OpenSea data or trading flows (e.g. collection stats, trending collections/tokens, NFT metadata, listings/offers, swap quotes, transaction receipt polling).
development
Generate a warm, healing parallel-universe fairy tale (~1000 words) plus 3 cohesive storybook illustrations, themed "if this person had never been born, what would the world miss." Output is a polished HTML storybook that can be previewed and published. Use when the user wants a personalized "if I had never been born" / "如果我没出生" tale for a real person — input is a name, age, and 3 key life events. Great for birthdays, memorials, encouragement gifts, or healing keepsakes.
development
Onboard a user to Phala Cloud and deploy a verifiable Starchild TEE agent — a minimal FastAPI runtime running inside an Intel TDX confidential VM, plus a published chat dashboard with attestation verification. Use when the user wants to "try TEE", "run an agent in a confidential VM", "deploy to Phala", or replicate the internal Starchild TEE test setup.
tools
Trade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").