You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a second test for a zero-supply or zero-holder asset and assert the same.
Decide explicitly what these edge cases should display (e.g. "new" badge instead of a percentage) and assert on that specific output, not just "doesn't crash."
Watch out for:
These are exactly the inputs a public, gameable endpoint attracts (someone could create a zero-supply asset specifically to see what breaks) -- treat this as a correctness issue, not just a nice-to-have test.
Definition of done:
Both edge cases have explicit test coverage and don't panic or return garbage values
Context: Edge cases the ranking computation needs to not crash or misrank on.
Where:
tests/-- new test file or extend an existing analytics test fileWhat to do:
Suggested approach:
Watch out for:
Definition of done: