metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.31k stars 6.27k forks source link

[Feature]: NFT Vesting for Candy Machine minting #1712

Closed sunspots-io closed 2 years ago

sunspots-io commented 2 years ago

Which package is this feature request for?

candy machine cli

Feature

NFT Vesting for Candy Machine minting. Configure candy machine to allow vesting of the minted NFT on schedule, for example 7 days after mint.

This would prevent minters from flipping right away. It could be configured either for whitelist or public, but the use case would be for whitelist minters (to prevent insider dumping of NFTs after mint). It is a similar concept to post-IDO lockup, whitelist minters are considered early investors, and because of their first-in-line position to get a mint, they have to lock their NFT up for a period.

Ideal solution or implementation

When a user mints an item from a candy machine, that token is minted and placed into a vesting token vesting escrow contract. Token is unlocked after configured date or interval, the mint amount is also placed into escrow and released to the candy machine creator when the token is unlocked.

Bonfida's token-vesting program could probably be adapted. You would need one contact for NFT to minter, and one for mint amount to creator.

Alternative solutions or implementations

No response

Other context

No response

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.