Skip to main content

ClearingHouseConfig

Functions

initialize

  function initialize(
) external

setLiquidationPenaltyRatio

  function setLiquidationPenaltyRatio(
) external

setPartialCloseRatio

  function setPartialCloseRatio(
) external

setTwapInterval

  function setTwapInterval(
) external

setMaxMarketsPerAccount

  function setMaxMarketsPerAccount(
) external

setSettlementTokenBalanceCap

  function setSettlementTokenBalanceCap(
) external

setMaxFundingRate

  function setMaxFundingRate(
) external

setMarkPriceMarketTwapInterval

  function setMarkPriceMarketTwapInterval(
) external

setMarkPricePremiumInterval

  function setMarkPricePremiumInterval(
) external

getMaxMarketsPerAccount

  function getMaxMarketsPerAccount(
) external returns (uint8)

Return Values:

NameTypeDescription
maxMarketsPerAccountuint8Max value of total markets per account

getImRatio

  function getImRatio(
) external returns (uint24)

Return Values:

NameTypeDescription
imRatiouint24Initial margin ratio

getMmRatio

  function getMmRatio(
) external returns (uint24)

Return Values:

NameTypeDescription
mmRatiouint24Maintenance margin requirement ratio

getLiquidationPenaltyRatio

  function getLiquidationPenaltyRatio(
) external returns (uint24)

Return Values:

NameTypeDescription
liquidationPenaltyRatiouint24Liquidation penalty ratio

getPartialCloseRatio

  function getPartialCloseRatio(
) external returns (uint24)

Return Values:

NameTypeDescription
partialCloseRatiouint24Partial close ratio

getTwapInterval

  function getTwapInterval(
) external returns (uint32)

Return Values:

NameTypeDescription
twapIntervaluint32TwapInterval for funding and prices (market & index) calculations

getSettlementTokenBalanceCap

  function getSettlementTokenBalanceCap(
) external returns (uint256)

Return Values:

NameTypeDescription
settlementTokenBalanceCapuint256Max value of settlement token balance

getMaxFundingRate

  function getMaxFundingRate(
) external returns (uint24)

Return Values:

NameTypeDescription
maxFundingRateuint24Max value of funding rate

getMarkPriceConfig

  function getMarkPriceConfig(
) external returns (uint32, uint32)

Return Values:

NameTypeDescription
marketTwapIntervaluint32MarketTwapInterval is the interval of market twap used for mark price calculations
premiumIntervaluint32PremiumInterval is the interval of premium used for mark price calculations