Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored and nik-suri committed Dec 2, 2024
1 parent e2bd377 commit e7df169
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/route/src/automatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class NttAutomaticRoute<N extends Network>

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
);
Expand Down
2 changes: 1 addition & 1 deletion sdk/route/src/manual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class NttManualRoute<N extends Network>

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
);
Expand Down
2 changes: 1 addition & 1 deletion sdk/route/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export namespace NttRoute {
return amount > threshold;
}

export function getTrimmedAmount(
export function trimAmount(
amt: amount.Amount,
dstTokenDecimals: number
): amount.Amount {
Expand Down

0 comments on commit e7df169

Please sign in to comment.