flux-point-studios/cardano-defi-skills · Archived

saturnswap-market-swap

Use this skill when the user wants to perform a market swap on SaturnSwap. Triggers on: "swap ADA for", "buy MNT", "sell tokens for ADA", "market buy", "market sell", "swap on SaturnSwap", "trade on Saturn". This skill guides the user through the swap — use saturnswap-market-swap-operator to execute the actual transaction.

First seen Mar 22, 2026

Installation

$ npx skills add flux-point-studios/cardano-defi-skills --skill saturnswap-market-swap

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from flux-point-studios/cardano-defi-skills · top by installs.

npx skills add flux-point-studios/cardano-defi-skills

Browse all from flux-point-studios/cardano-defi-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 8
License MIT
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,018 B
  • docs SUMMARY.md 356 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

SaturnSwap Market Swap

Guide users through market buy/sell swaps on SaturnSwap DEX.

Flow

  1. Find the pool — look up by ticker or policy ID
  2. Check the order book — show current best ask/bid and spread
  3. Preview the swap — calculate expected output at current price
  4. Build the transaction — call createMarketSwap with pool ID and amount
  5. Hand off to operator — the operator skill handles signing and submission

Scripts

Preview Swap

node scripts/preview-swap.js --pool <pool-uuid> --amount <display-units> [--side buy|sell]

Fetches current price and estimates output. Does NOT create a transaction.

Create Swap Transaction

node scripts/create-swap.js --address <bech32> --pool <pool-uuid> --amount <display-units> [--slippage 3]

Calls the API to build an unsigned transaction. Returns transactionId and hexTransaction.

Safety Rules

  • Always show the user: pool pair, amount in, estimated amount out, slippage, and any fees
  • Require explicit confirmation before calling create-swap
  • Display units only — 5 ADA means tokenAmountSell: 5, never 5000000
  • Slippage defaults to 3% — warn if user sets >10%
  • Check error field even on HTTP 200 responses

Key Concepts

  • Market swaps execute immediately against the order book
  • tokenAmountSell is the input amount (what you're giving up)
  • Selling ADA → buying tokens (market buy of the token)
  • Selling tokens → getting ADA back (market sell of the token)
  • After creation, the hex must be signed locally and submitted via the operator skill