createRecalculateAumInstruction
Recalculates the vault’s assets under management by reading balance accounts and current price data. This instruction is typically called as a post-hook after Squads policy execution to verify that the transaction outcome is within expected bounds. Can be called by anyone since it only reads balance data and updates the vault’s cached AUM value.Usage
Accounts
| Name | Signer | Writable | Description |
|---|---|---|---|
exponentVaultsProgram | No | No | Exponent Vaults program |
vault | No | Yes | Vault account to recalculate AUM for |
exponentPrices | No | No | ExponentPrices account for token valuations |
Args
| Name | Type | Description |
|---|---|---|
instructions | HookCompiledInstruction[] | Compiled instructions from the sync transaction used for outcome verification |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.