Skip to content

Commit

Permalink
chore: deprecate legacy fee response values
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Dec 3, 2024
1 parent 180b0a4 commit c27c814
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/suggested-fees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit c27c814

Please sign in to comment.