0
0
Blockchain / Solidityprogramming~5 mins

Automated Market Makers (AMM) in Blockchain / Solidity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an Automated Market Maker (AMM)?
An AMM is a smart contract on a blockchain that allows users to trade cryptocurrencies directly without needing a traditional order book. It uses a mathematical formula to price assets.
Click to reveal answer
intermediate
How does the constant product formula work in AMMs?
The constant product formula keeps the product of the two token reserves constant (x * y = k). When one token is bought, its reserve decreases and the other token's reserve increases to keep the product the same.
Click to reveal answer
beginner
What role do liquidity providers play in AMMs?
Liquidity providers add equal value of two tokens to the pool, enabling trades. They earn fees from trades proportional to their share of the pool.
Click to reveal answer
intermediate
What is impermanent loss in AMMs?
Impermanent loss happens when the price of tokens in the pool changes compared to holding them outside. Liquidity providers may lose value compared to just holding tokens.
Click to reveal answer
beginner
Name a popular AMM protocol on Ethereum.
Uniswap is a popular AMM protocol on Ethereum that uses the constant product formula to enable decentralized token swaps.
Click to reveal answer
What does an AMM use to determine token prices?
AA mathematical formula
BA traditional order book
CManual price setting
DRandom number generation
In the constant product formula x * y = k, what does 'k' represent?
AA fixed constant value
BThe product of token reserves
CThe trading fee
DThe total number of tokens
Who earns fees in an AMM?
ALiquidity providers
BTraders only
CBlockchain miners
DSmart contract developers
What is impermanent loss?
ALoss from failed transactions
BPermanent loss of tokens due to hacking
CLoss from trading fees
DLoss from token price changes while providing liquidity
Which blockchain is Uniswap built on?
ASolana
BBitcoin
CEthereum
DBinance Smart Chain
Explain how an Automated Market Maker (AMM) enables token trading without an order book.
Think about how prices adjust when tokens are swapped in the pool.
You got /4 concepts.
    Describe the risks liquidity providers face when adding tokens to an AMM pool.
    Consider what happens if token prices move after you add liquidity.
    You got /4 concepts.