Libraries
ITradingCallbacksUtils
Interface for GNSTradingCallbacks facet (inherits types and also contains functions, events, and custom errors)
Initialize the treasury address
Update the % of closing fee going to vault
Updates the treasury address
Claim the pending gov fees for all collaterals
Executes a pending open trade market order
Executes a pending close trade market order
Executes a pending open trigger order (for limit/stop orders)
Executes a pending close trigger order (for tp/sl/liq orders)
Executes a pending update leverage order
Executes a pending increase position size market order
Executes a pending decrease position size market order
Returns the current vaultClosingFeeP value (%)
Returns the current pending gov fees for a collateral index (collateral precision)
Makes open trigger (STOP/LIMIT) checks like slippage, price impact, missed targets and returns cancellation reason if any
Makes close trigger (SL/TP/LIQ) checks like slippage and price impact and returns cancellation reason if any
Emitted when vaultClosingFeeP is updated
Emitted when gov fees are claimed for a collateral
Emitted when a market order is executed (open/close)
Emitted when a limit/stop order is executed
Emitted when a pending market open order is canceled
Emitted when a pending market close order is canceled
Emitted when a pending trigger order is canceled
