Timelock Trade LogoTimelock Protocol

Exercise Option

Exercises the given leveraged position.

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

Parameters

NameTypeDescription
_paramsExerciseOptionParamsThe exercise option parameters.

ExerciseOptionParams Struct

This struct contains the parameters needed to exercise an option.

FieldTypeDescription
optionIduint256Identifier of the option to exercise
swapperISwapper[]Array of swapper interfaces
swapDatabytes[]Array of swap data
liquidityToExerciseuint256[]Array of liquidity amounts to exercise

On this page