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
  • State Variables
  • Auxiliary Variables
  • Glossary Comparison

Was this helpful?

  1. Options
  2. Options Instrument

Variables

Find below the variables used in the options protocol.

State Variables

The contract calculates and manages the following variables:

StrikeReservesnStrikeReserves_nStrikeReservesn​ The total amount of strike asset balance in an instant before an action takes place. This factor allows visibility on the updated yield generating tokens that may be used as collateral. This variable is not stored on the option contract but on the ERC20 token assigned to be the strike asset.

StrikeReservesiStrikeReserves_iStrikeReservesi​ The total amount of strike asset balance in an instant after an action takes place. This variable is not stored on the option contract but on the ERC20 token assigned to be the strike asset.

UnderlyingReservesnUnderlyingReserves_nUnderlyingReservesn​ The total amount of underlying asset balance in an instant before an action takes place. Underlying assets can also accrue interest. nnn stands for "new".

UnderlyingReservesiUnderlyingReserves_iUnderlyingReservesi​ The total underlying asset balance after the action took place in a block.

OwnerSharesiOwnerShares_iOwnerSharesi​ Weighted user's funds served as collateral in light of the current option contract situation.

OwnerSharestOwnerShares_t OwnerSharest​ This factor updates the current total amount of User Weighted Balance.

TotalSharesiTotalShares_iTotalSharesi​ This factor represents the sum of all user's sharesishares_isharesi​.

OwnerMintedOptionsOwnerMintedOptionsOwnerMintedOptions Total of options token on the same option series minted by the same user.

Auxiliary Variables

OptionsAmountOptionsAmountOptionsAmount Parameter asked at the beginning of minting an option. Describes how many options the user wants to mint and will be used to calculate the collateral requirement further.

AmountToTransferAmountToTransferAmountToTransfer The total amount of funds (either in strike asset or underlying asset) that will be transferred to the contract to be locked as collateral to mint the requested option amount.

StrikeToSendStrikeToSendStrikeToSend The variable that will calculate the amount of strike a user will unmint and remove from an unminting of a put. It means how much strike asset the contract will have to send to the user in the unminting process.

UnderlyingToSendUnderlyingToSendUnderlyingToSend The variable that calculates the amount of underlying asset a user will remove from calling the unminting function on a call option token. Meaning how much underlying asset the contract will have to send to the user in the unminting process.

OwnerSharesToReducewOwnerSharesToReduce_wOwnerSharesToReducew​ This variable calculates how much of the collateral that a user currently holds will be removed from the process of unminting options.

Glossary Comparison

Find below the variables matching the contract names.

Documentation / Whitepaper

Code

File

strikeReserves

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

underlyingReserves

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

ownerShares

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

totalShares

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

userMintedOptions

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

optionsAmount

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

amountToTransfer

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

strikeToSend

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

underlyingToSend

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

ownerSharesToReduce

(W)PodPut.sol / (W)PodCall.sol / PodOption.sol

PreviousOptions InstrumentNextFunctions

Last updated 4 years ago

Was this helpful?

StrikeReservesnStrikeReserves_nStrikeReservesn​
UnderlyingReservesnUnderlyingReserves_nUnderlyingReservesn​
OwnerSharesiOwnerShares_iOwnerSharesi​
TotalSharesiTotalShares_iTotalSharesi​
OwnerMintedOptionsOwnerMintedOptionsOwnerMintedOptions
OptionsAmountOptionsAmountOptionsAmount
AmountToTransferAmountToTransferAmountToTransfer
StrikeToSendStrikeToSendStrikeToSend
UnderlyingToSendUnderlyingToSendUnderlyingToSend
OwnerSharesToReducewOwnerSharesToReduce_wOwnerSharesToReducew​