📖
IG On Arbitrum
  • Smilee On Arbitrum
  • Past & Present
    • Smilee v0
    • Smilee v1
    • Smilee v1.69 (current)
  • IMPERMANENT GAIN
    • What are Options?
    • Impermanent Loss & Options
    • Understanding Delta Hedging
    • 📈Trade
      • User Guide
      • Bull, Bear, Smile
      • Initial Price, Breakeven, Expiry
      • Impermanent Gain Pricing
      • Impermanent Gain vs. Vanilla Options
    • 💰Earn
      • User Guide
      • Payoff, APY & Performance
      • Volatility vs Volume
  • Protocol Design
    • Overview
    • DVPs
    • Vaults
    • Liquidity-to-Volatility Engine
    • Synthetic AMM
    • Delta Hedging
    • Maturities & Epochs
    • Fees
    • Oracles & Risks
    • Decentralization Roadmap
  • RESOURCES
    • Smilee FAQs
    • Smart Contracts
    • Media Kit
    • Audits
    • Bug Bounties
  • Developer Documentation
    • Introduction
    • How to Execute a Trade
    • Retrieving DVP Data
    • Read Value of an IG Position
Powered by GitBook
On this page
  1. Developer Documentation

Retrieving DVP Data

To retrieve all the DVPs available, you have to call registry.getDVPs() in the Registry.

This call returns the addresses of all the DVPs, each characterized by a baseToken, a sideToken and a frequency (for example USDC, WETH, 1 week).

To retrieve the Registry you can call ap.registry() in the AddressProvider, which returns an address.

// Instantiate the AddressProvider
AddressProvider addressProvider = AddressProvider(0x);
// Instantiate the registry by obtaining the address from the Address Provider.
Registry registry = Registry(addressProvider.registry());
// Get all the DVP addresses available (registered).
address[] memory dvps = registry.getDVPs();
PreviousHow to Execute a TradeNextRead Value of an IG Position

Last updated 1 year ago