@@ -428,53 +428,6 @@ describe("Repayer", function () {
428428 expect ( await wbtc . balanceOf ( repayer ) ) . to . equal ( 0n ) ;
429429 } ) ;
430430
431- it ( "Should allow repayer to initiate Arbitrum Gateway DAI repay on fork" , async function ( ) {
432- const {
433- repayer, repayUser, liquidityPool, arbitrumGatewayRouter, dai, DAI_DEC
434- } = await loadFixture ( deployAll ) ;
435-
436- assertAddress ( process . env . DAI_OWNER_ETH_ADDRESS , "Env variables not configured (DAI_OWNER_ETH_ADDRESS missing)" ) ;
437- const DAI_OWNER_ETH_ADDRESS = process . env . DAI_OWNER_ETH_ADDRESS ;
438- const daiOwner = await hre . ethers . getImpersonatedSigner ( DAI_OWNER_ETH_ADDRESS ) ;
439- await setBalance ( DAI_OWNER_ETH_ADDRESS , 10n ** 18n ) ;
440-
441- const amount = 4n * DAI_DEC ;
442- const maxGas = 10000000n ;
443- const gasPriceBid = 60000000n ;
444- const maxSubmissionCost = 100000000000000n ;
445- const fee = 1000000000000000n ;
446- await dai . connect ( daiOwner ) . transfer ( repayer , amount ) ;
447-
448- const outputToken = networkConfig . ARBITRUM_ONE . Tokens . DAI ;
449-
450- const data = AbiCoder . defaultAbiCoder ( ) . encode (
451- [ "uint256" , "bytes" ] ,
452- [ maxSubmissionCost , "0x" ] ,
453- ) ;
454- const extraData = AbiCoder . defaultAbiCoder ( ) . encode (
455- [ "address" , "uint256" , "uint256" , "bytes" ] ,
456- [ outputToken , maxGas , gasPriceBid , data ]
457- ) ;
458-
459- const gatewayAddress = await arbitrumGatewayRouter . getGateway ( dai . target ) ;
460- const tx = repayer . connect ( repayUser ) . initiateRepay (
461- dai ,
462- amount ,
463- liquidityPool ,
464- Domain . ARBITRUM_ONE ,
465- Provider . ARBITRUM_GATEWAY ,
466- extraData ,
467- { value : fee }
468- ) ;
469- await expect ( tx )
470- . to . emit ( repayer , "InitiateRepay" )
471- . withArgs ( dai . target , amount , liquidityPool . target , Domain . ARBITRUM_ONE , Provider . ARBITRUM_GATEWAY ) ;
472- await expect ( tx )
473- . to . emit ( arbitrumGatewayRouter , "TransferRouted" )
474- . withArgs ( dai . target , repayer . target , liquidityPool . target , gatewayAddress ) ;
475- expect ( await dai . balanceOf ( repayer ) ) . to . equal ( 0n ) ;
476- } ) ;
477-
478431 it ( "Should allow repayer to initiate Arbitrum Gateway WETH repay on fork" , async function ( ) {
479432 const {
480433 repayer, repayUser, liquidityPool, weth, arbitrumGatewayRouter,
0 commit comments