Overview

RedirectingDepositHook is a deposit-time liquidity allocation hook implementing the IHook interface. It is designed to redirect newly deposited assets from a vault into its underlying subvaults, based on per-subvault risk and capacity constraints defined by a RiskManager.

This hook helps distribute liquidity optimally during deposit flows.

Purpose

Key Function

callHook(address asset, uint256 assets)

Distributes a given amount of asset across available subvaults based on their individual deposit capacity.

Execution Logic:

  1. Retrieves:
  2. Iterates over each subvault:

Components and Assumptions