IFeeTiers

Contains the types for the GNSFeeTiers facet

FeeTiersStorage

struct FeeTiersStorage {
  struct IFeeTiers.FeeTier[8] feeTiers;
  mapping(uint256 => uint256) groupVolumeMultipliers;
  mapping(address => struct IFeeTiers.TraderInfo) traderInfos;
  mapping(address => mapping(uint32 => struct IFeeTiers.TraderDailyInfo)) traderDailyInfos;
  mapping(address => struct IFeeTiers.TraderEnrollment) traderEnrollments;
  mapping(address => uint224) unclaimedPoints;
  uint256[37] __gap;
}

TraderEnrollmentStatus

enum TraderEnrollmentStatus {
  ENROLLED,
  EXCLUDED
}

CreditType

enum CreditType {
  IMMEDIATE,
  CLAIMABLE
}

FeeTier

struct FeeTier {
  uint32 feeMultiplier;
  uint32 pointsThreshold;
}

TraderInfo

struct TraderInfo {
  uint32 lastDayUpdated;
  uint224 trailingPoints;
}

TraderDailyInfo

struct TraderDailyInfo {
  uint32 feeMultiplierCache;
  uint224 points;
}

TraderEnrollment

struct TraderEnrollment {
  enum IFeeTiers.TraderEnrollmentStatus status;
  uint248 __placeholder;
}