From fd3ff1df79a851436754335c8af6b1ad816dcf01 Mon Sep 17 00:00:00 2001 From: Christophe Le Bars Date: Mon, 17 Apr 2023 18:23:12 +0200 Subject: [PATCH] cleanup --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 297ae3d..66d4353 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ const nativeToken = Token.native({ ## Working with `TokenAmount` -### Create a new token amount +### Create a new token amount ```javascript const amount = TokenAmount.from(token, 123) @@ -94,7 +94,7 @@ console.log(amountB.toString()) // "USDC 0.01" In the previous example, both amountA and amountB represent the same value of 1 USDC, but they are created using different approaches. amountA demonstrates the automatic decimals expansion, while amountB shows how to avoid it by providing a BigInt value. -### Perform arithmetic operations on token amounts +### Perform arithmetic operations on token amounts ```javascript const amountA = TokenAmount.from(token, 3) @@ -192,7 +192,7 @@ deserializedComplexObject.amount = TokenAmount.from( This feature allows you to easily work with token data, no matter how you choose to store or transfer it. -## Utility Functions +## Utility Functions Expand a number to N decimals: