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
}
}
}