Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gearbox-protocol/airdrop

Package Overview
Dependencies
Maintainers
7
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gearbox-protocol/airdrop - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

2

dist/rewards/creditRewards.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc