Buffer Finance V2
Search
⌃K

Referral Storage

registerCode

Public function for setting the user's referral code.
function registerCode(string memory _code)

configure

Admin function to set the config for step reduction and discount on the basis of tier
function configure(
uint8[3] calldata _referrerTierStep,
uint32[3] calldata _referrerTierDiscount // Factor of 1e5
)

setReferrerTier

Admin function to set referrer's tier
function setReferrerTier(address _referrer, uint8 tier)