capofficial / capofficial/client

Weekly Aggregate Pool Stats From API Are Stubbed

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Svelte
Stars
4
Forks
78
PR merge metrics
No merged PRs in 30d

Description

This is related to #6 but is not a duplicate as it does not explain the incorrect 1W and 1M pool performance stats.

In the pool stats data returned from `/api/pool-stats/all`, it looks like the API endpoint has been stubbed out to return the same data for both the daily and weekly stats:

![cap_pool_stats_api_response](https://user-images.githubusercontent.com/120074542/207154982-4f8a113d-d06e-4ecb-ae1d-68c27a052d29.png)

This will affect the calculation of `yearlyPerformance`, which expects to operate on an array of weekly aggregates, not daily data.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.