Amount is represented in the smallest unit format on chain, this function converts a human-readable amount format to the smallest unit 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 a human-readable amount format to the smallest unit format
Example