-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add earnings volume endpoint #331
Conversation
COALESCE(event.data->>'amount', '0')::bigint | ||
) AS "total_rewards_volume", | ||
SUM( | ||
COALESCE(event.data->>'pricePaid', '0')::bigint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pricePaid
field does not exist on any event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small comment. But I think it can be deployed without it.
LEFT JOIN bid AS winning_bid ON "data"->>'winningBid' = winning_bid.id | ||
WHERE | ||
"event"."data"->>'isTypeOf' IN ( | ||
'ChannelPaymentMadeEventData', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'ChannelPaymentMadeEventData', | |
'ChannelPaymentMadeEventData', | |
'ChannelRewardClaimedEventData', | |
'ChannelRewardClaimedAndWithdrawnEventData', |
I think you should have to more event types for total rewards volume
* Add earnings volume endpoint * CR fix v1 * Correct field name
No description provided.