IExchange
SwapParams
struct SwapParams(
address trader
address baseToken
bool isBaseToQuote
bool isExactInput
bool isClose
uint256 amount
uint160 sqrtPriceLimitX96
)SwapResponse
struct SwapResponse(
uint256 base
uint256 quote
int256 exchangedPositionSize
int256 exchangedPositionNotional
uint256 fee
uint256 insuranceFundFee
int256 pnlToBeRealized
uint256 sqrtPriceAfterX96
int24 tick
bool isPartialClose
)SwapCallbackData
RealizePnlParams
Functions
swap
Name
Type
Description
Name
Type
Description
settleFunding
Name
Type
Description
getMaxTickCrossedWithinBlock
Name
Type
Description
Name
Type
Description
getAllPendingFundingPayment
Name
Type
Description
isOverPriceSpread
Name
Type
Description
Name
Type
Description
getPendingFundingPayment
Name
Type
Description
getSqrtMarkTwapX96
Name
Type
Description
Name
Type
Description
getSqrtMarketTwapX96
Name
Type
Description
Name
Type
Description
getPnlToBeRealized
Name
Type
Description
Name
Type
Description
getOrderBook
Name
Type
Description
getAccountBalance
Name
Type
Description
getClearingHouseConfig
Name
Type
Description
Events
FundingUpdated
Name
Type
Description
MaxTickCrossedWithinBlockChanged
Name
Type
Description
AccountBalanceChanged
Name
Type
Description
Last updated