From e7df16945102dd550d3698411082b3a882038da9 Mon Sep 17 00:00:00 2001 From: Kevin Peters Date: Fri, 29 Nov 2024 04:56:52 -0600 Subject: [PATCH] rename function --- sdk/route/src/automatic.ts | 2 +- sdk/route/src/manual.ts | 2 +- sdk/route/src/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/route/src/automatic.ts b/sdk/route/src/automatic.ts index b7a5481b6..e8dd585d4 100644 --- a/sdk/route/src/automatic.ts +++ b/sdk/route/src/automatic.ts @@ -123,7 +123,7 @@ export class NttAutomaticRoute const parsedAmount = amount.parse(params.amount, request.source.decimals); // The trimmedAmount may differ from the parsedAmount if the parsedAmount includes dust - const trimmedAmount = NttRoute.getTrimmedAmount( + const trimmedAmount = NttRoute.trimAmount( parsedAmount, request.destination.decimals ); diff --git a/sdk/route/src/manual.ts b/sdk/route/src/manual.ts index f4712a9b9..0b2f837bf 100644 --- a/sdk/route/src/manual.ts +++ b/sdk/route/src/manual.ts @@ -104,7 +104,7 @@ export class NttManualRoute const parsedAmount = amount.parse(params.amount, request.source.decimals); // The trimmedAmount may differ from the parsedAmount if the parsedAmount includes dust - const trimmedAmount = NttRoute.getTrimmedAmount( + const trimmedAmount = NttRoute.trimAmount( parsedAmount, request.destination.decimals ); diff --git a/sdk/route/src/types.ts b/sdk/route/src/types.ts index afb18d66d..f93c3b55e 100644 --- a/sdk/route/src/types.ts +++ b/sdk/route/src/types.ts @@ -215,7 +215,7 @@ export namespace NttRoute { return amount > threshold; } - export function getTrimmedAmount( + export function trimAmount( amt: amount.Amount, dstTokenDecimals: number ): amount.Amount {