Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Apr 17, 2023
1 parent ea1341e commit fd3ff1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit fd3ff1d

Please sign in to comment.