@gearbox-protocol/sdk 1.16.8 → 1.16.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -62,7 +62,9 @@ var CreditRewards = /** @class */ (function () {
|
|
|
62
62
|
case 1:
|
|
63
63
|
rewards = _a.sent();
|
|
64
64
|
rewardToAddress = rewards.filter(function (r) { return r.address === address.toLowerCase(); });
|
|
65
|
-
return [2 /*return*/,
|
|
65
|
+
return [2 /*return*/, rewardToAddress.length === 0
|
|
66
|
+
? ethers_1.BigNumber.from(0)
|
|
67
|
+
: rewardToAddress[0].amount];
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
});
|
|
@@ -3,5 +3,7 @@ import { DieselTokenTypes } from "../tokens/gear";
|
|
|
3
3
|
import { RangedValue } from "./range";
|
|
4
4
|
export declare const poolRewardsPerBlock: Record<NetworkType, Record<DieselTokenTypes, RangedValue>>;
|
|
5
5
|
export declare const GEAR_PER_BLOCK: Record<DieselTokenTypes, number>;
|
|
6
|
+
export declare const GEAR_PER_BLOCK_GIP30: Record<DieselTokenTypes, number>;
|
|
6
7
|
export declare const GOERLI_BLOCK = 7694030;
|
|
7
8
|
export declare const MAINNET_BLOCK = 15820000;
|
|
9
|
+
export declare const MAINNET_BLOCK_GIP30 = 15977000;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAINNET_BLOCK = exports.GOERLI_BLOCK = exports.GEAR_PER_BLOCK = exports.poolRewardsPerBlock = void 0;
|
|
3
|
+
exports.MAINNET_BLOCK_GIP30 = exports.MAINNET_BLOCK = exports.GOERLI_BLOCK = exports.GEAR_PER_BLOCK_GIP30 = exports.GEAR_PER_BLOCK = exports.poolRewardsPerBlock = void 0;
|
|
4
4
|
var ethers_1 = require("ethers");
|
|
5
5
|
var range_1 = require("./range");
|
|
6
6
|
exports.poolRewardsPerBlock = {
|
|
@@ -26,6 +26,13 @@ exports.GEAR_PER_BLOCK = {
|
|
|
26
26
|
dWBTC: 913,
|
|
27
27
|
dwstETH: 1636,
|
|
28
28
|
};
|
|
29
|
+
exports.GEAR_PER_BLOCK_GIP30 = {
|
|
30
|
+
dDAI: 2283,
|
|
31
|
+
dUSDC: 3101,
|
|
32
|
+
dWETH: 4014,
|
|
33
|
+
dWBTC: 457,
|
|
34
|
+
dwstETH: 0,
|
|
35
|
+
};
|
|
29
36
|
exports.GOERLI_BLOCK = 7694030;
|
|
30
37
|
exports.poolRewardsPerBlock.Goerli.dDAI.addValue(exports.GOERLI_BLOCK, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK.dDAI).div(100));
|
|
31
38
|
exports.poolRewardsPerBlock.Goerli.dUSDC.addValue(exports.GOERLI_BLOCK, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK.dUSDC).div(100));
|
|
@@ -39,3 +46,9 @@ exports.poolRewardsPerBlock.Mainnet.dWETH.addValue(exports.MAINNET_BLOCK, ethers
|
|
|
39
46
|
exports.poolRewardsPerBlock.Mainnet.dWBTC.addValue(exports.MAINNET_BLOCK, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK.dWBTC).div(100));
|
|
40
47
|
exports.poolRewardsPerBlock.Mainnet.dwstETH.addValue(exports.MAINNET_BLOCK, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK.dwstETH).div(100));
|
|
41
48
|
// poolRewardsPerBlock.Goerli.dDAI.addValue(90000, BigNumber.from(0));
|
|
49
|
+
exports.MAINNET_BLOCK_GIP30 = 15977000;
|
|
50
|
+
exports.poolRewardsPerBlock.Mainnet.dDAI.addValue(exports.MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dDAI).div(100));
|
|
51
|
+
exports.poolRewardsPerBlock.Mainnet.dUSDC.addValue(exports.MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dUSDC).div(100));
|
|
52
|
+
exports.poolRewardsPerBlock.Mainnet.dWETH.addValue(exports.MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dWETH).div(100));
|
|
53
|
+
exports.poolRewardsPerBlock.Mainnet.dWBTC.addValue(exports.MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dWBTC).div(100));
|
|
54
|
+
exports.poolRewardsPerBlock.Mainnet.dwstETH.addValue(exports.MAINNET_BLOCK_GIP30, ethers_1.BigNumber.from(10).pow(18).mul(exports.GEAR_PER_BLOCK_GIP30.dwstETH).div(100));
|