From fdd9080dfe784bb89f09366ddc1a34c0f4ab9f83 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Mon, 9 Sep 2024 22:27:57 +0800 Subject: [PATCH] fix: add fee details to limits response (#1200) --- api/limits.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/limits.ts b/api/limits.ts index 50d0fd9c5..738ec6fb3 100644 --- a/api/limits.ts +++ b/api/limits.ts @@ -349,6 +349,14 @@ const handler = async ( maxDepositInstant: bufferedMaxDepositInstant.toString(), maxDepositShortDelay: bufferedMaxDepositShortDelay.toString(), recommendedDepositInstant: bufferedRecommendedDepositInstant.toString(), + relayerFeeDetails: { + relayFeeTotal: relayerFeeDetails.relayFeeTotal, + relayFeePercent: relayerFeeDetails.relayFeePercent, + gasFeeTotal: relayerFeeDetails.gasFeeTotal, + gasFeePercent: relayerFeeDetails.gasFeePercent, + capitalFeeTotal: relayerFeeDetails.capitalFeeTotal, + capitalFeePercent: relayerFeeDetails.capitalFeePercent, + }, }; logger.debug({ at: "Limits",