> 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/rebalance-window-and-cooldown.md).

# Rebalance Window & Cooldown

The Node implements a time-based control system that determines when rebalancing operations can occur:

```solidity
uint64 public rebalanceCooldown = 23 hours;  // Default
uint64 public rebalanceWindow = 1 hours;     // Default
uint64 public lastRebalance;
```

### Purpose

* Enables Node owners to optimize transaction costs by batching investment and withdrawal transactions&#x20;
* Window provides predictable timeframe for operations
* Rebalancer has discretion on when to start new window
* Owner can adjust periods based on strategy needs

### Permissions

* The Node Owner has exclusive permission to set rebalance cooldown & duration
* Whitelisted Rebalancers have exclusive rights to call `startRebalance()`

### Configuration

```solidity
// Only owner can modify
function setRebalanceCooldown(uint64 newRebalanceCooldown)
function setRebalanceWindow(uint64 newRebalanceWindow)
```

### Timing Rules

* Must wait `rebalanceCooldown` between rebalance windows
* Rebalancing actions only valid for `rebalanceWindow` duration
* Window starts when rebalancer calls `startRebalance()`

### Modifiers

```solidity
modifier onlyWhenRebalancing()     // Must be within window
modifier onlyWhenNotRebalancing()  // Must be outside window
```

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nashpoint.gitbook.io/nashpoint/managing-a-node/rebalance-window-and-cooldown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
