LogoLogo
WebsiteGithubCommunity Docs
  • Developer Docs
  • Smart Contracts
    • Bond System
      • Auctioneer
        • Auctioneer Interfaces
        • Sequential Dutch Auctioneer (SDA)
          • Auction Pricing
          • Fixed-Term SDA
          • Fixed-Expiry SDA
        • Fixed Price Auctioneer (FPA)
          • Fixed-Term FPA
          • Fixed-Expiry FPA
        • Oracle-based Auctioneers
          • Oracle Interface
        • Oracle Fixed Discount Auctioneer (OFDA)
          • Fixed-Term OFDA
          • Fixed-Expiry OFDA
        • Oracle Sequential Dutch Auctioneer (OSDA)
          • Fixed-Term OSDA
          • Fixed-Expiry OSDA
      • Teller
        • Teller Interfaces
        • Base Teller
        • Fixed-Expiry Teller
        • Fixed-Term Teller
      • Callback
        • Callback Interface
        • Base Callback
        • Sample Callback Contract
      • Aggregator
        • Aggregator Interface
        • Aggregator Contract
      • Intended User Actions
      • Limit Orders
    • Option System
      • Fixed Strike oTokens
      • Fixed Strike Option Teller
      • Options Liquidity Mining (OLM)
        • Manual Strike OLM
        • Oracle Strike OLM
      • OLM Factories
  • Developers
    • Subgraph
    • Market Calculations
    • Purchases & Redemptions
    • User Balances
    • Options Library
      • Helper Functions
      • Types
  • References
    • Technical Resources
      • Audits
    • Community Resources
    • Brand Assets
    • Contact Us
Powered by GitBook
On this page
  • State Variables
  • Functions
  1. Smart Contracts
  2. Option System
  3. Options Liquidity Mining (OLM)

Manual Strike OLM

PreviousOptions Liquidity Mining (OLM)NextOracle Strike OLM

Inherits:

The Manual Strike OLM contract allows the owner to manually set the strike price that new option tokens are created with on epoch transition.

State Variables

strikePrice

Strike price to be used for new option tokens

uint256 public strikePrice;

Functions

_initialize

Internal function, not callable directly. Called within initialize to implement Manual Strike OLM specific initialization logic.

function _initialize(bytes calldata params_) internal override;

Parameters

Name
Type
Description

strikePrice_

uint256

The initial strike price for the Manual Strike OLM, in quote tokens per payout token.

The parameters for this function are ABI-encoded into a bytes object and passed as the other_variable into the top-level OLM initialize function. For example:

bytes memory other = abi.encode(strikePrice);

nextStrikePrice

Returns the strike price that would be used if a new epoch started right now

function nextStrikePrice() public view override returns (uint256);

setStrikePrice

Set the strike price to be used for future option tokens

Only owner

function setStrikePrice(uint256 strikePrice_) external onlyOwner requireInitialized;

Parameters

Name
Type
Description

strikePrice_

uint256

Strike price for the option tokens formatted as the number of quote tokens required per payout token

Git Source
OLM