pub fn one_token(decimals: u8) -> u128
Expand description

Get the amount needed to represent 1 whole token given its decimals. Ex. Given token A that has 3 decimals, 1 A == 1000