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

feat(sdk): deduct royalty from seller price & cap to 10% #84

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

iamcrazycoder
Copy link
Contributor

What this PR does / why we need it:

This PR deducts the royalty amount from seller price. So, if the seller sells an item for 100 and royalty for that item is set to 5% -- the seller would receive 95 and 5 would be sent to the creator as royalty payment.

Also, a max cap of 10% has been added. Creators can set only royalty <= 10%.

@iamcrazycoder
Copy link
Contributor Author

Tested; tx

@iamcrazycoder iamcrazycoder merged commit 0f6cd96 into main Oct 18, 2023
2 checks passed
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.

1 participant