ETH Price: $2,150.43 (+0.27%)

Transaction Decoder

Block:
22246776 at Apr-11-2025 04:04:35 PM +UTC
Transaction Fee:
0.00007171477276275 ETH $0.15
Gas Used:
32,650 Gas / 2.196470835 Gwei

Emitted Events:

296 RelayReceiver.FundsForwardedWithData( data=0xE099F150D4FB56B61476128778A7F064C265C4AC3C3FC4D32412313E47202164 )

Account State Difference:

  Address   Before After State Difference Code
(beaverbuild)
12.503265757129231517 Eth12.503267389629231517 Eth0.0000016325
0x9f81A77E...0CA06b2de
0.012310786529044539 Eth
Nonce: 54
0.001051393092527695 Eth
Nonce: 55
0.011259393436516844
0xf70da978...8dfA3dbEF
(Relay: Solver)
434.205228431787137338 Eth434.216416110450891432 Eth0.011187678663754094

Execution Trace

ETH 0.011187678663754094 RelayReceiver.e099f150( )
  • ETH 0.011187678663754094 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();
            }
        }
    }