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

Expose weight calculation given epochs #260

Open
kerber0x opened this issue Jan 30, 2024 · 0 comments
Open

Expose weight calculation given epochs #260

kerber0x opened this issue Jan 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kerber0x
Copy link
Contributor

If you want to report a security issue, please follow our security policy: https://github.com/White-Whale-Defi-Platform/migaloo-core/blob/main/SECURITY.md


Improvement description

To display the rewards correctly, the frontend needs information about the weight of an address in the whale lair.

Currently, the weight epoch returns the weight for an address on a given timestamp, or the current timestamp otherwise.

The frontend needs some sort of cumulative weight calculation, similar to what it's done when claiming the rewards.


Additional context

Add any other context here, code snippets, json responses, screenshots and so on.

Code sample
Logs
Screenshots
@kerber0x kerber0x added the enhancement New feature or request label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant