do not truncate amounts
This commit is contained in:
parent
2cb642aac0
commit
b078844c7f
@ -4,8 +4,8 @@
|
||||
"name": "GNU Taler Wallet (git)",
|
||||
"description": "Privacy preserving and transparent payments",
|
||||
"author": "GNU Taler Developers",
|
||||
"version": "0.6.28",
|
||||
"version_name": "0.1.4",
|
||||
"version": "0.6.29",
|
||||
"version_name": "0.1.5",
|
||||
|
||||
"minimum_chrome_version": "49",
|
||||
"minimum_opera_version": "36",
|
||||
|
@ -25,7 +25,7 @@ import {AmountJson, Contract, Amounts} from "./types";
|
||||
|
||||
export function prettyAmount(amount: AmountJson) {
|
||||
let v = amount.value + amount.fraction / Amounts.fractionalBase;
|
||||
return `${v.toFixed(2)} ${amount.currency}`;
|
||||
return `${v} ${amount.currency}`;
|
||||
}
|
||||
|
||||
export function renderContract(contract: Contract): JSX.Element {
|
||||
|
@ -509,7 +509,7 @@ export type PayCoinInfo = Array<{ updatedCoin: CoinRecord, sig: CoinPaySig }>;
|
||||
|
||||
|
||||
export namespace Amounts {
|
||||
export const fractionalBase = 1e6;
|
||||
export const fractionalBase = 1e8;
|
||||
|
||||
export interface Result {
|
||||
amount: AmountJson;
|
||||
|
@ -728,6 +728,7 @@ export class Wallet {
|
||||
|
||||
private async processPreCoin(preCoin: PreCoinRecord,
|
||||
retryDelayMs = 200): Promise<void> {
|
||||
return;
|
||||
if (this.processPreCoinConcurrent >= 1) {
|
||||
console.log("delaying processPreCoin");
|
||||
setTimeout(() => this.processPreCoin(preCoin, retryDelayMs * 2),
|
||||
|
Loading…
Reference in New Issue
Block a user