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

fix: Add Creator Minimum Balance Check #1051

Conversation

KartikSoneji
Copy link
Contributor

If one of the creators of an NFT has less than the rent exempt amount in their wallet, and the royalty from the sale is not enough to bring the balance over the rent exempt minimum then the sale will fail.

A workaround is to skip paying creator royalties unless they result in a valid balance for the creator wallet.

@KartikSoneji KartikSoneji requested a review from a team as a code owner March 14, 2023 13:51
@KartikSoneji KartikSoneji requested review from febo and blockiosaurus and removed request for a team March 14, 2023 13:51
@KartikSoneji KartikSoneji force-pushed the fix/creator-minimum-balance-check branch 2 times, most recently from dea7605 to d159624 Compare March 15, 2023 16:09
@samuelvanderwaal
Copy link
Contributor

@KartikSoneji does this only apply to creators that are PDA addresses?

@KartikSoneji
Copy link
Contributor Author

This also applies to normal keypairs, since the creator can empty it out.

@KartikSoneji KartikSoneji force-pushed the fix/creator-minimum-balance-check branch from d159624 to 49b4d23 Compare March 24, 2023 04:44
@KartikSoneji KartikSoneji force-pushed the fix/creator-minimum-balance-check branch from 49b4d23 to 64a0956 Compare March 27, 2023 20:52
@samuelvanderwaal
Copy link
Contributor

Thanks for this and the other PR!

@samuelvanderwaal samuelvanderwaal merged commit b5f1fdd into metaplex-foundation:master Mar 27, 2023
@KartikSoneji KartikSoneji deleted the fix/creator-minimum-balance-check branch March 28, 2023 19:35
@KartikSoneji
Copy link
Contributor Author

Happy to help :)
Is there a rough timeline for when the on-chain program will be updated?

@samuelvanderwaal
Copy link
Contributor

Happy to help :) Is there a rough timeline for when the on-chain program will be updated?

I plan to deploy it this week. There are a couple of other issues raised I want to resolve first.

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