Attributed USD Value
On-Chain 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
The exact process for calculating the conversion value works as follows
We identify a swap or deposit action on a DEX that is compatible with Uniswap V2 or V3.
We retrieve the details of the liquidity pool pair where the action took place.
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.
Last updated