@merkl/api 0.19.8 → 0.19.9
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/dist/src/backgroundJobs/index.js +2 -2
- package/dist/src/engine/dynamicData/implementations/EventBased.js +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.d.ts +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +1 -1
- package/dist/src/engine/opportunityMetadata/implementations/EventBased.js +1 -1
- package/dist/src/libs/positions/prepareFetch.js +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -3
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
// @ts-nocheck
|
2
2
|
import { Redis } from "@/cache";
|
3
3
|
import { redisClient } from "@/cache/redis";
|
4
|
-
import { getEulerV2Vaults, updateEulerVaultsCollatInDatabase } from "@/
|
5
|
-
import { getUniswapV4Pools } from "@/
|
4
|
+
import { getEulerV2Vaults, updateEulerVaultsCollatInDatabase } from "@/engine/dynamicData/utils/getEulerV2Vaults";
|
5
|
+
import { getUniswapV4Pools } from "@/engine/dynamicData/utils/getUniswapV4Pools";
|
6
6
|
import { log } from "@/utils/logger";
|
7
7
|
import { engineDbClient } from "@db";
|
8
8
|
import { swagger } from "@elysiajs/swagger";
|
@@ -42,7 +42,7 @@ async function computeEventBasedPoolTVLFromMostRecentStateSave(chainId, campaign
|
|
42
42
|
const bucket = new BucketService(bucketName, "merkl-production");
|
43
43
|
const storedStates = JSON.parse(await bucket.pull(fileName));
|
44
44
|
for (const [_, { value, params: _params }] of Object.entries(storedStates)) {
|
45
|
-
tvl += BN2Number(value.allTimeValue, decimalsCurrency);
|
45
|
+
tvl += BN2Number(value.allTimeValue, 18 - decimalsCurrency);
|
46
46
|
}
|
47
47
|
tvl = tvl * priceCurrency;
|
48
48
|
tvl = Math.max(tvl, 1);
|
@@ -44,7 +44,7 @@ export class ClammMetadata {
|
|
44
44
|
{ chainId: computeChainId, address: params.token0 },
|
45
45
|
{ chainId: computeChainId, address: params.token1 },
|
46
46
|
],
|
47
|
-
mainProtocol: camelToKebabCase(AMM[params.amm]),
|
47
|
+
mainProtocol: AMM[params.amm] ? camelToKebabCase(AMM[params.amm]) : undefined,
|
48
48
|
};
|
49
49
|
}
|
50
50
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
+
import { VEST_TOKEN } from "@/engine/dynamicData/implementations/Vest";
|
2
3
|
import { Campaign, Forwarder, MorphoSubCampaignType, } from "@sdk";
|
3
4
|
import { utils } from "ethers";
|
4
|
-
import { VEST_TOKEN } from "../campaigns/campaignTypes/VestDynamicData";
|
5
5
|
function prepareClammFetch(previous, campaign) {
|
6
6
|
if (campaign.campaignType !== Campaign.CLAMM) {
|
7
7
|
return previous;
|
@@ -654,7 +654,7 @@ const EtherlinkInterfaceCampaigns = {
|
|
654
654
|
campaignType: Campaign.EVENT_BASED,
|
655
655
|
contract: "0xd0bc067cf877f7b76ceb331891331d9e6acda1a7",
|
656
656
|
eventID: id("OrderPlaced(address,uint64,bool,uint128,uint72,uint128,uint128,uint128,uint128,uint128,bool,bool)"),
|
657
|
-
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (
|
657
|
+
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (3n ** 10n).toString() }],
|
658
658
|
computeScoreParameters: {
|
659
659
|
computeMethod: ComputeScoreMethod.cappedScorePercentageHistorical,
|
660
660
|
computeSettings: {
|
@@ -694,7 +694,7 @@ const EtherlinkInterfaceCampaigns = {
|
|
694
694
|
campaignType: Campaign.EVENT_BASED,
|
695
695
|
contract: "0x65ea4dd7f789c71c0f57ed84b3bdc3062898d3cb",
|
696
696
|
eventID: id("OrderPlaced(address,uint64,bool,uint128,uint72,uint128,uint128,uint128,uint128,uint128,bool,bool)"),
|
697
|
-
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (
|
697
|
+
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (3n ** 10n).toString() }],
|
698
698
|
computeScoreParameters: {
|
699
699
|
computeMethod: ComputeScoreMethod.cappedScorePercentageHistorical,
|
700
700
|
computeSettings: {
|
@@ -734,7 +734,7 @@ const EtherlinkInterfaceCampaigns = {
|
|
734
734
|
campaignType: Campaign.EVENT_BASED,
|
735
735
|
contract: "0xbb6b01d94e3f6ebae8647cb56d544f57928ab758",
|
736
736
|
eventID: id("OrderPlaced(address,uint64,bool,uint128,uint72,uint128,uint128,uint128,uint128,uint128,bool,bool)"),
|
737
|
-
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (
|
737
|
+
topicToData: [{ topicIndex: 1, decodeKeyTopic: "address", dataIndex: 7, multiplier: (3n ** 10n).toString() }],
|
738
738
|
computeScoreParameters: {
|
739
739
|
computeMethod: ComputeScoreMethod.cappedScorePercentageHistorical,
|
740
740
|
computeSettings: {
|