Skip to content

Commit

Permalink
Add withdrawal amount
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed Jul 2, 2024
1 parent 7f23de1 commit b0103ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/boba/contracts/contracts/LP/L2LiquidityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,8 @@ contract L2LiquidityPool is CrossDomainEnabled, ReentrancyGuardUpgradeable, Paus
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 b0103ca

Please sign in to comment.