Opty-Fi / Bounties

Opty-Fi sponsored bounties
0 stars 0 forks source link

Bounty OptyFi Suhiswap Pools Dataset #2

Open fiqureshi1 opened 2 years ago

fiqureshi1 commented 2 years ago

Bounty OptyFi Sushiswap Pools Dataset

Instructions

Create a subgraph for SushiSwap pools (aka pairs)
For each pool (aka pair), produce a table where each row represents a swap, mint or burn event
The table should capture the following fields:

timestamp
blocknumber
event type: 'mint', 'burn', 'swap'
reserve0_before
reserve0_after
reserve1_before
reserve1_after
swap0_in
swap0_out
swap1_in
swap1_out
swap_fee_token
swap_fee_pct
deposit0
deposit1
withdraw0
withdraw1

For inspiration see https://thegraph.com/explorer/subgraph?id=0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0-0&view=Overview
The subgraph should be queriable for:

timestamp range
blockrange
single pair or list of pairs (pool addresses)
list of event types

Test Cases For 4 pairs (USDC-WETH, WETH-BWTC, USDT-WETH, DAI-USDC) please provide test cases (links to etherscan contract values or events) that confirm above table results. For each pair, test cases should:

cover 4 rows of each event type rows in above table
5 consecutive rows
miklt commented 2 years ago

Hi, I would like to help with this one.

uwe commented 2 years ago

@miklt there has already been another builder that expressed interest in this bounty on the Discord server.