ERC Standards
- Why standards. A standard interface lets every wallet and exchange integrate once: conformance is the product.
- ERC-20. ERC-20 is the fungible-token standard: balances, transfers, allowances: the most-integrated API in Web3.
- EIP process. Standards are born as EIPs: reading them raw is a core professional skill.
Fungible and Non-Fungible Assets
- Fungibility. Fungible units are interchangeable: one token equals any other, like currency.
- ERC-721. ERC-721 names unique tokens by id: ownership of distinct assets, one id each.
- Allowance risks. The approve allowance pattern enables DeFi and drains wallets: infinite approvals are attack surface.
Standards-Compliant Contract Design
- Exact conformance. Conformance is exact: a token that reverts where the standard says return false breaks integrators.
- Extensions. Standards extend: permit, metadata, enumerable: each extension a compatibility decision.
- Weird tokens exist. Integrators defend against non-standard tokens: fee-on-transfer and rebasing break naive accounting.
Before and after this level
- Before: Level 7: Interfaces & Libraries: Interfaces, Libraries, Inheritance and Composition.
- Next: Level 9: Smart Contract Security: Reentrancy and External Calls, Access and Economic Attacks, Secure Contract Patterns.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Solidity Level 8: Tokens & Standards cover?
ERC Standards, Fungible and Non-Fungible Assets, Standards-Compliant Contract Design: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 7: Interfaces & Libraries, which covers Interfaces, Libraries, Inheritance and Composition.