Skip to content

Commit

Permalink
gas refund: reduce covalent buffer to 15min
Browse files Browse the repository at this point in the history
  • Loading branch information
mwamedacen committed Jun 6, 2024
1 parent 749974a commit 31332f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/covalent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export async function getBulkTimeBucketTxsWithinInterval({
}: GetBulkTimeBucketTxsWithinInterval): Promise<CovalentTransactionV3[]> {
const timeBuckets: number[] = Array.from(
{
length: Math.ceil((endTimestamp - startTimestamp) / bucketSizeInSec) + 4, // +1h buffer
length: Math.ceil((endTimestamp - startTimestamp) / bucketSizeInSec) + 1, // +15min buffer
},
(_, index) =>
Math.floor((startTimestamp + index * bucketSizeInSec) / bucketSizeInSec),
Expand Down

0 comments on commit 31332f1

Please sign in to comment.