# What's Really Going on When Processing Liquidity in a Uniswap Pool?

When liquidity providers add or remove liquidity in a Uniswap pool, the protocol uses internal accounting to save gas fees, among other reasons. This approach hides many details that retail users do not care about. However, if you want to become a sleuth of DeFi, it's critical to find out what's really going on behind the curtain.EigenPhi's EigenTx transaction analyzer offers a comprehensive toolset to unravel the complexities of the internal accounting procedures associated with adding and removing liquidity to a Uniswap pool. Consider yourself as a liquidity provider now. Basically, you can regard yourself as a shareholder of a bank branch. Adding your liquidity to a Uniswap pool is like adding your asset to the asset of the bank branch.

Now, follow my lead.


---

# 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://eigenphi-1.gitbook.io/head-first-defi/under-the-hood-of-the-defi-lego/whats-really-going-on-when-processing-liquidity-in-a-uniswap-pool.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.
