MarketStateFacet.sol
MarketStateFacet
factory
function factory() external view returns (contract IChromaticMarketFactory _factory)
Returns the factory contract for the market.
Return Values:
Name Type Description _factory contract IChromaticMarketFactory The factory contract.
settlementToken
function settlementToken() external view returns (contract IERC20Metadata _token)
Returns the settlement token of the market.
Return Values:
Name Type Description _token contract IERC20Metadata The settlement token.
oracleProvider
function oracleProvider() external view returns (contract IOracleProvider _provider)
Returns the oracle provider contract for the market.
Return Values:
Name Type Description _provider contract IOracleProvider The oracle provider contract.
clbToken
function clbToken() external view returns (contract ICLBToken _token)
Returns the CLB token contract for the market.
Return Values:
Name Type Description _token contract ICLBToken The CLB token contract.
vault
function vault() external view returns (contract IChromaticVault _vault)
Returns the vault contract for the market.
Return Values:
Name Type Description _vault contract IChromaticVault The vault contract.
protocolFeeRate
function protocolFeeRate() external view returns (uint16 _protocolFeeRate)
Returns the protocol fee rate
Return Values:
Name Type Description _protocolFeeRate uint16 The protocol fee rate for the market
updateProtocolFeeRate
function updateProtocolFeeRate(uint16 _protocolFeeRate) external
Update the new protocol fee rate
Parameters:
Name Type Description _protocolFeeRate uint16 new protocol fee rate for the market
positionMode
function positionMode() external view returns (enum PositionMode _positionMode)
Returns the position mode
Return Values:
Name Type Description _positionMode enum PositionMode The position mode for the market
updatePositionMode
function updatePositionMode(enum PositionMode _positionMode) external
Update the new position mode
Parameters:
Name Type Description _positionMode enum PositionMode new position mode for the market
liquidityMode
function liquidityMode() external view returns (enum LiquidityMode _liquidityMode)
Returns the liquidity mode
Return Values:
Name Type Description _liquidityMode enum LiquidityMode The liquidity mode for the market
updateLiquidityMode
function updateLiquidityMode(enum LiquidityMode _liquidityMode) external
Update the new liquidity mode
Parameters:
Name Type Description _liquidityMode enum LiquidityMode new liquidity mode for the market
displayMode
function displayMode() external view returns (enum DisplayMode _displayMode)
Returns the display mode
Return Values:
Name Type Description _displayMode enum DisplayMode The display mode for the market
updateDisplayMode
function updateDisplayMode(enum DisplayMode _displayMode) external
Update the new display mode
Parameters:
Name Type Description _displayMode enum DisplayMode new display mode for the market