> For the complete documentation index, see [llms.txt](https://bl0x.gitbook.io/bl0x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bl0x.gitbook.io/bl0x/tools/pea/how-does-pea-work.md). Agents can also search and read this documentation through its [MCP server](https://bl0x.gitbook.io/bl0x/~gitbook/mcp).

# How does PEA work?

## ERC20 magic

BEAN is a smart contract that implements the ERC20 interfaces to communicate with any EVM blockchain wallet. Internally the code communicates with the stake-ewt.io smart contracts to&#x20;

* retrieve your deposited EWT
* calculate your staking rewards
* compounds your EWT (deposited + rewarded)
* keeps track of the total staking pool (amount of EWT locked in the pool)
