TIL #2 - The AMM Design Trilemma
Recently I have been on a quest to understand AMM’s from a historical context (pre-DeFi). This 2013 paper by Othman et al titled “A Practical Liquidity-Sensitive Automated Market Maker” takes an axiomatic approach to unify AMM designs by characterizing AMMs by three properties - path independence, translation invariance, and liquidity sensitivity.1 - Three properties to characterize AMMs - path independence, translation invariance, and liquidity sensitivityPath IndependencePath independence m...
DeFi Primitive Risk Methodology (DPRM)
“DeFi Primitive Risk Methodology (DPRM) is an open source risk management library (currently in development) that lets users perform both quantitative and qualitative risk analysis on groups of DeFi primitives using stochastic methods to simulate first and second order effects from any combination of tokenomics designs.”Problem - Risk Management in DeFi is hardIn DeFi, a plethora of innovation is occurring with the creation of many new macro DeFi primitives such as liquidity pools, bonds, and...
MEV Arbitrage on Olympus POL
1 - Abstract 2 - Intro 2a - MEV Arbitrage 2b - Olympus POL 3 - Data Collection 3a - Sushiswap LP 3b - Olympus POL 4 - Results 4a - Swap Distributions 4b - Swap Statistics 4c - Buy/Sell Trading Flows 5 - Final Remarks 1 - AbstractMaximal extractable value (MEV) bots perform atomic arbitrage transactions on DEX-based liquidity pools. Although accounting for less than 1% of total unique addresses, these bots execute the majority of transactions in Olympus protocol owned liquidity (POL) both in t...
decentralized bankster
TIL #2 - The AMM Design Trilemma
Recently I have been on a quest to understand AMM’s from a historical context (pre-DeFi). This 2013 paper by Othman et al titled “A Practical Liquidity-Sensitive Automated Market Maker” takes an axiomatic approach to unify AMM designs by characterizing AMMs by three properties - path independence, translation invariance, and liquidity sensitivity.1 - Three properties to characterize AMMs - path independence, translation invariance, and liquidity sensitivityPath IndependencePath independence m...
DeFi Primitive Risk Methodology (DPRM)
“DeFi Primitive Risk Methodology (DPRM) is an open source risk management library (currently in development) that lets users perform both quantitative and qualitative risk analysis on groups of DeFi primitives using stochastic methods to simulate first and second order effects from any combination of tokenomics designs.”Problem - Risk Management in DeFi is hardIn DeFi, a plethora of innovation is occurring with the creation of many new macro DeFi primitives such as liquidity pools, bonds, and...
MEV Arbitrage on Olympus POL
1 - Abstract 2 - Intro 2a - MEV Arbitrage 2b - Olympus POL 3 - Data Collection 3a - Sushiswap LP 3b - Olympus POL 4 - Results 4a - Swap Distributions 4b - Swap Statistics 4c - Buy/Sell Trading Flows 5 - Final Remarks 1 - AbstractMaximal extractable value (MEV) bots perform atomic arbitrage transactions on DEX-based liquidity pools. Although accounting for less than 1% of total unique addresses, these bots execute the majority of transactions in Olympus protocol owned liquidity (POL) both in t...
decentralized bankster

Subscribe to 0xEvan

Subscribe to 0xEvan
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
1 - Introduction
2 - Mapper Algorithm
3 - Six Distinct MEV Behaviors
4 - Conclusion
Topological data analysis (TDA) is a powerful data analytics technique that uses the underlying topological and geometric structures of data to create non-trivial, meaningful categories. The Mapper algorithm is a TDA tool that transforms data, which lives in a continuous Reeb space, to a simplicial complex, a topological combinatorial graph which lives in a discrete space. TDA started to turn heads when the Mapper algorithm was used to identify a highly treatable cluster of breast cancer patients from a highly dimensional dataset in 2011.
Although the TDA technique persistent homology has been applied to study some financial asset bubbles, this is the first application of Mapper to MEV and blockchain in general. We review the results in this post, leaving technical details out. A full paper draft is available on github.
Previously we created a MEV dataset that contains historical MEV trading data from Olympus Sushiswap POL. In this new research, we add multi-chain liquidation events from Ethereum based Rari and Arbitrum based Vesta obtained via Playground Analytics Subgrounds.
Simply put, the Mapper algorithm is the transformation from a continuous subspace of data to a discrete graph with topological data embedded combinatorially. Mapper algorithm inputs a point cloud of on-chain historical data as shown in Figure 1 and outputs a simplicial complex, as seen in Figure 2.


Intuitively, these distinct MEV behaviors can be considered as MEV emotions. For example the emotions happiness and excitement are both distinct, but positive emotions. In contrast, happiness and despair are contrasting emotions - positive and negative. Emotions that are closer in similarity will also appear closer together as seen in Figure 4.
Figure 3 shows six statistically distinct MEV behaviors where node 0 is called the “base node” and represents the default MEV behavior.

Nodes 1,2, and 3 all have positive MEV mean volume. Positive MEV volume should be considered a desirable MEV behavior because it implies MEV bots are buying OHM and pushing the price up. Indeed Nodes 1,2, and 3 show that the positive MEV volume is counteracting the negative non-MEV volume.
Nodes 4 and 5 are more troublesome. They have very large negative MEV mean volumes. Fortunately they appear to be outlier MEV behaviors because they account for a small amount of data points, a mere 10. Node 4 has the largest mean and standard deviations for liquidations, indicating negatively volatile days due to liquidations.
In contrast, node 5’s negative MEV volume is more correlated with negative non-MEV volume as opposed to liquidations which indicates in general, a lot of negative selling during those days, but not directly a result of OHM liquidations.

Figure 4 shows how the Figure 3 statistical properties of each behavior are visually represented. Looking at 2(b) Daily MEV vs non-MEV Volume scatterplot, each cluster of node points exists within a distinct area. The 2(b) Daily MEV vs Liquidation Volume chart shows similar geometric separation, but appears more cluttered. These geometric distinctions create new ways to categorize heavily connected DeFi data and allows a distinct classification of MEV behavior based on daily data as well as offering a rich area of research to further understand how to incentivize more positive MEV behaviors such as Nodes 1, 2 and 3 and avoid negative behaviors such as Nodes 4 and 5.
In conclusion, we have identified six distinct MEV behaviors that exist within the OHM MEV dataset. These behaviors can be thought of as MEV emotions that react to economic incentives within the blockchain multiverse. This is the first application of the Mapper algorithm to MEV data and blockchain data in general. Data is all fully available on-chain and source code is freely available.
1 - Introduction
2 - Mapper Algorithm
3 - Six Distinct MEV Behaviors
4 - Conclusion
Topological data analysis (TDA) is a powerful data analytics technique that uses the underlying topological and geometric structures of data to create non-trivial, meaningful categories. The Mapper algorithm is a TDA tool that transforms data, which lives in a continuous Reeb space, to a simplicial complex, a topological combinatorial graph which lives in a discrete space. TDA started to turn heads when the Mapper algorithm was used to identify a highly treatable cluster of breast cancer patients from a highly dimensional dataset in 2011.
Although the TDA technique persistent homology has been applied to study some financial asset bubbles, this is the first application of Mapper to MEV and blockchain in general. We review the results in this post, leaving technical details out. A full paper draft is available on github.
Previously we created a MEV dataset that contains historical MEV trading data from Olympus Sushiswap POL. In this new research, we add multi-chain liquidation events from Ethereum based Rari and Arbitrum based Vesta obtained via Playground Analytics Subgrounds.
Simply put, the Mapper algorithm is the transformation from a continuous subspace of data to a discrete graph with topological data embedded combinatorially. Mapper algorithm inputs a point cloud of on-chain historical data as shown in Figure 1 and outputs a simplicial complex, as seen in Figure 2.


Intuitively, these distinct MEV behaviors can be considered as MEV emotions. For example the emotions happiness and excitement are both distinct, but positive emotions. In contrast, happiness and despair are contrasting emotions - positive and negative. Emotions that are closer in similarity will also appear closer together as seen in Figure 4.
Figure 3 shows six statistically distinct MEV behaviors where node 0 is called the “base node” and represents the default MEV behavior.

Nodes 1,2, and 3 all have positive MEV mean volume. Positive MEV volume should be considered a desirable MEV behavior because it implies MEV bots are buying OHM and pushing the price up. Indeed Nodes 1,2, and 3 show that the positive MEV volume is counteracting the negative non-MEV volume.
Nodes 4 and 5 are more troublesome. They have very large negative MEV mean volumes. Fortunately they appear to be outlier MEV behaviors because they account for a small amount of data points, a mere 10. Node 4 has the largest mean and standard deviations for liquidations, indicating negatively volatile days due to liquidations.
In contrast, node 5’s negative MEV volume is more correlated with negative non-MEV volume as opposed to liquidations which indicates in general, a lot of negative selling during those days, but not directly a result of OHM liquidations.

Figure 4 shows how the Figure 3 statistical properties of each behavior are visually represented. Looking at 2(b) Daily MEV vs non-MEV Volume scatterplot, each cluster of node points exists within a distinct area. The 2(b) Daily MEV vs Liquidation Volume chart shows similar geometric separation, but appears more cluttered. These geometric distinctions create new ways to categorize heavily connected DeFi data and allows a distinct classification of MEV behavior based on daily data as well as offering a rich area of research to further understand how to incentivize more positive MEV behaviors such as Nodes 1, 2 and 3 and avoid negative behaviors such as Nodes 4 and 5.
In conclusion, we have identified six distinct MEV behaviors that exist within the OHM MEV dataset. These behaviors can be thought of as MEV emotions that react to economic incentives within the blockchain multiverse. This is the first application of the Mapper algorithm to MEV data and blockchain data in general. Data is all fully available on-chain and source code is freely available.
No activity yet