How Does a Smart Contract Enforce the Rules of a Token Standard?
A smart contract is the executable code deployed on the blockchain that defines the token's logic. It contains functions and variables specified by the token standard (e.g. transfer for ERC-20).
The contract's code is immutable and automatically executes the rules, ensuring that all tokens created under it follow the specified behavior, such as preventing double-spending or unauthorized minting.