@merkl/api 0.20.86 → 0.20.88

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.
@@ -46,9 +46,9 @@ export class ERCMultiTokenDynamicData {
46
46
  i++;
47
47
  // Specific to Clober so far
48
48
  try {
49
- const bookManager = CloberPoolInterface.decodeFunctionResult("bookManager", result[i + 1].returnData)[0];
50
- const bookPairs = CloberPoolInterface.decodeFunctionResult("getBookPairs", result[i + 2].returnData);
51
- const liquidity = CloberPoolInterface.decodeFunctionResult("getLiquidity", result[i + 3].returnData);
49
+ const bookManager = CloberPoolInterface.decodeFunctionResult("bookManager", result[i].returnData)[0];
50
+ const bookPairs = CloberPoolInterface.decodeFunctionResult("getBookPairs", result[i + 1].returnData);
51
+ const liquidity = CloberPoolInterface.decodeFunctionResult("getLiquidity", result[i + 2].returnData);
52
52
  const liquidityToken0 = BigInt(liquidity[0].reserve) + BigInt(liquidity[0].cancelable) + BigInt(liquidity[0].claimable);
53
53
  const liquidityToken1 = BigInt(liquidity[1].reserve) + BigInt(liquidity[1].cancelable) + BigInt(liquidity[1].claimable);
54
54
  const bookPair0 = bookPairs[0] < bookPairs[1] ? bookPairs[0] : bookPairs[1];
@@ -131,7 +131,7 @@ export class ERCMultiTokenDynamicData {
131
131
  })) ?? 0;
132
132
  tvl = totalSupply * priceTargetToken;
133
133
  }
134
- i += 4;
134
+ i += 3;
135
135
  const priceRewardToken = await TokenService.getRewardTokenPrice(campaign);
136
136
  const rewardTokens = await TokenService.findManyOrCreate([
137
137
  { chainId: campaign.chainId, address: campaign.rewardToken },
@@ -86,7 +86,9 @@ export declare enum swapxCampaigns {
86
86
  Swapx_wstkscUSD_scUSD_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD wstkscUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
87
87
  Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb",
88
88
  Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 wstkscUSD gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
89
- Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51"
89
+ Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
90
+ Swapx_wstkscUSD_aSonUSDC_aSonUSDC_gauge_Swapx = "Swapx wstkscUSD/aSonUSDC aSonUSDC gauge Swapx 0xf248b0EF6d45Aa492C73699B71748b5D1a6770C6",
91
+ Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/aSonUSDC wstkscUSD gauge Swapx 0xF2a497F783C6bfEe0670757462a31f9429fdE53d"
90
92
  }
91
93
  export declare enum celoCampaigns {
92
94
  UniswapV3_cUSD_USDT_Celo = "UniswapV3 cUSD/USDT Celo 0x5dC631aD6C26BEA1a59fBF2C2680CF3df43d249f",
@@ -153,6 +153,8 @@ export var swapxCampaigns;
153
153
  swapxCampaigns["Swapx_wstkscUSD_scUSD_scUSD_gauge_Swapx"] = "Swapx wstkscUSD/scUSD scUSD gauge Swapx 0xEd08f5caD599E7F523d6B3FD598005B43aA003bb";
154
154
  swapxCampaigns["Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/bUSDC.e-20 wstkscUSD gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51";
155
155
  swapxCampaigns["Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx"] = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51";
156
+ swapxCampaigns["Swapx_wstkscUSD_aSonUSDC_aSonUSDC_gauge_Swapx"] = "Swapx wstkscUSD/aSonUSDC aSonUSDC gauge Swapx 0xf248b0EF6d45Aa492C73699B71748b5D1a6770C6";
157
+ swapxCampaigns["Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/aSonUSDC wstkscUSD gauge Swapx 0xF2a497F783C6bfEe0670757462a31f9429fdE53d";
156
158
  })(swapxCampaigns || (swapxCampaigns = {}));
157
159
  export var celoCampaigns;
158
160
  (function (celoCampaigns) {
@@ -932,6 +934,34 @@ const EtherlinkInterfaceCampaigns = {
932
934
  },
933
935
  };
934
936
  const SwapxInterfaceCampaigns = {
937
+ [swapxCampaigns.Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx]: {
938
+ campaignType: Campaign.CLAMM,
939
+ computeChainId: ChainId.SONIC,
940
+ hooks: [],
941
+ poolAddress: "0x151283BEfA4301619b1Ec2BdAA23A2e49B41D8E7",
942
+ whitelist: ["0xF2a497F783C6bfEe0670757462a31f9429fdE53d"],
943
+ blacklist: [],
944
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
945
+ forwarders: [],
946
+ isOutOfRangeIncentivized: false,
947
+ weightFees: 2000,
948
+ weightToken0: 4000,
949
+ weightToken1: 4000,
950
+ },
951
+ [swapxCampaigns.Swapx_wstkscUSD_aSonUSDC_aSonUSDC_gauge_Swapx]: {
952
+ campaignType: Campaign.CLAMM,
953
+ computeChainId: ChainId.SONIC,
954
+ hooks: [],
955
+ poolAddress: "0x151283BEfA4301619b1Ec2BdAA23A2e49B41D8E7",
956
+ whitelist: ["0xf248b0EF6d45Aa492C73699B71748b5D1a6770C6"],
957
+ blacklist: [],
958
+ url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
959
+ forwarders: [],
960
+ isOutOfRangeIncentivized: false,
961
+ weightFees: 2000,
962
+ weightToken0: 4000,
963
+ weightToken1: 4000,
964
+ },
935
965
  [swapxCampaigns.Swapx_SWPx_USDCe_Swapx]: {
936
966
  campaignType: Campaign.CLAMM,
937
967
  computeChainId: ChainId.SONIC,
@@ -44,7 +44,13 @@ export const v4 = new Elysia({ tags: ["v4"], prefix: "/v4" })
44
44
  },
45
45
  })),
46
46
  ],
47
- instrumentations: [getNodeAutoInstrumentations(), new PrismaInstrumentation()],
47
+ instrumentations: [
48
+ getNodeAutoInstrumentations({
49
+ "@opentelemetry/instrumentation-redis": { enabled: false },
50
+ "@opentelemetry/instrumentation-redis-4": { enabled: true },
51
+ }),
52
+ new PrismaInstrumentation(),
53
+ ],
48
54
  serviceName: "merkl-api",
49
55
  }))
50
56
  // ─── Error Handling ──────────────────────────────────────────────────