-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Context
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
royaltyInfoalso returns 0 the referral bounty cannot be applied. - Extend tests to ensure the stuff works
Links
Metadata
Metadata
Assignees
Labels
No labels