# What's going on inside the Hives?

Each Hive has 3 key entities, The Queen, the Worker Bees and the Beras. We've previously covered who our users will be (The Queen and the Beras) but we haven't yet covered the final piece of the puzzle, the Worker Bees.

The Apiary Worker Bees are a set of boutique smart contracts designed to enact the will of the Queen of each Hive. These smart contracts are:

1. **HiveToken**

Hive Tokens are the liquid layer of the Apiary Ecosystem. Whenever a Bera deposits oBERO into a Hive they will receive the respective Hive's HiveToken. These tokens can either be staked to receive the Hive's reward token or traded.

The oBERO deposited inside each Hive is burnt for permanent Beradrome Governance power. The Queen then sets her worker bees to work, directing this governance power towards the gauge (or gauges) of their choice.&#x20;

The worker bees return from their work with the voting rewards earned from each gauge. These rewards accrue together in a basket which then needs to be swapped into the Hive's selected reward token. This is quite a complex task, but this is where the HiveFeeFlow contract takes over.

2. **HiveFeeFlow**

Whilst this conversion would normally be quite a complex task onchain (with potentially many tokens to exchange into one reward token), by leveraging [Euler Finance's](https://www.euler.finance/blog/fee-flow-eulers-approach-to-navigating-fee-accumulation) innovations Hives are able to enact these swaps at a more efficient rate than previously possible.

Through Euler's model all voting rewards are auctioned off in one basket, with the HiveFeeFlow buzzing into action and bringing the basket together to be sold off in the **Auction House.**

3. **HiveRewarder**

The rewards token is then distributed back to stakers of the individual Hive's token through the HiveRewarder Contract.


---

# 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://docs.apiary.finance/apiaryfinance/whats-going-on-inside-the-hives.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.
