ETH Price: $1,813.90 (+10.37%)
Gas: 0.21 GWei

Contract

0xe840Bb03fE58540841e6eBee94264d5317B88866

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo1.759055567980000001 ETH

ETH Value

$3,190.75 (@ $1,813.90/ETH)
Transaction Hash
Method
Block
From
To
0xf750f4be8e88b37babd40ac8513390cbef736e78641105bda8f4181e9c841442 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x56b30f31c1a210cbcc865266185a6556ea2953ce32f3cec82fea57652e26e95f -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xb4420b9e3d9b2a8aceb320435f57f0b1f44e79a45879828eda6427412a151c41 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xa55b4934d988ee1aa78118fb6806cac4309d6c3c563705984dbc5cfde22c4e7e -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x6086e4497b3b674d874657eb304f5705d8590676fc3108848da1ce831c1657ad -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x9847e1785322cecb8706517eab1b7c0b6fc1f1b099c724c74859cb9e4fa3eb71 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x36de5e66a890ed88d1867da12f1fc174e28108b94bdc6ca093342ad4a822ee1c -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xfeb22848432bbbd9599a57be95da4b2999d1d68762709186c13470c4b1d9cc6b -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x95dd0ceea35a8bd2761f320c4e67c3c70c4a2ef0e890a40729a09e9dcb2f7629 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xa7f6272232c5d90845fe2e91a7eefa8fa7d762d1ea9b490b7b4cd05bb053a6c9 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xa9a1405e90744573ac92be3e8c1f4d1a4d6a6c688141aca93558a8426a50fe55 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x3c97f07fc6c4dd8c17ca3913dcff08d0133beb151b4df46f87d45a7ccf79c6c5 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x064402a5a2e8eb83ffa37ad077f43247c26a26004aa86de28bfadba44fe78e58 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xdcdfb24801eda6b589a52f47e1eef6b5ae5481abf656616e4fba5108e0c3a0e1 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xd8eefff00b27b6ad058c3b23a5b012aa03942733033a71bee61642c1eb1d20ef -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x5d2ea44b631ebe428137042c6b8a54e0962ad3ab8f113e9475e4d5a1e5909df6 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x1f2411b53ec9543fe2f8a40120bfdf9a2f50c733788e89966e9d24d6f2b320b7 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xeff0d9f6d0bb0cafaebda31bca14020040245893d4767593ae30c3eebb32875d -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xc3d4a07b23d680c4c48d0be294e03533542ff72ea69ab0a77e913e3ee2e9227d -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x5660203029ab4b9cb9b7722d09eb3a1f50929764638edc8189c19a5821944d9a -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xcd07bc2f286b1ded80c7dda68a872784383d24300aa433cc45b57710956cbc84 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x93fa12107492b9494916ee7483d4ce583becdc0eb7830f52070bcb648859e212 -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x73d48260ad21a6ee9b8b9902180f16eb81dd2b37d75554f448c26aa5ff29f76e -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0xb9930ac5db1851eef5f8098637bf846d2fe6483c1e246083257884196549b99e -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
0x8b2275f14e7c54730426bd7dbfff02d53b6be182ee0009c93fa908e4b712a88a -(pending)2025-04-18 7:33:185 days ago1744961598IN
0xe840Bb03...317B88866
0 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0.00002364 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059922025-04-23 11:47:401 hr ago1745408860
0xe840Bb03...317B88866
0 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0.286 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0.28612364 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0 ETH
183059912025-04-23 11:47:331 hr ago1745408853
0xe840Bb03...317B88866
0.28612364 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0.00010119 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0.28541489 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0.00517332 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0.28024156 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
183059802025-04-23 11:47:031 hr ago1745408823
0xe840Bb03...317B88866
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gateway

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 5 : Gateway.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './GatewayStorage.sol';

contract Gateway is GatewayStorage {

    fallback() external payable {
        address imp = implementation;
        assembly {
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(gas(), imp, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            switch result
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    receive() external payable {}

}

File 2 of 5 : GatewayStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import '../../utils/Admin.sol';
import '../../utils/Implementation.sol';
import '../../utils/ReentryLock.sol';

abstract contract GatewayStorage is Admin, Implementation, ReentryLock {

    // stateId => value
    mapping(uint8 => bytes32) internal _gatewayStates;

    // bToken => stateId => value
    mapping(address => mapping(uint8 => bytes32)) internal _bTokenStates;

    // dTokenId => stateId => value
    mapping(uint256 => mapping(uint8 => bytes32)) internal _dTokenStates;

    // actionId => executionFee
    mapping(uint256 => uint256) internal _executionFees;

}

File 3 of 5 : Admin.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

abstract contract Admin {

    error OnlyAdmin();

    event NewAdmin(address newAdmin);

    address public admin;

    modifier _onlyAdmin_() {
        if (msg.sender != admin) {
            revert OnlyAdmin();
        }
        _;
    }

    constructor () {
        admin = msg.sender;
        emit NewAdmin(admin);
    }

    /**
     * @notice Set a new admin for the contract.
     * @dev This function allows the current admin to assign a new admin address without performing any explicit verification.
     *      It's the current admin's responsibility to ensure that the 'newAdmin' address is correct and secure.
     * @param newAdmin The address of the new admin.
     */
    function setAdmin(address newAdmin) external _onlyAdmin_ {
        admin = newAdmin;
        emit NewAdmin(newAdmin);
    }

}

File 4 of 5 : Implementation.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import './Admin.sol';

abstract contract Implementation is Admin {

    event NewImplementation(address newImplementation);

    address public implementation;

    // @notice Set a new implementation address for the contract
    function setImplementation(address newImplementation) external _onlyAdmin_ {
        implementation = newImplementation;
        emit NewImplementation(newImplementation);
    }

}

File 5 of 5 : ReentryLock.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

abstract contract ReentryLock {

    error Reentry();

    bool internal _mutex;

    // @notice Lock for preventing reentrancy attacks
    modifier _reentryLock_() {
        if (_mutex) {
            revert Reentry();
        }
        _mutex = true;
        _;
        _mutex = false;
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"OnlyAdmin","type":"error"},{"inputs":[],"name":"Reentry","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916339081179091556040519081527f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c9060200160405180910390a1610277806100686000396000f3fe6080604052600436106100435760003560e01c80635c60da1b1461007c578063704b6c02146100b8578063d784d426146100d8578063f851a440146100f85761004a565b3661004a57005b6001546001600160a01b03163660008037600080366000845af43d6000803e808015610075573d6000f35b3d6000fd5b005b34801561008857600080fd5b5060015461009c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c457600080fd5b5061007a6100d3366004610211565b610118565b3480156100e457600080fd5b5061007a6100f3366004610211565b610198565b34801561010457600080fd5b5060005461009c906001600160a01b031681565b6000546001600160a01b0316331461014357604051634755657960e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c906020015b60405180910390a150565b6000546001600160a01b031633146101c357604051634755657960e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f6b70829fcbe4891157f7a7496f9870927de3c8237adbe9cd39bae09b7382c4099060200161018d565b60006020828403121561022357600080fd5b81356001600160a01b038116811461023a57600080fd5b939250505056fea2646970667358221220a36016174573433d4ab15d1c63e4e02728ef5f1843757ad7552a59bf1a1206c264736f6c63430008140033

Deployed Bytecode

0x6080604052600436106100435760003560e01c80635c60da1b1461007c578063704b6c02146100b8578063d784d426146100d8578063f851a440146100f85761004a565b3661004a57005b6001546001600160a01b03163660008037600080366000845af43d6000803e808015610075573d6000f35b3d6000fd5b005b34801561008857600080fd5b5060015461009c906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c457600080fd5b5061007a6100d3366004610211565b610118565b3480156100e457600080fd5b5061007a6100f3366004610211565b610198565b34801561010457600080fd5b5060005461009c906001600160a01b031681565b6000546001600160a01b0316331461014357604051634755657960e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c906020015b60405180910390a150565b6000546001600160a01b031633146101c357604051634755657960e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f6b70829fcbe4891157f7a7496f9870927de3c8237adbe9cd39bae09b7382c4099060200161018d565b60006020828403121561022357600080fd5b81356001600160a01b038116811461023a57600080fd5b939250505056fea2646970667358221220a36016174573433d4ab15d1c63e4e02728ef5f1843757ad7552a59bf1a1206c264736f6c63430008140033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.