@merkl/api 0.20.135 → 0.20.137
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/eden/index.d.ts +33 -12
- package/dist/src/errors/UnableToFindPrice.error.d.ts +4 -0
- package/dist/src/errors/UnableToFindPrice.error.js +7 -0
- package/dist/src/errors/index.d.ts +1 -0
- package/dist/src/errors/index.js +1 -0
- package/dist/src/index.d.ts +11 -4
- package/dist/src/modules/v4/apr/apr.model.d.ts +4 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +10 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +30 -9
- package/dist/src/modules/v4/opportunity/opportunity.service.js +19 -2
- package/dist/src/modules/v4/price/price.controller.d.ts +1 -1
- package/dist/src/modules/v4/price/price.controller.js +1 -0
- package/dist/src/modules/v4/price/price.service.js +12 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +4 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +42 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +10 -3
- package/dist/src/modules/v4/router.d.ts +11 -4
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -667,13 +667,20 @@ declare const eden: {
|
|
667
667
|
aprRecord: {
|
668
668
|
cumulated: number;
|
669
669
|
timestamp: bigint;
|
670
|
-
breakdowns: {
|
670
|
+
breakdowns: ({
|
671
671
|
id: string;
|
672
|
-
|
672
|
+
value: number;
|
673
|
+
aprRecordId: string;
|
674
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
673
675
|
identifier: string;
|
676
|
+
type: "CAMPAIGN";
|
677
|
+
} | {
|
678
|
+
id: string;
|
674
679
|
value: number;
|
675
680
|
aprRecordId: string;
|
676
|
-
|
681
|
+
identifier: string;
|
682
|
+
type: import("@db/api").$Enums.AprType;
|
683
|
+
})[];
|
677
684
|
};
|
678
685
|
tvlRecord: {
|
679
686
|
id: string;
|
@@ -3045,7 +3052,7 @@ declare const eden: {
|
|
3045
3052
|
query?: Record<string, unknown> | undefined;
|
3046
3053
|
fetch?: RequestInit | undefined;
|
3047
3054
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3048
|
-
200: number
|
3055
|
+
200: number;
|
3049
3056
|
}>>;
|
3050
3057
|
};
|
3051
3058
|
symbol: ((params: {
|
@@ -5712,13 +5719,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
5712
5719
|
aprRecord: {
|
5713
5720
|
cumulated: number;
|
5714
5721
|
timestamp: bigint;
|
5715
|
-
breakdowns: {
|
5722
|
+
breakdowns: ({
|
5716
5723
|
id: string;
|
5717
|
-
|
5724
|
+
value: number;
|
5725
|
+
aprRecordId: string;
|
5726
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
5718
5727
|
identifier: string;
|
5728
|
+
type: "CAMPAIGN";
|
5729
|
+
} | {
|
5730
|
+
id: string;
|
5719
5731
|
value: number;
|
5720
5732
|
aprRecordId: string;
|
5721
|
-
|
5733
|
+
identifier: string;
|
5734
|
+
type: import("@db/api").$Enums.AprType;
|
5735
|
+
})[];
|
5722
5736
|
};
|
5723
5737
|
tvlRecord: {
|
5724
5738
|
id: string;
|
@@ -8891,7 +8905,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8891
8905
|
authorization: string;
|
8892
8906
|
};
|
8893
8907
|
response: {
|
8894
|
-
200: number
|
8908
|
+
200: number;
|
8895
8909
|
};
|
8896
8910
|
};
|
8897
8911
|
};
|
@@ -12354,13 +12368,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12354
12368
|
aprRecord: {
|
12355
12369
|
cumulated: number;
|
12356
12370
|
timestamp: bigint;
|
12357
|
-
breakdowns: {
|
12371
|
+
breakdowns: ({
|
12358
12372
|
id: string;
|
12359
|
-
|
12373
|
+
value: number;
|
12374
|
+
aprRecordId: string;
|
12375
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
12360
12376
|
identifier: string;
|
12377
|
+
type: "CAMPAIGN";
|
12378
|
+
} | {
|
12379
|
+
id: string;
|
12361
12380
|
value: number;
|
12362
12381
|
aprRecordId: string;
|
12363
|
-
|
12382
|
+
identifier: string;
|
12383
|
+
type: import("@db/api").$Enums.AprType;
|
12384
|
+
})[];
|
12364
12385
|
};
|
12365
12386
|
tvlRecord: {
|
12366
12387
|
id: string;
|
@@ -14732,7 +14753,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14732
14753
|
query?: Record<string, unknown> | undefined;
|
14733
14754
|
fetch?: RequestInit | undefined;
|
14734
14755
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14735
|
-
200: number
|
14756
|
+
200: number;
|
14736
14757
|
}>>;
|
14737
14758
|
};
|
14738
14759
|
symbol: ((params: {
|
package/dist/src/errors/index.js
CHANGED
package/dist/src/index.d.ts
CHANGED
@@ -484,13 +484,20 @@ declare const app: Elysia<"", false, {
|
|
484
484
|
aprRecord: {
|
485
485
|
cumulated: number;
|
486
486
|
timestamp: bigint;
|
487
|
-
breakdowns: {
|
487
|
+
breakdowns: ({
|
488
488
|
id: string;
|
489
|
-
|
489
|
+
value: number;
|
490
|
+
aprRecordId: string;
|
491
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
490
492
|
identifier: string;
|
493
|
+
type: "CAMPAIGN";
|
494
|
+
} | {
|
495
|
+
id: string;
|
491
496
|
value: number;
|
492
497
|
aprRecordId: string;
|
493
|
-
|
498
|
+
identifier: string;
|
499
|
+
type: import("@db/api").$Enums.AprType;
|
500
|
+
})[];
|
494
501
|
};
|
495
502
|
tvlRecord: {
|
496
503
|
id: string;
|
@@ -3663,7 +3670,7 @@ declare const app: Elysia<"", false, {
|
|
3663
3670
|
authorization: string;
|
3664
3671
|
};
|
3665
3672
|
response: {
|
3666
|
-
200: number
|
3673
|
+
200: number;
|
3667
3674
|
};
|
3668
3675
|
};
|
3669
3676
|
};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Resource } from "@/modules/v4/prisma";
|
2
|
+
import { type DistributionType } from "@db/api";
|
2
3
|
/**
|
3
4
|
* Apr Record
|
4
5
|
* @description Describes one apr snapshot for an opportunity
|
@@ -12,7 +13,9 @@ export type AprRecord = Resource<"AprRecord", "id" | "opportunityId", {
|
|
12
13
|
* @description Describes one apr fraction of record
|
13
14
|
* @see {@link Resource}
|
14
15
|
*/
|
15
|
-
export type AprBreakdown = Resource<"AprBreakdown", "id" | "aprRecordId"
|
16
|
+
export type AprBreakdown = Resource<"AprBreakdown", "id" | "aprRecordId", {
|
17
|
+
distributionType?: DistributionType;
|
18
|
+
}>;
|
16
19
|
export declare const AprBreakdownResourceDto: import("@sinclair/typebox").TObject<{
|
17
20
|
id: import("@sinclair/typebox").TString;
|
18
21
|
type: import("@sinclair/typebox").TEnum<{
|
@@ -339,13 +339,20 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
339
339
|
aprRecord: {
|
340
340
|
cumulated: number;
|
341
341
|
timestamp: bigint;
|
342
|
-
breakdowns: {
|
342
|
+
breakdowns: ({
|
343
343
|
id: string;
|
344
|
-
|
344
|
+
value: number;
|
345
|
+
aprRecordId: string;
|
346
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
345
347
|
identifier: string;
|
348
|
+
type: "CAMPAIGN";
|
349
|
+
} | {
|
350
|
+
id: string;
|
346
351
|
value: number;
|
347
352
|
aprRecordId: string;
|
348
|
-
|
353
|
+
identifier: string;
|
354
|
+
type: import("@db/api").$Enums.AprType;
|
355
|
+
})[];
|
349
356
|
};
|
350
357
|
tvlRecord: {
|
351
358
|
id: string;
|
@@ -156,6 +156,7 @@ export declare abstract class OpportunityRepository {
|
|
156
156
|
DailyRewardsRecords: ({
|
157
157
|
DailyRewardsBreakdown: ({
|
158
158
|
Campaign: {
|
159
|
+
campaignId: string;
|
159
160
|
distributionType: import("@db/api").$Enums.DistributionType;
|
160
161
|
amount: string;
|
161
162
|
startTimestamp: bigint;
|
@@ -302,6 +303,7 @@ export declare abstract class OpportunityRepository {
|
|
302
303
|
DailyRewardsRecords: ({
|
303
304
|
DailyRewardsBreakdown: ({
|
304
305
|
Campaign: {
|
306
|
+
campaignId: string;
|
305
307
|
distributionType: import("@db/api").$Enums.DistributionType;
|
306
308
|
amount: string;
|
307
309
|
startTimestamp: bigint;
|
@@ -507,6 +509,7 @@ export declare abstract class OpportunityRepository {
|
|
507
509
|
DailyRewardsRecords: ({
|
508
510
|
DailyRewardsBreakdown: ({
|
509
511
|
Campaign: {
|
512
|
+
campaignId: string;
|
510
513
|
distributionType: import("@db/api").$Enums.DistributionType;
|
511
514
|
amount: string;
|
512
515
|
startTimestamp: bigint;
|
@@ -660,6 +663,7 @@ export declare abstract class OpportunityRepository {
|
|
660
663
|
DailyRewardsRecords: ({
|
661
664
|
DailyRewardsBreakdown: ({
|
662
665
|
Campaign: {
|
666
|
+
campaignId: string;
|
663
667
|
distributionType: import("@db/api").$Enums.DistributionType;
|
664
668
|
amount: string;
|
665
669
|
startTimestamp: bigint;
|
@@ -867,6 +871,7 @@ export declare abstract class OpportunityRepository {
|
|
867
871
|
DailyRewardsRecords: ({
|
868
872
|
DailyRewardsBreakdown: ({
|
869
873
|
Campaign: {
|
874
|
+
campaignId: string;
|
870
875
|
distributionType: import("@db/api").$Enums.DistributionType;
|
871
876
|
amount: string;
|
872
877
|
startTimestamp: bigint;
|
@@ -600,13 +600,20 @@ export declare abstract class OpportunityService {
|
|
600
600
|
aprRecord: {
|
601
601
|
cumulated: number;
|
602
602
|
timestamp: bigint;
|
603
|
-
breakdowns: {
|
603
|
+
breakdowns: ({
|
604
604
|
id: string;
|
605
|
-
|
605
|
+
value: number;
|
606
|
+
aprRecordId: string;
|
607
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
606
608
|
identifier: string;
|
609
|
+
type: "CAMPAIGN";
|
610
|
+
} | {
|
611
|
+
id: string;
|
607
612
|
value: number;
|
608
613
|
aprRecordId: string;
|
609
|
-
|
614
|
+
identifier: string;
|
615
|
+
type: import("@db/api").$Enums.AprType;
|
616
|
+
})[];
|
610
617
|
};
|
611
618
|
tvlRecord: {
|
612
619
|
id: string;
|
@@ -778,13 +785,20 @@ export declare abstract class OpportunityService {
|
|
778
785
|
aprRecord: {
|
779
786
|
cumulated: number;
|
780
787
|
timestamp: bigint;
|
781
|
-
breakdowns: {
|
788
|
+
breakdowns: ({
|
782
789
|
id: string;
|
783
|
-
|
790
|
+
value: number;
|
791
|
+
aprRecordId: string;
|
792
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
784
793
|
identifier: string;
|
794
|
+
type: "CAMPAIGN";
|
795
|
+
} | {
|
796
|
+
id: string;
|
785
797
|
value: number;
|
786
798
|
aprRecordId: string;
|
787
|
-
|
799
|
+
identifier: string;
|
800
|
+
type: import("@db/api").$Enums.AprType;
|
801
|
+
})[];
|
788
802
|
};
|
789
803
|
tvlRecord: {
|
790
804
|
id: string;
|
@@ -949,13 +963,20 @@ export declare abstract class OpportunityService {
|
|
949
963
|
aprRecord: {
|
950
964
|
cumulated: number;
|
951
965
|
timestamp: bigint;
|
952
|
-
breakdowns: {
|
966
|
+
breakdowns: ({
|
953
967
|
id: string;
|
954
|
-
|
968
|
+
value: number;
|
969
|
+
aprRecordId: string;
|
970
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
955
971
|
identifier: string;
|
972
|
+
type: "CAMPAIGN";
|
973
|
+
} | {
|
974
|
+
id: string;
|
956
975
|
value: number;
|
957
976
|
aprRecordId: string;
|
958
|
-
|
977
|
+
identifier: string;
|
978
|
+
type: import("@db/api").$Enums.AprType;
|
979
|
+
})[];
|
959
980
|
};
|
960
981
|
tvlRecord: {
|
961
982
|
id: string;
|
@@ -6,7 +6,7 @@ import { CampaignService } from "@/modules/v4/campaign/campaign.service";
|
|
6
6
|
import { TokenService } from "@/modules/v4/token/token.service";
|
7
7
|
import { UserService } from "@/modules/v4/user/user.service";
|
8
8
|
import { log } from "@/utils/logger";
|
9
|
-
import { Status } from "@db/api";
|
9
|
+
import { AprType, Status } from "@db/api";
|
10
10
|
import { Campaign as CampaignType } from "@sdk";
|
11
11
|
import moment from "moment";
|
12
12
|
import { metadataBuilderFactory } from "../../../engine/metadata/factory";
|
@@ -202,7 +202,24 @@ export class OpportunityService {
|
|
202
202
|
? (AprRecords?.map(({ cumulated, timestamp, AprBreakdown: breakdowns }) => ({
|
203
203
|
cumulated,
|
204
204
|
timestamp,
|
205
|
-
breakdowns,
|
205
|
+
breakdowns: breakdowns.map(({ identifier, type, ...breakdown }) => {
|
206
|
+
if (type === AprType.CAMPAIGN) {
|
207
|
+
const campaign = DailyRewardsRecords?.[0]?.DailyRewardsBreakdown?.map(breakdown => breakdown.Campaign).find(c => c.campaignId === identifier);
|
208
|
+
if (campaign) {
|
209
|
+
return {
|
210
|
+
distributionType: campaign.distributionType,
|
211
|
+
identifier,
|
212
|
+
type,
|
213
|
+
...breakdown,
|
214
|
+
};
|
215
|
+
}
|
216
|
+
}
|
217
|
+
return {
|
218
|
+
identifier,
|
219
|
+
type,
|
220
|
+
...breakdown,
|
221
|
+
};
|
222
|
+
}),
|
206
223
|
}))?.[0] ?? undefined)
|
207
224
|
: {
|
208
225
|
cumulated: 0,
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { UnableToFindPrice } from "@/errors";
|
1
2
|
import { Pricer } from "@/utils/pricer";
|
2
3
|
import PriceFetcherFactory from "@/utils/prices/priceFetcherFactory";
|
3
4
|
import { PriceSourceMethod } from "@db/api";
|
@@ -33,7 +34,17 @@ export class PriceService {
|
|
33
34
|
}
|
34
35
|
static async createPriceSource(priceSource) {
|
35
36
|
const created = await PriceRepository.create(priceSource);
|
36
|
-
|
37
|
+
try {
|
38
|
+
const price = await PriceService.fetchPriceBySymbol(created.symbol);
|
39
|
+
if (price === undefined || price === null) {
|
40
|
+
throw new Error();
|
41
|
+
}
|
42
|
+
return price;
|
43
|
+
}
|
44
|
+
catch {
|
45
|
+
await PriceRepository.deleteBySymbol(created.symbol);
|
46
|
+
throw new UnableToFindPrice();
|
47
|
+
}
|
37
48
|
}
|
38
49
|
static async updatePriceSource(symbol, newPriceSource) {
|
39
50
|
return await PriceRepository.updateBySymbol(symbol, newPriceSource);
|
@@ -88,7 +88,9 @@ export declare enum swapxCampaigns {
|
|
88
88
|
Swapx_wstkscUSD_bUSDCe20_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 wstkscUSD gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
|
89
89
|
Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51",
|
90
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"
|
91
|
+
Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx = "Swapx wstkscUSD/aSonUSDC wstkscUSD gauge Swapx 0xF2a497F783C6bfEe0670757462a31f9429fdE53d",
|
92
|
+
Swapx_beS_OS_beS_gauge_Swapx = "Swapx beS/OS beS gauge Swapx 0xfBA3606310f3d492031176eC85DFbeD67F5799F2",
|
93
|
+
Swapx_beS_OS_OS_gauge_Swapx = "Swapx beS/OS OS gauge Swapx 0x77546B40445d3eca6111944DFe902de0514A4F80"
|
92
94
|
}
|
93
95
|
export declare enum celoCampaigns {
|
94
96
|
UniswapV3_cUSD_USDT_Celo = "UniswapV3 cUSD/USDT Celo 0x5dC631aD6C26BEA1a59fBF2C2680CF3df43d249f",
|
@@ -501,7 +503,7 @@ declare const RoninInterfaceCampaigns: {
|
|
501
503
|
hooks: never[];
|
502
504
|
targetToken: string;
|
503
505
|
whitelist: never[];
|
504
|
-
blacklist:
|
506
|
+
blacklist: string[];
|
505
507
|
url: string;
|
506
508
|
subCampaignType: any;
|
507
509
|
};
|
@@ -155,6 +155,8 @@ export var swapxCampaigns;
|
|
155
155
|
swapxCampaigns["Swapx_wstkscUSD_bUSDCe20_bUSDCe20_gauge_Swapx"] = "Swapx wstkscUSD/bUSDC.e-20 bUSDC.e-20 gauge Swapx 0x85279f76f6ce5bb26f721931ba4e3188cd28ad51";
|
156
156
|
swapxCampaigns["Swapx_wstkscUSD_aSonUSDC_aSonUSDC_gauge_Swapx"] = "Swapx wstkscUSD/aSonUSDC aSonUSDC gauge Swapx 0xf248b0EF6d45Aa492C73699B71748b5D1a6770C6";
|
157
157
|
swapxCampaigns["Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx"] = "Swapx wstkscUSD/aSonUSDC wstkscUSD gauge Swapx 0xF2a497F783C6bfEe0670757462a31f9429fdE53d";
|
158
|
+
swapxCampaigns["Swapx_beS_OS_beS_gauge_Swapx"] = "Swapx beS/OS beS gauge Swapx 0xfBA3606310f3d492031176eC85DFbeD67F5799F2";
|
159
|
+
swapxCampaigns["Swapx_beS_OS_OS_gauge_Swapx"] = "Swapx beS/OS OS gauge Swapx 0x77546B40445d3eca6111944DFe902de0514A4F80";
|
158
160
|
})(swapxCampaigns || (swapxCampaigns = {}));
|
159
161
|
export var celoCampaigns;
|
160
162
|
(function (celoCampaigns) {
|
@@ -524,8 +526,8 @@ const RoninInterfaceCampaigns = {
|
|
524
526
|
forwarders: [],
|
525
527
|
isOutOfRangeIncentivized: false,
|
526
528
|
weightFees: 1500,
|
527
|
-
weightToken0:
|
528
|
-
weightToken1:
|
529
|
+
weightToken0: 5500,
|
530
|
+
weightToken1: 3000,
|
529
531
|
},
|
530
532
|
[roninCampaigns.Katana_AXS_RON_Ronin]: {
|
531
533
|
campaignType: Campaign.CLAMM,
|
@@ -537,9 +539,9 @@ const RoninInterfaceCampaigns = {
|
|
537
539
|
url: "https://app.roninchain.com/liquidity/v3/0x3230b903e8a5d6e46b5a5028470dd33e7b673722",
|
538
540
|
forwarders: [],
|
539
541
|
isOutOfRangeIncentivized: false,
|
540
|
-
weightFees:
|
541
|
-
weightToken0:
|
542
|
-
weightToken1:
|
542
|
+
weightFees: 2000,
|
543
|
+
weightToken0: 500,
|
544
|
+
weightToken1: 7500,
|
543
545
|
},
|
544
546
|
[roninCampaigns.Katana_USDC_RON_Ronin]: {
|
545
547
|
campaignType: Campaign.CLAMM,
|
@@ -551,9 +553,9 @@ const RoninInterfaceCampaigns = {
|
|
551
553
|
url: "https://app.roninchain.com/liquidity/v3/0x392d372f2a51610e9ac5b741379d5631ca9a1c7f",
|
552
554
|
forwarders: [],
|
553
555
|
isOutOfRangeIncentivized: false,
|
554
|
-
weightFees:
|
555
|
-
weightToken0:
|
556
|
-
weightToken1:
|
556
|
+
weightFees: 3000,
|
557
|
+
weightToken0: 4500,
|
558
|
+
weightToken1: 2500,
|
557
559
|
},
|
558
560
|
[roninCampaigns.Katana_LRON_RON_Ronin]: {
|
559
561
|
campaignType: Campaign.CLAMM,
|
@@ -566,8 +568,8 @@ const RoninInterfaceCampaigns = {
|
|
566
568
|
forwarders: [],
|
567
569
|
isOutOfRangeIncentivized: false,
|
568
570
|
weightFees: 1000,
|
569
|
-
weightToken0:
|
570
|
-
weightToken1:
|
571
|
+
weightToken0: 6500,
|
572
|
+
weightToken1: 2500,
|
571
573
|
},
|
572
574
|
[roninCampaigns.Supply_WETH_Compound_Ronin]: {
|
573
575
|
campaignType: Campaign.COMPOUND_V3,
|
@@ -575,8 +577,8 @@ const RoninInterfaceCampaigns = {
|
|
575
577
|
hooks: [],
|
576
578
|
targetToken: "0x4006eD4097Ee51c09A04c3B0951D28CCf19e6DFE",
|
577
579
|
whitelist: [],
|
578
|
-
blacklist: [],
|
579
|
-
url: "",
|
580
|
+
blacklist: ["0xfeef9d78980083f605c9902c0367df6035d47276"],
|
581
|
+
url: "https://complend.tech/lend/weth-ronin/",
|
580
582
|
subCampaignType: CompoundV3SubCampaignType.SUPPLY,
|
581
583
|
},
|
582
584
|
};
|
@@ -965,6 +967,34 @@ const EtherlinkInterfaceCampaigns = {
|
|
965
967
|
},
|
966
968
|
};
|
967
969
|
const SwapxInterfaceCampaigns = {
|
970
|
+
[swapxCampaigns.Swapx_beS_OS_beS_gauge_Swapx]: {
|
971
|
+
campaignType: Campaign.CLAMM,
|
972
|
+
computeChainId: ChainId.SONIC,
|
973
|
+
hooks: [],
|
974
|
+
poolAddress: "0x97fE831cC56da84321f404a300e2Be81b5bd668A",
|
975
|
+
whitelist: ["0xfBA3606310f3d492031176eC85DFbeD67F5799F2"],
|
976
|
+
blacklist: [],
|
977
|
+
url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
|
978
|
+
forwarders: [],
|
979
|
+
isOutOfRangeIncentivized: false,
|
980
|
+
weightFees: 2000,
|
981
|
+
weightToken0: 4000,
|
982
|
+
weightToken1: 4000,
|
983
|
+
},
|
984
|
+
[swapxCampaigns.Swapx_beS_OS_OS_gauge_Swapx]: {
|
985
|
+
campaignType: Campaign.CLAMM,
|
986
|
+
computeChainId: ChainId.SONIC,
|
987
|
+
hooks: [],
|
988
|
+
poolAddress: "0x97fE831cC56da84321f404a300e2Be81b5bd668A",
|
989
|
+
whitelist: ["0x77546B40445d3eca6111944DFe902de0514A4F80"],
|
990
|
+
blacklist: [],
|
991
|
+
url: "https://swapx.fi/earn?ownerType=pools&filter=conc-liquidity",
|
992
|
+
forwarders: [],
|
993
|
+
isOutOfRangeIncentivized: false,
|
994
|
+
weightFees: 2000,
|
995
|
+
weightToken0: 4000,
|
996
|
+
weightToken1: 4000,
|
997
|
+
},
|
968
998
|
[swapxCampaigns.Swapx_wstkscUSD_aSonUSDC_wstkscUSD_gauge_Swapx]: {
|
969
999
|
campaignType: Campaign.CLAMM,
|
970
1000
|
computeChainId: ChainId.SONIC,
|
@@ -14,13 +14,20 @@ export declare abstract class RewardService {
|
|
14
14
|
aprRecord: {
|
15
15
|
cumulated: number;
|
16
16
|
timestamp: bigint;
|
17
|
-
breakdowns: {
|
17
|
+
breakdowns: ({
|
18
18
|
id: string;
|
19
|
-
|
19
|
+
value: number;
|
20
|
+
aprRecordId: string;
|
21
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
20
22
|
identifier: string;
|
23
|
+
type: "CAMPAIGN";
|
24
|
+
} | {
|
25
|
+
id: string;
|
21
26
|
value: number;
|
22
27
|
aprRecordId: string;
|
23
|
-
|
28
|
+
identifier: string;
|
29
|
+
type: import("@db/api").$Enums.AprType;
|
30
|
+
})[];
|
24
31
|
};
|
25
32
|
tvlRecord: {
|
26
33
|
id: string;
|
@@ -354,13 +354,20 @@ export declare const v4: Elysia<"/v4", false, {
|
|
354
354
|
aprRecord: {
|
355
355
|
cumulated: number;
|
356
356
|
timestamp: bigint;
|
357
|
-
breakdowns: {
|
357
|
+
breakdowns: ({
|
358
358
|
id: string;
|
359
|
-
|
359
|
+
value: number;
|
360
|
+
aprRecordId: string;
|
361
|
+
distributionType: import("@db/api").$Enums.DistributionType;
|
360
362
|
identifier: string;
|
363
|
+
type: "CAMPAIGN";
|
364
|
+
} | {
|
365
|
+
id: string;
|
361
366
|
value: number;
|
362
367
|
aprRecordId: string;
|
363
|
-
|
368
|
+
identifier: string;
|
369
|
+
type: import("@db/api").$Enums.AprType;
|
370
|
+
})[];
|
364
371
|
};
|
365
372
|
tvlRecord: {
|
366
373
|
id: string;
|
@@ -3533,7 +3540,7 @@ export declare const v4: Elysia<"/v4", false, {
|
|
3533
3540
|
authorization: string;
|
3534
3541
|
};
|
3535
3542
|
response: {
|
3536
|
-
200: number
|
3543
|
+
200: number;
|
3537
3544
|
};
|
3538
3545
|
};
|
3539
3546
|
};
|