MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCachedReferrerReward

Function getCachedReferrerReward

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

Source from the content-addressed store, hash-verified

163 * Returns the reward info if the user is in a v1 campaign, null otherwise
164 */
165export function getCachedReferrerReward(): ReferrerRewardInfo | null {
166 const orgId = getCurrentReferralOrganizationUuid()
167 if (!orgId) return null
168 const config = getGlobalConfig()
169 const cachedEntry = config.passesEligibilityCache?.[orgId]
170 return cachedEntry?.referrer_reward ?? null
171}
172
173/**
174 * 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.50

Tested by

no test coverage detected