ETH Price: $2,432.48 (+0.43%)

Transaction Decoder

Block:
11944248 at Feb-28-2021 06:29:47 AM +UTC
Transaction Fee:
0.00393421875 ETH $9.57
Gas Used:
21,000 Gas / 187.34375 Gwei

Account State Difference:

  Address   Before After State Difference Code
0xB9C76411...DDF95b9CF
(Bitkub: Hot Wallet 5)
6,026.577464647368584616 Eth
Nonce: 232967
6,025.881530428618584616 Eth
Nonce: 232968
0.69593421875
0xc1360324...7A6423465
0 Eth
Nonce: 0
0.692 Eth
Nonce: 0
0.692From: 0 To: 0
7.747721743887482405 Eth7.751655962637482405 Eth0.00393421875

Execution Trace

ETH 0.692 Proxy.CALL( )
pragma solidity ^0.6.12;

// Copyright (C) 2018  Argent Labs Ltd. <https://argent.xyz>

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

// SPDX-License-Identifier: GPL-3.0-only

/**
 * @title Proxy
 * @notice Basic proxy that delegates all calls to a fixed implementing contract.
 * The implementing contract cannot be upgraded.
 * @author Julien Niset - <[email protected]>
 */
contract Proxy {

    address implementation;

    event Received(uint indexed value, address indexed sender, bytes data);

    constructor(address _implementation) public {
        implementation = _implementation;
    }

    fallback() external payable {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let target := sload(0)
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(gas(), target, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            switch result
            case 0 {revert(0, returndatasize())}
            default {return (0, returndatasize())}
        }
    }

    receive() external payable {
        emit Received(msg.value, msg.sender, msg.data);
    }
}