ETH Price: $2,529.74 (-7.09%)

Contract

0xe840Bb03fE58540841e6eBee94264d5317B88866

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo1.707293994320000212 ETH

ETH Value

$4,319.01 (@ $2,529.74/ETH)

Token Holdings

More Info

Private Name Tags

Transaction Hash
Block
From
To
Request Add Marg...284989682026-01-31 14:45:181 hr ago1769870718IN
Deri Protocol v4: Gateway
0 ETH0.000015190.03823852
Finish Liquidate284988932026-01-31 14:42:281 hr ago1769870548IN
Deri Protocol v4: Gateway
0 ETH0.000002060.041904
Finish Liquidate284988922026-01-31 14:42:261 hr ago1769870546IN
Deri Protocol v4: Gateway
0 ETH0.000044150.04997087
Request Liquidat...284988902026-01-31 14:42:201 hr ago1769870540IN
Deri Protocol v4: Gateway
0 ETH0.000006010.041904
Request Liquidat...284987992026-01-31 14:38:481 hr ago1769870328IN
Deri Protocol v4: Gateway
0 ETH0.000006010.041904
Finish Update Li...284889952026-01-31 6:39:309 hrs ago1769841570IN
Deri Protocol v4: Gateway
0 ETH0.000002460.05425959
Finish Update Li...284889952026-01-31 6:39:309 hrs ago1769841570IN
Deri Protocol v4: Gateway
0 ETH0.000030480.05425959
Request Remove L...284889932026-01-31 6:39:269 hrs ago1769841566IN
Deri Protocol v4: Gateway
0.00020119 ETH0.000007070.04104898
Finish Liquidate284751552026-01-30 18:17:5621 hrs ago1769797076IN
Deri Protocol v4: Gateway
0 ETH0.000002070.041904
Finish Liquidate284751552026-01-30 18:17:5621 hrs ago1769797076IN
Deri Protocol v4: Gateway
0 ETH0.000023570.04716001
Request Liquidat...284751532026-01-30 18:17:5221 hrs ago1769797072IN
Deri Protocol v4: Gateway
0 ETH0.000004740.04287274
Request Add Marg...284647892026-01-30 10:21:2429 hrs ago1769768484IN
Deri Protocol v4: Gateway
0 ETH0.000015370.03823851
Request Trade284586382026-01-30 5:42:3834 hrs ago1769751758IN
Deri Protocol v4: Gateway
0.0001 ETH0.000005140.03963196
Request Add Marg...284450862026-01-29 19:22:1444 hrs ago1769714534IN
Deri Protocol v4: Gateway
0.0001 ETH0.000022090.0381755
Finish Liquidate284438552026-01-29 18:31:1245 hrs ago1769711472IN
Deri Protocol v4: Gateway
0 ETH0.000002050.041904
Finish Liquidate284438552026-01-29 18:31:1245 hrs ago1769711472IN
Deri Protocol v4: Gateway
0 ETH0.000023410.04844509
Request Liquidat...284438532026-01-29 18:31:0845 hrs ago1769711468IN
Deri Protocol v4: Gateway
0 ETH0.000004860.04392
Finish Liquidate283072972026-01-25 19:26:145 days ago1769369174IN
Deri Protocol v4: Gateway
0 ETH0.000002270.04609439
Finish Liquidate283072962026-01-25 19:26:125 days ago1769369172IN
Deri Protocol v4: Gateway
0 ETH0.000020860.041904
Request Liquidat...283072952026-01-25 19:26:105 days ago1769369170IN
Deri Protocol v4: Gateway
0 ETH0.000004630.041904
Request Trade282983212026-01-25 13:34:426 days ago1769348082IN
Deri Protocol v4: Gateway
0.0001 ETH0.000005140.03963196
Request Trade An...281528392026-01-21 21:46:429 days ago1769032002IN
Deri Protocol v4: Gateway
0.00020308 ETH0.000006050.03934931
Request Add Marg...281517712026-01-21 21:09:349 days ago1769029774IN
Deri Protocol v4: Gateway
0.0001 ETH0.000018140.03825382
Finish Remove Ma...281495282026-01-21 19:52:269 days ago1769025146IN
Deri Protocol v4: Gateway
0 ETH0.000021850.04241524
Request Trade An...281495262026-01-21 19:52:229 days ago1769025142IN
Deri Protocol v4: Gateway
0.00020308 ETH0.000006050.03934931
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284989682026-01-31 14:45:181 hr ago1769870718
Deri Protocol v4: Gateway
0 ETH
284988932026-01-31 14:42:281 hr ago1769870548
Deri Protocol v4: Gateway
0 ETH
284988932026-01-31 14:42:281 hr ago1769870548
Deri Protocol v4: Gateway
0 ETH
284988932026-01-31 14:42:281 hr ago1769870548
Deri Protocol v4: Gateway
0 ETH
284988932026-01-31 14:42:281 hr ago1769870548
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0.00111227 ETH
284988922026-01-31 14:42:261 hr ago1769870546
Deri Protocol v4: Gateway
0.00111227 ETH
View All Internal Transactions
Cross-Chain 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
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0xe840Bb03fE58540841e6eBee94264d5317B88866
Loading...
Loading
[ 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.