diff --git a/indexer/services/comlink/__tests__/controllers/api/v4/affiliates-controller.test.ts b/indexer/services/comlink/__tests__/controllers/api/v4/affiliates-controller.test.ts index 30ceebd062..ee77111d30 100644 --- a/indexer/services/comlink/__tests__/controllers/api/v4/affiliates-controller.test.ts +++ b/indexer/services/comlink/__tests__/controllers/api/v4/affiliates-controller.test.ts @@ -380,5 +380,6 @@ function affiliateInfoCreateToResponseObject( affiliateReferredTotalVolume: Number(info.referredTotalVolume), affiliateReferredMakerFees: Number(info.totalReferredMakerFees), affiliateReferredTakerFees: Number(info.totalReferredTakerFees), + affiliateReferredMakerRebates: Number(info.totalReferredMakerRebates), }; } diff --git a/indexer/services/comlink/public/api-documentation.md b/indexer/services/comlink/public/api-documentation.md index f44f9075d4..8a3518a869 100644 --- a/indexer/services/comlink/public/api-documentation.md +++ b/indexer/services/comlink/public/api-documentation.md @@ -655,7 +655,8 @@ fetch(`${baseURL}/affiliates/snapshot`, "affiliateReferredNetProtocolEarnings": 0.1, "affiliateReferredTotalVolume": 0.1, "affiliateReferredMakerFees": 0.1, - "affiliateReferredTakerFees": 0.1 + "affiliateReferredTakerFees": 0.1, + "affiliateReferredMakerRebates": 0.1 } ], "total": 0.1, @@ -4248,7 +4249,8 @@ This operation does not require authentication "affiliateReferredNetProtocolEarnings": 0.1, "affiliateReferredTotalVolume": 0.1, "affiliateReferredMakerFees": 0.1, - "affiliateReferredTakerFees": 0.1 + "affiliateReferredTakerFees": 0.1, + "affiliateReferredMakerRebates": 0.1 } ``` @@ -4267,6 +4269,7 @@ This operation does not require authentication |affiliateReferredTotalVolume|number(double)|true|none|none| |affiliateReferredMakerFees|number(double)|true|none|none| |affiliateReferredTakerFees|number(double)|true|none|none| +|affiliateReferredMakerRebates|number(double)|true|none|none| ## AffiliateSnapshotResponse @@ -4288,7 +4291,8 @@ This operation does not require authentication "affiliateReferredNetProtocolEarnings": 0.1, "affiliateReferredTotalVolume": 0.1, "affiliateReferredMakerFees": 0.1, - "affiliateReferredTakerFees": 0.1 + "affiliateReferredTakerFees": 0.1, + "affiliateReferredMakerRebates": 0.1 } ], "total": 0.1, diff --git a/indexer/services/comlink/public/swagger.json b/indexer/services/comlink/public/swagger.json index e94a095d65..0737485b43 100644 --- a/indexer/services/comlink/public/swagger.json +++ b/indexer/services/comlink/public/swagger.json @@ -311,6 +311,10 @@ "affiliateReferredTakerFees": { "type": "number", "format": "double" + }, + "affiliateReferredMakerRebates": { + "type": "number", + "format": "double" } }, "required": [ @@ -323,7 +327,8 @@ "affiliateReferredNetProtocolEarnings", "affiliateReferredTotalVolume", "affiliateReferredMakerFees", - "affiliateReferredTakerFees" + "affiliateReferredTakerFees", + "affiliateReferredMakerRebates" ], "type": "object", "additionalProperties": false diff --git a/indexer/services/comlink/src/controllers/api/v4/affiliates-controller.ts b/indexer/services/comlink/src/controllers/api/v4/affiliates-controller.ts index ac246bbfdf..c87ba90c09 100644 --- a/indexer/services/comlink/src/controllers/api/v4/affiliates-controller.ts +++ b/indexer/services/comlink/src/controllers/api/v4/affiliates-controller.ts @@ -175,6 +175,7 @@ class AffiliatesController extends Controller { affiliateReferredTotalVolume: Number(info.referredTotalVolume), affiliateReferredMakerFees: Number(info.totalReferredMakerFees), affiliateReferredTakerFees: Number(info.totalReferredTakerFees), + affiliateReferredMakerRebates: Number(info.totalReferredMakerRebates), })); const response: AffiliateSnapshotResponse = { diff --git a/indexer/services/comlink/src/types.ts b/indexer/services/comlink/src/types.ts index 81eace3303..0e0a57512c 100644 --- a/indexer/services/comlink/src/types.ts +++ b/indexer/services/comlink/src/types.ts @@ -733,6 +733,7 @@ export interface AffiliateSnapshotResponseObject { affiliateReferredTotalVolume: number, affiliateReferredMakerFees: number, affiliateReferredTakerFees: number, + affiliateReferredMakerRebates: number, } export interface AffiliateTotalVolumeResponse {