Rebalance
To adjust asset allocation within the vault, use therebalance method. Here are the steps to create the transaction:
-
Prepare parameters:
caller: The address of the user performing the rebalance.
-
Example transaction:
Rescue
To recover assets in critical situations, use therescue method. Here are the steps to create the transaction:
-
Prepare parameters:
strategy_address: The address of the strategy from which you want to recover assets. This must be a valid address of a strategy linked to the vault.caller: The address of the user performing the rescue operation.
-
Example transaction:
Pause / Unpause
To pause or unpause a strategy, use thepause_strategy and unpause_strategy methods. Here are the steps to create the transactions:
-
Prepare parameters:
strategy_address: The address of the strategy you want to pause or unpause.caller: The address of the user performing the operation.
-
Example transaction for pausing:
-
Example transaction for unpausing:
Upgrade
To update the vault’s WASM code, use theupgrade method. Here are the steps to create the transaction:
-
Prepare parameters:
new_wasm_hash: The hash of the new WASM code.caller: The address of the user performing the upgrade.
-
Example transaction:
Methods by role
Anyone with the right role can call these. See Vault Roles for who holds what. Management:rebalance, rescue, set_fees, pause_strategy / unpause_strategy.
Manager only: set_fee_receiver, set_manager, set_emergency_manager, set_rebalance_manager, upgrade, lock_fees, release_fees.
The complete list with parameters is in the vault interface.