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;
}
struct AllyDetails {
address[] referrersReferred;
uint256 volumeReferredUsd;
uint256 pendingRewardsGns;
uint256 totalRewardsGns;
uint256 totalRewardsValueUsd;
bool active;
}
struct ReferrerDetails {
address ally;
address[] tradersReferred;
uint256 volumeReferredUsd;
uint256 pendingRewardsGns;
uint256 totalRewardsGns;
uint256 totalRewardsValueUsd;
bool active;
}