(feeSchedule: FeeSchedule)
| 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) { |
nothing calls this directly
no test coverage detected