Skip to content

Sample Bounty template #25

@dhruvinparikh

Description

@dhruvinparikh

Add UniswapV2 to Opty.fi's megagraph

Prize Bounty

1000 USDC

Description

  1. Create a subgraph for Uniswap V2 pools (aka pairs)
  2. For each pool (aka pair), produce a table where each row represents a swap, mint or burn event
  3. 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
}

The subgraph shall be queried via:

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

Helpful links

Submission

  • Follow project contribution guide
  • Please utilize opty.fi's defi-legos library as much as you can

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions