MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / getRiskLevelColors

Function getRiskLevelColors

src/utils/risk_levels.tsx:64–66  ·  view source on GitHub ↗
(risk: number)

Source from the content-addressed store, hash-verified

62 * @returns A RiskLevelColors object that corresponds to the risk level and contains info for the color of the risk level
63 */
64export function getRiskLevelColors(risk: number): RiskLevelColors {
65 return RISK_LEVELS.find((level) => risk >= level.riskFloor) || LOW;
66}

Callers 3

RiskIndicatorFunction · 0.90
TransfershipEdgeFunction · 0.90
AddressNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected