defi

Installation
SKILL.md

DeFi Skill

Provides DeFi operations across two protocols:

  • ALEX DEX — Automated Market Maker (AMM) on Stacks for token swaps. Uses the alex-sdk for routing and price discovery. Mainnet-only.
  • Zest Protocol — Lending and borrowing protocol on Stacks. Supply assets to earn interest, borrow against collateral. Mainnet-only.

Write operations (swap, supply, withdraw, borrow, repay, claim-rewards) require an unlocked wallet (use bun run wallet/wallet.ts unlock first). Read operations (get-swap-quote, get-pool-info, list-pools, list-assets, get-position) also require an unlocked wallet for routing context.

Usage

bun run defi/defi.ts <subcommand> [options]

Subcommands

alex-get-swap-quote

Related skills
Installs
149
Repository
aibtcdev/skills
GitHub Stars
6
First Seen
Mar 4, 2026