@@ -8,7 +8,6 @@ import "./SpokePool.sol";
88import { IMessageService, ITokenBridge, IUSDCBridge } from "./external/interfaces/LineaInterfaces.sol " ;
99import "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
1010import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol " ;
11- import "./libraries/HypXERC20Adapter.sol " ;
1211
1312/**
1413 * @notice Linea specific SpokePool.
@@ -46,26 +45,20 @@ contract Linea_SpokePool is SpokePool {
4645 * into the past from the block time of the deposit.
4746 * @param _fillDeadlineBuffer Fill deadlines can't be set more than this amount
4847 * into the future from the block time of the deposit.
49- * @param _hypXERC20DstDomain Destination domain id for Hyperlane XERC20 transfers.
50- * @param _hypXERC20FeeCap Fee cap for Hyperlane XERC20 transfers.
5148 */
5249 /// @custom:oz-upgrades-unsafe-allow constructor
5350 constructor (
5451 address _wrappedNativeTokenAddress ,
5552 uint32 _depositQuoteTimeBuffer ,
56- uint32 _fillDeadlineBuffer ,
57- uint32 _hypXERC20DstDomain ,
58- uint256 _hypXERC20FeeCap
53+ uint32 _fillDeadlineBuffer
5954 )
6055 SpokePool (
6156 _wrappedNativeTokenAddress,
6257 _depositQuoteTimeBuffer,
6358 _fillDeadlineBuffer,
6459 // Linea_SpokePool does not use OFT messaging; setting destination eid and fee cap to 0
6560 0 ,
66- 0 ,
67- _hypXERC20DstDomain,
68- _hypXERC20FeeCap
61+ 0
6962 )
7063 {} // solhint-disable-line no-empty-blocks
7164
@@ -153,19 +146,6 @@ contract Linea_SpokePool is SpokePool {
153146 }
154147
155148 function _bridgeTokensToHubPool (uint256 amountToReturn , address l2TokenAddress ) internal override {
156- // Check if this token has a Hyperlane XERC20 router set. If so, use it
157- address hypRouter = _getXERC20HypRouter (l2TokenAddress);
158- if (address (hypRouter) != address (0 )) {
159- _transferXERC20ViaHyperlane (
160- IERC20 (l2TokenAddress),
161- IHypXERC20Router (hypRouter),
162- withdrawalRecipient,
163- amountToReturn
164- );
165- // Early return here saves us from nested if branches
166- return ;
167- }
168-
169149 // Linea's L2 Canonical Message Service, requires a minimum fee to be set.
170150 uint256 minFee = minimumFeeInWei ();
171151 // We require that the caller pass in the fees as msg.value instead of pulling ETH out of this contract's balance.
0 commit comments