LogoLogo
TwitterWebsiteTestnet
  • Introduction
    • About B3X
  • World Market
    • Introduction
    • Problems with Current Markets
      • DeFi's Never-Ending Cold Start Problem
      • Limited Utility for Existing Assets
      • CeFi Dominates with 100x Volume
      • Outdated DeFi Perps Offerings
      • Consistent Battle for Liquidity
      • Stablecoins with No Use-case
      • Unfair LP Treatment
      • No Settlement Venue is Best
  • Introducing: The World Market
    • Solving the Crypto UX Nightmare
    • Purposeful Stablecoins
    • Unlimited Open Interest
    • Enabling Deep Liquidity
    • LPs as 1st Class Citizens
    • First-Principle Orderbook Design
  • World Modules
    • Delta-Neutral Stablecoin
    • Yield-Bearing Stablecoin
    • Long-Only Vault
    • Short-Only Vault
    • Long vs Short Vault
    • Lending
    • Funding Rate Collector
  • Future: Supercharged DeFi
    • User-Centric Intent, Action, and Execution Marketplace
    • Yield Trading
    • Simplified Market Experience
    • LPs as First-Class Citizens: Mini DAOs
    • Building Distribution for all — Chains, Protocols and Users
    • Resolving Cold-start Problem
    • Launching New Markets
    • Building Solutions with Derivatives as a First Principle
    • Bootstrapping TVL Growth: Unlocking DeFi’s True Potential
    • Boosting Token Utility
    • Meaningful Second-order Incentives
    • Boosting Economical Security of DeFi protocols
  • Our Call to Action
  • Technical Specs
    • Architectural Design
    • Pricing Mechanism
    • Risk Management
      • Risk Factors
      • Price Protection
      • Auto Deleverage
      • Liquidation
    • Settlement Design
    • Asset Management
    • Market Management
  • Fees
  • Testnet
    • World Market (Rise)
  • World Fund
    • Introduction
    • The Problem
    • Architecture
      • User Layer
      • Human-driven Application Layer
      • AI-driven Application Layer
      • Infrastructure Layer
    • Core Components
      • Fund Builder
      • Quant Agent
      • Strategy Framework
    • Decentralized Architecture
    • Execution Layer
    • Conclusion
    • References
    • Original Whitepaper PDF
  • Economics
    • World Market
    • World Fund
  • External Links
    • Website
    • Twitter
    • Discord
Powered by GitBook
On this page
  • General Pricing Formula
  • Liquidation Price
  • Spread Factor

Was this helpful?

Export as PDF
  1. Technical Specs

Pricing Mechanism

Pricing is one of the most critical components of any derivative protocol. To achieve our vision, we have implemented additional measures to ensure fair, transparent and tamper-proof pricing for all the end-users irrespective of role: Liquidity Provider or Traders.

The protocol adapts intent-based design to compute, validate and submit prices on-chain for intent execution. Upon user's request submission to the smart contract, a series of on-chain and off-chain events occur to submit the pricing required for executing the request.

General Pricing Formula

The final price ‘ PfP_{f} Pf​’ of an asset at time ‘t’ on the protocol can be represented as

Pf=Φ∗[γPc+δPdγ+δ]P_{f} = \Phi * \left[ \frac{\gamma P_{c} + \delta P_{d}}{\gamma + \delta} \right]Pf​=Φ∗[γ+δγPc​+δPd​​]

where PdP_{d}Pd​ can be defined as the price of the asset from nnn decentralized sources, Pi,WiP_{i}, W_{i}Pi​,Wi​ represents the respective pricing and weight of the decentralized sources while Φ\PhiΦ is a black box function to ensure tamper-proof pseudo-deterministic price for fair trade execution,

Pd=∑i=1i=nPiWiWi=P1W1+P2W2+...+PnWnW1+W2+...+WnP_{d} = \sum_{i=1}^{i=n} {\frac{P_{i}W_{i}}{W_{i}}} = {\frac{P_{1}W_{1}+P_{2}W_{2}+...+P_{n}W_{n}}{W_{1}+W_{2}+...+W_{n}}}Pd​=i=1∑i=n​Wi​Pi​Wi​​=W1​+W2​+...+Wn​P1​W1​+P2​W2​+...+Pn​Wn​​

and PcP_{c}Pc​ can be defined as the price of the asset from mmm real-world sources and Pj,WjP_{j},W_{j}Pj​,Wj​represents the respective pricing and weight of the real-world sources in form of a time-series function as

Pc=∑i=0i=nCiPt−i=C0Pt+C1Pt−1+...+CnPt−nP_{c} = \sum_{i=0}^{i=n} C_{i}P_{t-i} = C_{0}P_{t} + C_{1}P_{t-1} +...+ C_{n}P_{t-n}Pc​=i=0∑i=n​Ci​Pt−i​=C0​Pt​+C1​Pt−1​+...+Cn​Pt−n​

For simulation, we will plug in i=2i=2i=2 and define C0=0.80,C1=0.15,C2=0.05C_{0} = 0.80, C_{1}=0.15, C_{2}=0.05C0​=0.80,C1​=0.15,C2​=0.05then

Pc=0.80Pt+0.15Pt−1+0.05Pt−2P_{c} = 0.80P_{t} + 0.15P_{t-1} + 0.05P_{t-2}Pc​=0.80Pt​+0.15Pt−1​+0.05Pt−2​

where

Pt=∑j=1j=mPjWjWj=P1W1+P2W2+...+PmWmW1+W2+...+WmP_{t} = \sum_{j=1}^{j=m} {\frac{P_{j}W_{j}}{W_{j}}} = {\frac{P_{1}W_{1}+P_{2}W_{2}+...+P_{m}W_{m}}{W_{1}+W_{2}+...+W_{m}}}Pt​=j=1∑j=m​Wj​Pj​Wj​​=W1​+W2​+...+Wm​P1​W1​+P2​W2​+...+Pm​Wm​​

Liquidation Price

The liquidation price for an asset for all active positions will differ, but considering rest of the parameters constant, it can be defined as

PL=PTWAPW1+PVWAPW2W1+W2P_{L} = \frac{P_{TWAP}W_{1}+P_{VWAP}W_{2}}{W_{1}+W_{2}}PL​=W1​+W2​PTWAP​W1​+PVWAP​W2​​

The liquidation price of the position is not computed as general pricing formula to ensure fair and transparent liquidation, especially in the event of volatile market conditions.

Hence, at any given time ttt,

PL≠PfP_{L} \ne P_{f}PL​=Pf​

Spread Factor

Based on the volatility of the market and asset, the protocol deploys additional parameters to safeguard LPs and prevent systematic risk to the protocol. One such factor is Spread Factor. If Spread Factor, SfS_{f}Sf​ is defined for an asset in a market by market creator, the final price to open/execute a trade in any direction will be

Popen=Pf±SfP_{open} = P_{f} \pm S_{f}Popen​=Pf​±Sf​

Depending on direction,

PL=Pf+Sf,PS=Pf−SfP_{L} = P_{f} + S_{f} , P_{S} = P_{f} - S_{f} PL​=Pf​+Sf​,PS​=Pf​−Sf​

And the final price to close such positions can be defined as

Pclose=Pf∓SfP_{close} = P_{f} \mp S_{f}Pclose​=Pf​∓Sf​

Depending on direction,

PL=Pf−Sf,PS=Pf+SfP_{L} = P_{f} - S_{f} , P_{S} = P_{f} + S_{f} PL​=Pf​−Sf​,PS​=Pf​+Sf​

PreviousArchitectural DesignNextRisk Management

Last updated 13 days ago

Was this helpful?