To achieve interoperability between unconnected ledgers, hash time lock contracts (HTLCs) are commonly used for cross-chain asset exchange. The solution tolerates transaction failure, and can "make the best out of worst" by allowing transacting agents to at least keep their original assets in case of an abort. Nonetheless, as an undesired outcome, reoccurring transaction failures prompt a critical and analytical examination of the protocol. In this study, we propose a game-theoretic framework to study the strategic behaviors of agents taking part in cross-chain atomic swaps implemented with HTLCs. We study the success rate of the transaction as a function of the exchange rate of the swap, the token price and its volatility, among other variables. We demonstrate that in an attempt to maximize one's own utility as asset price changes, either agent might withdraw from the swap. An extension of our model confirms that collateral deposits can improve the transaction success rate, motivating further research towards collateralization without a trusted third party. A second model variation suggests that a swap is more likely to succeed when agents dynamically adjust the exchange rate in response to price fluctuations.
翻译:为了实现互不关联的分类账之间的互操作性,散时锁定合同(HTLCs)通常用于跨链式资产交换。解决方案容忍交易失败,并允许交易代理商在中断情况下至少保留其原始资产,从而“在最坏的情况下做出最佳贡献”。然而,作为不理想的结果,反复发生的交易失败引发了对协议的批判和分析性审查。在本研究中,我们提出了一个游戏理论框架,以研究参与与HTLC执行的跨链式原子互换的代理商的战略行为。我们研究了交易的成功率作为交换汇率、代币价格及其波动等变量的函数。我们证明,为了尽量扩大自己作为资产价格变动的效用,任何代理商都可能退出互换。我们模型的展期证实,抵押金可以提高交易成功率,鼓励进一步研究在没有信任的第三方的情况下进行抵押。第二个模型变换表明,当代理商根据价格波动动态调整汇率时,互换更可能成功。