Skip to content

Commit 603fc10

Browse files
authoredJan 17, 2025
fix spelling error
1 parent 37f283f commit 603fc10

File tree

1 file changed

+5
-5
lines changed
  • packages/plugin-starknet/src/utils

1 file changed

+5
-5
lines changed
 

‎packages/plugin-starknet/src/utils/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ export const getPercent = (amount: string | number, decimals: number) => {
3838
return new Percent(amount, decimals);
3939
};
4040

41-
export const parseFormatedAmount = (amount: string) => amount.replace(/,/g, "");
41+
export const parseFormattedAmount = (amount: string) => amount.replace(/,/g, "");
4242

4343
export const PERCENTAGE_INPUT_PRECISION = 2;
4444

45-
export const parseFormatedPercentage = (percent: string) =>
45+
export const parseFormattedPercentage = (percent: string) =>
4646
new Percent(
4747
+percent * 10 ** PERCENTAGE_INPUT_PRECISION,
4848
100 * 10 ** PERCENTAGE_INPUT_PRECISION
@@ -65,12 +65,12 @@ export const formatCurrenyAmount = (
6565
};
6666

6767
export const formatPercentage = (percentage: Percent) => {
68-
const formatedPercentage = +percentage.toFixed(2);
68+
const formattedPercentage = +percentage.toFixed(2);
6969
const exact = percentage.equalTo(
70-
new Percent(Math.round(formatedPercentage * 100), 10000)
70+
new Percent(Math.round(formattedPercentage * 100), 10000)
7171
);
7272

73-
return `${exact ? "" : "~"}${formatedPercentage}%`;
73+
return `${exact ? "" : "~"}${formattedPercentage}%`;
7474
};
7575

7676
export type RetryConfig = {

0 commit comments

Comments
 (0)