Skip to main content

Panoptic Research: A Month in Review

panoptic-research-feb-2023-banner

Research is at the heart of Panoptic. To build upon this focus, we launched our Research Bites in January.

Panoptic Research is a publicly accessible, free-to-use collection of research analysis and corresponding code hosted on our GitHub repository. Our research is oriented towards providing liquidity in Uniswap and more generally in concentrated liquidity automatic market makers (AMMs).

Under the Research Bites initiative, we have two separate tracks: our main Research Bites and our Research Tutorials.

Here are the Research Bites we’ve published so far:

Disclaimer: This is never financial advice, and you must always do your own research (DYOR). This content is provided free of charge and solely for educational reasons.

Research Tutorials

The goal in launching our Research Tutorials is to make it easier for readers of our Research Bites to follow along and replicate our results.

Look for future tutorials to be posted to this repo, and let us know if you’d like to see a specific tutorial.

Research Bites

The main track of our research is the Research Bites. Here’s where we do a deep dive into decentralized finance (DeFi) options, liquidity in Uniswap, and concentrated liquidity AMMs.

We’ve laid out a preview of some of our research bites for you below.

Does the price of the most traded asset in Uniswap v3 follow a Geometric Brownian Motion (GBM)?

We looked at the ETH-USDC Uniswap v3 (UniV3) pools and discovered that the price fluctuates in a way that deviates significantly from a Gaussian distribution. It even deviates from an exponential pattern.

Upon exploration, we learned that the distribution more closely resembles a power law:

jump-size-graph

Price jump size distribution. A power law best describes the empirical distribution.

The key insights are:

  • The 5bps pool gets 90% of all USDC volume
  • The 5bps pool likely follows the CEX price more closely due to its 0.05% arbitrage fee
  • The distribution of price jumps does not follow a normal distribution
  • The price jumps follow a power law distribution (!)

And we were left with a few open research questions:

  • Can a GBM have a power law random process?
  • What is the impact of a large kurtosis on price action?

Read the full Research Bite here.

How long does the price remain within a given range?

In our comprehensive analysis, we delved into the intricate connection between the range of deployed liquidity and the duration it takes to first exit that range. Our findings uncovered a compelling relationship that adheres to a quadratic law.

distance-ticks-graphs

First exit time versus distance away from the current price point.

This seems to follow from the price ticks moving as a GBM.

Delving deeper into this new territory, we derived a “per tx” volatility based on the exit times.

vol-per-txn

The first known attempt at creating a volatility indicator for LPs.

Because significant occurrences have been flagged in this data, the volatility indicator (which is the average of several transactions) contains valuable information.

This research yielded several key insights, including:

  • The average time spent within a range ±h scales as (h/σ)²
  • E[first exit time] can be used to develop resilient and efficient volatility estimators (when on-chain σFTE ?)
  • The volatility calculation in the ETH-USDC pool can highlight volatile macro events

There remain several open research questions that warrant further exploration:

  • Does this still hold if price ticks are not a Brownian motion?
  • What about 30bps and 100bps pools?
  • Should the range be adjusted for different volatility environments?
  • What’s the optimal range for a given σ?

Read more on this topic here.

How correlated are prices between stablecoin pools?

In another Research Bite, we looked at how different pools of stablecoins are linked together. If the behavior of stablecoin pools is understood, it makes it easier to forward test and model them

Beta-trading methods, such as stat-arb, can be developed with the use of knowledge about inter-pool correlations. We analyzed USDC, USDT, DAI, and FRAX in this context.

According to the findings, the connection is:

correlation-map

The correlation matrix of the largest stablecoin pools.

The key insights from this research were:

  • The per-tx price is less stable than one would think!
  • There is, on average, ~1 tx every 5 minutes across all pools
  • Tx amount ~log-normal; time between txs ~exponential
  • Price across some pools are weakly correlated, with Dai being the odd one out

Read more on the subject here

How to hedge anything (including UniV3 LP positions) with Options

We published a bite on hedging strategies for all types of holdings and portfolios, including UniV3 LP positions.

Summarizing the key takeaways from our research:

  1. Be aware of the impact that price fluctuations have on your position
  2. Find an opposite reaction
  3. Determine which investments will produce the opposite effect (your hedge)
  4. Buy the hedge. Hint: you can use Panoptic!
  5. Rest easy knowing you’re protected.

Then, we looked into hedging impermanent loss (IL) with a strangle.

IL-from-concentrated-LP

How to hedge impermanent loss using Panoptic

Note that shorting LP positions cannot be done when interfacing with AMMs. This is possible only with Panoptic. In Panoptic, shorting LP positions is permitted for any asset and at any strike price.

Key insights:

  • LP positions look like short puts → LPers are selling options
  • The only way to fully hedge an LP position is to short it

In addition, hedging with traditional options can be costly in terms of time and money spent rolling positions. But these costs can be avoided by using Panoptic’s perpetual options (XPOs).

Read more of this research here.

How did ‘The Merge’ impact Ethereum’s gas fee market?

Optimizing gas usage in Solidity smart contracts is a complex problem. Our goal with this bite was to provide a high-level overview of the gas fee market and the factors that go into setting gas pricing.

We see that gas distributions shifted following ‘The Merge’ which made Ethereum a more stable and cost-effective network. It also made block time more predictable (almost always 12 seconds). Pre-merge, the block time was roughly exponentially distributed.

gas-usage-in-eth

The gas usage moved closer to the target block size post-merge. Other benefits are discussed in the bite

Read more about this topic here.

How to Hedge using Beta

The beta (β) of an asset or portfolio is the ratio of its risk to that of a market index (M). Higher correlation and relative risk both increase beta (ratio of volatilities).

In this bite, we demonstrated how to calculate and evaluate beta for several different pools. Then, we showed how to protect yourself against the market’s and economy’s long-term structural risks.

Market risk can be eliminated from a portfolio S of value V by shorting V * β(S; M) units of the market index M.

Further, we compare the β of ETH to SPY (just for kicks) and then to several different stablecoin pools with concrete instances (more “apples to apples” comparison).

The beta values we obtain are:

beta-chart

In summary:

  • β measures risk w.r.t. a market index M. Different markets = different β
  • There is no SPY equivalent in DeFi which means that we’d need to construct a M when β-hedging cryptos
  • Can also use β to hedge options, but it’s more complicated (more on this later!)
  • β(oSQTH; ETH) = 2 β(ETH; ETH), i.e., oSQTH is twice as volatile as ETH (easy to generalize to other power perpetuals).

Read an overview of the subject here.

LP Performance Analysis

We took a look at how the ETH-USDC 0.3% pool would perform for a simple LP strategy.

We posed the following questions:

  • How wide should your LP positions be for optimal returns?
  • In this regard, is there a difference between a bear and a bull market?

We tested various range factors (widths of the LP positions). To maximize returns, we found that a narrower range was preferable in the bull market, but a wider range was better in the bear market.

We determined that cumulative returns to the backtested LP strategy were nearly 20 percent during the ten-month bull market period for most range factors.

returns-on-eth-usdc

Bull market returns using monthly rebalancing of the ETH-USDC 0.3% pool using various widths (ranges, r) of deployed liquidity.

In the bear market, the cumulative returns would be negative — but not as negative as HODLing ETH.

returns-on-eth-usdc-2

Bear market returns using monthly rebalancing of the ETH-USDC 0.3% pool using various widths (ranges, r) of deployed liquidity.

Caveats:

  • Returns are overstated as they ignore gas & rebalancing fees
  • Assumes fees/returns compound day-over-day
  • Past performance is no guarantee of future results

Open questions:

  • How would returns on other pools like UNI, WBTC, and SHIB compare?
  • How does the optimal range factor compare for stablecoin pools?

Get the full view of our research on this subject here.

Please get in touch with us if you have any questions or wish to contribute your own research. You can also clone, modify, and build upon our work. The goal of our work is to advance DeFi — and OpFi in particular.

Follow and star our repository to find to stay ahead of the curve on all of Panoptic’s latest research. Join the growing community of Panopticians and be the first to hear our latest announcements by following us on all social media platforms.