Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 586 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 586 Bytes

Convex-subgraph

Hosted service: https://thegraph.com/hosted-service/subgraph/0xsign/convex

Listen to all RewardPaid events to collect and accumulate account rewards information.

Query user stats:

query getRewards($user_id: ID!) {
  user(id: $user_id) {
    rewards {
      pool
      stakingToken
      rewardToken
      paidAmountCumulative
    }
  }
}

Query platform stats:

query getRewards($platform_id: ID!) {
  platform(id: $platform_id) {
    rewards {
      pool
      stakingToken
      rewardToken
      paidAmountCumulative
    }
  }
}