# GatePolicyWhitelist

* **Purpose:** Permit only whitelisted actors to interact with a node across deposit/redemption and ERC20 transfer flows.
* **Guarded selectors:** `deposit`, `mint`, `requestRedeem`, `redeem`, `withdraw`, `setOperator`, `transfer`, `approve`, `transferFrom`.
* **Who is checked:**
  * `deposit`/`mint`: caller and receiver.
  * `requestRedeem`: caller, controller, owner.
  * `setOperator`: caller, operator.
  * `redeem`/`withdraw`: caller, receiver, controller.
  * `transfer`: caller, to.
  * `approve`: caller, spender.
  * `transferFrom`: caller, from, to.
* **Config:** Node owner seeds a Merkle root with `setRoot(node, root)` and/or directly lists addresses with `add(node, actors)` / `remove(node, actors)`.
* **User data:** Actors not directly listed must pre-submit a Merkle proof via `Node.submitPolicyData(<any selector guarded by this policy>, policyAddr, abi.encode(bytes32[] proof))`. The proof is cached per `(node, actor)` and reused across selectors.
* **Behavior:** Reverts with `NotWhitelisted` if any checked participant is missing from the allowlist.


---

# Agent Instructions: 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/policies/gatepolicywhitelist.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.
