From b8a850fe60efe58923cddc56afdddb43c1e687d7 Mon Sep 17 00:00:00 2001 From: zkbenny Date: Thu, 11 Apr 2024 11:21:21 +0800 Subject: [PATCH] allow to receive more value on op stack --- contracts/gateway/optimism/OptimismL1Gateway.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/gateway/optimism/OptimismL1Gateway.sol b/contracts/gateway/optimism/OptimismL1Gateway.sol index aefbf6a..a56b2f7 100644 --- a/contracts/gateway/optimism/OptimismL1Gateway.sol +++ b/contracts/gateway/optimism/OptimismL1Gateway.sol @@ -34,7 +34,8 @@ contract OptimismL1Gateway is L1BaseGateway, OptimismGateway { uint256 _value, bytes calldata _callData ) external payable onlyMessageService onlyRemoteGateway { - require(msg.value == _value, "Invalid value"); + // Blast will return more value(the stake profit) than burned on L2 + require(msg.value >= _value, "Invalid value"); // Forward message to arbitrator ARBITRATOR.receiveMessage{value: _value}(_value, _callData); }