Skip to content

Commit

Permalink
Fix smart contract
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed Jul 2, 2024
1 parent b0103ca commit 6bd84f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/boba/contracts/contracts/LP/L2LiquidityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -834,13 +834,12 @@ contract L2LiquidityPool is CrossDomainEnabled, ReentrancyGuardUpgradeable, Paus

if (_tokenAddress == Lib_PredeployAddresses.OVM_ETH) {
require(_amount <= address(this).balance, "Requested ETH exceeds pool balance");
L2StandardBridge(Lib_PredeployAddresses.L2_STANDARD_BRIDGE).withdrawTo(
L2StandardBridge(Lib_PredeployAddresses.L2_STANDARD_BRIDGE).withdrawTo{ value: _amount }(
_tokenAddress,
L1LiquidityPoolAddress,
_amount,
DEFAULT_FINALIZE_WITHDRAWAL_L1_GAS,
"",
{ value: _amount }
""
);
} else {
require(_amount <= IERC20(_tokenAddress).balanceOf(address(this)), "Requested ERC20 exceeds pool balance");
Expand Down

0 comments on commit 6bd84f4

Please sign in to comment.