of_the_nat static method

Tokens of_the_nat(
  1. CandidType tokens_nat, {
  2. required int decimal_places,
})

Implementation

static Tokens of_the_nat(CandidType tokens_nat, {required int decimal_places}) {
    return Tokens(quantums: (tokens_nat as Nat).value, decimal_places: decimal_places);
}