ClearingHouse
InternalOpenPositionParams
struct InternalOpenPositionParams(
address trader
address baseToken
bool isBaseToQuote
bool isExactInput
bool isClose
uint256 amount
uint160 sqrtPriceLimitX96
)InternalCheckSlippageParams
struct InternalCheckSlippageParams(
bool isBaseToQuote
bool isExactInput
uint256 base
uint256 quote
uint256 oppositeAmountBound
)Functions
initialize
setDelegateApproval
addLiquidity
Name
Type
Description
Name
Type
Description
removeLiquidity
Name
Type
Description
Name
Type
Description
settleAllFunding
Name
Type
Description
openPosition
Name
Type
Description
Name
Type
Description
openPositionFor
Name
Type
Description
Name
Type
Description
closePosition
Name
Type
Description
Name
Type
Description
liquidate
Name
Type
Description
liquidate
Name
Type
Description
cancelExcessOrders
Name
Type
Description
cancelAllExcessOrders
Name
Type
Description
quitMarket
Name
Type
Description
Name
Type
Description
uniswapV3MintCallback
Name
Type
Description
uniswapV3SwapCallback
Name
Type
Description
getQuoteToken
Name
Type
Description
getUniswapV3Factory
Name
Type
Description
getClearingHouseConfig
Name
Type
Description
getVault
Name
Type
Description
getExchange
Name
Type
Description
getOrderBook
Name
Type
Description
getAccountBalance
Name
Type
Description
getInsuranceFund
Name
Type
Description
getDelegateApproval
Name
Type
Description
getAccountValue
Name
Type
Description
Name
Type
Description
ClearingHouseConfig
Functions
initialize
setLiquidationPenaltyRatio
setPartialCloseRatio
setTwapInterval
setMaxMarketsPerAccount
setSettlementTokenBalanceCap
setMaxFundingRate
setMarkPriceMarketTwapInterval
setMarkPricePremiumInterval
getMaxMarketsPerAccount
Name
Type
Description
getImRatio
Name
Type
Description
getMmRatio
Name
Type
Description
getLiquidationPenaltyRatio
Name
Type
Description
getPartialCloseRatio
Name
Type
Description
getTwapInterval
Name
Type
Description
getSettlementTokenBalanceCap
Name
Type
Description
getMaxFundingRate
Name
Type
Description
getMarkPriceConfig
Name
Type
Description
Last updated