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

@gearbox-protocol/airdrop

Package Overview
Dependencies
Maintainers
9
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.6 to 1.4.7

12

dist/rewards/creditRewards.js

@@ -130,5 +130,11 @@ "use strict";

const cm = sdk_1.ICreditManagerV2__factory.connect(creditManager, provider);
const cc = sdk_1.ICreditConfigurator__factory.connect(await cm.creditConfigurator(), provider);
const creditFacadesEvents = await cc.queryFilter(cc.filters.CreditFacadeUpgraded(), 0, toBlock);
const events = (await Promise.all(creditFacadesEvents.map(cfe => CreditRewards.query(cfe.args.newCreditFacade, provider, toBlock)))).flat(1);
// get all historical creditConfigurators for this cm
const ccAddrs = (await cm.queryFilter(cm.filters.NewConfigurator(), undefined, toBlock)).map(e => e.args.newConfigurator);
// get all historical creditFacades for this cm
const cfAddrs = (await Promise.all(ccAddrs.map(async (ccAddr) => {
const cc = sdk_1.ICreditConfigurator__factory.connect(ccAddr, provider);
const cfUpgradedEvents = await cc.queryFilter(cc.filters.CreditFacadeUpgraded(), undefined, toBlock);
return cfUpgradedEvents.map(e => e.args.newCreditFacade);
}))).flat();
const events = (await Promise.all(cfAddrs.map(addr => CreditRewards.query(addr, provider, toBlock)))).flat(1);
return events;

@@ -135,0 +141,0 @@ }

{
"name": "@gearbox-protocol/airdrop",
"description": "Airdrop center for Gearbox protocol",
"version": "1.4.6",
"version": "1.4.7",
"homepage": "https://gearbox.fi",

@@ -6,0 +6,0 @@ "keywords": [

@@ -22,1 +22,5 @@ # Gearbox Rewards

3. Push new files into repository
### Important information for contributors
As a contributor to the Gearbox Protocol GitHub repository, your pull requests indicate acceptance of our Gearbox Contribution Agreement. This agreement outlines that you assign the Intellectual Property Rights of your contributions to the Gearbox Foundation. This helps safeguard the Gearbox protocol and ensure the accumulation of its intellectual property. Contributions become part of the repository and may be used for various purposes, including commercial. As recognition for your expertise and work, you receive the opportunity to participate in the protocol's development and the potential to see your work integrated within it. The full Gearbox Contribution Agreement is accessible within the [repository](/ContributionAgreement) for comprehensive understanding. [Let's innovate together!]
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