Comment on page
This smart contract represents an ERC20 token with unique properties and functionalities specific to the NFT Protect platform.
transferrableA boolean that indicates whether the tokens are transferrable.
nftprotectAn address variable that holds the address of the NFT Protect contract.
Deployed()This event is emitted when the contract is deployed.
TransferrableSet(bool state)This event is emitted when the
transferrablestate of the contract is set.
onlyOwner()This modifier ensures that the wrapped method can only be executed by the owner of the contract.
This is the constructor function which is called when the contract is deployed. It sets the initial state of the contract, including the name of the token, the symbol of the token, the address of the NFT Protect contract, and makes the token transferrable.
This function overrides the
decimals()function from the ERC20 token standard to return 0. This means that the token has no decimal places.
This function allows the owner of the contract to set the
transferrablestate of the contract. When
transferrableis true, tokens can be transferred between addresses. When
transferrableis false, tokens cannot be transferred.
mint(address account, uint256 amount)
This function allows the owner of the contract to mint new tokens to a specified account.
burnFrom(address account, uint256 amount)
This function allows the NFT Protect contract to burn tokens from a specified account.