Saltar al contenido
TakoAPI
Volver a skills

31third-safe-rebalancer-simple

por phips0812

Health & Fitness
490Descargas según clawskills.sh
1Estrellas
0Vistas
0 me gustaInicia sesión para dar me gusta a esta skill
—Aún sin valoraciones
Tu valoración

Resumen

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

Descripción

Qué hace esta skill

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.

Cuándo usarla

  • 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

Flujo de trabajo de ejemplo

ENTRADA

User asks: Rebalance my Safe now

AGENTE
  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

SALIDA

Transaction hash confirming the rebalancing execution

Requisitos

  • 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)

Instalación

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

Ejecuta el comando de la CLI o pega el prompt en Claude Code, Cursor, Codex o el agente de programación que uses.

Enlaces