These docs are for v1.3.0. Click to read the latest docs for v1.6.

symbol_type

public inline explicit asset (int64_t a, symbol_type s)

Construct a new asset given the symbol name and the amount

Parameters

  • a - The amount of the asset

  • s - THe name of the symbol, default to CORE_SYMBOL

public inline bool is_amount_within_range() const

Check if the amount doesn't exceed the max amount

Returns

true - if the amount doesn't exceed the max amount

Returns

false - otherwise