Pods Options
app.pods.financeGithubBlogDiscord
  • Getting Started
  • Understand Options
    • What are options?
    • How do options work?
    • Pricing Options
  • The Protocol
    • Overview
    • Safety Measures
    • Ecosystem Participants
    • Use Cases
  • Options
    • Overview
    • Options Instrument
      • Variables
      • Functions
        • Mint
        • Unmint
        • Withdraw
        • Exercise
    • Smart Contracts
      • OptionFactory
      • PodPut
      • WPodPut
      • PodCall
      • WPodCall
    • Applied Use Cases
    • Understanding Returns
  • Options AMM
    • Overview
    • Options AMM
      • Variables
      • Components
      • Functions
        • Add Liquidity
        • Re-add Liquidity
        • Trade
        • Remove Liquidity
      • Pricing
      • Find The Next IV
      • Fees
      • Scenarios
        • LP Simulations
    • Smart Contracts
      • OptionAMMPool
      • OptionAMMFactory
      • OptionPoolRegistry
    • Applied Math
  • Developers
    • System Overview
    • Deployed Contracts
    • Dev Environment
  • Interfacing with Pods
    • Brand Assets
  • Code Integration Guides
    • Integrating with Pods (video)
    • How To Create Your Own Option
    • How To Create Your Own Pool
    • How To Trade (Buy/Sell)
    • How To Exercise
    • How To Remove Liquidity
  • User Guides
    • Videos
  • Security
    • Audits
  • APPENDIX
    • FAQ
    • Glossary of Terms
  • Additional Resources
  • app.pods.finance
  • Github
  • Blog
  • Discord
  • Twitter
  • Pods v0 Docs
Powered by GitBook
On this page

Was this helpful?

  1. Options AMM
  2. Smart Contracts

OptionPoolRegistry

Contract responsible for registering the Option <> Pool pair relation. It will be used when retriving an poolAddress given an optionAddress,

getPool

The function returns the address of the pool with given an _optionAddress.

Input name

Type

Required

Description

_optionAddress

address

-

The address of the option token (PodOption)

/// Instantiate optionPoolRegistry
IOptionPoolRegistry optionPoolRegistry = IOptionPoolRegistry("/*optionPoolRegistryAddress*/");

address optionAddress = '0xe3..."

optionPoolRegistry.getPool(optionAddress)

// OptionPoolRegistry.sol
     /**
     * @notice Returns the address of a previously created pool
     *
     * @dev If the pool has not been created it will return address(0)
     *
     * @param _optionAddress The address of option token
     * @return The address of the pool
     */
    function getPool(
        address _optionAddress
    ) external returns (address pool) {}
PreviousOptionAMMFactoryNextApplied Math

Last updated 3 years ago

Was this helpful?