Timelock Trade LogoTimelock Protocol

Mint Option

Mints an option for the given strike and expiry.

function mintOption(OptionParams calldata _params) external nonReentrant;

Parameters

NameTypeDescription
_paramsOptionParamsThe option parameters.

OptionParams Struct

This struct defines the parameters for creating an option.

FieldTypeDescription
optionTicksOptionTicks[]Array of OptionTicks structs
tickLowerint24Lower tick of the option
tickUpperint24Upper tick of the option
ttluint256Time to live for the option
isCallboolWhether the option is a call (true) or put (false)
maxCostAllowanceuint256Maximum cost allowance for the option

OptionTicks Struct

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

FieldTypeDescription
_handlerIHandlerInterface for the handler
poolIUniswapV3PoolUniswap V3 pool interface
hookaddressAddress of the hook
tickLowerint24Lower tick of the position
tickUpperint24Upper tick of the position
liquidityToUseuint256Amount of liquidity to use

On this page