Facets
GNSTradingCallbacks
Facet #8: Callbacks (to execute actions after receiving median price from price aggregator)
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)
Returns the current vaultClosingFeeP value (%)
Returns the current pending gov fees for a collateral index (collateral precision)
Executes a pending update leverage order
Executes a pending increase position size market order
Executes a pending decrease position size market order
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
