• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pooltogether / v4-utils-js / 3620802998

pending completion
3620802998

push

github

GitHub
Bump @types/node from 16.11.19 to 18.11.10

38 of 56 branches covered (67.86%)

Branch coverage included in aggregate %.

370 of 391 relevant lines covered (94.63%)

1572.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/calculate/calculateDrawTimestampOffsets.ts
1
import { Draw, PrizeDistribution } from '../types';
2

3
export function calculateDrawTimestampOffsets(
×
4
    prizeDistribution: PrizeDistribution,
5
    draw: Draw
6
) {
7
    const endTimestampOffset = prizeDistribution.endTimestampOffset;
×
8
    const startTimestampOffset = draw.beaconPeriodSeconds;
×
9
    const startTime = draw.timestamp.sub(startTimestampOffset);
×
10
    const endTime = draw.timestamp.sub(endTimestampOffset);
×
11

12
    return [startTime, endTime];
×
13
}
14

15
export default calculateDrawTimestampOffsets;
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc