Amount is represented in the smallest unit format on chain, this function converts the smallest unit format to a human-readable amount format
human-readable amount format: 500on chain amount format when decimal is 8: 50000000000 Copy
human-readable amount format: 500on chain amount format when decimal is 8: 50000000000
The value in human-readable format
The token decimal
The value in the smallest units
Amount is represented in the smallest unit format on chain, this function converts the smallest unit format to a human-readable amount format
Example