Updating Component Allocations

Node owners can modify a component's target allocation, maximum deviation, and router using the updateComponentAllocation function.

function updateComponentAllocation(
    address component,
    uint64 targetWeight,
    uint64 maxDelta,
    address router
) external onlyOwner onlyWhenNotRebalancing

Security Checks

  1. Component must:

    • Be an existing component

    • Be whitelisted in new router (if router changes)

  2. Router must:

    • Be whitelisted in Node

    • Be whitelisted in Registry

  3. Timing:

    • Cannot update during rebalance window

Example Usage

// Update allocation and parameters
node.updateComponentAllocation(
    vaultAddress,     // Existing component
    0.3e18,          // New target: 30%
    0.02e18,         // New max delta: 2%
    routerAddress    // Can be same or new router
);

Important Notes

  • New allocations must still sum to 100% with other components and reserve

  • Changes take effect at next rebalance

  • Consider impact on reserve ratio when changing allocations

  • Router changes require component to be whitelisted in new router

Last updated