Exercise Option

Contract Git Source

Exercises the given option .

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

Parameters

NameTypeDescription

_params

ExerciseOptionParams

The exercise option parameters.

ExerciseOptionParams Struct

This struct contains the parameters needed to exercise an option.

FieldTypeDescription

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

Last updated

Logo

Β© 2024 Stryke