# Attributed USD Value

### OnChain Goals Conversion Value

For certain goals, we calculate the USD value of conversions. These calculations are based on liquidity pools from DEXes compatible with Uniswap V2 and V3 protocols. The goals for which we calculate USD value include:

* Swapping a specific token
* Swapping within a specific liquidity pool
* Depositing into a specific liquidity pool
* Swapping on a specific DEX
* Depositing on a specific DEX&#x20;

#### The exact process for calculating the conversion value works as follows

1. We identify a swap or deposit action on a DEX that is compatible with Uniswap V2 or V3.
2. We retrieve the details of the liquidity pool pair where the action took place.
3. If one of the tokens in the pair is either a native token (e.g., WETH) or a stablecoin (e.g., USDT), we calculate the USD value based on the amount specified in the action.


---

# 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.cookie3.com/cookie3-analytics/features/conversion-events/onchain-conversion-events/attributed-usd-value.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.
