Libraries
TradingStorageUtils
GNSTradingStorage facet external library
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils interface for documentation
Check ITradingStorageUtils 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.
_Limits take profit price distance for long/short based on ‘_openPrice’, ‘_tp, ‘_leverage’ and sets an automatic TP if ‘tp’ is zero.
_Limits stop loss price distance for long/short based on ‘_openPrice’, ‘_sl, ‘leverage’.
Limits trade stop loss price distance
Validation for trade struct (used by storeTrade and storePendingOrder for market open orders)
