From c03c5d157bdf36e88c853072a0ff5bac0c2173fe Mon Sep 17 00:00:00 2001 From: Dmitry Kuksenko Date: Mon, 6 May 2024 19:36:21 +0300 Subject: [PATCH] feat(widget): LS-1909 remove comment --- src/modules/SwapModule.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/SwapModule.ts b/src/modules/SwapModule.ts index 8a8e611..c81ec0e 100644 --- a/src/modules/SwapModule.ts +++ b/src/modules/SwapModule.ts @@ -24,7 +24,7 @@ export type CalculateRatesParams = { interactiveToken: 'from' | 'to'; curveType: CurveType; version?: typeof VERSION_0 | typeof VERSION_0_5; - customFee?: number; + additionalFee?: number; }; export type CreateTXPayloadParams = { @@ -115,8 +115,8 @@ export class SwapModule implements IModule { let fee = d(liquidityPoolResource.data.fee); - if (params.customFee) { - fee = d(params.customFee); + if (params.additionalFee) { + fee = fee.plus(params.additionalFee); } const coinFromDecimals = +sortedFromCoinInfo.data.decimals;