VWAP Oracles
Integrate the Mute Switch LP Oracles into your dApp
Integration
// returns the current VWAP over the last 30 minute window
function current(address tokenIn, uint amountIn) external view returns (uint amountOut)
// returns the VWAP over the granularity amount, 30 min increments
// e.g. granularity = 2 returns VWAP of the last 60 min window (2 sample points)
function quote(address tokenIn, uint amountIn, uint granularity) external view returns (uint amountOut)Last updated