Table of Contents
The design space of the power perpetual contract
Proposition 1: Stablecoin is a 0-order power perpetual contract
Claim 2: Margin futures are 1-order power perpetual contracts
Claim 3: Uniswap and other CFMMs are (almost) 0.5-order power perpetual contracts
What else has been overlooked?
Home web3.0 Paradigm: All DeFi products are power perpetual contracts

Paradigm: All DeFi products are power perpetual contracts

Mar 07, 2024 pm 10:30 PM
programming cryptocurrency paradigm Stablecoin

Recently, we have been thinking about the issue of power perpetual contracts (power perps). Power perpetual contracts are derivative contracts that track a power of an index, such as an index squared or an index raised to the third power. This is an interesting rabbit hole. The longer you think about power perpetual contracts, the more you’ll realize that everything in the DeFi world is similar to it.

Here, we start with three surprising points:

  • Cryptocurrency-collateralized stablecoins (such as DAI or RAI) are like level 0 perpetual contracts.
  • Margin futures (such as dYdX) are level 1 perpetual contracts.
  • Constant product AMMs such as Uniswap are replicating portfolios of 0.5-order perpetual contracts, and constant geometric mean AMMs such as Balancer are replicating portfolios of power perpetual contracts of any value between 0 and 1.

This is awesome because it reveals a surprisingly tight design space behind three major fundamental concepts in the DeFi space. Before explaining the concepts one by one, let us first define perpetual contracts and power perpetual contracts.

Paradigm:一切 DeFi 产品都是幂永续合约

#Perpetual contracts are contracts that do not require delivery and track a specific index. In this type of contract, the transaction price adjusts based on changes in the target index price, and when the gap between the transaction price and the index price increases, funding charges are incurred. The payment of this funding fee is made periodically, and the amount is related to the difference between the transaction price and the index price. Perpetual contracts provide a speculative opportunity for investors who can profitably trade on changes in the marked price. Since there is no actual delivery requirement in the contract, investors can participate in the market without holding actual assets and earn profits based on price fluctuations. This form of contract provides investors with a flexible way to participate in the market and earn returns on their investment without holding actual assets. Through perpetual contracts, investors can take advantage of market fluctuations to obtain income, but they also need to bear corresponding risks.

The payment of the funding rate is based on the calculation formula of the funding rate. During the funding cycle Changes based on the difference between the mark price and the index price. Long positions pay fees to short positions when the mark price is higher than the index price, and short positions pay fees to long positions when the mark price is lower than the index price. This mechanism is designed to maintain a balance between the contract price and the underlying asset price to ensure that market participants do not make excessive profits or losses. Changes in funding rates can serve as an opportunity for market participants to speculate or arbitrage, as this payment mechanism provides them with an avenue to potentially profit. Therefore,

Paradigm:一切 DeFi 产品都是幂永续合约

There are many options for the method of payment of funding fees and the mechanism for price setting interest rates, such as cash or in-kind payment, regular or continuous funding fees, etc., as well as various Different interest rate setting mechanisms, such as the proportional mechanism used by Squeeth and the PID controller used by Reflexer. However, the core idea of ​​these mechanisms is the same: when the mark price is higher than the index price, longs should pay shorts a funding fee, and vice versa.

Power perpetual contract definition: A perpetual contract that tracks the index price raised to the power p.

To create a short position in the Power Perpetual Contract, you first lock some collateral in a vault and mint (i.e. borrow) the Power Perpetual Contract. This minted power perpetual contract is sold to enable shorting. If you want to go long, buy from someone who owns a power perpetual contract.

This mechanism is driven by the required collateral to debt ratio:

Collateral Ratio = Equity / Debt = ((Collateral Amount) * (Collateral Price)) / ((perpetual contract quantity) * (index price)^p )

The ratio must remain safely above 1 so that there is enough collateral to repay the debt, otherwise the contract will pass through the purchase Enough perpetual contracts are liquidated to liquidate the collateral.

The design space of the power perpetual contract

The design space of the power perpetual contract involves the power p, the minimum collateral ratio c>1 and three asset choices:

  • Collateral assets: e.g. USD
  • Indexed assets (assets whose value is tokenized): e.g. ETH
  • Denominated assets (units of measurement of value): Typically USD

Now we make three propositions.

Proposition 1: Stablecoin is a 0-order power perpetual contract

Stablecoin is a loan minted with reliable collateral as a guarantee. The following configuration gives an example of a USD stablecoin:

  • Collateral asset: ETH
  • Index asset: ETH
  • Denominated asset: USD
  • Staking rate: 1.5
  • Power: 0

This means we stake ETH and mint stablecoin tokens. The index is the zeroth power of the ETH price, that is, ETH^0 = 1.

If I deposit 1 ETH as collateral and ETH is trading at $3000, I can mint up to 2000 tokens.

Collateralization rate = equity/debt = ((collateral quantity) * (collateral price)) / ((power perpetual contract quantity) * (index price)^p)= 1 * 3000 / (2000 * 1) = 1.5

The funding fee is the current trading price (mark price) of the stablecoin minus the 0th power of the index price.

Funding fee = mark price - index price^0 = mark price - 1

The funding fee mechanism provides a good solution for the stablecoin’s trading price to be anchored at 1 USD of incentives. If it trades well above $1, users sell their stablecoin holdings and then mint and sell more stablecoins for a profit. If the price is trading below $1, users can purchase the stablecoin to earn a positive interest rate and potentially sell it at a higher price in the future.

Not all stablecoins use this precise (mark price - index price) funding fee mechanism, but all collateralized stablecoins share this basic structure, using the stablecoin as good collateral of loans. Even stablecoins with interest rates set through governance will set them to a level similar to mark price - 1 to maintain their peg to $1.

Claim 2: Margin futures are 1-order power perpetual contracts

If we modify the power of the stablecoin in the previous section to 1 and change the collateral to US dollars, we get Tokenized ETH assets:

  • Collateral assets: USD
  • Index assets: ETH
  • Denominated assets: USD
  • Collateral ratio: 1.5
  • Power: 1

I staked $4500 and minted one stable ETH (price $3000).

Collateral Ratio = Equity/Debt = ((Collateral Quantity) * (Collateral Price)) / ((Power Perpetual Contract) * (Index Price) ^p ) = 4500 *1 / (1 * 3000 1) = 1.5

The funding fee for this perpetual contract is the USD trading price (mark price) minus the target index price^1.

Funding fee = mark price - index price^1= = mark price - ETH/USD price

The funding fee mechanism is a good incentive for perpetual contracts to close ETH price for trading. If the price of the perpetual contract increases significantly, funding fees will encourage arbitrageurs to buy ETH and short the perpetual contract. If the price of the perpetual contract drops significantly, it will encourage them to sell ETH and buy the perpetual contract.

I can sell this stable ETH asset to short the price of ETH and use USD as collateral.

From tokenized short assets to margined short perpetual assets

The stable ETH assets we built are not very capital efficient. We put up $4500 in collateral, gaining short ETH exposure worth $3000 (or 1 ETH). We can be more capital efficient by selling minted ETH contract tokens (stableETH) and then using that as collateral to mint more ETH tokens.

If the minimum mortgage rate is 1.5 and ETH is 3000, we operate as follows:

  • Deposit 4500 US dollars and mint 1 ETH contract token;
  • Sell ​​ETH contract tokens at a price of $3,000, and then use the US dollars obtained from the sale as collateral to mint 1/1.5 = 0.666 ETH contract tokens;
  • Sell ETH contract tokens at a price of $2,000, and mint ( 1/1.5)^2 = 0.444 ETH contract tokens;
  • Sold ETH contract tokens at a price of $1333.33 and minted (1/1.5)^3 = 0.296 ETH contract tokens.

Note: Leverage can usually be calculated by 1/(collateralization rate -1). In this example, leverage multiple =1/(1.5-1)=2.

Ultimately, we minted and sold 3 ETH contract tokens, which was $4500 in collateral and ended up with $9000 in short ETH exposure. This position is equivalent to opening a 2x leveraged short ETH/USD perpetual contract.

This process would be simplified if we could use flash transactions or flash loans. We can flash 3 ETH contract tokens into USD and use the proceeds as collateral to mint ETH contract tokens to pay it back.

If the collateral ratio requirement is 110%, we can open a 10x position.

Go long instead of short

If you want to go long, users can buy ETH contract tokens. To go long leverage, users can borrow more USD using ETH contract token collateral and use the borrowed USD to purchase more ETH contract tokens, repeating the process up to 2x exposure. If using flash transactions or flash loans, this can be done in a single transaction.

This means that over-collateralized perpetual contracts can be converted into under-collateralized perpetual contracts.

Claim 3: Uniswap and other CFMMs are (almost) 0.5-order power perpetual contracts

The value of the liquidity position in the Uniswap pool is proportional to the square root of the relative price of the two assets. For the ETH/USD pool, the value of LP (liquidity provider) is:

V = 2 * (k * (ETH price))^0.5

where k is the product of the two token quantities. The trading pool will generate a certain amount of trading fees every cycle.

Now consider the power perpetual contract:

  • Collateral assets: USD
  • Index assets: ETH
  • Denominated assets: USD
  • Collateral ratio: 1.2
  • Power: 0.5

This power perpetual contract will track the square root of the ETH price.

LP will receive the difference between the funding fee and the AMM fee. Since this trade offsets price risk, the 0.5 power perpetual contract should trade just below:

Expected Uniswap Fees = Index Price - Mark Price

This gives us a good result, i.e. equilibrium Uniswap fees (note: if the annualized volatility of the trading pair is 90%, you need to get 1/8 * 0.9^2 = 10.125% return from LP fees. Therefore, If you own $100 in Uniswap LP, you need to earn $0.028 per day in fees to cover impermanent losses. The funding fee for a 0.5 power perpetual contract is 2.8 basis points per day.) should be the funding rate for a 0.5 perpetual contract. In the simplified case of zero interest rates:

Equilibrium Uniswap return = σ²/8

where σ² is the price of one asset relative to another in the trading pool Variance of returns. We also get this result from a Uniswap perspective (see Appendix C here). We also introduce it in detail from the perspective of power here.

Paradigm:一切 DeFi 产品都是幂永续合约

Thus, stablecoins (and mortgages more broadly), margined perpetual futures contracts, and AMMs are all a type of power perpetual contract.

What else has been overlooked?

High-level power perpetual contract: start with the quadratic power perpetual contract. Squeeth is the first quadratic perpetual contract, providing exposure to quadratic price. By combining higher-order power perpetual contracts and 1-order power perpetual contracts with 0-order power perpetual contracts as collateral, we can obtain many approximations of returns.

If we need more accurate results, we can simulate any function using a combination of power perpetual contracts with integer powers in Taylor series powers: sin(x), e^x2, log(x).

What’s worth looking forward to next? How interesting would it be to have a world that allowed power perpetual contracts, collateralized assets, and Uniswap LP to coexist harmoniously.

The above is the detailed content of Paradigm: All DeFi products are power perpetual contracts. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are the free market viewing software websites? Ranking of the top ten free market viewing software in the currency circle What are the free market viewing software websites? Ranking of the top ten free market viewing software in the currency circle Apr 22, 2025 am 10:57 AM

The top three top ten free market viewing software in the currency circle are OKX, Binance and gate.io. 1. OKX provides a simple interface and real-time data, supporting a variety of charts and market analysis. 2. Binance has powerful functions, accurate data, and is suitable for all kinds of traders. 3. gate.io is known for its stability and comprehensiveness, and is suitable for long-term and short-term investors.

Reliable and easy-to-use virtual currency exchange app recommendations The latest ranking of the top ten exchanges in the currency circle Reliable and easy-to-use virtual currency exchange app recommendations The latest ranking of the top ten exchanges in the currency circle Apr 22, 2025 pm 01:21 PM

The reliable and easy-to-use virtual currency exchange apps are: 1. Binance, 2. OKX, 3. Gate.io, 4. Coinbase, 5. Kraken, 6. Huobi Global, 7. Bitfinex, 8. KuCoin, 9. Bittrex, 10. Poloniex. These platforms were selected as the best for their transaction volume, user experience and security, and all offer registration, verification, deposit, withdrawal and transaction operations.

What are the digital currency trading platforms in 2025? The latest rankings of the top ten digital currency apps What are the digital currency trading platforms in 2025? The latest rankings of the top ten digital currency apps Apr 22, 2025 pm 03:09 PM

Recommended apps for the top ten virtual currency viewing platforms: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi, 5. Coinbase, 6. Kraken, 7. Bitfinex, 8. KuCoin, 9. Bybit, 10. Bitstamp, these platforms provide real-time market trends, technical analysis tools and user-friendly interfaces to help investors make effective market analysis and trading decisions.

Top 10 digital currency exchange app recommendations, top ten virtual currency exchanges in the currency circle Top 10 digital currency exchange app recommendations, top ten virtual currency exchanges in the currency circle Apr 22, 2025 pm 03:03 PM

Recommended apps on top ten digital currency exchanges: 1. OKX, 2. Binance, 3. gate.io, 4. Huobi, 5. Coinbase, 6. KuCoin, 7. Kraken, 8. Bitfinex, 9. Bybit, 10. Bitstamp, these apps provide real-time market trends, technical analysis and price reminders to help users monitor market dynamics in real time and make informed investment decisions.

gate.io sesame door latest official app address gate.io sesame door latest official app address Apr 22, 2025 pm 01:03 PM

The official Gate.io APP can be downloaded in the following ways: 1. Visit the official website gate.io to download; 2. Search "Gate.io" on the App Store or Google Play to download. Be sure to download it through the official channel to ensure safety.

What are the top ten digital currency trading software? The top ten exchange platforms in the currency circle What are the top ten digital currency trading software? The top ten exchange platforms in the currency circle Apr 22, 2025 pm 03:06 PM

The top ten trading softwares in the currency exchange platform are: 1. OKX, 2. Binance, 3. gate.io, 4. Huobi Global, 5. KuCoin, 6. Coinbase, 7. Kraken, 8. Bitfinex, 9. Bitstamp, 10. Poloniex. These platforms provide a variety of trading modes and security measures to ensure the safety of user assets.

Top 10 safe and easy-to-use virtual currency trading platforms, ranking of the top ten reliable digital currency exchanges Top 10 safe and easy-to-use virtual currency trading platforms, ranking of the top ten reliable digital currency exchanges Apr 22, 2025 pm 12:45 PM

The top ten safe and easy-to-use virtual currency trading platforms are: Binance, OKX, gate.io, Coinbase, Kraken, Huobi, Bybit, KuCoin, Bitfinex, and Bittrex. These platforms are highly praised for their high liquidity, low transaction fees, diversified trading products, global layout, strong technical support, innovative trading systems, high security, rich currency and user-friendly interface.

Top 10 Global Virtual Currency Exchange Rankings Top 10 Latest Virtual Currency APPs in 2025 Top 10 Global Virtual Currency Exchange Rankings Top 10 Latest Virtual Currency APPs in 2025 Apr 22, 2025 pm 02:39 PM

Top 10 global virtual currency exchanges rankings: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi, 5. Coinbase, 6. Kraken, 7. Bitfinex, 8. KuCoin, 9. Bybit, 10. Bitstamp, these platforms provide real-time market trends, technical analysis tools and user-friendly interfaces to help investors conduct effective market analysis and trading decisions.