Protocol
Oracle
Prices come from each meme's own Uniswap v4 pool, averaged over 30 minutes. A spot-versus-TWAP guard blocks new flights while the pool is being pushed around.
#30-minute TWAP
A TWAP (time-weighted average price) averages the pool's price over a window, weighting each price by how long it held. WINGS uses a 30-minute window on the meme's Montra launch pool, which is a Uniswap v4 pool on Elysium. There is no off-chain price feed and no third-party oracle.
#Why a TWAP
- Moving a TWAP means holding a distorted price for many blocks, which costs real money against arbitrage.
- A single large trade or a single-block push cannot trigger liquidations.
- Every input is on-chain and can be checked by anyone.
#Spot-vs-TWAP guard
Before opening a flight, the contract compares the pool's current spot price with the TWAP. If they differ by more than the market's deviation limit, the open reverts, and collateral is valued at the lower of spot and TWAP. For liquidation, the position must be underwater at both prices (it is valued at the higher of the two), so pushing the pool down alone cannot liquidate a healthy flight. Closing is never blocked: you set a minimum HYPE out instead.
| Parameter | Value |
|---|---|
| TWAP window | 30 minutes |
| Price source | The meme's Uniswap v4 pool (PoolManager 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1) |
| Deviation limit (spot vs TWAP) | Per market, set at deployment |
| Minimum pool history before listing | At least one full TWAP window |