ETH Price: $3,574.24 (-0.13%)

Contract

0x36D0170D92F66e8949eB276C3AC4FEA64f83704d

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Amount:Between 1-1k
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
842745302025-11-09 13:04:0531 hrs ago1762693445
0x36D0170D...64f83704d
0.02199565 ETH
842745302025-11-09 13:04:0531 hrs ago1762693445
0x36D0170D...64f83704d
0.01345119 ETH
842465672025-11-02 13:04:058 days ago1762088645
0x36D0170D...64f83704d
0.00854446 ETH
842300172025-10-29 13:04:0512 days ago1761743045
0x36D0170D...64f83704d
0.01323133 ETH
842300172025-10-29 13:04:0512 days ago1761743045
0x36D0170D...64f83704d
0.00644887 ETH
842185392025-10-26 13:04:0515 days ago1761483845
0x36D0170D...64f83704d
0.00678246 ETH
842042732025-10-22 13:04:0519 days ago1761138245
0x36D0170D...64f83704d
0.01617841 ETH
842042732025-10-22 13:04:0519 days ago1761138245
0x36D0170D...64f83704d
0.00946838 ETH
841936372025-10-19 13:04:0522 days ago1760879045
0x36D0170D...64f83704d
0.00671003 ETH
841794022025-10-15 13:04:0526 days ago1760533445
0x36D0170D...64f83704d
0.01951286 ETH
841794022025-10-15 13:04:0526 days ago1760533445
0x36D0170D...64f83704d
0.01379743 ETH
841541802025-10-08 13:04:0533 days ago1759928645
0x36D0170D...64f83704d
0.00571542 ETH
841434992025-10-05 13:04:0636 days ago1759669446
0x36D0170D...64f83704d
0.01279775 ETH
841434992025-10-05 13:04:0636 days ago1759669446
0x36D0170D...64f83704d
0.00732129 ETH
841286372025-10-01 13:04:0540 days ago1759323845
0x36D0170D...64f83704d
0.00547645 ETH
841157072025-09-28 13:04:0543 days ago1759064645
0x36D0170D...64f83704d
0.01635179 ETH
841157072025-09-28 13:04:0543 days ago1759064645
0x36D0170D...64f83704d
0.00662741 ETH
841010942025-09-24 13:05:0547 days ago1758719105
0x36D0170D...64f83704d
0.0000037 ETH
841010902025-09-24 13:04:0547 days ago1758719045
0x36D0170D...64f83704d
0.00972067 ETH
840889812025-09-21 13:04:0550 days ago1758459845
0x36D0170D...64f83704d
0.02345212 ETH
840889812025-09-21 13:04:0550 days ago1758459845
0x36D0170D...64f83704d
0.00864897 ETH
840727902025-09-17 13:04:0654 days ago1758114246
0x36D0170D...64f83704d
0.01575069 ETH
840727902025-09-17 13:04:0654 days ago1758114246
0x36D0170D...64f83704d
0.00094754 ETH
840706922025-09-17 0:04:1254 days ago1758067452
0x36D0170D...64f83704d
0.00502433 ETH
840596552025-09-14 13:04:0557 days ago1757855045
0x36D0170D...64f83704d
0.00977881 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArbChildToParentRewardRouter

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 20000 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "./DistributionInterval.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "./ChildToParentRewardRouter.sol";

interface IArbSys {
    function withdrawEth(address destination) external payable returns (uint256);
}

interface IChildChainGatewayRouter {
    function outboundTransfer(address _parentChainTokenAddress, address _to, uint256 _amount, bytes calldata _data)
        external
        payable
        returns (bytes memory);

    function getGateway(address _parentChainTokenAddress) external view returns (address gateway);

    // outdated name; read this as "calculateChildChainTokenAddress"
    function calculateL2TokenAddress(address _parentChainTokenAddress) external returns (address);
}

/// @notice Child to Parent Reward Router deployed to Arbitrum chains
contract ArbChildToParentRewardRouter is ChildToParentRewardRouter {
    using SafeERC20 for IERC20;

    // address of gateway router on this chain
    IChildChainGatewayRouter public immutable childChainGatewayRouter;

    error TokenDisabled(address tokenAddr);

    error TokenNotRegisteredToGateway(address tokenAddr);

    error NotArbitrum();

    constructor(
        address _parentChainTarget,
        uint256 _minDistributionIntervalSeconds,
        address _parentChainTokenAddress,
        address _childChainTokenAddress,
        address _childChainGatewayRouter
    )
        ChildToParentRewardRouter(
            _parentChainTarget,
            _minDistributionIntervalSeconds,
            _parentChainTokenAddress,
            _childChainTokenAddress
        )
    {
        childChainGatewayRouter = IChildChainGatewayRouter(_childChainGatewayRouter);

        // ensure this is an Arbitrum chain
        (bool success, bytes memory data) = address(100).staticcall(abi.encodeWithSignature("arbOSVersion()"));
        if (!success || data.length != 32 || abi.decode(data, (uint256)) == 0) {
            revert NotArbitrum();
        }

        // If a token is enabled, include token sanity checks
        if (_parentChainTokenAddress != address(1)) {
            // note that _childChainTokenAddress can be retrieved from _parentChainTokenAddress, but we
            // require it as a parameter as an additional sanity check
            address calculatedChildChainTokenAddress =
                childChainGatewayRouter.calculateL2TokenAddress(_parentChainTokenAddress);
            if (_childChainTokenAddress != calculatedChildChainTokenAddress) {
                revert TokenNotRegisteredToGateway(_parentChainTokenAddress);
            }
            // check if token is disabled
            address gateway = childChainGatewayRouter.getGateway(_parentChainTokenAddress);

            if (gateway == address(0)) {
                revert TokenDisabled(_parentChainTokenAddress);
            }
        }
    }

    function _sendNative(uint256 amount) internal override {
        IArbSys(address(100)).withdrawEth{value: amount}(parentChainTarget);
    }

    function _sendToken(uint256 amount) internal override {
        // get gateway from gateway router
        address gateway = childChainGatewayRouter.getGateway(parentChainTokenAddress);
        // approve for transfer
        IERC20(childChainTokenAddress).safeApprove(gateway, amount);
        childChainGatewayRouter.outboundTransfer(parentChainTokenAddress, parentChainTarget, amount, "");
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

abstract contract DistributionInterval {
    address public constant NATIVE_CURRENCY = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    mapping(address => uint256) public nextDistributions;
    uint256 immutable minDistributionIntervalSeconds;

    error DistributionTooSoon(uint256 currentTimestamp, uint256 distributionTimestamp);

    constructor(uint256 _minDistributionIntervalSeconds) {
        minDistributionIntervalSeconds = _minDistributionIntervalSeconds;
    }

    function timeToNextDistribution(address _erc20orNative) public view returns (uint256) {
        uint256 nextDistribution = nextDistributions[_erc20orNative];
        return block.timestamp >= nextDistribution ? 0 : nextDistribution - block.timestamp;
    }

    function canDistribute(address _erc20orNative) public view returns (bool) {
        return timeToNextDistribution(_erc20orNative) == 0;
    }

    function _updateDistribution(address _erc20orNative) internal {
        nextDistributions[_erc20orNative] = block.timestamp + minDistributionIntervalSeconds;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "./DistributionInterval.sol";
import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

/// @notice Receives native funds and a single ERC20 funds (set on deployment) and sends them to a target contract on its parent chain.
///         Funds can only be sent once every minDistributionIntervalSeconds to prevent griefing
///         (creating many small values messages that each need to be executed on the parent chain).
///         A send is automatically attempted when native funds are receieved in the receive function.
/// @dev    For native only (i.e., no token), deploy with parentChainTokenAddress and childChainTokenAddress == address(1).
abstract contract ChildToParentRewardRouter is DistributionInterval {
    // contract on this chain's parent chain funds (native and token) get routed to
    address public immutable parentChainTarget;
    // address of token on parent chain; set to address(1) for only-native support.
    address public immutable parentChainTokenAddress;
    // address of token on this chain
    address public immutable childChainTokenAddress;

    event FundsRouted(address indexed token, uint256 amount);

    error NativeOnly();

    error ZeroAddress();

    constructor(
        address _parentChainTarget,
        uint256 _minDistributionIntervalSeconds,
        address _parentChainTokenAddress,
        address _childChainTokenAddress
    ) DistributionInterval(_minDistributionIntervalSeconds) {
        if (
            _parentChainTarget == address(0) || _parentChainTokenAddress == address(0)
                || _childChainTokenAddress == address(0)
        ) {
            revert ZeroAddress();
        }
        parentChainTarget = _parentChainTarget;
        parentChainTokenAddress = _parentChainTokenAddress;
        childChainTokenAddress = _childChainTokenAddress;
    }

    /// @dev This receive function should NEVER revert
    receive() external payable {
        // automatically attempt to send native funds upon receiving
        routeNativeFunds();
    }

    /// @notice send all native funds in this contract to target contract on parent chain via L2 to L1 message
    function routeNativeFunds() public {
        uint256 value = address(this).balance;
        // if distributing too soon, or there's no value to distribute, skip withdrawal (but don't revert)
        if (canDistribute(NATIVE_CURRENCY) && value > 0) {
            _updateDistribution(NATIVE_CURRENCY);
            _sendNative(value);
            emit FundsRouted(NATIVE_CURRENCY, value);
        }
    }

    /// @notice withdraw full token balance to parentChainTarget; only callable once per distribution interval
    function routeToken() public {
        // revert if contract deployed to be native-only
        if (parentChainTokenAddress == address(1)) {
            revert NativeOnly();
        }
        uint256 value = IERC20(childChainTokenAddress).balanceOf(address(this));
        // get gateway from gateway router
        if (canDistribute(parentChainTokenAddress) && value > 0) {
            _updateDistribution(parentChainTokenAddress);
            _sendToken(value);
            emit FundsRouted(parentChainTokenAddress, value);
        }
    }

    /// @notice Send native funds to parentChainTarget
    /// @dev    This function should NEVER revert
    function _sendNative(uint256 amount) internal virtual;

    /// @notice Send token funds to parentChainTarget
    function _sendToken(uint256 amount) internal virtual;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "nitro-contracts/=lib/nitro-contracts/",
    "@arbitrum/=lib/arbitrum-sdk/node_modules/@arbitrum/nitro-contracts/src/",
    "@offchainlabs/=lib/arbitrum-sdk/node_modules/@offchainlabs/upgrade-executor/src/",
    "@openzeppelin/=lib/arbitrum-sdk/node_modules/@openzeppelin/",
    "@openzeppelin/contracts-upgradeable/=lib/nitro-contracts/node_modules/@openzeppelin/contracts-upgradeable/",
    "@openzeppelin/contracts/=lib/nitro-contracts/node_modules/@openzeppelin/contracts/",
    "hardhat/=lib/arbitrum-sdk/node_modules/hardhat/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_parentChainTarget","type":"address"},{"internalType":"uint256","name":"_minDistributionIntervalSeconds","type":"uint256"},{"internalType":"address","name":"_parentChainTokenAddress","type":"address"},{"internalType":"address","name":"_childChainTokenAddress","type":"address"},{"internalType":"address","name":"_childChainGatewayRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"currentTimestamp","type":"uint256"},{"internalType":"uint256","name":"distributionTimestamp","type":"uint256"}],"name":"DistributionTooSoon","type":"error"},{"inputs":[],"name":"NativeOnly","type":"error"},{"inputs":[],"name":"NotArbitrum","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddr","type":"address"}],"name":"TokenDisabled","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddr","type":"address"}],"name":"TokenNotRegisteredToGateway","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsRouted","type":"event"},{"inputs":[],"name":"NATIVE_CURRENCY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_erc20orNative","type":"address"}],"name":"canDistribute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"childChainGatewayRouter","outputs":[{"internalType":"contract IChildChainGatewayRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"childChainTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nextDistributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parentChainTarget","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parentChainTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routeNativeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc20orNative","type":"address"}],"name":"timeToNextDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040523480156200001257600080fd5b50604051620014e8380380620014e8833981016040819052620000359162000322565b6080849052848484846001600160a01b03841615806200005c57506001600160a01b038216155b806200006f57506001600160a01b038116155b156200008e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0393841660a05290831660c052821660e0525081166101005260408051600481526024810182526020810180516001600160e01b03166302881c7960e11b17905290516000918291606491620000eb9162000389565b600060405180830381855afa9150503d806000811462000128576040519150601f19603f3d011682016040523d82523d6000602084013e6200012d565b606091505b50915091508115806200014257508051602014155b80620001615750808060200190518101906200015f9190620003ba565b155b1562000180576040516323a7aa6760e11b815260040160405180910390fd5b6001600160a01b038516600114620002f857610100516040516314fc51a960e31b81526001600160a01b038781166004830152600092169063a7e28d48906024016020604051808303816000875af1158015620001e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002079190620003d4565b9050806001600160a01b0316856001600160a01b0316146200024c57604051632ee238ef60e21b81526001600160a01b03871660048201526024015b60405180910390fd5b61010051604051635ed004ff60e11b81526001600160a01b038881166004830152600092169063bda009fe90602401602060405180830381865afa15801562000299573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002bf9190620003d4565b90506001600160a01b038116620002f5576040516303f585af60e31b81526001600160a01b038816600482015260240162000243565b50505b50505050505050620003f9565b80516001600160a01b03811681146200031d57600080fd5b919050565b600080600080600060a086880312156200033b57600080fd5b620003468662000305565b9450602086015193506200035d6040870162000305565b92506200036d6060870162000305565b91506200037d6080870162000305565b90509295509295909350565b6000825160005b81811015620003ac576020818601810151858301520162000390565b506000920191825250919050565b600060208284031215620003cd57600080fd5b5051919050565b600060208284031215620003e757600080fd5b620003f28262000305565b9392505050565b60805160a05160c05160e0516101005161105762000491600039600081816101380152818161072301526108750152600081816102680152818161045b01526107ac01526000818160da015281816103be015281816104e20152818161051c0152818161054b015281816106f8015261081001526000818161021f015281816106410152610838015260006105b601526110576000f3fe6080604052600436106100b45760003560e01c806370898f7811610069578063af76af281161004e578063af76af2814610241578063ec46da4414610256578063fbd5dfae1461028a57600080fd5b806370898f78146101e0578063a796efb31461020d57600080fd5b80630bc6d25c1161009a5780630bc6d25c1461015a57806349f426501461018a57806356bdaefe146101b257600080fd5b80622698b6146100c8578063092e57481461012657600080fd5b366100c3576100c161029f565b005b600080fd5b3480156100d457600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561013257600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561016657600080fd5b5061017a610175366004610dd1565b610342565b604051901515815260200161011d565b34801561019657600080fd5b506100fc73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101be57600080fd5b506101d26101cd366004610dd1565b610354565b60405190815260200161011d565b3480156101ec57600080fd5b506101d26101fb366004610dd1565b60006020819052908152604090205481565b34801561021957600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561024d57600080fd5b506100c161029f565b34801561026257600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561029657600080fd5b506100c161039b565b476102bd73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee610342565b80156102c95750600081115b1561033f576102eb73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6105b1565b6102f481610604565b60405181815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee907fb090d75dece18b4de34535e4c300e242a3126f8eb4572a306e40ba111a5d1341906020015b60405180910390a25b50565b600061034d82610354565b1592915050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260208190526040812054428111156103915761038c4282610e1d565b610394565b60005b9392505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff160161042a576040517f0b712fcc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156104b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104db9190610e36565b90506105067f0000000000000000000000000000000000000000000000000000000000000000610342565b80156105125750600081115b1561033f576105407f00000000000000000000000000000000000000000000000000000000000000006105b1565b610549816106bb565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff167fb090d75dece18b4de34535e4c300e242a3126f8eb4572a306e40ba111a5d13418260405161033691815260200190565b6105db7f000000000000000000000000000000000000000000000000000000000000000042610e4f565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902055565b6040517f25e1606300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660048201526064906325e1606390839060240160206040518083038185885af1158015610692573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106b79190610e36565b5050565b6040517fbda009fe00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063bda009fe90602401602060405180830381865afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107909190610e62565b90506107d373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168284610909565b6040517f7b3a3c8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301527f0000000000000000000000000000000000000000000000000000000000000000811660248301526044820184905260806064830152600060848301527f00000000000000000000000000000000000000000000000000000000000000001690637b3a3c8b9060a4016000604051808303816000875af11580156108be573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526109049190810190610ed2565b505050565b8015806109a957506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a79190610e36565b155b610a3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261090492869291600091610b05918516908490610baf565b8051909150156109045780806020019051810190610b239190610f92565b610904576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a31565b6060610bbe8484600085610bc6565b949350505050565b606082471015610c58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a31565b73ffffffffffffffffffffffffffffffffffffffff85163b610cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a31565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cff9190610fb4565b60006040518083038185875af1925050503d8060008114610d3c576040519150601f19603f3d011682016040523d82523d6000602084013e610d41565b606091505b5091509150610d51828286610d5c565b979650505050505050565b60608315610d6b575081610394565b825115610d7b5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a319190610fd0565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b600060208284031215610de357600080fd5b813561039481610daf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610e3057610e30610dee565b92915050565b600060208284031215610e4857600080fd5b5051919050565b80820180821115610e3057610e30610dee565b600060208284031215610e7457600080fd5b815161039481610daf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60005b83811015610ec9578181015183820152602001610eb1565b50506000910152565b600060208284031215610ee457600080fd5b815167ffffffffffffffff80821115610efc57600080fd5b818401915084601f830112610f1057600080fd5b815181811115610f2257610f22610e7f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715610f6857610f68610e7f565b81604052828152876020848701011115610f8157600080fd5b610d51836020830160208801610eae565b600060208284031215610fa457600080fd5b8151801515811461039457600080fd5b60008251610fc6818460208701610eae565b9190910192915050565b6020815260008251806020840152610fef816040850160208701610eae565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122054e513b097f7339d9317fbfab4dc2ec7b2d035fff6dbacda3b32b66cd829936b64736f6c6343000810003300000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c9990000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106100b45760003560e01c806370898f7811610069578063af76af281161004e578063af76af2814610241578063ec46da4414610256578063fbd5dfae1461028a57600080fd5b806370898f78146101e0578063a796efb31461020d57600080fd5b80630bc6d25c1161009a5780630bc6d25c1461015a57806349f426501461018a57806356bdaefe146101b257600080fd5b80622698b6146100c8578063092e57481461012657600080fd5b366100c3576100c161029f565b005b600080fd5b3480156100d457600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000181565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561013257600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000181565b34801561016657600080fd5b5061017a610175366004610dd1565b610342565b604051901515815260200161011d565b34801561019657600080fd5b506100fc73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101be57600080fd5b506101d26101cd366004610dd1565b610354565b60405190815260200161011d565b3480156101ec57600080fd5b506101d26101fb366004610dd1565b60006020819052908152604090205481565b34801561021957600080fd5b506100fc7f00000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c99981565b34801561024d57600080fd5b506100c161029f565b34801561026257600080fd5b506100fc7f000000000000000000000000000000000000000000000000000000000000000181565b34801561029657600080fd5b506100c161039b565b476102bd73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee610342565b80156102c95750600081115b1561033f576102eb73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6105b1565b6102f481610604565b60405181815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee907fb090d75dece18b4de34535e4c300e242a3126f8eb4572a306e40ba111a5d1341906020015b60405180910390a25b50565b600061034d82610354565b1592915050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260208190526040812054428111156103915761038c4282610e1d565b610394565b60005b9392505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff160161042a576040517f0b712fcc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156104b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104db9190610e36565b90506105067f0000000000000000000000000000000000000000000000000000000000000001610342565b80156105125750600081115b1561033f576105407f00000000000000000000000000000000000000000000000000000000000000016105b1565b610549816106bb565b7f000000000000000000000000000000000000000000000000000000000000000173ffffffffffffffffffffffffffffffffffffffff167fb090d75dece18b4de34535e4c300e242a3126f8eb4572a306e40ba111a5d13418260405161033691815260200190565b6105db7f0000000000000000000000000000000000000000000000000000000000093a8042610e4f565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902055565b6040517f25e1606300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c9991660048201526064906325e1606390839060240160206040518083038185885af1158015610692573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106b79190610e36565b5050565b6040517fbda009fe00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000001811660048301526000917f00000000000000000000000000000000000000000000000000000000000000019091169063bda009fe90602401602060405180830381865afa15801561076c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107909190610e62565b90506107d373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000001168284610909565b6040517f7b3a3c8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000001811660048301527f00000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c999811660248301526044820184905260806064830152600060848301527f00000000000000000000000000000000000000000000000000000000000000011690637b3a3c8b9060a4016000604051808303816000875af11580156108be573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526109049190810190610ed2565b505050565b8015806109a957506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610983573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a79190610e36565b155b610a3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261090492869291600091610b05918516908490610baf565b8051909150156109045780806020019051810190610b239190610f92565b610904576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a31565b6060610bbe8484600085610bc6565b949350505050565b606082471015610c58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a31565b73ffffffffffffffffffffffffffffffffffffffff85163b610cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a31565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cff9190610fb4565b60006040518083038185875af1925050503d8060008114610d3c576040519150601f19603f3d011682016040523d82523d6000602084013e610d41565b606091505b5091509150610d51828286610d5c565b979650505050505050565b60608315610d6b575081610394565b825115610d7b5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a319190610fd0565b73ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b600060208284031215610de357600080fd5b813561039481610daf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610e3057610e30610dee565b92915050565b600060208284031215610e4857600080fd5b5051919050565b80820180821115610e3057610e30610dee565b600060208284031215610e7457600080fd5b815161039481610daf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60005b83811015610ec9578181015183820152602001610eb1565b50506000910152565b600060208284031215610ee457600080fd5b815167ffffffffffffffff80821115610efc57600080fd5b818401915084601f830112610f1057600080fd5b815181811115610f2257610f22610e7f565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715610f6857610f68610e7f565b81604052828152876020848701011115610f8157600080fd5b610d51836020830160208801610eae565b600060208284031215610fa457600080fd5b8151801515811461039457600080fd5b60008251610fc6818460208701610eae565b9190910192915050565b6020815260008251806020840152610fef816040850160208701610eae565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122054e513b097f7339d9317fbfab4dc2ec7b2d035fff6dbacda3b32b66cd829936b64736f6c63430008100033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c9990000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _parentChainTarget (address): 0x40Cd7D713D7ae463f95cE5d342Ea6E7F5cF7C999
Arg [1] : _minDistributionIntervalSeconds (uint256): 604800
Arg [2] : _parentChainTokenAddress (address): 0x0000000000000000000000000000000000000001
Arg [3] : _childChainTokenAddress (address): 0x0000000000000000000000000000000000000001
Arg [4] : _childChainGatewayRouter (address): 0x0000000000000000000000000000000000000001

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000040cd7d713d7ae463f95ce5d342ea6e7f5cf7c999
Arg [1] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.