🤖Pass Contract
Purpose
Pass
extends from ERC721
(an OpenZeppelin implementation of the ERC721 standard for NFTs), AffiliateMember
, and ReentrancyGuard
. Its main functionality is to mint NFT passes for members of the affiliate system, ensuring unique ownership and adherence to specific conditions set by the affiliate system.
Key Features
Minting NFT passes for new members under certain conditions.
Disabling and enabling minting for an account.
Enforcing non-transferability of the passes.
Functions Summary
Function
Access
Description
Constructor
Constructor
Sets up the ERC721 token name, symbol, and admin role.
mint
External/NonReentrant
Mints a new pass for a member, ensuring various conditions are met.
disableMint
, enableMint
Public
Allows a member to disable or enable minting for their account.
Last updated