> For the complete documentation index, see [llms.txt](https://nashpoint.gitbook.io/nashpoint/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nashpoint.gitbook.io/nashpoint/managing-a-node/updating-component-allocations.md).

# Updating Component Allocations

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

```solidity
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

```solidity
// 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
