Libraries
TradingCallbacksUtils
GNSTradingCallbacks facet internal library
Modifier to only allow trading action when trading is activated (= revert if not activated)
Modifier to only allow trading action when trading is activated or close only (= revert if paused)
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Check ITradingCallbacksUtils interface for documentation
Returns storage slot to use when fetching storage relevant to library
Returns storage pointer for storage struct in diamond contract, at defined slot
Returns current address as multi-collateral diamond interface to call other facets functions.
Registers a trade in storage, and handles all fees and rewards
Unregisters a trade from storage, and handles all fees and rewards
Makes pre-trade checks: price impact, if trade should be cancelled based on parameters like: PnL, leverage, slippage, etc.
Returns pending order from storage
Returns collateral price in USD
Returns trade from storage
Returns trade info from storage
