Skip to content

Instantly share code, notes, and snippets.

@Philogy
Philogy / uniswap-v3-fees.py
Created January 17, 2024 20:05
Very simple model of Uniswap V3 Fees
from attrs import define
@define
class Tick:
fee_growth_outside: int
def cross(self, fee_growth_global: int):
self.fee_growth_outside = fee_growth_global - self.fee_growth_outside