# Cost of Fee Switch
_activating the protocol fee comes at a cost_
---
## Agenda
1. Uniswap model
2. Attack
3. Funding mechanism
5. Teachings
---
## Uniswap model
π¦
---
### Uniswap v2 fork competition game
Model:
- 2 competing AMMs
- A β B pools
- Swappers allocation: cost β price impact
- LPs allocation: revenue β volume

---
### Swappers allocation
Price impact:

---
### Swappers allocation
Utility:

See Angeris et al: "An analysis of Uniswap markets", 2019
<!--  -->
---
### Swappers allocation
π§ allocate more towards AMM with larger reserves
---
### LP allocation

π§ marginal allocation 100% towards AMM with larger volume
---
### Equilibrium under network effects


---
## Attack
Simple model:
- fee switched on forever
Intuition:
- If fee switched on, then no-fee competitor captures more than its fair share.
- Use this extra volume to fund a subsidy.
- With enough subsidy, network effects move equilibrium towards competitor.
---
### Fee switch

---
### Subsidy (vampire attack)
π§ at equilibrium, subsidy makes LP allocation indifferent
π§ equilibrium +Ξ΅ counteracts network effects: **liquidity flight**

---
### Total cost
As a function of ratio of LP re-allocating:
β οΈ ratio will be lower because of switching costs (brand, smart contract risk, legalβ¦).

V = 10^8 USD
R = 10^7 USD
R_1(0) = 100%
---
## Funding mechanism
Intuition:
- AMM 2 has **no fee switch in its capture surface**
- raise debt rather than equity to fund the subsidy
- funding via governance mechanism or crowdfunding
---
### Subsidy funding

---
### Source of funds
π§ avoid equity-like funding: capture via wealth condensation
π§ if governance surface: `Debt(GovernanceFutureRevenue)`
- parameter auctions
- proposal auctions
- auctions & futarchy: https://ethresear.ch/t/governance-mixing-auctions-and-futarchy/10772
π§ crowdfunding: LPs and swappers will fund if more efficient (coasean argument)

---
## Teachings
_what does this prove about governance?_
---
### Upper limit on eXtractible Value
π§ XV is the present value extracted by UNI tokenholders out of the protocol
π§ XV is limited by the attack:
- either Ο > 0 is fixed: volume will be reduced ultimately to 0
- either Ο is moduldated to limit liquidity flight

---
### Internalize externalities
π§ forking & smart contracts pressure actual governance
π§ grim trigger on UNI tokenholders
---
# π π§
twitter.com/butterymoney
twitter.com/lajarre
https://bit.ly/3QvNsQj

{"title":"Cost of the Fee Switch","description":"yes, activating the protocol fee has a cost!","contributors":"[{\"id\":\"ffd4c12d-9295-4469-9c84-145f40f08df8\",\"add\":5660,\"del\":2379}]"}