Decentralized Finance
Tempting the Agent: The Economics of Reputation without Persistent Identity in AI Agent Markets
arXiv & SSRN (Working Paper)
Abstract: Reputation is a fundamental mechanism through which markets sustain trust when service quality cannot be perfectly assessed ex ante, constituting a form of intertemporal economic capital by attracting future demand. Its effectiveness as a disciplinary mechanism depends not only on past interactions but also on the persistence of the identity to which reputation is attached. When identities can be abandoned and recreated cheaply, reputational capital may itself become an object of opportunistic exploitation. This paper develops a dynamic economic framework to study when reputation is sufficient to discipline autonomous agents. We model reputation as capital attracting future economic activity. At each point, an agent chooses between operating honestly, investing in quality to preserve future gains, or executing a one-shot deviation to extract its reputation's value and restart from a penalized identity. Our analysis relates the temptation to opportunistic behavior to identity-reset costs, reputation persistence, demand sensitivity, and enforcement design, deriving comparative statics on optimal quality provision. Autonomous AI-agent operating on the blockchain are a relevant application: infrastructures such as ERC-8004, ERC-8183, and x402 combine reputation, identity, and payments in permissionless markets. Nonetheless, our framework applies to any environment where reputation generates future business and identities are replaceable.
Deviations from Tradition: Stylized Facts in the Era of DeFi
Quantitative Finance (2026)
Abstract: Decentralized Exchanges (DEXs) are now a significant component of the financial world where billions of dollars are traded daily. Differently from traditional markets, which are typically based on Limit Order Books, DEXs typically work as Automated Market Makers, and, since the implementation of Uniswap v3, feature concentrated liquidity. By investigating the twenty-four most active pools in Uniswap v3 during 2023 and 2024, we empirically study how this structural change in the organization of the markets modifies the well-studied stylized facts of prices, liquidity, and order flow observed in traditional markets. We find a series of new statistical regularities in the distributions and cross-autocorrelation functions of these variables that we are able to associate either with the market structure (e.g., the execution of orders in blocks) or with the intense activity of Maximal Extractable Value searchers, such as Just-in-Time liquidity providers and sandwich attackers.
Optimizing Liquidity Provision in Uniswap v3 via Physics-Informed Neural Networks
Journal of Computational and Applied Mathematics (2026)
Abstract: Decentralized Exchanges are rapidly changing financial markets by using blockchain technology to eliminate intermediaries. Among others, Uniswap v3 is the most prominent due to the Concentrated Liquidity mechanism, which allows liquidity providers to allocate capital within flexible price ranges, thus increasing possible revenues. This feature brings a key trade-off: narrower ranges increase both potential returns and the risk of inactive liquidity; wider ranges ensure continuous but lower profits. Thus, developing approaches for choosing the optimal liquidity provision range is becoming a predominant task both in the industry and academia. In this work, we propose a novel framework for optimizing liquidity provision in Uniswap v3 using Physics-Informed Neural Networks (PINNs). Our approach models market dynamics through stochastic processes and employs the Feynman-Kac theorem to compute the expected utility associated with the provision position as the solution of a Partial Differential Equation (PDE). This PDE is then solved using PINNs, enabling a fast approximation of expected utility. In such a way, it is possible to efficiently optimize the liquidity allocation in real-time with minimal computational cost. We assess our methodology through numerical experiments, where the backtesting results over eight pools demonstrate its effectiveness in optimizing liquidity provision performance. Thus, our results highlight the potential of the proposed framework for real-world applications.
A Multi-step Approach for Minimizing Risk in Decentralized Exchanges
arXiv & SSRN (2024)
Abstract: Decentralized Exchanges are becoming even more predominant in today's finance. Driven by the need to study this phenomenon from an academic perspective, the SIAG/FME Code Quest 2023 was announced. Specifically, participating teams were asked to implement, in Python, the basic functions of an Automated Market Maker and a liquidity provision strategy in an Automated Market Maker to minimize the Conditional Value at Risk, a critical measure of investment risk. As the competition's winning team, we highlight our approach in this work. In particular, as the dependence of the final return on the initial wealth distribution is highly non-linear, we cannot use standard ad-hoc approaches. Additionally, classical minimization techniques would require a significant computational load due to the cost of the target function. For these reasons, we propose a three-step approach. In the first step, the target function is approximated by a Kernel Ridge Regression. Then, the approximating function is minimized. In the final step, the previously discovered minimum is utilized as the starting point for directly optimizing the desired target function. By using this procedure, we can both reduce the computational complexity and increase the accuracy of the solution. Finally, the overall computational load is further reduced thanks to an algorithmic trick concerning the returns simulation and the usage of Cython.