Stryke Docs
HomeGitHubSocials
  • ⚑Introducing Stryke
  • πŸ”Products Overview
    • Product Overview (CLAMM)
      • For Option Traders
      • For Liquidity Providers
  • 🌚Tokenomics
    • SYK Token
    • xSYK Token
    • Reward Gauges
    • Protocol Fees
  • πŸšΆβ€β™‚οΈUI Walkthroughs
    • CLAMM Walkthrough
      • Connect Wallet
      • Navigate Markets
      • Trade Options
      • Limit Exercise
      • Provide Liquidity
      • Reward Gauges
  • ⛓️Developers
    • Contracts
      • LP Management
        • Mint a Position
        • Burn a Position
        • Reserve Liquidity
        • Withdraw Reserved Liquidity
      • Trading
        • Mint Option
        • Exercise Option
    • APIs
      • xSYK
      • CLAMM
        • Trading
          • Purchase
          • Exercise
        • LP management
        • Option markets
        • Strikes chain
    • Deployed Addresses
      • CLAMM
      • Tokens & Others
      • Gauges
    • Bug Bounty Program
  • πŸ“šREFERENCES
    • Glossary
    • Audits
    • Partners
    • Media Kit
Powered by GitBook
LogoLogo

Β© 2024 Stryke

On this page
  • OptionParams Struct
  • OptionTicks Struct

Was this helpful?

  1. Developers
  2. Contracts
  3. Trading

Mint Option

PreviousTradingNextExercise Option

Last updated 9 months ago

Was this helpful?

Mints an option for the given strike and expiry.

function mintOption(OptionParams calldata _params) external nonReentrant;

Parameters

Name
Type
Description

_params

OptionParams

The option parameters.

OptionParams Struct

This struct defines the parameters for creating an option.

Field
Type
Description

optionTicks

OptionTicks[]

Array of OptionTicks structs

tickLower

int24

Lower tick of the option

tickUpper

int24

Upper tick of the option

ttl

uint256

Time to live for the option

isCall

bool

Whether the option is a call (true) or put (false)

maxCostAllowance

uint256

Maximum cost allowance for the option

OptionTicks Struct

This struct represents the parameters for option ticks in a Uniswap V3 pool.

Field
Type
Description

_handler

IHandler

Interface for the handler

pool

IUniswapV3Pool

Uniswap V3 pool interface

hook

address

Address of the hook

tickLower

int24

Lower tick of the position

tickUpper

int24

Upper tick of the position

liquidityToUse

uint256

Amount of liquidity to use

⛓️
Contract Git Source