@gearbox-protocol/airdrop
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -7,4 +7,4 @@ "use strict"; | ||
const creditRewardParams_1 = require("./creditRewardParams"); | ||
const fetchService_1 = require("./fetchService"); | ||
const range_1 = require("./range"); | ||
const universalQuery_1 = require("./universalQuery"); | ||
class CreditRewards { | ||
@@ -147,3 +147,3 @@ static async computeReward(creditManager, address, provider, toBlock) { | ||
}; | ||
const events = await fetchService_1.UniversalQuery.query({ | ||
const events = await universalQuery_1.UniversalQuery.query({ | ||
action: (start, end) => cf.queryFilter({ | ||
@@ -150,0 +150,0 @@ address: cf.address, |
@@ -38,3 +38,3 @@ "use strict"; | ||
dwstETH: 0, | ||
dFRAX: 0, | ||
dFRAX: 641, | ||
}; | ||
@@ -62,3 +62,3 @@ const GOERLI_BLOCK = 7694030; | ||
exports.poolRewardsPerBlock.Mainnet.dwstETH.addValue(MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dwstETH).div(100)); | ||
const MAINNET_BLOCK_FRAX = 15977000; | ||
const MAINNET_BLOCK_FRAX = 16720000; | ||
exports.poolRewardsPerBlock.Mainnet.dFRAX.addValue(MAINNET_BLOCK_FRAX, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dFRAX).div(100)); |
@@ -1,5 +0,6 @@ | ||
import { NetworkType } from "@gearbox-protocol/sdk"; | ||
import { NetworkType, SupportedToken } from "@gearbox-protocol/sdk"; | ||
import { TransferEvent } from "@gearbox-protocol/sdk/lib/types/@openzeppelin/contracts/token/ERC20/IERC20"; | ||
import { BigNumber, providers } from "ethers"; | ||
import { RangedValue } from "./range"; | ||
export declare const POOL_REWARDS_DIESEL_TOKENS: Array<SupportedToken>; | ||
export interface Reward { | ||
@@ -6,0 +7,0 @@ address: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PoolRewards = void 0; | ||
exports.PoolRewards = exports.POOL_REWARDS_DIESEL_TOKENS = void 0; | ||
const sdk_1 = require("@gearbox-protocol/sdk"); | ||
const ethers_1 = require("ethers"); | ||
const fetchService_1 = require("./fetchService"); | ||
const poolRewardParams_1 = require("./poolRewardParams"); | ||
const range_1 = require("./range"); | ||
const universalQuery_1 = require("./universalQuery"); | ||
exports.POOL_REWARDS_DIESEL_TOKENS = [ | ||
"dDAI", | ||
"dUSDC", | ||
"dWETH", | ||
"dWBTC", | ||
"dwstETH", | ||
"dFRAX", | ||
]; | ||
class PoolRewards { | ||
@@ -115,3 +123,3 @@ static async computeReward(dieselToken, address, provider, networkType, toBlock) { | ||
const token = sdk_1.IERC20__factory.connect(dieselToken, provider); | ||
const events = await fetchService_1.UniversalQuery.query({ | ||
const events = await universalQuery_1.UniversalQuery.query({ | ||
action: (start, end) => token.queryFilter(token.filters.Transfer(), start, end), | ||
@@ -118,0 +126,0 @@ start: 0, |
{ | ||
"name": "@gearbox-protocol/airdrop", | ||
"description": "Airdrop center for Gearbox protocol", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"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
52291
1118