Skip to content
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

Short-term unblock for RUNE revenue per epoch #7117

Closed
woodenfurniture opened this issue Jun 13, 2024 · 2 comments
Closed

Short-term unblock for RUNE revenue per epoch #7117

woodenfurniture opened this issue Jun 13, 2024 · 2 comments

Comments

@woodenfurniture
Copy link
Member

woodenfurniture commented Jun 13, 2024

Overview

This is a short-term solve to unblock rFOX dashboard progression, with long-term solve in #7116.

Create a react query which can determine the total affiliate earnings in RUNE for a given block/timestamp range, using the approach detailed in #6951 (comment)

Yes, this isn't very scalable but this is only intended to unblock work in the short term.

References and additional details

For the given time range, page through actions using the /actions midgard endpoint, e.g
https://midgard.ninerealms.com/v2/actions?affiliate=ss,fromTimestamp=1718006345,timestamp=1718066345

Docs here
https://midgard.ninerealms.com/v2/doc#operation/GetActions

Acceptance Criteria

Returns the total affiliate earnings in RUNE for the given timestamp range

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

@kaladinlight
Copy link
Contributor

Just to note on this approach, using midgard /actions endpoint will only give us revs on swaps. Midgard does not index LP, savers, or loans by affiliate at this time.

@woodenfurniture
Copy link
Member Author

No longer required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants