Price Oracle

V2 Price Oracle

Nyke uses the Tarot Price Oracle, which works with any Uniswap V2-compatible token pair, commonly supported by DEXs. It calculates the time-weighted average price (TWAP) by using the pair’s built-in price accumulators, over a period of at least 1,200 seconds (20 minutes). This is accomplished using the pair’s current price and a previously-observed price (stored within the oracle’s contract) from at least 20 minutes prior.

More information on the Tarot Price Oracle and pricing LP tokens can be found on Medium:

V3 Price Oracle

The Nyke Price Oracle works with any V3 pool on ETCSwap. It calculates the time-weighted average price (TWAP) by using the pair’s built-in price observations, over a period of at least 180 seconds (3 minutes). This is accomplished using the pair’s current price and a previously-observed price (stored within the pools contract) from at least 3 minutes prior.

Last updated