Transaction Hash:
Block:
21430196 at Dec-18-2024 03:05:11 PM +UTC
Transaction Fee:
0.00066007142577535 ETH
$1.65
Gas Used:
32,650 Gas / 20.216582719 Gwei
Emitted Events:
549 |
RelayReceiver.FundsForwardedWithData( data=0xAD93FE3071C3FE2C3D9D5D8F847C8C23613096F2C4B8347C70C887FD1F7446E3 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 7.415893747773397061 Eth | 7.415895380273397061 Eth | 0.0000016325 | |
0xB22DB295...45E831995 |
0.998951553896129399 Eth
Nonce: 431
|
0.009329444113185943 Eth
Nonce: 432
| 0.989622109782943456 | ||
0xf70da978...8dfA3dbEF | (Relay: Solver) | 164.977029777631206275 Eth | 165.965991815988374381 Eth | 0.988962038357168106 |
Execution Trace
ETH 0.988962038357168106
RelayReceiver.ad93fe30( )
- ETH 0.988962038357168106
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(); } } }