Skip to main content

IMarketState.sol

IMarketState

Interface for accessing the state of a market contract.

factory

function factory() external view returns (contract IChromaticMarketFactory)

Returns the factory contract for the market.

  • Return Values:

    NameTypeDescription
    [0]contract IChromaticMarketFactoryThe factory contract.

settlementToken

function settlementToken() external view returns (contract IERC20Metadata)

Returns the settlement token of the market.

  • Return Values:

    NameTypeDescription
    [0]contract IERC20MetadataThe settlement token.

oracleProvider

function oracleProvider() external view returns (contract IOracleProvider)

Returns the oracle provider contract for the market.

  • Return Values:

    NameTypeDescription
    [0]contract IOracleProviderThe oracle provider contract.

clbToken

function clbToken() external view returns (contract ICLBToken)

Returns the CLB token contract for the market.

  • Return Values:

    NameTypeDescription
    [0]contract ICLBTokenThe CLB token contract.

vault

function vault() external view returns (contract IChromaticVault)

Returns the vault contract for the market.

  • Return Values:

    NameTypeDescription
    [0]contract IChromaticVaultThe vault contract.

protocolFeeRate

function protocolFeeRate() external view returns (uint16)

Returns the protocol fee rate

  • Return Values:

    NameTypeDescription
    [0]uint16The protocol fee rate for the market

updateProtocolFeeRate

function updateProtocolFeeRate(uint16 _protocolFeeRate) external

Update the new protocol fee rate

  • Parameters:

    NameTypeDescription
    _protocolFeeRateuint16new protocol fee rate for the market

positionMode

function positionMode() external view returns (enum PositionMode)

Returns the position mode

  • Return Values:

    NameTypeDescription
    [0]enum PositionModeThe position mode for the market

updatePositionMode

function updatePositionMode(enum PositionMode _positionMode) external

Update the new position mode

  • Parameters:

    NameTypeDescription
    _positionModeenum PositionModenew position mode for the market

liquidityMode

function liquidityMode() external view returns (enum LiquidityMode)

Returns the liquidity mode

  • Return Values:

    NameTypeDescription
    [0]enum LiquidityModeThe liquidity mode for the market

updateLiquidityMode

function updateLiquidityMode(enum LiquidityMode _liquidityMode) external

Update the new liquidity mode

  • Parameters:

    NameTypeDescription
    _liquidityModeenum LiquidityModenew liquidity mode for the market

displayMode

function displayMode() external view returns (enum DisplayMode)

Returns the display mode

  • Return Values:

    NameTypeDescription
    [0]enum DisplayModeThe display mode for the market

updateDisplayMode

function updateDisplayMode(enum DisplayMode _displayMode) external

Update the new display mode

  • Parameters:

    NameTypeDescription
    _displayModeenum DisplayModenew display mode for the market