Skip to main content

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

Args

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.