SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Blockchain

» Start this Course
(Practice similar questions for free)
Question:

A liquidity pool operated by an automated market maker contains 3000 Ether (ETH) and 9,000,000 Tether (USDT). You want to exchange 50,000 USDT into ETH. How many ETH can you take out of the pool? Answer: Exchange rate determined by AMM. First we compute exchange ratio 9000000/3000 -> 1 ETH= 3000 USDT and this gives 27.000.000.000. When you put in 50.000 USDT that brings the total of 9050000. By scaling that back to that exchange rate you need N(ETH)*9050000= 27.000.000.000. This gives N(ETH) of 2983,43 so you can take out 3000-2983,43=16,57 ETH= 16 ETH Follow-up to previous question: What is the exchange rate after the transaction (with USDT being the numeraire)?

Author: timothy Ntambala



Answer:

3000-16,57= 2983,43 Ether versus 9.000.000+ 50.000= 9050000 USDT. New ratio 1: 3033,43


0 / 5  (0 ratings)

1 answer(s) in total