Trading in CEXs and DEXs with Priority Fees and Stochastic Delays
Philippe Bergault, Yadh Hafsi, Leandro Sánchez-Betancourt
TL;DR
The paper develops a mixed-control framework where a continuous trading rate on a CEX is combined with impulse submissions to a DEX under stochastic execution delays whose mean can be controlled. It proves a dynamic programming principle and shows that the value function solves a Hamilton–Jacobi–Bellman quasi-variational inequality in the viscosity sense, with a nonlocal impulse operator capturing asynchronous executions. Applied to a CEX-DEX arbitrage problem, it derives optimal priority-fee policies that depend on time, inventory, and price dislocations, and demonstrates substantial outperformance over non-strategic fee choices, with diminishing gains as the fee set grows. The work advances both the mathematical treatment of latency in optimal execution and practical latency-risk management in decentralized finance.
Abstract
We develop a mixed control framework that combines absolutely continuous controls with impulse interventions subject to stochastic execution delays. The model extends current impulse control formulations by allowing (i) the controller to choose the mean of the stochastic delay of their impulses, and allowing (ii) for multiple pending orders, so that several impulses can be submitted and executed asynchronously at random times. The framework is motivated by an optimal trading problem between centralized (CEX) and decentralized (DEX) exchanges. In DEXs, traders control the distribution of the execution delay through the priority fee paid, introducing a fundamental trade-off between delays, uncertainty, and costs. We study the optimal trading problem of a trader exploiting trading signals in CEXs and DEXs. From a mathematical perspective, we derive the associated dynamic programming principle of this new class of impulse control problems, and establish the viscosity properties of the corresponding quasi-variational inequalities. From a financial perspective, our model provides insights on how to carry out execution across CEXs and DEXs, highlighting how traders manage latency risk optimally through priority fee selection. We show that employing the optimal priority fee has a significant outperformance over non-strategic fee selection.
