ETH Price: $2,474.34 (-3.25%)
Gas: 0.84 Gwei

Transaction Decoder

Block:
20856374 at Sep-29-2024 12:43:47 PM +UTC
Transaction Fee:
0.0002706313091033 ETH $0.67
Gas Used:
32,650 Gas / 8.288860922 Gwei

Emitted Events:

210 RelayReceiver.FundsForwardedWithData( data=0xDD94067C20F1B3743113D2162F861F544D515020B2A6EED96246FFF0A353A736 )

Account State Difference:

  Address   Before After State Difference Code
0x81f91aCA...fAc17C9A6
0.308726656506332855 Eth
Nonce: 3580
0.188751591367738293 Eth
Nonce: 3581
0.119975065138594562
(beaverbuild)
9.152373051586986219 Eth9.152441862271445019 Eth0.0000688106844588
0xf70da978...8dfA3dbEF 405.11728994316563278 Eth405.236994376995124042 Eth0.119704433829491262

Execution Trace

ETH 0.119704433829491262 RelayReceiver.dd94067c( )
  • ETH 0.119704433829491262 0xf70da97812cb96acdf810712aa562db8dfa3dbef.CALL( )
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.23;
    contract RelayReceiver {
        // --- Structs ---
        struct Call {
            address to;
            bytes data;
            uint256 value;
        }
        // --- Errors ---
        error CallFailed();
        error NativeTransferFailed();
        error Unauthorized();
        // --- Events ---
        event FundsForwardedWithData(bytes data);
        // --- Fields ---
        address private immutable SOLVER;
        // --- Constructor ---
        constructor(address solver) {
            SOLVER = solver;
        }
        // --- Public methods ---
        fallback() external payable {
            send(SOLVER, msg.value);
            emit FundsForwardedWithData(msg.data);
        }
        function forward(bytes calldata data) external payable {
            send(SOLVER, msg.value);
            emit FundsForwardedWithData(data);
        }
        // --- Restricted methods ---
        function makeCalls(Call[] calldata calls) external payable {
            if (msg.sender != SOLVER) {
                revert Unauthorized();
            }
            unchecked {
                uint256 length = calls.length;
                for (uint256 i; i < length; i++) {
                    Call memory c = calls[i];
                    (bool success, ) = c.to.call{value: c.value}(c.data);
                    if (!success) {
                        revert CallFailed();
                    }
                }
            }
        }
        // --- Internal methods ---
        function send(address to, uint256 value) internal {
            bool success;
            assembly {
                // Save gas by avoiding copying the return data to memory.
                // Provide at most 100k gas to the internal call, which is
                // more than enough to cover common use-cases of logic for
                // receiving native tokens (eg. SCW payable fallbacks).
                success := call(100000, to, value, 0, 0, 0, 0)
            }
            if (!success) {
                revert NativeTransferFailed();
            }
        }
    }