From 3c57820df0711f301e69adb0f4b8a91f0905cc0c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 4 Sep 2020 12:04:11 +0530 Subject: formatting, import --- packages/taler-wallet-core/src/operations/refresh.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/refresh.ts') diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 76f3015f3..062a52e6d 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -654,7 +654,10 @@ export async function createRefreshGroup( * Timestamp after which the wallet would do the next check for an auto-refresh. */ function getAutoRefreshCheckThreshold(d: DenominationRecord): Timestamp { - const delta = timestampDifference(d.stampExpireWithdraw, d.stampExpireDeposit); + const delta = timestampDifference( + d.stampExpireWithdraw, + d.stampExpireDeposit, + ); const deltaDiv = durationMul(delta, 0.75); return timestampAddDuration(d.stampExpireWithdraw, deltaDiv); } @@ -663,7 +666,10 @@ function getAutoRefreshCheckThreshold(d: DenominationRecord): Timestamp { * Timestamp after which the wallet would do an auto-refresh. */ function getAutoRefreshExecuteThreshold(d: DenominationRecord): Timestamp { - const delta = timestampDifference(d.stampExpireWithdraw, d.stampExpireDeposit); + const delta = timestampDifference( + d.stampExpireWithdraw, + d.stampExpireDeposit, + ); const deltaDiv = durationMul(delta, 0.5); return timestampAddDuration(d.stampExpireWithdraw, deltaDiv); } -- cgit v1.2.3