Skip to content

Commit 73169d7

Browse files
committed
chore: remove unneded claimed-pool-fees usd option as it is not used by the Mint UI
1 parent a8ff7d8 commit 73169d7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/fasset-indexer-api/src/controllers/dashboard.controller.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,14 @@ export class DashboardController {
173173
@ApiOperation({ summary: 'Timespan of collected pool fees along timestamps' })
174174
@ApiQuery({ name: "timestamps", type: Number, isArray: true })
175175
@ApiQuery({ name: "pool", type: String, required: false })
176-
@ApiQuery({ name: "usd", type: Boolean, required: false })
177176
getPoolFeesDiff(
178177
@Query('timestamps') timestamps: string | string[],
179-
@Query('pool') pool?: string,
180-
@Query('usd', new ParseBoolPipe({ optional: true })) usd?: boolean
178+
@Query('pool') pool?: string
181179
): Promise<ApiResponse<FAssetTimespan<bigint> | Timespan<bigint>>> {
182180
const ts = this.parseTimestamps(timestamps)
183181
const er = this.restrictTimespan(ts)
184182
if (er !== null) return apiResponse(Promise.reject(er), 400)
185-
if (usd === true) {
186-
return apiResponse(this.service.claimedPoolFeesAggregateTimespan(ts), 200)
187-
} else {
188-
return apiResponse(this.service.claimedPoolFeesTimespan(ts, pool, undefined), 200)
189-
}
183+
return apiResponse(this.service.claimedPoolFeesTimespan(ts, pool), 200)
190184
}
191185

192186
@Get('timespan/core-vault-inflows?')

0 commit comments

Comments
 (0)