Support subunits_per_unit
returned by /v3/currency
#2034
Labels
Milestone
subunits_per_unit
returned by /v3/currency
#2034
Ideally, coin amounts returned by Node should be wrapped with an object with methods to convert it to different formats (fancy toString, coins, subunits). Also, it should be aware of
subunits_per_unit
to format properly.To accept coin amounts, sdk should provide a class/utility function accepting amounts in units/subunits without knowing
subunits_per_unit
. The actual value ofsubunits_per_unit
should be resolved internally using Node.But better to accept units by default instead subunits 🤔
related issue #1290
The text was updated successfully, but these errors were encountered: