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
  1. DIVA App

Remove liquidity

How collateral can be withdrawn from existing contingent pools prior to expiration

PreviousAdd liquidityNextDIVA App Training

Last updated 3 years ago

At any point in time, prior to or after pool expiration but before the payoffs of the long and short position tokens are set, position token holders can withdraw collateral from the pool by sending back an equal amount of long and short tokens to the DIVA smart contract. Position tokens are burnt during that process.

Removing liquidity can be useful in the following two scenarios:

  • Lack of buyers: Pool creators that do not manage to sell all of their position tokens have the option to withdraw collateral without waiting until expiry (see example 1 below)

  • Liquidity: The market for the opposite asset (e.g., short) is more liquid than the market for the asset held (e.g. long) (see example 2 below)

Example 1: Alice has created a new contingent pool using 1'000 USDC as collateral and received 1'000 long and 1'000 short tokens in return. As she didn't manage to sell 400 of the short tokens, she can send back the remaining tokens in equal proportions, i.e. 400 long and 400 short tokens, to the DIVA smart contract to re-claim 400 USDC (minus a small fee) of the collateral that she deposited.

Example 2: Bob owns 10 long tokens. He would like to exit his position to realize the gains he made since his entry but realizes that there are no buy orders for the long token. Luckily, the market for the corresponding short token is much more liquid. He buys 10 short tokens to neutralize his long position and sends back both tokens to the DIVA smart contract to return the corresponding collateral amount.

Learn how to remove liquidity from an existing pool in our .

🌈
DIVA App Training