DIVA Protocol
  • 👋Welcome
  • 🔅Introduction
    • Derivative contracts
    • What is DIVA Protocol
      • What problem does it solve
      • How it works
        • Reference assets
        • Payoff curves
        • Collateral
        • Oracles
        • Settlement
          • Timelines
          • Challenge
          • Status
          • Fast settlement
          • Fallback data provider
        • Fees
        • Compliance feature
      • Vision
      • Terminology
    • What is DIVA Token
      • Owner election mechanism
      • Token distribution
    • DIVA Development Fund
    • FAQ
  • 🌈DIVA App
    • What is DIVA App
    • Overview
    • Create position tokens
    • Trade position tokens
    • Add liquidity
    • Remove liquidity
  • ⚙️Guides
    • DIVA App Training
      • Prepare
      • Testnet
      • Create
      • Trade
      • Add
      • Remove
      • Settle
      • Redeem
      • Fees
    • Quiz
  • 🪄Use cases
    • Overview
    • Insurance
      • Credit default protection
      • Agrarian insurance
      • DeFi Hack insurance
      • Peg insurance
    • Yield optimization
      • Bullish accumulation
      • Bearish accumulation
    • Risk management
      • Downside protection
      • Increasing cost protection
    • Directional bets
      • Downside bet
      • "Bottom-Is-In" bet
      • Upside bet
      • "Top-Is-In" bet
    • Leverage
  • 👨‍🎓Pricing derivatives
    • Introduction
    • Underlying value
    • Volatility
    • Time
  • ⚓Oracle integrations
    • Overview
    • Tellor
  • ⚒️For developers
    • Overview
    • Technical resources
    • Smart contracts
      • Functions
        • Core protocol functions
        • Getter functions
        • Setter functions
        • ABI
      • Contract addresses
      • Example scripts
    • TheGraph
      • DIVA subgraphs
      • Whitelist subgraph
    • Project ideas
  • 📱Contact & Media Links
    • Social media
  • 👨‍🎓Technical Blog
    • Flash loans in DIVA Protocol
    • NDVI outcome reporting guide for Tellor Reporters
    • Enabling capital efficiency in DeFi
Powered by GitBook
On this page
  • Long payoff curves
  • Short payoff curves
  • Payoff formula
  1. Introduction
  2. What is DIVA Protocol
  3. How it works

Payoff curves

Enabling unparalleled customization through parametrization

PreviousReference assetsNextCollateral

Last updated 1 year ago

In DIVA Protocol, payoff profiles are parametric, allowing the creation of a wide range of unique and tailored payoff profiles with different slopes, barriers, and ranges. The shape of the long payoff curve is governed by four parameters: floor, inflection, cap, and gradient.

Due to the zero-sum nature, the short payoff curve is implied via the relationship payoff(Short) + payoff(Long) = 1. Visually, the short token payoff curve is just a horizontally mirrored version of the long token payoff curve. This is illustrated in the following graphic:

The amount of long and short position tokens issued is equal to the amount of collateral held in the contingent pool, resulting in a maximum payout of 1 unit of the collateral token per long/short position token. For instance, if USDC 100 is deposited into the contingent pool, one party will receive 100 long and the other party 100 short tokens, regardless of their individual contributions.

Example long and short payoff curves that result from the parametric approach are illustrated below:

Long payoff curves

Short payoff curves

Payoff formula

The payoff per long token is calculated as follows (assuming 0 fees):

if (finalReferenceValue = inflection):
	payoffLong = gradient
else if (finalReferenceValue ≤ floor):
	payoffLong = 0
else if (finalReferenceValue ≥ cap):
	payoffLong = 1
else if (finalReferenceValue < inflection):
	payoffLong = gradient * (finalReferenceValue - floor)/(inflection - floor)
else if (finalReferenceValue > inflection):
	payoffLong = gradient + (1 - gradient)*(finalReferenceValue - inflection)/(cap - inflection)

As payoffLong + payoffShort = 1 (ignoring fees), the short token payoff is given by payoffShort = 1 - payoffLong.

🔅
Illustration: Parametric payoff curves in DIVA Protocol
Example long payoff curves
Example short payoff curves