Predy v2 Doc
  • Welcome
  • Predy finance v2
    • Quick Start
    • pVaults
    • Lite Mode
    • Pro Mode
    • Liquidation
    • Trade PnL / pVault Value Chart
  • Product
    • ETH-Perpetual
    • (ETH)²-Perpetual
    • Δ DELTA
    • Γ GAMMA
    • UniV3 LP Hedge
    • Crab Strategy
  • Project
  • Roadmap
  • Governance
  • Audits
  • Contracts version 2.0.1
  • Contracts version 2.0.2
  • FAQ
  • Reference
    • Margin Trading
    • Perpetual Contracts
    • Funding Rate, what is β?
    • The Greeks
    • Testnet Setup
    • Layer Two (Arbitrum)
    • Delta Neutral
  • Developer
    • Subgraph
      • Entities
      • Queries
  • Links
    • Predy finance v2 App
    • Medium
    • Twitter
    • Discord
    • Github
Powered by GitBook
On this page
  1. Reference

Funding Rate, what is β?

Symbol=ETH−PERP−USDC...FundingRate=β∗f(Tradeamount,AMMliquidityStatus))β=0.0069Symbol=ETH2−PERP−USDC...VarienceETH=(VolatilityETH)2=σt2=λ∗σt−12+(1−λ)ut−12ut=lnStSt−1≈1−StSt−1λ=0.94(The RiskMetrics database produced by JP Morgan)FundingRate=σt2∗(1+β∗f(Tradeamount,AMMliquidityStatus))β=6.9\begin{align*} &Symbol = ETH-PERP-USDC &\\ &... &\\ &FundingRate = \beta * f( Trade_{amount},AMM_{liquidityStatus})) &\\ & \beta =0.0069 & \\ &Symbol = ETH2-PERP-USDC &\\ & ... &\\ &Varience_{ETH} = (Volatility_{ETH})^2 = \sigma_t^2 = \lambda * \sigma_{t-1}^2+(1-\lambda)u_{t-1}^2&\\ &u_{t} = ln\frac{S_t}{S_{t-1}}\approx1- \frac{S_t}{S_{t-1}}&\\ &\lambda = 0.94 (The \ RiskMetrics\ database\ produced \ by \ JP \ Morgan)&\\ \\ &FundingRate =\sigma_t^2*(1+\beta*f( Trade_{amount},AMM_{liquidityStatus})) &\\ &\beta = 6.9 & \\ \end{align*}​Symbol=ETH−PERP−USDC...FundingRate=β∗f(Tradeamount​,AMMliquidityStatus​))β=0.0069Symbol=ETH2−PERP−USDC...VarienceETH​=(VolatilityETH​)2=σt2​=λ∗σt−12​+(1−λ)ut−12​ut​=lnSt−1​St​​≈1−St−1​St​​λ=0.94(The RiskMetrics database produced by JP Morgan)FundingRate=σt2​∗(1+β∗f(Tradeamount​,AMMliquidityStatus​))β=6.9​​
f(Tradeamount,AMMliquidityStatus)=∫LL+ΔL∫mm+Δm(xy)3dxdyΔLΔm=m3+32m2Δm+mΔm2+Δm34L∗L∗(L+ΔL)2∗(L+ΔL2)≈(mL)3=(UtilizationRateAMM)3m=LiquidityLocked before The TradeΔm=LiquidityLocked for The TradeL=Liquiditytotal before The TradeΔL=Liquiditychanged for The Trade\begin{align*} f( Trade_{amount},AMM_{liquidityStatus}) &= \frac{\int_L^{L+\Delta L}\int_m^{m+\Delta m}(\frac{x}{y})^3dxdy}{\Delta L \Delta m} &\\ &=\frac{m^3+\frac{3}{2}m^2\Delta m + m\Delta m^2+\frac{\Delta m^3}{4}}{L*L*(L+\Delta L)^2}*(L+\frac{\Delta L}{2}) &\\ &\approx ( \frac{m}{L} )^3 = (UtilizationRate_{AMM})^3&\\ \\ &m = Liquidity_{Locked} \ before \ The \ Trade &\\ &\Delta m = Liquidity_{Locked} \ for \ The \ Trade &\\ &L = Liquidity_{total} \ before \ The \ Trade &\\ &\Delta L = Liquidity_{changed} \ for \ The \ Trade&\\ \end{align*}f(Tradeamount​,AMMliquidityStatus​)​=ΔLΔm∫LL+ΔL​∫mm+Δm​(yx​)3dxdy​=L∗L∗(L+ΔL)2m3+23​m2Δm+mΔm2+4Δm3​​∗(L+2ΔL​)≈(Lm​)3=(UtilizationRateAMM​)3m=LiquidityLocked​ before The TradeΔm=LiquidityLocked​ for The TradeL=Liquiditytotal​ before The TradeΔL=Liquiditychanged​ for The Trade​​

In order to get that capture the market's view of the likelihood of changes in a given Underlying price as Implied Volatility, Positions against AMM shall be reflected in the Trade Price via Funding Rate.

As for Positions against AMM, the Utilization Rate shall be used. There is no absolute answer to this usage of Utilization Rate, and trial and error will continue. Initially, the following settings were used.

Symbol=ETH−PERP−USDC...β=0.0022...Symbol=ETH2−PERP−USDC...β=5.5...\begin{align*} &Symbol = ETH-PERP-USDC &\\ &... &\\ & \beta =0.0022 & \\ &... &\\ &Symbol = ETH2-PERP-USDC &\\ & ... &\\ &\beta = 5.5 & \\ & ... &\\ \end{align*}​Symbol=ETH−PERP−USDC...β=0.0022...Symbol=ETH2−PERP−USDC...β=5.5...​​
f(Tradeamount,AMMliquidityStatus)=m+0.5ΔmΔL(log⁡e(L+ΔL)−log⁡eL)≈(mL)=(UtilizationRateAMM)...\begin{align*} f( Trade_{amount},AMM_{liquidityStatus}) &= \frac{m+0.5\Delta m}{\Delta L}(\log_e{(L+\Delta L)}-\log_e{L}) &\\ &\approx ( \frac{m}{L} ) = (UtilizationRate_{AMM})&\\ \\ & ... &\\ \end{align*}f(Tradeamount​,AMMliquidityStatus​)​=ΔLm+0.5Δm​(loge​(L+ΔL)−loge​L)≈(Lm​)=(UtilizationRateAMM​)...​​

However, the Utilization Rate has a linear effect so that the Impact cannot be ignored even if the Utilization Rate is low. Ideally, it should increase the impact and provide a corrective effect when the AMM's Utilization Rate interferes with AMM operations, and serve as some IV when the Utilization Rate is low.

So Predy V2 decided to take advantage of the three-square Utilization Rate.

PreviousPerpetual ContractsNextThe Greeks

Last updated 3 years ago

Funding rates for 8 hours can be obtained from such . Currently, Predy V2 set β based on Utilization Rate is around 30% (actually it could be considered as 60% since there are two products and AMM funds are used for two of them). Then Funding Rate shall be set to be similar to or lower than the average of others.

To addition, the number 69 was used within the predecessor Product named "" as "because it is a nice round number". It has been very considered various numbers and was decided that 69 is really a nice number and works.

sites
Squeeth