GmxV2PositionManager
State Variables
MIN_IDLE_COLLATERAL_USD
uint256 constant MIN_IDLE_COLLATERAL_USD = 1e31;GmxV2PositionManagerStorageLocation
bytes32 private constant GmxV2PositionManagerStorageLocation =
0xf08705b56fbd504746312a6db5deff16fc51a9c005f5e6a881519498d59a9600;Functions
_getGmxV2PositionManagerStorage
function _getGmxV2PositionManagerStorage() private pure returns (GmxV2PositionManagerStorage storage $);onlyStrategy
modifier onlyStrategy();whenNotPending
initialize
adjustPosition
Name
Type
Description
keep
claimFunding
claimCollateral
Name
Type
Description
afterOrderExecution
afterOrderCancellation
afterOrderFrozen
refundExecutionFee
positionNetBalance
Name
Type
Description
currentLeverage
Name
Type
Description
positionSizeInTokens
Name
Type
Description
getExecutionFee
Name
Type
Description
getClaimableFundingAmounts
getAccruedClaimableFundingAmounts
cumulativeFundingAndBorrowingFeesUsd
needKeep
Name
Type
Description
_createOrder
_processIncreasePosition
_processDecreasePosition
_recordPositionSize
_processPendingPositionFee
_getGmxParams
_onlyStrategy
_whenNotPending
_isPending
_validateOrderHandler
_setPendingOrderKey
config
collateralToken
Name
Type
Description
strategy
gmxGasStation
marketToken
indexToken
Name
Type
Description
longToken
shortToken
isLong
maxClaimableFundingShare
pendingIncreaseOrderKey
pendingDecreaseOrderKey
increaseCollateralMinMax
Name
Type
Description
increaseSizeMinMax
Name
Type
Description
decreaseCollateralMinMax
Name
Type
Description
decreaseSizeMinMax
Name
Type
Description
limitDecreaseCollateral
Name
Type
Description
cumulativePositionFeeUsd
cumulativeClaimedFundingUsd
Events
FundingClaimed
CollateralClaimed
PositionAdjustmentRequested
Structs
InternalCreateOrderParams
GmxV2PositionManagerStorage
Enums
Status
Last updated