Trading on decentralized exchanges has been one of the primary use cases for permissionless blockchains with daily trading volume exceeding billions of U.S.~dollars. In the status quo, users broadcast transactions and miners are responsible for composing a block of transactions and picking an execution ordering -- the order in which transactions execute in the exchange. Due to the lack of a regulatory framework, it is common to observe miners exploiting their privileged position by front-running transactions and obtaining risk-fee profits. In this work, we propose to modify the interaction between miners and users and initiate the study of {\em verifiable sequencing rules}. As in the status quo, miners can determine the content of a block; however, they commit to respecting a sequencing rule that constrains the execution ordering and is verifiable (there is a polynomial time algorithm that can verify if the execution ordering satisfies such constraints). Thus in the event a miner deviates from the sequencing rule, anyone can generate a proof of non-compliance. We ask if there are sequencing rules that limit price manipulation from miners in a two-token liquidity pool exchange. Our first result is an impossibility theorem: for any sequencing rule, there is an instance of user transactions where the miner can obtain non-zero risk-free profits. In light of this impossibility result, our main result is a verifiable sequencing rule that provides execution price guarantees for users. In particular, for any user transaction A, it ensures that either (1) the execution price of A is at least as good as if A was the only transaction in the block, or (2) the execution price of A is worse than this ``standalone'' price and the miner does not gain (or lose) when including A in the block.
翻译:在去中心化交易所上进行交易已成为无需许可的区块链的主要用例之一,其日交易量超过数十亿美元。当前,用户广播交易,矿工负责组成一块交易并选择执行顺序-即交易在交易所中执行的顺序。由于缺乏监管框架,矿工经常利用其特权地位进行交易前置并获得无风险的利润。在本研究中,我们提出修改矿工和用户之间的交互方式,并开展了可验证排序规则的研究。与现状相同,矿工可以确定块的内容;但是,他们承诺遵守有限制的执行顺序,并且此规则可验证(存在一个多项式时间算法,可验证执行顺序是否满足这些约束条件)。因此,如果矿工偏离排序规则,则任何人都可以生成违反规则的证明。我们要求是否存在排序规则,可限制矿工在双代币流动性池交易所中的价格操纵行为。我们的第一个结果是不可能定理:对于任何排序规则,都存在用户交易的实例,矿工可以获得非零无风险利润。鉴于这个不可能结果,我们的主要结果是可验证排序规则,可为用户提供执行价格保证。特别地,对于任何用户交易A,它确保A的执行价格要么至少与A是块中唯一交易时相同,要么A的执行价格不如此“独立”价格,矿工在包含A在块中时不会获得(或承受)任何风险。