@gearbox-protocol/airdrop
Advanced tools
Comparing version 1.4.4 to 1.4.5
@@ -119,3 +119,3 @@ "use strict"; | ||
const nextBlock = i === keys.length - 1 ? toBlock : keys[i + 1]; | ||
if (!totalSupplyArr[i].isZero()) { | ||
if (!totalSupplyArr[i].isZero() && curBlock <= nextBlock) { | ||
total = total.add(balancesArr[i] | ||
@@ -122,0 +122,0 @@ .mul(nextBlock - curBlock) |
@@ -73,3 +73,3 @@ "use strict"; | ||
const nextBlock = i === keys.length - 1 ? toBlock : keys[i + 1]; | ||
if (!totalSupplyArr[i].isZero()) { | ||
if (!totalSupplyArr[i].isZero() && curBlock <= nextBlock) { | ||
total = total.add(balancesArr[i] | ||
@@ -76,0 +76,0 @@ .mul(nextBlock - curBlock) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UniversalQuery = void 0; | ||
const ERROR_10K = "query returned more than 10000 results"; | ||
const ERROR_10K = [ | ||
"query returned more than 10000 results", | ||
"range with a cap of 10k logs", | ||
]; | ||
class UniversalQuery { | ||
@@ -67,3 +70,3 @@ static async query({ action, initialOffset, start, end, loggerPrefix, loggerEnabled, }) { | ||
typeof e.message === "string" && | ||
e.message.toLowerCase().includes(ERROR_10K)); | ||
ERROR_10K.some(str => e.message.toLowerCase().includes(str))); | ||
} | ||
@@ -70,0 +73,0 @@ } |
{ | ||
"name": "@gearbox-protocol/airdrop", | ||
"description": "Airdrop center for Gearbox protocol", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"homepage": "https://gearbox.fi", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52403
1121