MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCachedReferrerReward

Function getCachedReferrerReward

src/services/api/referral.ts:150–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 * Returns the reward info if the user is in a v1 campaign, null otherwise
149 */
150export function getCachedReferrerReward(): ReferrerRewardInfo | null {
151 const orgId = getOauthAccountInfo()?.organizationUuid
152 if (!orgId) return null
153 const config = getGlobalConfig()
154 const cachedEntry = config.passesEligibilityCache?.[orgId]
155 return cachedEntry?.referrer_reward ?? null
156}
157
158/**
159 * Get the cached remaining passes count from eligibility cache

Callers 4

createGuestPassesFeedFunction · 0.85
GuestPassesUpsellFunction · 0.85
descriptionFunction · 0.85
tipRegistry.tsFile · 0.85

Calls 2

getGlobalConfigFunction · 0.85
getOauthAccountInfoFunction · 0.50

Tested by

no test coverage detected