-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuniswap-questions.txt
More file actions
19 lines (10 loc) · 865 Bytes
/
Copy pathuniswap-questions.txt
File metadata and controls
19 lines (10 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
1) Given a pool with 100 ETH and 100 USDC, what is the initial value of ( k )?
2) Why can't you swap 25 ETH for 25 USDC in a pool with 100 ETH and 100 USDC?
3) What does the inequality "x * y >= k" (instead of "x * y = k") imply about Uniswap V2 swaps?
4) In Solidity, how might you check if a swap preserves the constant product invariant?
Swap Calculations
5) If you deposit 25 ETH into a pool with 100 ETH and 100 USDC, how much USDC can you withdraw to preserve k = 10,000?
6) What is the generalized formula for calculating the amount of token "y" (Delta y) you can swap out given Delta x deposited?
7) If you withdraw only 18 USDC instead of 20 USDC after depositing 25 ETH, what happens to "k"?
8) What is slippage, and how does it relate to the swap of 25 ETH for 20 USDC?
9) Why might a smaller trade (e.g., 1 ETH) have less slippage than 25 ETH?