An idealised decentralised exchange (DEX) provides a medium in which players wishing to exchange one token for another can interact with other such players and liquidity providers at a price which reflects the true exchange rate, without the need for a trusted third-party. Unfortunately, extractable value is an inherent flaw in existing blockchain-based DEX implementations. This extractable value takes the form of monetizable opportunities that allow blockchain participants to extract money from a DEX without adding demand or liquidity to the DEX, the two functions for which DEXs are intended. This money is taken directly from the intended DEX participants. As a result, the cost of participation in existing DEXs is much larger than the upfront fees required to post a transaction on a blockchain and/or into a smart contract. We present FairTraDEX, a decentralised variant of a frequent batch auction (FBA), a DEX protocol which provides formal game-theoretic guarantees against extractable value. FBAs when run by a trusted third-party provide unique game-theoretic optimal strategies which ensure players are shown prices equal to the liquidity provider's fair price, excluding explicit, pre-determined fees. FairTraDEX replicates the key features of an FBA that provide these game-theoretic guarantees using a combination of set-membership in zero-knowledge protocols and an escrow-enforced commit-reveal protocol. We extend the results of FBAs to handle monopolistic and/or malicious liquidity providers, and provide a detailed pseudo-code implementation of FairTraDEX based on existing mainstream blockchain protocols.
翻译:理想的分散汇率(DEX)提供了一种媒介,让希望以一面物换另一面物的玩家能够以反映真实汇率的价格与其他这样的玩家和流动资金提供者互动,而无需信任第三方。 不幸的是,可提取价值是现有基于供应链的DEX执行中固有的缺陷。这种可提取价值的形式是可移动机会,使连锁参与者能够从DEX中提取资金,而不必为DEX增加需求或流动性,这是DEX所要履行的两个功能。这笔钱直接来自预期的DEX参与者。因此,参与现有的DEX的费用远远高于在块链和/或智能合同上进行交易所需的前期费用。我们介绍FairTraDEX,这是经常批次拍卖(FBA)的一个分散的变式。DEX协议提供了正式的游戏理论保证,它为可提取价值提供了正式的游戏理论性保证。 当受信任的第三方运行时,FBA提供了独特的游戏理论最佳战略,确保玩家能够以等价显示流动性供应商在块链链/Dl-BA的固定交易协议中提供公平价格。