Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix bridgeERC20To interface for all OP Stack chains #562

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions contracts/Blast_SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ interface IBlast {
function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
}

interface IUSDBL2Bridge {
function bridgeERC20To(
address _localToken,
address _remoteToken,
address _to,
uint256 _amount,
uint32 _minGasLimit,
bytes calldata _extraData
) external;
}

/**
* @notice Blast Spoke pool.
*/
Expand Down Expand Up @@ -141,7 +130,7 @@ contract Blast_SpokePool is Ovm_SpokePool {
}
// If the token is USDB then use the L2BlastBridge
if (l2TokenAddress == USDB) {
IUSDBL2Bridge(L2_BLAST_BRIDGE).bridgeERC20To(
IL2ERC20Bridge(L2_BLAST_BRIDGE).bridgeERC20To(
l2TokenAddress, // _l2Token. Address of the L2 token to bridge over.
L1_USDB,
hubPool, // _to. Withdraw, over the bridge, to the l1 pool contract.
Expand Down
2 changes: 1 addition & 1 deletion contracts/Ovm_SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IL2ERC20Bridge {
address _remoteToken,
address _to,
uint256 _amount,
uint256 _minGasLimit,
uint32 _minGasLimit,
bytes calldata _extraData
) external;
}
Expand Down
Loading