Quiz: DeFi & Stablecoins
20 multiple-choice questions · Click an option to check your answer
Question 1
A decentralized exchange uses a constant product AMM with the formula x · y = k. A student asks: "What does k represent?" Which answer is most accurate?
- (A) The total dollar value of the pool
- (B) A constant that constrains the reserve ratio — the product
- (C) The number of liquidity providers in the pool
- (D) The maximum amount of tokens that can be traded in one transaction
Question 2
An AMM pool holds 500 ETH and 1,000,000 USDC. What is the current implied price of 1 ETH in this pool?
- (A) $2,000
- (B) $1,000
- (C) $500
- (D) $1,500,000
Question 3
A liquidity provider deposits equal-value amounts of ETH and USDC into a pool. After one month, ETH has doubled in price. The LP withdraws their position and discovers they have less value than if they had simply held the original tokens. What is this phenomenon called?
- (A) Front-running
- (B) Gas fee erosion
- (C) Slippage
- (D) Impermanent loss
Question 4
In DeFi lending, why must borrowers deposit more collateral than the loan value (overcollateralization)?
- (A) Because Ethereum requires a minimum deposit to interact with smart contracts
- (B) Because there are no credit scores, legal enforcement
- (C) To ensure the protocol can afford to pay its developers
- (D) To pay the gas fees for the smart contract execution
Question 5
An AMM pool starts with 2,000 ETH and 4,000,000 USDC (k = 8 × 109). A trader buys 100 ETH. How much USDC does the trader pay?
- (A) 210,526 USDC
- (B) 195,000 USDC
- (C) 250,000 USDC
- (D) 200,000 USDC
Question 6
Using the impermanent loss formula IL = 2√r / (1+r) − 1 where r is the price ratio (new/old), calculate the impermanent loss when ETH price triples (r = 3).
- (A) −25.0%
- (B) −13.4%
- (C) −5.7%
- (D) −33.3%
Question 7
A borrower deposits 10 ETH at $1,800/ETH as collateral and borrows 10,000 USDC. What is the current collateralization ratio?
- (A) 100%
- (B) 120%
- (C) 180%
- (D) 150%
Question 8
In the scenario from Question 7, the protocol liquidates positions when the ratio falls to 120%. At what ETH price is the position liquidated?
- (A) $1,800
- (B) $1,500
- (C) $1,000
- (D) $1,200
Question 9
A trader executes the following flash loan arbitrage: borrow 500,000 USDC (0.09% fee), buy ETH at $1,980 on DEX A, sell ETH at $2,000 on DEX B. What is the approximate profit?
- (A) $10,000
- (B) $5,050 (loss)
- (C) $0 (exactly break even)
- (D) $4,601
Question 10
A protocol uses a DEX spot price as its oracle. An attacker executes a large buy on the DEX, temporarily pushing the price of Token X from $10 to $15. The attacker then uses Token X as collateral on the victim protocol (which reads $15) to borrow assets. This is an example of:
- (A) A reentrancy attack
- (B) Oracle manipulation
- (C) A Sybil attack
- (D) A governance attack
Question 11
A smart contract has a withdraw() function with this order: (1) check balance, (2) send ETH, (3) update balance. An auditor identifies this as vulnerable. What pattern should replace it?
- (A) Add a second
withdraw()function as a backup - (B) Remove the balance check entirely and rely on the EVM's built-in protection
- (C) Check balance, update balance, then send ETH (Checks-Effects-Interactions)
- (D) Send ETH first, then check balance, then update balance
Question 12
A protocol uses a time-weighted average price (TWAP) oracle instead of a DEX spot price. Why does this make oracle manipulation more expensive for the attacker?
- (A) TWAP oracles only report prices once per day, making them too slow to attack
- (B) TWAP uses a different blockchain with higher security
- (C) TWAP averages the price over multiple blocks
- (D) TWAP oracles are encrypted, so the attacker cannot read the price
Question 13
Compare a fiat-backed stablecoin and a crypto-backed stablecoin. Which statement best characterizes their trade-off?
- (A) Both types have identical risk profiles because they both target $1.00
- (B) Fiat-backed requires trust in the issuer's reserves
- (C) Crypto-backed stablecoins cannot de-peg because the collateral is on-chain
- (D) Fiat-backed is decentralized; crypto-backed is centralized
Question 14
An algorithmic stablecoin maintains its peg by minting a governance token when the stablecoin trades below $1.00 and burning the governance token when it trades above $1.00. During a confidence crisis, holders sell the stablecoin and the governance token simultaneously. Why does this create a death spiral?
- (A) The algorithm cannot detect that both tokens are falling simultaneously
- (B) The blockchain network becomes congested and stops producing blocks
- (C) The algorithm mints more governance tokens to absorb selling
- (D) The smart contract runs out of gas and cannot process transactions
Question 15
A DeFi lending protocol experiences a flash crash in ETH. Within 10 minutes, the collateralization ratio of 40% of all loans drops below the liquidation threshold. Why can this cascade cause protocol insolvency even with overcollateralization?
- (A) The protocol runs out of governance tokens to compensate liquidators
- (B) Liquidators are required to wait 24 hours before seizing collateral
- (C) Mass liquidations sell large amounts of ETH into thin markets
- (D) The smart contract has a hard limit on the number of liquidations per block
Question 16
A protocol distributes 60% of its token supply to insiders (team + investors) with a 1-year cliff followed by 3-year linear vesting. At month 12, all insider tokens become eligible simultaneously. What risk does this create?
- (A) The smart contract cannot process the vesting unlock and will freeze
- (B) The protocol will run out of tokens for community incentives
- (C) The tokens become worthless because they were locked too long
- (D) A large supply shock: insiders may sell simultaneously
Question 17
Total value locked (TVL) is the most common metric for DeFi protocol size. A critic argues that TVL is misleading. Which of the following best supports this critique?
- (A) TVL does not account for the protocol's token price
- (B) TVL does not include NFTs, which are a major DeFi asset class
- (C) TVL only measures Ethereum-based protocols, excluding other blockchains
- (D) Recursive borrowing inflates TVL because the same dollar of capital
Question 18
An entrepreneur proposes building a "fully decentralized" lending protocol that also complies with KYC/AML regulations by requiring identity verification before depositing. Evaluate this proposal. What is the most fundamental contradiction?
- (A) Requiring identity verification introduces a centralized gatekeeper
- (B) KYC slows down transaction speed below what blockchain can support
- (C) KYC is too expensive for a startup
- (D) Regulators will not approve any lending protocol on a public blockchain
Question 19
A DeFi protocol proposes allowing governance token holders to vote on increasing the liquidation bonus from 5% to 15%. Supporters argue this attracts more liquidators. Evaluate the most significant unintended consequence.
- (A) Higher bonuses make liquidation more attractive
- (B) Higher bonuses make the protocol immune to liquidation cascades
- (C) The smart contract cannot support a bonus above 10%
- (D) Higher bonuses will crash the governance token price
Question 20
A regulator proposes classifying all stablecoins as securities and requiring issuers to maintain 100% reserves in government bonds. Evaluate the impact on the three stablecoin types. Which type faces the most existential threat from this regulation?
- (A) Algorithmic — they have no reserves at all
- (B) Fiat-backed — they would need to restructure their reserves
- (C) Crypto-backed — they would need to replace crypto collateral with government bonds
- (D) All three face equal risk because the regulation applies uniformly