Function: toMarketOption()
function toMarketOption(option): MarketOption;
Defined in: evm-client/src/utils.ts:301
The contract's MarketOption as the core domain shape.
The contract struct is terms only — core keeps the outstanding borrow in its
own OptionRecord, not on the option — so borrowedCollateral comes out
zero here rather than from the input. Read the live value with
EvmReader.borrowedCollateral.
Parameters
| Parameter | Type |
|---|---|
option | MarketOption |
Returns
MarketOption