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

Method isApplicableFee

src/handlers/event-message-handler.ts:339–342  ·  view source on GitHub ↗
(feeSchedule: FeeSchedule)

Source from the content-addressed store, hash-verified

337 }
338
339 const isApplicableFee = (feeSchedule: FeeSchedule) =>
340 feeSchedule.enabled &&
341 !feeSchedule.whitelists?.pubkeys?.includes(event.pubkey) &&
342 !feeSchedule.whitelists?.event_kinds?.some(isEventKindOrRangeMatch(event))
343
344 const feeSchedules = currentSettings.payments?.feeSchedules?.admission?.filter(isApplicableFee)
345 if (!Array.isArray(feeSchedules) || !feeSchedules.length) {

Callers

nothing calls this directly

Calls 1

isEventKindOrRangeMatchFunction · 0.90

Tested by

no test coverage detected