ETH Price: $1,791.19 (+6.89%)

Contract

0x34FD72D2053339EA4EB1a8836CF50Ebce91962D0

Overview

ETH Balance

0.02710993342 ETH

ETH Value

$48.56 (@ $1,791.19/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Request Liquidat...594980712025-04-23 8:40:006 hrs ago1745397600IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594980442025-04-23 8:38:216 hrs ago1745397501IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594980252025-04-23 8:37:396 hrs ago1745397459IN
Deri Protocol v4: Gateway
0 ETH0.000009370.04525
Request Liquidat...594922202025-04-23 4:49:469 hrs ago1745383786IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594921872025-04-23 4:48:079 hrs ago1745383687IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594921722025-04-23 4:47:269 hrs ago1745383646IN
Deri Protocol v4: Gateway
0 ETH0.000005730.04525
Request Liquidat...594915162025-04-23 4:19:4410 hrs ago1745381984IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594914732025-04-23 4:18:0610 hrs ago1745381886IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594914622025-04-23 4:17:2510 hrs ago1745381845IN
Deri Protocol v4: Gateway
0 ETH0.000009160.04525
Request Liquidat...594693282025-04-22 14:34:0124 hrs ago1745332441IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594692692025-04-22 14:32:2124 hrs ago1745332341IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594692452025-04-22 14:31:4124 hrs ago1745332301IN
Deri Protocol v4: Gateway
0 ETH0.00001470.04525
Request Liquidat...594607082025-04-22 8:48:4229 hrs ago1745311722IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594606542025-04-22 8:47:0429 hrs ago1745311624IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594606352025-04-22 8:46:2529 hrs ago1745311585IN
Deri Protocol v4: Gateway
0 ETH0.000008950.04525
Request Liquidat...594575702025-04-22 6:56:0631 hrs ago1745304966IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594575452025-04-22 6:54:2631 hrs ago1745304866IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...594575342025-04-22 6:53:4531 hrs ago1745304825IN
Deri Protocol v4: Gateway
0 ETH0.000008910.04525
Request Liquidat...593789222025-04-20 1:03:053 days ago1745110985IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...593788872025-04-20 1:01:263 days ago1745110886IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...593788782025-04-20 1:00:443 days ago1745110844IN
Deri Protocol v4: Gateway
0 ETH0.000008910.04525
Request Liquidat...593742112025-04-19 20:02:463 days ago1745092966IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...593741672025-04-19 20:01:063 days ago1745092866IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
Request Liquidat...593741522025-04-19 20:00:263 days ago1745092826IN
Deri Protocol v4: Gateway
0 ETH0.000005680.04525
Request Liquidat...593739762025-04-19 19:52:463 days ago1745092366IN
Deri Protocol v4: Gateway
0 ETH0.000004970.04525
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
585102842025-04-01 14:29:4422 days ago1743517784
Deri Protocol v4: Gateway
0.0000251 ETH
585102812025-04-01 14:29:4122 days ago1743517781
Deri Protocol v4: Gateway
0.0001251 ETH
585102812025-04-01 14:29:4122 days ago1743517781
Deri Protocol v4: Gateway
0.0001251 ETH
585102812025-04-01 14:29:4122 days ago1743517781
Deri Protocol v4: Gateway
0.0001251 ETH
578277642025-03-17 23:25:0736 days ago1742253907
Deri Protocol v4: Gateway
0.0000251 ETH
578277622025-03-17 23:25:0436 days ago1742253904
Deri Protocol v4: Gateway
0.0001251 ETH
578277622025-03-17 23:25:0436 days ago1742253904
Deri Protocol v4: Gateway
0.0001251 ETH
578277622025-03-17 23:25:0436 days ago1742253904
Deri Protocol v4: Gateway
0.0001251 ETH
563753652025-02-21 12:46:2361 days ago1740141983
Deri Protocol v4: Gateway
0.0000145 ETH
563753642025-02-21 12:46:2261 days ago1740141982
Deri Protocol v4: Gateway
0.0001145 ETH
563753642025-02-21 12:46:2261 days ago1740141982
Deri Protocol v4: Gateway
0.0001145 ETH
563753642025-02-21 12:46:2261 days ago1740141982
Deri Protocol v4: Gateway
0.0001145 ETH
552137052025-02-04 0:55:2378 days ago1738630523
Deri Protocol v4: Gateway
0.0000251 ETH
552137032025-02-04 0:55:2078 days ago1738630520
Deri Protocol v4: Gateway
0.0001251 ETH
552137032025-02-04 0:55:2078 days ago1738630520
Deri Protocol v4: Gateway
0.0001251 ETH
552137032025-02-04 0:55:2078 days ago1738630520
Deri Protocol v4: Gateway
0.0001251 ETH
546570322025-01-27 9:26:2586 days ago1737969985
Deri Protocol v4: Gateway
0.0000251 ETH
546570292025-01-27 9:26:2286 days ago1737969982
Deri Protocol v4: Gateway
0.0001251 ETH
546570292025-01-27 9:26:2286 days ago1737969982
Deri Protocol v4: Gateway
0.0001251 ETH
546570292025-01-27 9:26:2286 days ago1737969982
Deri Protocol v4: Gateway
0.0001251 ETH
546413082025-01-27 4:50:2986 days ago1737953429
Deri Protocol v4: Gateway
0.0000251 ETH
546413052025-01-27 4:50:2586 days ago1737953425
Deri Protocol v4: Gateway
0.0001251 ETH
546413052025-01-27 4:50:2586 days ago1737953425
Deri Protocol v4: Gateway
0.0001251 ETH
546413052025-01-27 4:50:2586 days ago1737953425
Deri Protocol v4: Gateway
0.0001251 ETH
537989272025-01-16 8:01:2597 days ago1737014485
Deri Protocol v4: Gateway
0.0000251 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gateway

Compiler Version
v0.8.20+commit.a1b79de6

ZkSolc Version
v1.3.14

Optimization Enabled:
Yes with Mode 3

Other Settings:
default evmVersion, MIT license
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
{
  "compilerPath": "",
  "experimental": {},
  "libraries": {
    "contracts/dchain/symbol/Futures.sol": {
      "Futures": "0x0000000000000000000000000000000000000001"
    },
    "contracts/dchain/symbol/Option.sol": {
      "Option": "0x0000000000000000000000000000000000000002"
    },
    "contracts/dchain/symbol/Power.sol": {
      "Power": "0x0000000000000000000000000000000000000003"
    }
  },
  "optimizer": {
    "enabled": true,
    "mode": "3"
  }
}

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"}]

9c4d535b000000000000000000000000000000000000000000000000000000000000000001000069f78663311e64e5232d37f29e55ace31464c535296b05baf27b2aed7a00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x000400000000000200000000030100190000006003300270000000550430019700030000004103550002000000010355000000550030019d000100000000001f0000008001000039000000400010043f0000000101200190000000490000c13d0000000003000031000000040130008c000000630000413d0000000201000367000000000201043b000000e0022002700000005a0420009c000000670000213d0000005d0420009c000000ed0000613d0000005e0220009c000000870000c13d0000000001000416000000000101004b000001350000c13d000000040100008a00000000011000310000005f02000041000000200310008c000000000300001900000000030240190000005f01100197000000000401004b000000000200a0190000005f0110009c00000000010300190000000001026019000000000101004b000001350000c13d00000004010000390000000201100367000000000101043b000000600210009c000001350000213d000000000200041a00000060032001970000000004000411000000000334004b0000013d0000c13d0000005602200197000000000212019f000000000020041b000000400200043d000000000012043500000055010000410000000003000414000000550430009c0000000003018019000000550420009c00000000010240190000004001100210000000c002300210000000000112019f00000062011001c70000800d0200003900000001030000390000005804000041015001460000040f0000000101200190000001350000613d000000650000013d0000000001000416000000000101004b000001350000c13d000000000100041a00000056011001970000000002000411000000000121019f000000000010041b000000800020043f00000055010000410000000002000414000000550320009c0000000001024019000000c00110021000000057011001c70000800d0200003900000001030000390000005804000041015001460000040f0000000101200190000001350000613d0000002001000039000001000010044300000120000004430000005901000041000001510001042e000000000103004b000000860000c13d0000000001000019000001510001042e0000005b0420009c000001040000613d0000005c0220009c000000870000c13d0000000001000416000000000101004b000001350000c13d000000040100008a00000000011000310000005f02000041000000000301004b000000000300001900000000030240190000005f01100197000000000401004b000000000200a0190000005f0110009c00000000010300190000000001026019000000000101004b000001350000c13d000000000100041a0000006001100197000000400200043d00000000001204350000005501000041000000550320009c0000000001024019000000400110021000000061011001c7000001510001042e00000002010003670000001f0430018f0000000102000039000000000202041a00000060022001970000000503300272000000950000613d00000000050000190000000506500210000000000761034f000000000707043b00000000007604350000000105500039000000000635004b0000008e0000413d000000000504004b000000a30000613d00000003044002100000000503300210000000000503043300000000054501cf000000000545022f000000000131034f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000000010000310000000003000414000000040420008c000000c30000c13d000000030100036700000001020000310000001f0320018f0000000502200272000000b40000613d00000000040000190000000505400210000000000651034f000000000606043b00000000006504350000000104400039000000000524004b000000ad0000413d000000000403004b000000ea0000613d00000003033002100000000502200210000000000402043300000000043401cf000000000434022f000000000121034f000000000101043b0000010003300089000000000131022f00000000013101cf000000000141019f0000000000120435000000ea0000013d0000005504000041000000550530009c0000000003048019000000c003300210000000600110021000000000011300190150014b0000040f0003000000010355000000000301001900000060043002700000001f0340018f000100550040019d00000055044001970000000504400272000000da0000613d00000000050000190000000506500210000000000761034f000000000707043b00000000007604350000000105500039000000000645004b000000d30000413d000000000503004b000000e80000613d00000003033002100000000504400210000000000504043300000000053501cf000000000535022f000000000141034f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f00000000001404350000000101200190000001370000613d000000600100003900000001011001ff000001510001042e0000000001000416000000000101004b000001350000c13d000000040100008a00000000011000310000005f02000041000000000301004b000000000300001900000000030240190000005f01100197000000000401004b000000000200a0190000005f0110009c00000000010300190000000001026019000000000101004b000001350000c13d0000000101000039000000000101041a0000006001100197000000800010043f0000006601000041000001510001042e0000000001000416000000000101004b000001350000c13d000000040100008a00000000011000310000005f02000041000000200310008c000000000300001900000000030240190000005f01100197000000000401004b000000000200a0190000005f0110009c00000000010300190000000001026019000000000101004b000001350000c13d00000004010000390000000201100367000000000101043b000000600210009c000001350000213d000000000200041a00000060022001970000000003000411000000000223004b0000013d0000c13d0000000103000039000000000203041a0000005602200197000000000212019f000000000023041b000000400200043d000000000012043500000055010000410000000004000414000000550540009c0000000004018019000000550520009c00000000010240190000004001100210000000c002400210000000000112019f00000062011001c70000800d020000390000006304000041015001460000040f0000000101200190000000650000c13d0000000001000019000001520001043000000055010000410000000102000031000000550320009c000000000102401900000060011002100000015200010430000000400100043d000000640200004100000000002104350000005502000041000000550310009c0000000001028019000000400110021000000065011001c7000001520001043000000149002104210000000102000039000000000001042d0000000002000019000000000001042d0000014e002104250000000102000039000000000001042d0000000002000019000000000001042d0000015000000432000001510001042e0000015200010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000020000000000000000000000000000000000002000000080000000000000000071614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000d784d42500000000000000000000000000000000000000000000000000000000d784d42600000000000000000000000000000000000000000000000000000000f851a440000000000000000000000000000000000000000000000000000000005c60da1b00000000000000000000000000000000000000000000000000000000704b6c028000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000002000000000000000000000000002000000000000000000000000000000000000200000000000000000000000006b70829fcbe4891157f7a7496f9870927de3c8237adbe9cd39bae09b7382c4094755657900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000008000000000000000000000000000000000000000000000000000000000000000000000000000000000a3d176266d3bb81b4e546400d044a9d196dde687da72569429e34aa4faae3186

Block Transaction Gas Used Reward
view all blocks produced

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.