We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e4c26b commit bae00adCopy full SHA for bae00ad
src/app/account.service.ts
@@ -351,8 +351,8 @@ export class AccountService {
351
const btcDepositAddress = 'Not implemented yet';
352
const ethDepositAddress = 'Not implemented yet';
353
354
- // days * (24 hours / day) * (60 minutes / hour) * (1 block / 5 minutes) = blocks
355
- const numBlocksBeforeExpiration = (numDaysBeforeExpiration * 24 * 60) / 5;
+ // days * (24 hours / day) * (60 minutes / hour) * (60 seconds / minute) * (1 block / second) = blocks
+ const numBlocksBeforeExpiration = (numDaysBeforeExpiration * 24 * 60 * 60);
356
357
// By default, we authorize this derived key for 8640 blocks, which is about 30 days.
358
const expirationBlock = blockHeight + numBlocksBeforeExpiration;
0 commit comments