@gearbox-protocol/sdk 3.0.0-next.286 → 3.0.0-next.288
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.
|
@@ -59,7 +59,7 @@ export interface GetExtraRewardsProps {
|
|
|
59
59
|
tokensList: Record<Address, TokenData>;
|
|
60
60
|
}
|
|
61
61
|
export interface GetLmRewardsProps {
|
|
62
|
-
pools:
|
|
62
|
+
pools: Record<Address, PoolData>;
|
|
63
63
|
baseRewardPoolsInfo: Record<string, FarmInfo>;
|
|
64
64
|
currentTokenData: Record<SupportedToken, Address>;
|
|
65
65
|
tokensList: Record<Address, TokenData>;
|
|
@@ -11,10 +11,13 @@ const endpoint_1 = require("../core/endpoint");
|
|
|
11
11
|
const types_1 = require("../types");
|
|
12
12
|
const math_1 = require("../utils/math");
|
|
13
13
|
const merklAPI_1 = require("./merklAPI");
|
|
14
|
+
const BROKEN_CAMPAIGNS = {
|
|
15
|
+
"11136065905617273958": true,
|
|
16
|
+
};
|
|
14
17
|
class GearboxRewardsApi {
|
|
15
18
|
static async getExtraRewards({ chainId, tokensList }) {
|
|
16
19
|
const res = await axios_1.default.get(merklAPI_1.MerkleXYZApi.getGearboxCampaignsUrl());
|
|
17
|
-
const currentActiveCampaigns = res.data.filter(c => c.status === "LIVE" && c.chainId === chainId);
|
|
20
|
+
const currentActiveCampaigns = res.data.filter(c => c.status === "LIVE" && c.chainId === chainId && !BROKEN_CAMPAIGNS[c.id]);
|
|
18
21
|
const aprIdsList = currentActiveCampaigns
|
|
19
22
|
.map(c =>
|
|
20
23
|
// apr token for campaigns with a single reward is obvious
|