diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-04 12:04:11 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-04 12:04:11 +0530 |
commit | 3c57820df0711f301e69adb0f4b8a91f0905cc0c (patch) | |
tree | 5be12160a8061ce7954c7552ed861a443e3f57a5 /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | c7a2abedbabe9142ce9a15902f90a5d1f4b36f05 (diff) | |
download | wallet-core-3c57820df0711f301e69adb0f4b8a91f0905cc0c.tar.xz |
formatting, import
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 10 |
1 files changed, 8 insertions, 2 deletions
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); } |