Skip to main content

Function: fromMarketOption()

function fromMarketOption(option): MarketOption;

Defined in: evm-client/src/utils.ts:318

The core domain's MarketOption as the contract struct — what every write against a live option submits, since core stores only the id and rebuilds the option from the terms handed in.

borrowedCollateral is dropped: the struct has no field for it (core tracks it in its own OptionRecord), which is also why a stale value on the core shape cannot affect a call built here.

Parameters​

ParameterType
optionMarketOption

Returns​

MarketOption