Smart Contracts Overview
Panoptic is a protocol that facilitates the trading of Panoptions, which are perpetual options instruments with fixed gamma between two prices that operate on a streaming premium model. Under the hood, this consists of two components:
- A lending market for Uniswap liquidity chunks that allows option sellers (lenders) to earn a multiplier on Uniswap fees paid by borrowers (option buyers) that utilize their liquidity.
- An undercollateralized, commissions-based token lending protocol that gives option sellers flexibility in managing their positions — allowing them to modify their payoffs and LP on Uniswap with more capital efficiency.
Protocol Parameters
The Panoptic protocol is governed by a set of immutable parameters used to calculate collateral requirements, streamia, fees, price feeds, and more. These parameters are shared across all Panoptic instances and set once on each chain. To read more about the parameters and their current values, visit the parameters page.
Pool Criteria
Panoptic Pools can be deployed permissionlessly by anyone, but pools listed on our interface must meet a certain set of criteria before they can be traded. To read more about the listing criteria and learn how to ensure a pool appears on our interface, visit the pool criteria page.
Architecture & Contracts (Panoptic V1.1)
Panoptic V1.1 is an upgrade to Panoptic V1 that introduces the ability to create options markets on Uniswap V4 pools. The upgrade adds support for native ETH and native token pools on other chains, as well as pools with hooks (expansions to Uniswap V4) with the permissions beforeInitialize
, afterInitialize
, beforeDonate
, afterDonate
, beforeSwap
, afterSwap
, beforeSwapReturnDelta
, and afterSwapReturnDelta
. Panoptic V1.1 still uses V3-style oracles (which can consist of a Uniswap V3 pool or a Uniswap V4 hook that exposes the same interface).
Directory
- CollateralTracker
- Tracks and manages collateral using a shares model.
- PanopticFactory
- Deploys an options market on top of an existing Uniswap V4 pool.
- PanopticPool
- Creates and manages undercollateralized options. Manages positions, collateral, liquidations and forced exercises.
- SemiFungiblePositionManager
- The Semi-fungible Position Manager contract for Panoptic acts as a position manager for Uniswap V4 LPs. Wraps up to 4-legged Uniswap V4 positions in the ERC1155 semi-fungible token interface.
- base
- Inherited metadata and multicall contracts
- interfaces
- Custom interfaces used in the contracts
- libraries
- tokens
- Token implementations and interfaces used in the contracts
- types
- Custom data types used in the contracts
Architecture & Contracts (Panoptic V1)
Panoptic V1.0 is the original version of the Panoptic Protocol. It facilitates options markets over Uniswap V3 pools.
Directory
- CollateralTracker
- Tracks and manages collateral using a shares model.
- PanopticFactory
- Deploys an options market on top of an existing Uniswap V3 pool.
- PanopticPool
- Creates and manages undercollateralized options. Manages positions, collateral, liquidations and forced exercises.
- SemiFungiblePositionManager
- The Semi-fungible Position Manager contract for Panoptic replaces the functionalities of the Nonfungible Position Manager from Uniswap v3-periphery. Wraps up to 4-legged Uniswap V3 positions in the ERC1155 semi-fungible token interface.
- base
- Inherited metadata and multicall contracts
- libraries
- tokens
- Token implementations and interfaces used in the contracts
- types
- Custom data types used in the contracts