forked from storyprotocol/protocol-periphery
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description and context
Currently, the minting fee is static for all NFT mints. SPGNFT doesn't support dynamic NFT mint pricing, such as the bonding curve or Dutch auction. We can explore supporting dynamic mint pricing to unlock new use cases without writing a bespoke NFT contract. Eventually, we can also write hooks for the community to use without writing a Hook contract as well.
Suggested solution
- Add a hook interface with supplied parameters (for the hook to use, such as the mint amount and msg.sender). This hook should return a value (minting fee) that SPGNFT can use to collect. In case of a failure, the minting should revert.
createCollection
accepts a parameternftPricingHook
, which is the hook to call on each_mintToken
call. If set to zero address, the static parametermintFee
is used for the minting cost.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request