Skip to content

Commit

Permalink
feat(widget): LS-1909 remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lusd committed May 6, 2024
1 parent 4544fdc commit c03c5d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/SwapModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c03c5d1

Please sign in to comment.