From c27c814f1cedcead6568335d666b9e3019a2abd6 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Tue, 3 Dec 2024 17:50:26 +0100 Subject: [PATCH] chore: deprecate legacy fee response values --- api/suggested-fees.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/suggested-fees.ts b/api/suggested-fees.ts index ceb724057..f81522e57 100644 --- a/api/suggested-fees.ts +++ b/api/suggested-fees.ts @@ -283,13 +283,6 @@ const handler = async ( inputToken.symbol, amountInUsd ), - capitalFeePct: relayerFeeDetails.capitalFeePercent, - capitalFeeTotal: relayerFeeDetails.capitalFeeTotal, - relayGasFeePct: relayerFeeDetails.gasFeePercent, - relayGasFeeTotal: relayerFeeDetails.gasFeeTotal, - relayFeePct: totalRelayFeePct.toString(), // capitalFeePct + gasFeePct + lpFeePct - relayFeeTotal: totalRelayFee.toString(), // capitalFeeTotal + gasFeeTotal + lpFeeTotal - lpFeePct: "0", // Note: lpFeePct is now included in relayFeePct. We set it to 0 here for backwards compatibility. timestamp: isNaN(parsedTimestamp) ? quoteTimestamp.toString() : parsedTimestamp.toString(),