# Fee Batch

<figure><img src="/files/2lTOLPKFmwm6Fk9z51IH" alt=""><figcaption></figcaption></figure>

The **ZenStake Fee Batch** is a key component of the protocol that efficiently distributes staking fees to governance participants and the treasury. It ensures smooth fund allocation from vault rewards to the broader ZenStake ecosystem.

### How It Works

The **Fee Batch** aggregates fees from vaults to optimize gas efficiency. Instead of forwarding small amounts frequently, which increases transaction costs, the system batches fees before distribution.

When processing transactions, the Fee Batch executes a **multicall** to:

* Allocate a portion of fees to **staking incentives**
* Swap a portion for stablecoins and transfer them to the **treasury**

This structured approach balances efficiency with cost-effectiveness.

### Cross-Chain Fee Management

Each chain using ZenStake employs its own **Revenue Bridge** to aggregate fees before transferring them to the Fee Batch. Once the funds accumulate to a sufficient level, the Fee Batch executes its predefined allocation process, ensuring seamless distribution without unnecessary swaps.

### Efficient Revenue Distribution

Once collected, fees are split between **staking incentives** and the **treasury** based on predefined allocations. Staking incentives may require conversion before distribution, while treasury inflows remain stable, ensuring the long-term sustainability of the ecosystem.

The **ZenStake Fee Batch** streamlines revenue flow, minimizes costs, and ensures rewards are optimally distributed across the ecosystem.

{% content-ref url="/pages/X7P3BMwD260FU7CzpPwr" %}
[Fee Batch Mechanism](/zenstake/for-developers/fee-batch-mechanism.md)
{% endcontent-ref %}


---

# 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://zenstake.gitbook.io/zenstake/fee-batch.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.
