MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getOffers

Function getOffers

src/lib/adRewards.js:277–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 };
276 },
277 getOffers() {
278 return OFFERS.map((offer) => ({
279 ...offer,
280 durationLabel: formatDurationRange(
281 offer.minDurationMs || offer.durationMs,
282 offer.maxDurationMs || offer.durationMs,
283 ),
284 }));
285 },
286 getRemainingMs() {
287 return Math.max(0, state.remainingMs || state.adFreeUntil - Date.now());
288 },

Callers

nothing calls this directly

Calls 1

formatDurationRangeFunction · 0.85

Tested by

no test coverage detected