IPriceImpact

Contains the types for the GNSPriceImpact facet

PriceImpactStorage

struct PriceImpactStorage {
  struct IPriceImpact.OiWindowsSettings oiWindowsSettings;
  mapping(uint48 => mapping(uint256 => mapping(uint256 => struct IPriceImpact.PairOi))) windows;
  mapping(uint256 => struct IPriceImpact.PairDepth) pairDepths;
  mapping(address => mapping(uint32 => struct IPriceImpact.TradePriceImpactInfo)) tradePriceImpactInfos;
  mapping(uint256 => struct IPriceImpact.PairFactors) pairFactors;
  uint40 negPnlCumulVolMultiplier;
  uint216 __placeholder;
  mapping(address => bool) protectionCloseFactorWhitelist;
  uint256[43] __gap;
}

OiWindowsSettings

struct OiWindowsSettings {
  uint48 startTs;
  uint48 windowsDuration;
  uint48 windowsCount;
}

PairOi

OiWindowUpdate

PairDepth

PairFactors

TradePriceImpactInfo

Was this helpful?