Translations: Monetary system/123/en

From ArdorDocs
Jump to: navigation, search

Unit conversion Currency is measured in units and like assets has decimal positions, however the blockchain maintains currency balances as a whole number (QNT). Therefore, for example, in case a currency has 2 decimal positions and the client has reserved 123.45 units. The "units" value submitted in the API call should be 12345. APIs using child chain tokens balances should send the value measured in NQT as usual. When specifying "rate" the API calculates the ratio between child chain tokens balances balance in NQT and currency balance in QNT.