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
This research was done in an effort to understand what the ideal trading strategy is for tokens with rebase mechanics. The rebase yield is amplified when a protocol is in the early days and has a high rebase rate. The (3,3) vanilla strategy captures 100% of the rebase yield and sets a high benchmark to beat.
Analysis is performed on a 6 month historical data time frame ranging from June 21st - December 14th 2021 and compares a custom built quantitative trading model vs (3,3). The quantitative model utilizes a crossover momentum strategy based on the 15day vs 30day Crypto Speculation Index (CSI).
The quantitative model derives a trading signal based on the crossover between the 15day and 30day CSI line using a time-invariant algorithm that measures the acceleration of the CSI signal. A shorter time frame was chosen over a 30day and 60day strategy so that the trades could be more reactive and capitalize on higher market volatility short term trends in the market.
Every 5 days, the trading algorithm is used to determine when to trade based on how strong the trading signal is. If the trading signal reaches a certain positive threshold, then a buy order is executed. If the trading signal reaches a certain negative threshold, then a sell order is executed. During the 6 month time period, there are a total of 16 trades made with varying frequency. Interestingly no trades were made in the entire month of November.
The initial starting position is split evenly between ohm and stables at a total initial portfolio value of ~$1.25m. Stables were assumed to sit idly in a wallet and receive no yield at any time. With an initial starting position of ~1.3m and trade sizes being well within ohm liquidity, variables such as fees, gas, and slippage were not included in this backtest because they would have had negligible impacts on the results. Only ohm price and rebase percentage were used as backtest data, both resampled to daily values.
The following models tested are - balanced, conservative, aggressive, and vanilla where the models that trade are differentiated only by the swap sizes.
Balanced uses fixed 10% swap for both buy and sell.
Conservative uses a 10% swap for buy but 30% for sell.
Aggressive uses 30% for buy and 10% for sell.
Vanilla is (3,3) and does not trade.

Returns at the end of the backtesting period:
Balanced = 83m
Conservative = 68m
Aggressive = 99m
Vanilla = 78m
Fig 1 shows a fairly high correlation between all of the strategy returns. This is because they all receive rebase yield to a varying degree and that is the main driver of returns, and not price appreciation. Aggressive performs the best while conservative performs the worst due to the fact that aggressive buys more ohm and maximizes the rebase yield while conservative sits on a larger position of stables. Balanced performs slightly better than buy and hold. This is hypothesized to be due to the fact that it is dipping into the stable position more to accumulate more Ohm, which taps into a higher rebase yield compared to Vanilla.


Unsurprisingly, Conservative has the biggest stable position per Fig 2, quadrupling the stable position from $~600k to over $~2.5m. Consequently this leaves Conservative with the smallest ohm token amount and benefits the least from the rebase yield. Conversely, Aggressive has the most ohm tokens and extinguishes nearly all of the initial stable position over time.
The biggest takeaway from this research is that the rebase yield sets a very high bar to beat when designing a rebase strategy. The strategies that outperformed Vanilla were the ones that bought more Ohm and thus benefited from receiving a higher rebase. On the other hand, the conservative strategy quadrupled the stable position, which while not a significant percent of the overall portfolio, might make investors feel psychologically safer during periods of higher volatility at the expense of returns.
As Ohm rebase yield continues to depreciate, we should expect to see much more differentiation in the returns profile and less correlation between the strategies as price appreciation starts to account for more of the returns going forward.
https://colab.research.google.com/drive/1Rf-NYsprb7c2moWWp95TN_ONFNIiAVpI?usp=sharing
This research was done in an effort to understand what the ideal trading strategy is for tokens with rebase mechanics. The rebase yield is amplified when a protocol is in the early days and has a high rebase rate. The (3,3) vanilla strategy captures 100% of the rebase yield and sets a high benchmark to beat.
Analysis is performed on a 6 month historical data time frame ranging from June 21st - December 14th 2021 and compares a custom built quantitative trading model vs (3,3). The quantitative model utilizes a crossover momentum strategy based on the 15day vs 30day Crypto Speculation Index (CSI).
The quantitative model derives a trading signal based on the crossover between the 15day and 30day CSI line using a time-invariant algorithm that measures the acceleration of the CSI signal. A shorter time frame was chosen over a 30day and 60day strategy so that the trades could be more reactive and capitalize on higher market volatility short term trends in the market.
Every 5 days, the trading algorithm is used to determine when to trade based on how strong the trading signal is. If the trading signal reaches a certain positive threshold, then a buy order is executed. If the trading signal reaches a certain negative threshold, then a sell order is executed. During the 6 month time period, there are a total of 16 trades made with varying frequency. Interestingly no trades were made in the entire month of November.
The initial starting position is split evenly between ohm and stables at a total initial portfolio value of ~$1.25m. Stables were assumed to sit idly in a wallet and receive no yield at any time. With an initial starting position of ~1.3m and trade sizes being well within ohm liquidity, variables such as fees, gas, and slippage were not included in this backtest because they would have had negligible impacts on the results. Only ohm price and rebase percentage were used as backtest data, both resampled to daily values.
The following models tested are - balanced, conservative, aggressive, and vanilla where the models that trade are differentiated only by the swap sizes.
Balanced uses fixed 10% swap for both buy and sell.
Conservative uses a 10% swap for buy but 30% for sell.
Aggressive uses 30% for buy and 10% for sell.
Vanilla is (3,3) and does not trade.

Returns at the end of the backtesting period:
Balanced = 83m
Conservative = 68m
Aggressive = 99m
Vanilla = 78m
Fig 1 shows a fairly high correlation between all of the strategy returns. This is because they all receive rebase yield to a varying degree and that is the main driver of returns, and not price appreciation. Aggressive performs the best while conservative performs the worst due to the fact that aggressive buys more ohm and maximizes the rebase yield while conservative sits on a larger position of stables. Balanced performs slightly better than buy and hold. This is hypothesized to be due to the fact that it is dipping into the stable position more to accumulate more Ohm, which taps into a higher rebase yield compared to Vanilla.


Unsurprisingly, Conservative has the biggest stable position per Fig 2, quadrupling the stable position from $~600k to over $~2.5m. Consequently this leaves Conservative with the smallest ohm token amount and benefits the least from the rebase yield. Conversely, Aggressive has the most ohm tokens and extinguishes nearly all of the initial stable position over time.
The biggest takeaway from this research is that the rebase yield sets a very high bar to beat when designing a rebase strategy. The strategies that outperformed Vanilla were the ones that bought more Ohm and thus benefited from receiving a higher rebase. On the other hand, the conservative strategy quadrupled the stable position, which while not a significant percent of the overall portfolio, might make investors feel psychologically safer during periods of higher volatility at the expense of returns.
As Ohm rebase yield continues to depreciate, we should expect to see much more differentiation in the returns profile and less correlation between the strategies as price appreciation starts to account for more of the returns going forward.
https://colab.research.google.com/drive/1Rf-NYsprb7c2moWWp95TN_ONFNIiAVpI?usp=sharing
No activity yet