Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

msabvid/cpm_agent_based_sim

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 

Repository files navigation

The Case for Variable Fees in Constant Product Markets: An Agent Based Simulation

Small repo, where an agent learns to trade against a constant product market with constant fees.

Code for the paper The Case for Variable Fees in Constant Product Markets: An Agent Based Simulation, accepted at defi'22.

Abstract:

    We are interested in how the relationship between the fee in constant a product market (CPM) 
    and the volatility of the swapped pair on other liquid exchanges influences the losses / gains 
    of the liquidity providers. We review three classical market making models: Glosten and
    Milgrom, Kyle and Grossman and Miller and note that these very different models there is always 
    a relationship between volatility and how rational market makers set prices. Motivated by this 
    we set up an agent based model to explore this in the con- text of CPMs like Uniswap. 
    We conclude that if the fee is too low relative to the volatility of the traded pair then the 
    liquidity providers will end up making a loss over the medium term. From this we go to suggesting that 
    CPM markets need to let liquidity providers set the fee via a governance mechanism especially as 
    volatilities of assets fluctuate. The code for all simulations is available at https://github.com/kGFRqao2/cpmagentbasedsim.

About

Control + Bellman equation to find arbitrage strategies in Constant Product Market with constant fees

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.