Page MenuHomePhabricator

[metachronik, charts.e.cash] Correctly calculate cumulative agora usd volume
ClosedPublic

Authored by bytesofman on Wed, Nov 5, 17:55.

Details

Summary

The current approach is not actually cumulative, as it shows decreasing cumulative volume with decreasing price.

Calculate the USD value every day so we can properly calculate the cumulative value.

Test Plan

npm test, CI, check screenshots.

current prod (does not make sense, cumulative volume cannot decrease):

image.png (705×1 px, 93 KB)

after this diff:

image.png (588×1 px, 197 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

back out unrelated changes

drop unused migration script

make the schema consistent for xec and usd values

bytesofman published this revision for review.Wed, Nov 5, 19:37
This revision is now accepted and ready to land.Wed, Nov 5, 22:04