ETH Price: $2,428.68 (+0.55%)
Gas: 3.52 Gwei

Transaction Decoder

Block:
21849541 at Feb-15-2025 04:46:47 AM +UTC
Transaction Fee:
0.000043688014521536 ETH $0.11
Gas Used:
33,424 Gas / 1.307085164 Gwei

Emitted Events:

180 RelayReceiver.FundsForwardedWithData( data=0x46B408E397B6DD402F47751612EF63DF8132DC82C28E0941C173BCDD074B913346B408E397B6DD402F47751612EF63DF8132DC82C28E0941C173BCDD074B9133 )

Account State Difference:

  Address   Before After State Difference Code
(Titan Builder)
12.760875142831848486 Eth12.760891854831848486 Eth0.000016712
0x973Def57...9ED851452
0.814246654399987377 Eth
Nonce: 2749
0.810661326851865841 Eth
Nonce: 2750
0.003585327548121536
0xf70da978...8dfA3dbEF
(Relay: Solver)
232.619514422135139377 Eth232.623056061668739377 Eth0.0035416395336

Execution Trace

ETH 0.0035416395336 RelayReceiver.46b408e3( )
  • ETH 0.0035416395336 Relay: Solver.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();
            }
        }
    }