Skip to content
Mainnet Live. All executions, addresses and hashes are live.
WORMHOOK

Vault Rebalanceactive

Rebalances an EVM-side vault to target weights. Demo custom hook showing an allowlisted, spend-capped integration.

vault.rebalance.v1v1.3.0Baseby Demo author: keeper-vaults
Executions · 7d23
Success rate95.7%
Median latency26.4s
Calling apps1

Interface

REBALANCE

15–25s to receipt

Move the vault to the provided target weights within a slippage bound.

Inputs

vaultaddressVault address.
weightsuint16[] (bps)Target weights summing to 10,000.
maxSlippageBpsuint16Abort above this slippage.

Outputs

executedboolWhether the rebalance ran.
example payload
{
  "vault": "0x51c2e7a0b9d3f6e14a8c7b2d09e3f5a6c1d4b7e8",
  "weights": [
    6000,
    3000,
    1000
  ],
  "maxSlippageBps": 30
}

Usage

@wormhook/sdk
simulated
vault-rebalance.ts
import { WormHookClient } from "@wormhook/sdk";

const client = new WormHookClient({ network: "devnet", appId: YOUR_APP_ID });

const call = await client.prepareCall({
  hookId: "vault.rebalance.v1",
  action: "REBALANCE",
  payload: {
    "vault": "0x51c2e7a0b9d3f6e14a8c7b2d09e3f5a6c1d4b7e8",
    "weights": [
      6000,
      3000,
      1000
    ],
    "maxSlippageBps": 30
  },
  maxSpend: "5000", // ≤ per-call cap (5000 USDC)
  ttl: 900,
});

const execution = await client.simulate(call);
const receipt = await execution.waitForReceipt();

Registration

hook id
vault.rebalance.v1
version
1.3.0
destination
Base
permissions
Allowlist
spend cap
5000 USDC / call
author
Demo author: keeper-vaults0xfe49f0…fa5a

Routes

  • Solana→Baseenabled
  • Wormhole 1 → 30 · receipt returns on the same route

Adapter

integration pending
kind
Custom
contract
VaultAdapter0x57e3fb…f054
IWormHookAdapter.solconceptual
// Conceptual: final interface is defined in phase 2 (CORE_TECH_PLAN.md §Adapters)
interface IWormHookAdapter {
    function execute(
        bytes32 callId,
        bytes calldata payload
    ) external returns (bytes memory output);
}

Source & audit

repository
github.com/example/vault-hooks (demo)
commit
77de1c3
audit
not audited

Risk notes

  • Third-party hook. WORMHOOK does not review custom hook logic.
  • Not audited.

Versions

  1. 1.3.0current2026-09-22Slippage bound per call.
  2. 1.2.02026-08-14Three-asset vaults.

Allowlisted apps

Execution history

latest 10
All →