PairsStorageUtils
GNSPairsStorage facet internal library
initializeGroupLiquidationParams
Check IPairsStorageUtils interface for documentation
initializeNewFees
Check IPairsStorageUtils interface for documentation
addPairs
Check IPairsStorageUtils interface for documentation
updatePairs
Check IPairsStorageUtils interface for documentation
addGroups
Check IPairsStorageUtils interface for documentation
updateGroups
Check IPairsStorageUtils interface for documentation
addFees
Check IPairsStorageUtils interface for documentation
updateFees
Check IPairsStorageUtils interface for documentation
setPairCustomMaxLeverages
Check IPairsStorageUtils interface for documentation
setGroupLiquidationParams
Check IPairsStorageUtils interface for documentation
setGlobalTradeFeeParams
Check IPairsStorageUtils interface for documentation
pairJob
Check IPairsStorageUtils interface for documentation
isPairListed
Check IPairsStorageUtils interface for documentation
isPairIndexListed
Check IPairsStorageUtils interface for documentation
pairs
Check IPairsStorageUtils interface for documentation
pairsCount
Check IPairsStorageUtils interface for documentation
pairSpreadP
Check IPairsStorageUtils interface for documentation
pairMinLeverage
Check IPairsStorageUtils interface for documentation
pairTotalPositionSizeFeeP
Check IPairsStorageUtils interface for documentation
pairTotalLiqCollateralFeeP
Check IPairsStorageUtils interface for documentation
pairOraclePositionSizeFeeP
Check IPairsStorageUtils interface for documentation
pairMinPositionSizeUsd
Check IPairsStorageUtils interface for documentation
getGlobalTradeFeeParams
Check IPairsStorageUtils interface for documentation
pairMinFeeUsd
Check IPairsStorageUtils interface for documentation
pairFeeIndex
Check IPairsStorageUtils interface for documentation
groups
Check IPairsStorageUtils interface for documentation
groupsCount
Check IPairsStorageUtils interface for documentation
fees
Check IPairsStorageUtils interface for documentation
feesCount
Check IPairsStorageUtils interface for documentation
pairMaxLeverage
Check IPairsStorageUtils interface for documentation
pairCustomMaxLeverage
Check IPairsStorageUtils interface for documentation
getAllPairsRestrictedMaxLeverage
Check IPairsStorageUtils interface for documentation
getGroupLiquidationParams
Check IPairsStorageUtils interface for documentation
getPairLiquidationParams
Check IPairsStorageUtils interface for documentation
_getSlot
Returns storage slot to use when fetching storage relevant to library
_getStorage
Returns storage pointer for storage struct in diamond contract, at defined slot
groupListed
Reverts if group is not listed
Parameters
feeListed
Reverts if fee is not listed
Parameters
groupOk
Reverts if group is not valid
Parameters
feeOk
Reverts if fee is not valid
Parameters
_addPair
Adds a new trading pair
Parameters
_updatePair
Updates an existing trading pair
Parameters
_addGroup
Adds a new pair group
Parameters
_updateGroup
Updates an existing pair group
Parameters
_addFee
Adds a new pair fee group
Parameters
_updateFee
Updates an existing pair fee group
Parameters
Last updated