# Allowance management logic

The `handleAllowance` internal function defines the logic for when an Allowance is being used. Allowance usage is broken down in the Payments Through Snowflake section.

Allowances **must** be set by an `EIN` for a Resolver in order for the Resolver to operate on them. Allowances can be set when the Resolver is added, and they can be changed at any time. Once an allowance is set, a Resolver may withdraw from the `EIN`‘s HYDRO balance up to the quantity of the Allowance.

When executing resolver-initiated payments, `handleAllowance` checks that:

* The `Resolver` is set for the `EIN`
* The balance being used by the `Resolver` is within the `Resolver`‘s allowance.


---

# 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://hydro.gitbook.io/docs/snowflake/allowances-in-snowflake/allowance-management-logic.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.
