Difference between revisions of "Volume Weighted Average Price (VWAP)"

From CryptoWiki

(Created page with "* [https://banklessdao.substack.com/p/the-oracle-edition-defi-download From] Bankless (20-1-2023): ''"VWAP oracles are similar to TWAP oracles, but they also integrate price data from a variety of liquidity pools. Then the oracle mechanism normalizes the price differences using each market’s trading volume. Many designs use median price in order to avoid the impact of outliers, which may be the result of an attack or error. A...")
 
m (Grand Master Pepe moved page VWAP to Volume Weighted Average Price (VWAP))
 
(No difference)

Latest revision as of 04:55, 9 February 2023

"VWAP oracles are similar to TWAP oracles, but they also integrate price data from a variety of liquidity pools. Then the oracle mechanism normalizes the price differences using each market’s trading volume. Many designs use median price in order to avoid the impact of outliers, which may be the result of an attack or error. As a result, VWAP oracles take a wider view of price action and reduce the impact of price manipulation on specific markets.

VWAP feeds can integrate several data sources to increase accuracy and security. The calculation of the broader market reduces the effectiveness of a flashloan attack.

As an example, assume we’re tracking the price of some asset using the same conditions as above (60 minute period; 1 minute intervals). Instead of using only Uniswap to calculate prices, we could also integrate prices from Coinbase, Binance, Kraken, and Gemini. An attacker would need the liquidity and timing to affect all 5 markets in a coordinated manner in order to take advantage of some exploit.

TL;DR it’s much harder to impact the price of an asset on multiple markets than just one."