@merkl/api 0.21.38 → 0.21.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,7 @@ export class DynamicDataService {
87
87
  // 2.b.2 Daily rewards is the sum of all daily rewards of the campaigns
88
88
  const timespan = endTimestamp - startTimestamp;
89
89
  const isWithinTimespan = moment().unix() > startTimestamp && moment().unix() < endTimestamp;
90
- const dayspan = Math.max(1, Math.floor(timespan / DAY));
90
+ const dayspan = Math.max(1, timespan / DAY);
91
91
  let dailyAmount = isWithinTimespan ? BigInt(record.campaign.amount) / BigInt(dayspan) : BigInt(0);
92
92
  let rewardToken;
93
93
  try {