Uniswap / v2-subgraph

Uniswap V2 subgraph 📊
https://thegraph.com/explorer/subgraph/uniswap/uniswap-v2
GNU General Public License v3.0
409 stars 740 forks source link

Plans on adding support for Uniswap liquidity mining? #58

Open lucaswalter opened 3 years ago

lucaswalter commented 3 years ago

Pretty new to the graph protocol so forgive me if this is a dumb question. I am currently trying to query all of my transactions done on Uniswap and didn't see any mention of the Uniswap liquidity mining transactions.

Is it currently possible or are there any plans to add support for querying that data?

Uniswap Liquidity mining reference: https://app.uniswap.org/#/uni

benesjan commented 3 years ago

Hello, not a direct response to your question but I had the same need so I created a separate subgraph with this functionality.

You can combine the data from these two sources to get the desired result.

Support in the official subgraph would be great though :blush:

lucaswalter commented 3 years ago

That's exactly what I was looking for, thanks!!

benesjan commented 3 years ago

What you will also probably need are the unclaimed rewards. Those are not in the subgraph and you will need to fetch them from the contract directly using some web3 library (e.g. web3.js, ether.js, ...).