ReferralsUtils

GNSReferrals facet internal library

initializeReferrals

function initializeReferrals(uint256 _allyFeeP, uint256 _startReferrerFeeP, uint256 _targetVolumeUsd) internal

Check IReferralsUtils interface for documentation

updateAllyFeeP

function updateAllyFeeP(uint256 _value) internal

Check IReferralsUtils interface for documentation

updateStartReferrerFeeP

function updateStartReferrerFeeP(uint256 _value) internal

Check IReferralsUtils interface for documentation

updateReferralsTargetVolumeUsd

function updateReferralsTargetVolumeUsd(uint256 _value) internal

Check IReferralsUtils interface for documentation

whitelistAllies

Check IReferralsUtils interface for documentation

unwhitelistAllies

Check IReferralsUtils interface for documentation

whitelistReferrers

Check IReferralsUtils interface for documentation

unwhitelistReferrers

Check IReferralsUtils interface for documentation

registerPotentialReferrer

Check IReferralsUtils interface for documentation

distributeReferralReward

Check IReferralsUtils interface for documentation

claimAllyRewards

Check IReferralsUtils interface for documentation

claimReferrerRewards

Check IReferralsUtils interface for documentation

getReferrerFeeProgressP

Check IReferralsUtils interface for documentation

getTraderLastReferrer

Check IReferralsUtils interface for documentation

getTraderActiveReferrer

Check IReferralsUtils interface for documentation

getReferrersReferred

Check IReferralsUtils interface for documentation

getTradersReferred

Check IReferralsUtils interface for documentation

getReferralsAllyFeeP

Check IReferralsUtils interface for documentation

getReferralsStartReferrerFeeP

Check IReferralsUtils interface for documentation

getReferralsTargetVolumeUsd

Check IReferralsUtils interface for documentation

getAllyDetails

Check IReferralsUtils interface for documentation

getReferrerDetails

Check IReferralsUtils interface for documentation

_getSlot

Returns storage slot to use when fetching storage relevant to library

_getStorage

Returns storage pointer for storage struct in diamond contract, at defined slot

_whitelistAlly

Whitelists new ally

Parameters

Name
Type
Description

_ally

address

address of ally

_unwhitelistAlly

Unwhitelists ally

Parameters

Name
Type
Description

_ally

address

address of ally

_whitelistReferrer

Whitelists new referrer

Parameters

Name
Type
Description

_referrer

address

address of referrer

_ally

address

address of ally

_unwhitelistReferrer

Unwhitelists referrer

Parameters

Name
Type
Description

_referrer

address

address of referrer

Was this helpful?