题目
题目

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道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!