|
1 | 1 | // SPDX-License-Identifier: MIT
|
2 | 2 |
|
3 | 3 | /**
|
4 |
| - * @authors: [@jaybuidl, @shotaronowhere, @hrishibhat, @adi274] |
| 4 | + * @authors: [@jaybuidl, @shotaronowhere, @hrishibhat] |
5 | 5 | * @reviewers: []
|
6 | 6 | * @auditors: []
|
7 | 7 | * @bounties: []
|
@@ -36,30 +36,30 @@ contract FastBridgeReceiverOnEthereum is IFastBridgeReceiver, ISafeBridgeReceive
|
36 | 36 | // * Views * //
|
37 | 37 | // ************************************* //
|
38 | 38 |
|
39 |
| - function isSentBySafeBridge() internal view virtual override returns (bool) { |
| 39 | + function isSentBySafeBridge() internal view override returns (bool) { |
40 | 40 | IOutbox outbox = IOutbox(inbox.bridge().activeOutbox());
|
41 |
| - return (msg.sender == address(outbox) && outbox.l2ToL1Sender() == fastBridgeSender); |
| 41 | + return outbox.l2ToL1Sender() == safeBridgeSender; |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | /**
|
45 | 45 | * @dev Constructor.
|
46 | 46 | * @param _deposit The deposit amount to submit a claim in wei.
|
47 | 47 | * @param _epochPeriod The duration of each epoch.
|
48 | 48 | * @param _challengePeriod The duration of the period allowing to challenge a claim.
|
49 |
| - * @param _fastBridgeSender The address of the Safe Bridge Sender on the connecting chain. |
| 49 | + * @param _safeBridgeSender The address of the Safe Bridge Sender on the connecting chain. |
50 | 50 | * @param _inbox Ethereum receiver specific: The address of the inbox contract on Ethereum.
|
51 | 51 | */
|
52 | 52 | constructor(
|
53 | 53 | uint256 _deposit,
|
54 | 54 | uint256 _epochPeriod,
|
55 | 55 | uint256 _challengePeriod,
|
56 |
| - address _fastBridgeSender, |
| 56 | + address _safeBridgeSender, |
57 | 57 | address _inbox // Ethereum receiver specific
|
58 | 58 | ) {
|
59 | 59 | deposit = _deposit;
|
60 | 60 | epochPeriod = _epochPeriod;
|
61 | 61 | challengePeriod = _challengePeriod;
|
62 |
| - fastBridgeSender = _fastBridgeSender; |
| 62 | + safeBridgeSender = _safeBridgeSender; |
63 | 63 | inbox = IInbox(_inbox); // Ethereum receiver specific
|
64 | 64 | }
|
65 | 65 |
|
@@ -95,7 +95,7 @@ contract FastBridgeReceiverOnEthereum is IFastBridgeReceiver, ISafeBridgeReceive
|
95 | 95 | uint256 public immutable deposit; // The deposit required to submit a claim or challenge
|
96 | 96 | uint256 public immutable override epochPeriod; // Epochs mark the period between potential batches of messages.
|
97 | 97 | uint256 public immutable override challengePeriod; // Epochs mark the period between potential batches of messages.
|
98 |
| - address public immutable fastBridgeSender; // The address of the Safe Bridge Sender on the connecting chain. |
| 98 | + address public immutable safeBridgeSender; // The address of the Safe Bridge Sender on the connecting chain. |
99 | 99 |
|
100 | 100 | mapping(uint256 => bytes32) public fastInbox; // epoch => validated batch merkle root(optimistically, or challenged and verified with the safe bridge)
|
101 | 101 | mapping(uint256 => Claim) public claims; // epoch => claim
|
|
0 commit comments