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

Was this helpful?

  1. Developers
  2. Contracts
  3. Trading

Exercise Option

PreviousMint OptionNextAPIs

Last updated 9 months ago

Was this helpful?

Exercises the given option .

function exerciseOption(ExerciseOptionParams calldata _params) external nonReentrant returns (AssetsCache memory ac);

Parameters

Name
Type
Description

_params

ExerciseOptionParams

The exercise option parameters.

ExerciseOptionParams Struct

This struct contains the parameters needed to exercise an option.

Field
Type
Description

optionId

uint256

Identifier of the option to exercise

swapper

ISwapper[]

Array of swapper interfaces

swapData

bytes[]

Array of swap data

liquidityToExercise

uint256[]

Array of liquidity amounts to exercise

⛓️
Contract Git Source