RUS  ENG
Full version
JOURNALS // Russian Journal of Cybernetics // Archive

Russian Journal of Cybernetics, 2023 Volume 4, Issue 3, Pages 86–94 (Mi uk126)

Statistical vulnerability of mean prices in automated constant product market makers

P. N. Anokhin

Sole proprietor, Orel, Russian Federation

Abstract: To work correctly, many financial services using the blockchain technology require independent manipulation-resistant price feed providers. One of the most common providers of such prices, which works completely on the blockchain technology itself, is an automated constant product market maker, which is a tool for price calculation based on the amount of two assets under its control. Financial application developers should consider all the possible vulnerabilities which can be introduced by using such price providers. This is the reason for the relevance of research into the vulnerabilities of automated constant product market makers prices. We studied the effects of the automated constant product market maker fees on the mean price based on the real trading data from the blockchain and Binance exchange. The results show that mean price deviation between automated market makers and the market average shows high autocorrelation making it possible to predict a future mean deviation of the prices between the exchanges. The simulation results show the predicted values for different prediction time frames. Based on the predictability of a future mean deviation of the prices, potential critical statistical vulnerabilities in the financial applications using the mean prices provided by constant product market makers are described, and vulnerability mitigation recommendations are given. The practical value to the blockchain application developers and smart contract security experts is that now they can prevent or mitigate potential critical statistical vulnerabilities in their applications.

Keywords: statistical vulnerability, decentralized finances, smart contract, blockchain security, automated market maker.

DOI: 10.51790/2712-9942-2023-4-3-09



© Steklov Math. Inst. of RAS, 2024