Ethereum Token Standards and DeFi Flashcards
6 cards from real Ethereum Developer practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 Ethereum Token Standards and DeFi flashcards as text
What EIP defines the ERC-20 fungible token standard?
Answer: EIP-20
EIP-20 (commonly called ERC-20) defines the standard interface for fungible tokens on Ethereum.
What function must an ERC-20 contract implement to allow a spender to transfer tokens on behalf of an owner?
Answer: approve()
The `approve()` function grants a spender permission to transfer a specified amount of tokens on the owner's behalf.
What is the key distinction between ERC-20 and ERC-721 tokens?
Answer: ERC-721 tokens are non-fungible and each has a unique ID
ERC-721 tokens are non-fungible, meaning each token has a unique identifier and cannot be exchanged 1:1 with another.
What does AMM stand for in the context of DeFi?
Answer: Automated Market Maker
An Automated Market Maker (AMM) uses liquidity pools and mathematical formulas to enable permissionless token swaps without an order book.
What formula does Uniswap v2 use to maintain liquidity pool balance?
Answer: x * y = k
Uniswap v2 uses the constant product formula `x * y = k`, where x and y are token reserves and k is a constant.
What is a flash loan in DeFi?
Answer: An uncollateralized loan that must be borrowed and repaid within a single transaction
Flash loans allow users to borrow any amount without collateral as long as the loan is repaid within the same transaction block.