Docs/Getting started/Price markets

Price markets

Resolve a market when a Uniswap pool price falls below or reaches a threshold before its deadline.

Observed price#

The resolver reads quote-token units per one base token from an authenticated Uniswap V2, V3, or V4 pool.

A Price Market stores an authenticated pool identity, base token, quote token, Q96 threshold, and comparator. Every check reads the pool's exact current reserve ratio or slot0; it does not use an average or historical observation.

Condition#

UI languageContract operatorYES when
BelowLT / 0Call-time spot price is strictly below the threshold.
At leastGTE / 3Call-time spot price is greater than or equal to the threshold.

Current support#

  • The creation UI authenticates and deploys Uniswap V2, V3, and V4 spot-price markets when their official implementation addresses are configured.
  • The quote token and its decimals() are read onchain before the human price is encoded.
  • The wallet must be connected to the selected chain so pool and token reads use the same network.
  • Markets created by the UI can use Before deadline (ResolutionMode.Anytime) or At deadline (ResolutionMode.AtDeadline).
Experimental Phase onRobinhood Chain