This is an apparent consensus vote.
Discussion If voting ‘Object’ to the proposal, you are encouraged to voice your reasoning on the KeeperDAO Forum. Objections that are backed by a strong argument may potentially hold more weight than a simple objection vote.
kip: 20
title: Fund an R&D grant to study a dedicated arbitrage service for TWAMM
author: 0x70626a
status: last-call
tags: none
created: 2022-03-30
replaced-by: none
replaces: none
Fund research and development of arbitrage facilities for on-chain liquidity pools, with immediate application to the time-weighted average market maker (TWAMM).
AC and I are software developers with over 35 years of experience in FPGA tools (simulation, place & route, analysis), web technology, and building tooling for blockchain ecosystems.
We’ve built Web3 tooling and infrastructure products for our past startups, MakerDAO, Aave, Balancer, Uniswap, the Graph, and others.
We have been independently researching and developing TWAMM for the past 4+ months. See below our various monthly blog posts on TWAMM:
We’re building a new type of AMM purpose-built for time-insensitive trades that happen over multiple blocks. These trades can range from very large — think OTC trades for DAOs, Funds, whales, to small trades for retail (dollar-cost averaging).
As this is new and unexplored territory, there will be a heavy emphasis on research and development like optimal AMM designs, fee structures, gas optimizations, attack vectors, testing, and simulations.
TLDR; Prove TWAMM with KeeperDAO (MEV share + “right to first arbitrage”) is more profitable for LPs than Uniswap V2 fee structure.
Arbitrageurs play a very important role to ensure the proper functionality of TWAMM and keeping the asset prices in the liquidity pools in line with the wider market. Unlike traditional AMMs, when there’s an active long-term swap, the cost to interact with the underlying AMM increases every block. See the section under inactivity in our last blog post for more information: https://mirror.xyz/0slippage.eth/5zKJW4Zx9zYHpB4jNln16HuU8d8EtawmA17usNfIje4
When there are frequent arbitrages happening, traders get lower slippage and a significantly better return than trading on DEX aggregators for large swaps. Here’s how a pseudo-TWAMM performed vs 1Inch: https://twitter.com/0xdramaone/status/1490397794452054018. The arbitrage powered trade netted $5.4M vs $3.5M quoted by 1Inch, a +54% improvement!
Similar to Uniswap V2, we could build TWAMM with a flat fee and allow arbitrageurs in the free market to correct the prices and extract all the MEV. However, we’ve seen how that has adversely affected LPs in the long run — see https://explore.flashbots.net/. Uniswap V2 is the largest MEV leaker accounting for 64% of MEV extracting arbitrage trades, something that could have been avoided: https://twitter.com/haydenzadams/status/1504543109396504577
TWAMM’s underlying AMM will allow LPs to passively deposit tokens similar to Uniswap V2 across the entire range from 0 → infinity. Additionally, we expect almost the entirety of the trade traffic on the underlying AMM to be from arbitrageurs. Therefore, we are interested in researching the advantages a system like KeeperDAO provides in order to add MEV protection for passive LPs: https://twitter.com/hasufl/status/1504524010717077504
This grant will focus on the delivery of methods for efficient arbitrage of TWAMM contracts, in collaboration with developers at KeeperDAO. Though focused on TWAMM, we expect that any findings will generalize to other types of AMM.
Research topics will include:
The grant is structured as a 3-month research and development investment, in the form of:
These amounts are derived from the KeeperDAO Contributor Incentive Guidelines. We computed three months total compensation for two L4 engineers, then discounted it by 20%. We believe this is a fair balance between recognizing that we will not be full-time contributors for KeeperDAO, but that we will be building in concert with KeeperDAO engineers, and ultimately contributing potentially large amounts of value.
Receiving the majority of the value in stable coins will help us plan and cover living expenses and other operational costs more easily so that we can dedicate our full time to the development of TWAMM. It will also reduce the need to liquidate ROOK to cover those costs.
However because we also value long-term incentive alignment, we include a 200 ROOK completion bonus.