IReferrals

Contains the types for the GNSReferrals facet

ReferralsStorage

struct ReferralsStorage {
  mapping(address => struct IReferrals.AllyDetails) allyDetails;
  mapping(address => struct IReferrals.ReferrerDetails) referrerDetails;
  mapping(address => address) referrerByTrader;
  uint256 allyFeeP;
  uint256 startReferrerFeeP;
  uint256 openFeeP;
  uint256 targetVolumeUsd;
  uint256[43] __gap;
}

AllyDetails

struct AllyDetails {
  address[] referrersReferred;
  uint256 volumeReferredUsd;
  uint256 pendingRewardsGns;
  uint256 totalRewardsGns;
  uint256 totalRewardsValueUsd;
  bool active;
}

ReferrerDetails

struct ReferrerDetails {
  address ally;
  address[] tradersReferred;
  uint256 volumeReferredUsd;
  uint256 pendingRewardsGns;
  uint256 totalRewardsGns;
  uint256 totalRewardsValueUsd;
  bool active;
}