Expose weight calculation given epochs
Opened this issue · 0 comments
kerber0x commented
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