MCPcopy Create free account
hub / github.com/evolify/dumpfun / getFdvColor

Function getFdvColor

common/utils/color.ts:1–13  ·  view source on GitHub ↗
(fdv: number)

Source from the content-addressed store, hash-verified

1export function getFdvColor(fdv: number) {
2 if (fdv > 5000000) {
3 return "text-great"
4 } else if (fdv > 1000000) {
5 return "text-good"
6 } else if (fdv > 200000) {
7 return "text-average"
8 } else if (fdv > 50000) {
9 return "text-early"
10 } else {
11 return "text-bad"
12 }
13}
14
15export function getTimeColor(time: string) {
16 const diff = Date.now() - new Date(time).getTime()

Callers 2

DataTableFunction · 0.90
DetailFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected