This guide will focus on the two most important DMM prices: the mid price and the execution price.
The mid price, basically is the price that reflects the ratio of reserves in one or more pools. Think of it as the relative value of one token in terms of the other. It can be interpreted as the current market-clearing or fair value price of the assets.
The example below shows how one may fetch the mid price for USDC-WETH.
- Price is formmated for better representation
execution price of a trade represents the ratio of assets sent or received.
For example, we are trading 1 WETH for DAI: