@@ -436,7 +436,7 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
436436 quote . expireBlock = await ethers . provider
437437 . getBlockNumber ( )
438438 . then ( ( result ) => result + 10 ) ;
439- quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 3000 ;
439+ quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 100_000 ;
440440 const { blockHeaderHash, partialMerkleTree, merkleBranchHashes } =
441441 getTestMerkleProof ( ) ;
442442 const quoteHash = await lbc
@@ -457,7 +457,7 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
457457 } ) ;
458458 await expect ( depositTx ) . to . emit ( lbc , "PegOutDeposit" ) ;
459459 await hardhatHelpers . mine ( 9 ) ;
460- await hardhatHelpers . time . increase ( 6000 ) ;
460+ await hardhatHelpers . mine ( 1 , { interval : 120_000 } ) ;
461461
462462 const btcTx = await generateRawTx ( lbc , quote ) ;
463463 lbc = lbc . connect ( provider . signer ) ;
@@ -575,8 +575,9 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
575575 } ) ;
576576 quote . expireBlock = await ethers . provider
577577 . getBlockNumber ( )
578- . then ( ( result ) => result - 1 ) ;
579- quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 100 ;
578+ . then ( ( result ) => result - 2 ) ;
579+ quote . depositDateLimit = Math . round ( Date . now ( ) / 1000 ) + 8000 ;
580+ quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 3000 ;
580581 const quoteHash = await lbc
581582 . hashPegoutQuote ( quote )
582583 . then ( ( hash ) => getBytes ( hash ) ) ;
@@ -588,7 +589,7 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
588589 } ) ;
589590 await expect ( revertByBlocks ) . to . be . revertedWith ( "LBC047" ) ;
590591
591- await hardhatHelpers . time . increase ( 200 ) ;
592+ await hardhatHelpers . mine ( 3 , { interval : 2000 } ) ;
592593 const revertByTime = lbc . depositPegout ( quote , signature , {
593594 value : totalValue ( quote ) ,
594595 } ) ;
@@ -687,7 +688,7 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
687688 quote . expireBlock = await ethers . provider
688689 . getBlockNumber ( )
689690 . then ( ( result ) => result + 10 ) ;
690- quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 100 ;
691+ quote . expireDate = Math . round ( Date . now ( ) / 1000 ) + 100_000 ;
691692 const quoteHash = await lbc
692693 . hashPegoutQuote ( quote )
693694 . then ( ( hash ) => getBytes ( hash ) ) ;
@@ -708,7 +709,7 @@ describe("LiquidityBridgeContractV2 pegout process should", () => {
708709 ( totalValue ( quote ) + depositReceipt ! . fee ) * - 1n
709710 ) ;
710711 await hardhatHelpers . mine ( 9 ) ;
711- await hardhatHelpers . time . increase ( 200 ) ;
712+ await hardhatHelpers . mine ( 2 , { interval : 120_000 } ) ;
712713 const userBalanceBeforeRefundAssertion = await createBalanceUpdateAssertion (
713714 {
714715 source : ethers . provider ,
0 commit comments