# XP (Experience Points)

{% hint style="warning" %}
**Non-production feature**

The XP mechanism is still in research and development.
{% endhint %}

Every time you put your money in the zkBob pool you earn additional XP. XP represent your contribution to the anonymity set. The more you invest funds and the longer you hold it inside the pool, the more XP is earned.

Your XP value is updated every time you make a transaction and growth calculated using the following formula:

$$e = Acc\_{in}.b (Acc\_{out}.i - Acc\_{in}.i) + \sum\_k Note\_k.b (Acc\_{out}.i - pos(Note\_k))$$

where

* $$Acc\_{in}$$ and $$Acc\_{out}$$ is the transaction's input and output [accounts](/implementation/account-and-notes/accounts.md) respectively,
* $$Note\_k$$ is the transaction's input [note](/implementation/account-and-notes/notes.md)
* $$pos(Note\_k)$$ is the note's position in the [Merkle tree](/implementation/untitled.md)

When you make a withdrawal transaction, you can get some amount (from zero to overall) of XP. The pool contract will mint [XP ](/implementation/contracts-and-circuits/voucher-token-contract.md)for the address specified in such a transaction.


---

# 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.zkbob.com/roadmap/exploratory-features/xp.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.
