File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ COPY ./package.json .
88COPY ./package-lock.json .
99COPY ./.npmrc .
1010
11- # use yarn to upgrade npm
12- RUN yarn global add npm@7
13-
1411# install frontend dependencies before copying the frontend code
1512# into the container so we get docker cache benefits
1613RUN npm install
Original file line number Diff line number Diff line change @@ -351,8 +351,8 @@ export class AccountService {
351351 const btcDepositAddress = 'Not implemented yet' ;
352352 const ethDepositAddress = 'Not implemented yet' ;
353353
354- // days * (24 hours / day) * (60 minutes / hour) * (1 block / 5 minutes ) = blocks
355- const numBlocksBeforeExpiration = ( numDaysBeforeExpiration * 24 * 60 ) / 5 ;
354+ // days * (24 hours / day) * (60 minutes / hour) * (60 seconds / minute) * ( 1 block / second ) = blocks
355+ const numBlocksBeforeExpiration = numDaysBeforeExpiration * 24 * 60 * 60 ;
356356
357357 // By default, we authorize this derived key for 8640 blocks, which is about 30 days.
358358 const expirationBlock = blockHeight + numBlocksBeforeExpiration ;
You can’t perform that action at this time.
0 commit comments