# Architecture

The user journey in WeBera begins with depositing assets into WeBera Vaults, which returns LP tokens and generates yield. Users can then stake these LP tokens in the WeBera BGT Factory to earn additional rewards. The BGT Factory manages the process of claiming BGT and delegating it.

To operate this flow, the following components are required:

1. **WeBera Vault**

• This is the primary component responsible for creating and managing vaults. Currently, WeBera’s active vault is weHONEY.

• Users deposit assets into the vault, which employs an Optimized Strategy to farm these assets across various DeFi protocols, aiming to achieve the highest possible yield.

• In return, users receive LP tokens, specifically $weHONEY, and the yield generated from farming.

2. **AI Optimizer**

• A critical component determining the optimal asset distribution across multiple DeFi liquidity pools.

• Uses an AI-based calculation model to monitor rates in real-time and perform auto-rebalancing, helping to manage risks effectively.

<figure><img src="/files/9Ya5tUy17if4ouic6JiY" alt=""><figcaption></figcaption></figure>

3. **WeBera BGT Factory**

• The core of WeBera’s Proof of Liquidity optimization process. Users stake their $weHONEY LP tokens directly in the dApp’s BGT Optimizer to earn incentives.

• This component handles LP token staking, BGT claims, and delegating BGT to trusted validators.

• Additionally, it collects bribe incentives from validators and distributes them to users.

4. **AI BGT Optimizer**

• Similar to yield farming, AI is applied to the BGT Optimizer, employing optimized strategies to enhance the allocation of LP tokens and BGT for maximum efficiency.

This architecture enables WeBera to manage user assets efficiently, optimize yields across multiple protocols, and provide a unified interface for users to access diverse DeFi opportunities. The use of AI and off-chain computing in the Optimizer suggests advanced strategies for maximizing returns while potentially managing risks.


---

# 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.webera.finance/core-concepts/webera-vault/architecture.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.
