MCPcopy Create free account
hub / github.com/cameri/nostream / isApplicableFee

Method isApplicableFee

src/app/static-mirroring-worker.ts:289–292  ·  view source on GitHub ↗
(feeSchedule: FeeSchedule)

Source from the content-addressed store, hash-verified

287 }
288
289 const isApplicableFee = (feeSchedule: FeeSchedule) =>
290 feeSchedule.enabled &&
291 !feeSchedule.whitelists?.pubkeys?.includes(event.pubkey) &&
292 !feeSchedule.whitelists?.event_kinds?.some(isEventKindOrRangeMatch(event))
293
294 const feeSchedules = currentSettings.payments?.feeSchedules?.admission?.filter(isApplicableFee)
295

Callers

nothing calls this directly

Calls 1

isEventKindOrRangeMatchFunction · 0.90

Tested by

no test coverage detected