You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like a way for people to obtain a small reward for referring someone to mint.
Task
create a new function called function mintWithReferral(address to, uint256 quantity, address referrer) public payable (basically functionaliy of safeBachMint)
with the payment splitter enabled - the referral amount will be deducted from the owner's part (therefore _receiver's part is untouched)
referral amount is equal to royalty price - that is calculated with royaltyInfo
if referrer is equal to _receiver || address(0) referral bounty cannot be applied (do not throw error just code should ignore that)
if royaltyInfo also returns 0 the referral bounty cannot be applied.
Context
We would like a way for people to obtain a small reward for referring someone to mint.
Task
function mintWithReferral(address to, uint256 quantity, address referrer) public payable
(basically functionaliy of safeBachMint)owner
's part (therefore_receiver
's part is untouched)royaltyInfo
_receiver
||address(0)
referral bounty cannot be applied (do not throw error just code should ignore that)royaltyInfo
also returns 0 the referral bounty cannot be applied.Links
The text was updated successfully, but these errors were encountered: