跳到正文
TakoAPI
返回技能列表

cetus

由 k66inthesky 提供

Coding Agents & IDEs
637下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

This guide covers all Cetus SDK v2 packages for building DeFi applications on Sui.

描述

该技能的功能

A collection of TypeScript SDK packages for interacting with the Cetus Protocol on Sui. Covers concentrated and dynamic liquidity pools, yield farming, governance tokens, limit orders, DCA, permanent liquidity locking, and multi-DEX swap aggregation. Each module ships as its own npm package with a shared initialization pattern.

Covers the full Cetus protocol surface in typed TypeScript packages, so developers avoid raw contract calls or managing separate unofficial libraries for each DeFi operation on Sui.

何时使用

  • Setting up recurring DCA orders to accumulate a Sui token over time
  • Adding concentrated liquidity to a Cetus pool within a custom price range
  • Placing a limit order to buy or sell a token at a target price
  • Permanently locking a liquidity position while continuing to collect fees
  • Routing a swap across multiple Sui DEXs to get the best execution price

示例工作流

输入

User asks: swap SUI for USDC at the best available rate across Sui DEXs

智能体
  1. 1

    Initialize CetusAggregatorSDK with mainnet env

  2. 2

    Set sender address on the client

  3. 3

    Call findRouters with coinTypeFrom, coinTypeTo, and amount to get optimal routes

  4. 4

    Call fastRouterSwap with the routes, slippage tolerance, and keypair

输出

Swap executed across the best available DEX path with the output USDC returned to the sender wallet

前置要求

  • Sui wallet keypair for signing and submitting transactions

安装

clawhub install k66inthesky/cetus

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接