题目
46912 Quiz 2 Automatic Market Maker Examples
单项选择题
Suppose we have a smart contract that is able to exchange CT tokens for TT tokens and TT tokens for CT tokens. The current market price of a CT token is 5 ETH and the current market price of a TT token is 10 ETH. The contract is written to always exchange at the rate of 2 CT tokens for 1 TT token and 1 TT token for 2 CT tokens. To allow swaps, the contract is initially provide with 20 CT tokens and 10 TT tokens. Note: This is not a constant product AMM. Suppose the market price (in ETH) of TT tokens doubles. This contract will
选项
A.likely be emptied of all of its TT tokens.
B.likely run out of gas.
C.have to be deployed on the Bitcoin blockchain.
D.be reclaimed by the Ethereum run time
E.likely be emptied of all of its CT tokens.
查看解析
标准答案
Please login to view
思路分析
Let’s parse the setup carefully. The contract can swap 2 CT tokens for 1 TT token, or 1 TT token for 2 CT tokens, i.e., a fixed pool ratio of CT:TT = 2:1. Initially, the contract holds 20 CT and 10 TT. Market prices are CT = 5 ETH and TT = 10 ETH, but the TT price then doubles to 20 ETH. This creates an arbitrage opportunity for anyone who can trade against the contract using the fixed 2 CT ⇄ 1 TT rate.
Option A: 'likely be emptied of all of its TT tokens.' This would imply the contract ends with TT = 0. If TT price doubles to 20 ETH while the contract still offers 2 CT for 1 TT, a trader can profit by exchanging CT for TT from the contract. For example, by spendin......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Which statement is false about Uniswap V2?
Suppose we have a smart contract that is able to exchange CT tokens for TT tokens and TT tokens for CT tokens. It is based on a constant product formula. The number of CT tokens times the number of TT tokens is always equal to 200. The current market price of a CT token is 5 ETH and the current market price of a TT token is 10 ETH. To allow swaps, the contract is initially provide with 20 CT tokens and 10 TT tokens. Note: This is a constant product AMM. If a trader sends 5 CT tokens to the contract, how many TT tokens should she expect in exchange? (We are not concerned with fees.)
In a consumer society, many adults channel creativity into buying things
Economic stress and unpredictable times have resulted in a booming industry for self-help products
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!