Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mint with referral funcionality #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

david58
Copy link
Contributor

@david58 david58 commented Jan 10, 2025

implements #8

}
payable(owner()).transfer(address(this).balance);
Copy link

@ilmpc ilmpc Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't feel right to use balance as what if minter will send more than needed?
Maybe we should make it equal here? L147

if it's okay, than probably it's the best way

string memory symbol = "GEN";
string memory contractURI = "ipfs://";
string memory baseURI = "https://data.kodadot.xyz/base/"; // suffixed with /?hash=
instance = new BaseGen(initialOwner, name, symbol, contractURI, baseURI, maxSupply, receiver);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you guide me in the difference between initialOwner and royalty receiver?
Shouldn't that be one entity?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InitialOwner is the provider (Koda) and receiver is the creator of the art. The logic without referrer was that payment is split in half between Koda and artist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants