Let's say I add liquidity to the ETH-USDT pool, then I remove liquidity some time later.
In between that time, trades have happened and people have added and removed liquidity too.
I only have what's inside the Pair contract, so:
- reserve0
- reserse1
- price as a ratio reserve0/reserve1
I don't have access to:
- History of swaps that have occurred
- History of other people adding/removing liquidity
Is it possible to figure out how much I've earned in fees?