A tool to track PNL across AMM pools with staking rewards included. Figuring out how to map rewards claimed by account to each specific pool was tricky and required digging into the two large staking rewards contract variants. We developed a heuristic approach that seems to work well so far.
How It's Made
This is a DAPP built with clojurescript. We start by querying TheGraph, which has a nifty endpoint that allows us to figure out all the uniswap pools for which any account has ever provided liquidity to, and from there we start digging into ethereum event logs and poking on smart contracts via a web3 provider.