You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 parameter nftPricingHook, which is the hook to call on each _mintToken call. If set to zero address, the static parameter mintFee is used for the minting cost.
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: