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;
  uint256[47] __gap;
}

OiWindowsSettings

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

PairOi

struct PairOi {
  uint128 oiLongUsd;
  uint128 oiShortUsd;
}

OiWindowUpdate

struct OiWindowUpdate {
  uint48 windowsDuration;
  uint256 pairIndex;
  uint256 windowId;
  bool long;
  uint128 openInterestUsd;
}

PairDepth

struct PairDepth {
  uint128 onePercentDepthAboveUsd;
  uint128 onePercentDepthBelowUsd;
}