econia-labs / emojicoin-dot-fun

https://emojicoin-dot-fun.vercel.app
Other
6 stars 14 forks source link

[ECO-2286] Fix the incorrect chart bar times #295

Closed xbtmatt closed 1 month ago

xbtmatt commented 1 month ago

Description

The chart is currently not dividing the time returned by a function that takes in a bigint of microseconds, so it thinks it's nearly the year 50,000.

During the big update for indexer v2, the server-env.ts file lost its import "server-only" directive at the top of the file. Currently it can be accidentally imported to client files. I've also fixed that

Testing

I'll add unit tests for some of this logic later, but for now we just have to visually ensure it's correct. It's extremely obviously wrong at the moment, so just check that the latest bar on the chart is '24 and not the year 50447 (will display as '47) and that means it's working correctly.

Checklist

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ā†—ļøŽ

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Oct 10, 2024 1:23am
emojicoin-dot-fun-docs āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Oct 10, 2024 1:23am