Skip to main content

MarketStateFacet.sol

MarketStateFacet

factory

function factory() external view returns (contract IChromaticMarketFactory _factory)

Returns the factory contract for the market.

  • Return Values:

    NameTypeDescription
    _factorycontract IChromaticMarketFactoryThe factory contract.

settlementToken

function settlementToken() external view returns (contract IERC20Metadata _token)

Returns the settlement token of the market.

  • Return Values:

    NameTypeDescription
    _tokencontract IERC20MetadataThe settlement token.

oracleProvider

function oracleProvider() external view returns (contract IOracleProvider _provider)

Returns the oracle provider contract for the market.

  • Return Values:

    NameTypeDescription
    _providercontract IOracleProviderThe oracle provider contract.

clbToken

function clbToken() external view returns (contract ICLBToken _token)

Returns the CLB token contract for the market.

  • Return Values:

    NameTypeDescription
    _tokencontract ICLBTokenThe CLB token contract.

vault

function vault() external view returns (contract IChromaticVault _vault)

Returns the vault contract for the market.

  • Return Values:

    NameTypeDescription
    _vaultcontract IChromaticVaultThe vault contract.

protocolFeeRate

function protocolFeeRate() external view returns (uint16 _protocolFeeRate)

Returns the protocol fee rate

  • Return Values:

    NameTypeDescription
    _protocolFeeRateuint16The 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 _positionMode)

Returns the position mode

  • Return Values:

    NameTypeDescription
    _positionModeenum 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 _liquidityMode)

Returns the liquidity mode

  • Return Values:

    NameTypeDescription
    _liquidityModeenum 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 _displayMode)

Returns the display mode

  • Return Values:

    NameTypeDescription
    _displayModeenum 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