# 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](https://docs.zkbob.com/implementation/account-and-notes/accounts) respectively,
* $$Note\_k$$ is the transaction's input [note](https://docs.zkbob.com/implementation/account-and-notes/notes)
* $$pos(Note\_k)$$ is the note's position in the [Merkle tree](https://docs.zkbob.com/implementation/untitled)

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