跳到正文
TakoAPI
返回技能列表

31third-safe-rebalancer-simple

由 phips0812 提供

Health & Fitness
490下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

One-step Safe rebalancer using on-chain 31Third policies.

描述

该技能的功能

Rebalances a Gnosis Safe's token portfolio to on-chain allocation targets defined via 31Third policies. It reads AssetUniverse and StaticAllocation policy state from the deployed ExecutorModule, calculates required trades, and executes them using an executor wallet. Skips execution when portfolio drift is below the configured threshold.

Reads allocation targets and slippage limits directly from on-chain policies, so no manual configuration is needed at execution time.

何时使用

  • Rebalancing a Safe wallet to a target token allocation
  • Running automated drift corrections on a scheduled basis
  • Verifying 31Third policy contracts after Safe deployment
  • Executing portfolio trades without manual trade configuration
  • Troubleshooting failed rebalancing with deployment verification

示例工作流

输入

User asks: Rebalance my Safe now

智能体
  1. 1

    Reads AssetUniverse and StaticAllocation policy state from ExecutorModule on-chain

  2. 2

    Fetches current Safe token balances for all AssetUniverse tokens

  3. 3

    Calculates required trades using the 31Third SDK

  4. 4

    Executes rebalancing via the executor wallet signer

  5. 5

    Waits for confirmation and returns the transaction hash

输出

Transaction hash confirming the rebalancing execution

前置要求

  • TOT_API_KEY — request at 31third.com/contact or dev@31third.com
  • Gnosis Safe with 31Third policies deployed via app.31third.com/safe-policy-deployer
  • Executor wallet private key (EXECUTOR_WALLET_PRIVATE_KEY)

安装

clawhub install phips0812/31third-safe-rebalancer-simple

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

链接