31third-safe-rebalancer-simple
phips0812 제작
Health & Fitness요약
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
Reads AssetUniverse and StaticAllocation policy state from ExecutorModule on-chain
- 2
Fetches current Safe token balances for all AssetUniverse tokens
- 3
Calculates required trades using the 31Third SDK
- 4
Executes rebalancing via the executor wallet signer
- 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-simpleCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.