FTM Price: $1.00 (-1.96%)
Gas: 73 GWei

Contract

0x23019312e1Ae24bfc15E3D257f409e686c9f20A1
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60a06040365505632022-04-20 17:18:26708 days ago1650475106IN
 Create: RelayTransit
0 FTM0.15399704250.267

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
568177822023-03-02 21:35:53392 days ago1677792953
0x23019312...86c9f20A1
0.00782018 FTM
567921112023-03-02 12:38:12392 days ago1677760692
0x23019312...86c9f20A1
0.01266628 FTM
567903522023-03-02 12:05:31392 days ago1677758731
0x23019312...86c9f20A1
0.02013885 FTM
567844302023-03-02 9:49:22392 days ago1677750562
0x23019312...86c9f20A1
0.0208063 FTM
567837722023-03-02 9:30:10392 days ago1677749410
0x23019312...86c9f20A1
0.0088602 FTM
567824622023-03-02 8:55:11392 days ago1677747311
0x23019312...86c9f20A1
0.00701422 FTM
567796882023-03-02 7:50:52392 days ago1677743452
0x23019312...86c9f20A1
0.00861072 FTM
567717972023-03-02 4:58:34393 days ago1677733114
0x23019312...86c9f20A1
0.00798214 FTM
567704212023-03-02 4:22:50393 days ago1677730970
0x23019312...86c9f20A1
0.0076156 FTM
566879592023-02-28 20:01:00394 days ago1677614460
0x23019312...86c9f20A1
0.00991646 FTM
566847892023-02-28 18:49:00394 days ago1677610140
0x23019312...86c9f20A1
0.04525515 FTM
566579972023-02-28 8:58:15394 days ago1677574695
0x23019312...86c9f20A1
0.0672936 FTM
566430892023-02-28 2:44:59395 days ago1677552299
0x23019312...86c9f20A1
0.00661129 FTM
566413432023-02-28 1:55:57395 days ago1677549357
0x23019312...86c9f20A1
0.00672299 FTM
566169982023-02-27 17:16:31395 days ago1677518191
0x23019312...86c9f20A1
0.01374825 FTM
566129562023-02-27 15:43:13395 days ago1677512593
0x23019312...86c9f20A1
0.00959771 FTM
566090722023-02-27 14:01:54395 days ago1677506514
0x23019312...86c9f20A1
0.02268704 FTM
566023532023-02-27 11:22:08395 days ago1677496928
0x23019312...86c9f20A1
0.00678472 FTM
565984612023-02-27 9:46:00395 days ago1677491160
0x23019312...86c9f20A1
0.00683557 FTM
565913162023-02-27 6:51:38395 days ago1677480698
0x23019312...86c9f20A1
0.00601668 FTM
565829342023-02-27 3:06:13396 days ago1677467173
0x23019312...86c9f20A1
0.00598711 FTM
565829222023-02-27 3:05:54396 days ago1677467154
0x23019312...86c9f20A1
0.00637959 FTM
565814932023-02-27 2:25:56396 days ago1677464756
0x23019312...86c9f20A1
0.00781141 FTM
565737412023-02-26 23:22:23396 days ago1677453743
0x23019312...86c9f20A1
0.00707806 FTM
565697042023-02-26 21:56:52396 days ago1677448612
0x23019312...86c9f20A1
0.07502274 FTM
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RelayTransit

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : RelayTransit.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import {ETH} from "./constants/Tokens.sol";
import {GelatoBytes} from "./gelato/GelatoBytes.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {
    SafeERC20
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract RelayTransit {
    using GelatoBytes for bytes;

    address payable public immutable gelato;

    event LogExecSuccess(bytes32 indexed _taskId);

    modifier onlyGelato() {
        require(msg.sender == gelato, "Only gelato");
        _;
    }

    // solhint-disable-next-line no-empty-blocks
    constructor(address payable _gelato) {
        gelato = _gelato;
    }

    function execTransit(
        address _dest,
        bytes calldata _data,
        uint256 _minFee,
        address _token,
        bytes32 _taskId
    ) external onlyGelato {
        uint256 prevBalance = _getBalance(_token, address(this));

        (bool success, bytes memory returndata) = _dest.call(_data);
        if (!success) returndata.revertWithError("RelayTransit.execTransit:");

        uint256 receivedFee = _getBalance(_token, address(this)) - prevBalance;
        require(
            receivedFee >= _minFee,
            "RelayTransit.execTransit: Insufficient receivedFee"
        );

        _transferToGelato(_token, receivedFee);
        emit LogExecSuccess(_taskId);
    }

    function _transferToGelato(address _token, uint256 _amount) private {
        if (_amount == 0) return;

        if (_token == ETH) {
            (bool success, ) = gelato.call{value: _amount}("");
            require(
                success,
                "RelayTransit._transferGelato: Gelato ETH transfer failed"
            );
        } else {
            SafeERC20.safeTransfer(IERC20(_token), gelato, _amount);
        }
    }

    function _getBalance(address token, address user)
        private
        view
        returns (uint256)
    {
        return token == ETH ? user.balance : IERC20(token).balanceOf(user);
    }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

File 3 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.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));
        }
    }

    /**
     * @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");
        }
    }
}

File 4 of 6 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 6 : Tokens.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

address constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

File 6 of 6 : GelatoBytes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.12;

library GelatoBytes {
    function calldataSliceSelector(bytes calldata _bytes)
        internal
        pure
        returns (bytes4 selector)
    {
        selector =
            _bytes[0] |
            (bytes4(_bytes[1]) >> 8) |
            (bytes4(_bytes[2]) >> 16) |
            (bytes4(_bytes[3]) >> 24);
    }

    function memorySliceSelector(bytes memory _bytes)
        internal
        pure
        returns (bytes4 selector)
    {
        selector =
            _bytes[0] |
            (bytes4(_bytes[1]) >> 8) |
            (bytes4(_bytes[2]) >> 16) |
            (bytes4(_bytes[3]) >> 24);
    }

    function revertWithError(bytes memory _bytes, string memory _tracingInfo)
        internal
        pure
    {
        // 68: 32-location, 32-length, 4-ErrorSelector, UTF-8 err
        if (_bytes.length % 32 == 4) {
            bytes4 selector;
            assembly {
                selector := mload(add(0x20, _bytes))
            }
            if (selector == 0x08c379a0) {
                // Function selector for Error(string)
                assembly {
                    _bytes := add(_bytes, 68)
                }
                revert(string(abi.encodePacked(_tracingInfo, string(_bytes))));
            } else {
                revert(
                    string(abi.encodePacked(_tracingInfo, "NoErrorSelector"))
                );
            }
        } else {
            revert(
                string(abi.encodePacked(_tracingInfo, "UnexpectedReturndata"))
            );
        }
    }

    function returnError(bytes memory _bytes, string memory _tracingInfo)
        internal
        pure
        returns (string memory)
    {
        // 68: 32-location, 32-length, 4-ErrorSelector, UTF-8 err
        if (_bytes.length % 32 == 4) {
            bytes4 selector;
            assembly {
                selector := mload(add(0x20, _bytes))
            }
            if (selector == 0x08c379a0) {
                // Function selector for Error(string)
                assembly {
                    _bytes := add(_bytes, 68)
                }
                return string(abi.encodePacked(_tracingInfo, string(_bytes)));
            } else {
                return
                    string(abi.encodePacked(_tracingInfo, "NoErrorSelector"));
            }
        } else {
            return
                string(abi.encodePacked(_tracingInfo, "UnexpectedReturndata"));
        }
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_gelato","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_taskId","type":"bytes32"}],"name":"LogExecSuccess","type":"event"},{"inputs":[{"internalType":"address","name":"_dest","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"uint256","name":"_minFee","type":"uint256"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_taskId","type":"bytes32"}],"name":"execTransit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gelato","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b50604051610ac5380380610ac583398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051610a2761009e60003960008181605501528181609e015281816103f001526104e30152610a276000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806322045fbe1461003b578063573ea57514610050575b600080fd5b61004e6100493660046107a0565b610093565b005b6100777f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100fe5760405162461bcd60e51b815260206004820152600b60248201526a4f6e6c792067656c61746f60a81b60448201526064015b60405180910390fd5b600061010a8330610279565b9050600080886001600160a01b03168888604051610129929190610846565b6000604051808303816000865af19150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b5091509150816101b45760408051808201909152601981527f52656c61795472616e7369742e657865635472616e7369743a0000000000000060208201526101b4908290610321565b6000836101c18730610279565b6101cb9190610856565b9050868110156102385760405162461bcd60e51b815260206004820152603260248201527f52656c61795472616e7369742e657865635472616e7369743a20496e73756666604482015271696369656e7420726563656976656446656560701b60648201526084016100f5565b61024286826103be565b60405185907fcde65550f6e9df2c03f4d0f76b4c3a16237083758ba2908ecbfb2a32e8bb39fe90600090a250505050505050505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461030e576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a0823190602401602060405180830381865afa1580156102e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610309919061087b565b61031a565b816001600160a01b0316315b9392505050565b6020825161032f9190610894565b600414156103a957602082015162461bcd60e51b6001600160e01b03198216141561039357604483019250818360405160200161036d9291906108e6565b60408051601f198184030181529082905262461bcd60e51b82526100f591600401610915565b8160405160200161036d9190610948565b505050565b8060405160200161036d919061097b565b5050565b806103c7575050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156104d55760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168260405160006040518083038185875af1925050503d8060008114610459576040519150601f19603f3d011682016040523d82523d6000602084013e61045e565b606091505b50509050806103a45760405162461bcd60e51b815260206004820152603860248201527f52656c61795472616e7369742e5f7472616e7366657247656c61746f3a20476560448201527f6c61746f20455448207472616e73666572206661696c6564000000000000000060648201526084016100f5565b604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000818116602484015260448084018690528451808503909101815260649093018452602080840180516001600160e01b031663a9059cbb60e01b17905284518086019095528085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908501526103ba938693919286926103a492869260009161058f91851690849061060c565b8051909150156103a457808060200190518101906105ad91906109b3565b6103a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100f5565b606061061b8484600085610623565b949350505050565b6060824710156106845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100f5565b843b6106d25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100f5565b600080866001600160a01b031685876040516106ee91906109d5565b60006040518083038185875af1925050503d806000811461072b576040519150601f19603f3d011682016040523d82523d6000602084013e610730565b606091505b509150915061074082828661074b565b979650505050505050565b6060831561075a57508161031a565b82511561076a5782518084602001fd5b8160405162461bcd60e51b81526004016100f59190610915565b80356001600160a01b038116811461079b57600080fd5b919050565b60008060008060008060a087890312156107b957600080fd5b6107c287610784565b9550602087013567ffffffffffffffff808211156107df57600080fd5b818901915089601f8301126107f357600080fd5b81358181111561080257600080fd5b8a602082850101111561081457600080fd5b6020830197508096505050506040870135925061083360608801610784565b9150608087013590509295509295509295565b8183823760009101908152919050565b60008282101561087657634e487b7160e01b600052601160045260246000fd5b500390565b60006020828403121561088d57600080fd5b5051919050565b6000826108b157634e487b7160e01b600052601260045260246000fd5b500690565b60005b838110156108d15781810151838201526020016108b9565b838111156108e0576000848401525b50505050565b600083516108f88184602088016108b6565b83519083019061090c8183602088016108b6565b01949350505050565b60208152600082518060208401526109348160408501602087016108b6565b601f01601f19169190910160400192915050565b6000825161095a8184602087016108b6565b6e2737a2b93937b929b2b632b1ba37b960891b920191825250600f01919050565b6000825161098d8184602087016108b6565b73556e657870656374656452657475726e6461746160601b920191825250601401919050565b6000602082840312156109c557600080fd5b8151801515811461031a57600080fd5b600082516109e78184602087016108b6565b919091019291505056fea26469706673582212205b9d9e9bf3f1f7d66b3c72c852d48ee56a9432af43381dfdce98b36e615022e764736f6c634300080c0033000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed10

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806322045fbe1461003b578063573ea57514610050575b600080fd5b61004e6100493660046107a0565b610093565b005b6100777f000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed1081565b6040516001600160a01b03909116815260200160405180910390f35b336001600160a01b037f000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed1016146100fe5760405162461bcd60e51b815260206004820152600b60248201526a4f6e6c792067656c61746f60a81b60448201526064015b60405180910390fd5b600061010a8330610279565b9050600080886001600160a01b03168888604051610129929190610846565b6000604051808303816000865af19150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b5091509150816101b45760408051808201909152601981527f52656c61795472616e7369742e657865635472616e7369743a0000000000000060208201526101b4908290610321565b6000836101c18730610279565b6101cb9190610856565b9050868110156102385760405162461bcd60e51b815260206004820152603260248201527f52656c61795472616e7369742e657865635472616e7369743a20496e73756666604482015271696369656e7420726563656976656446656560701b60648201526084016100f5565b61024286826103be565b60405185907fcde65550f6e9df2c03f4d0f76b4c3a16237083758ba2908ecbfb2a32e8bb39fe90600090a250505050505050505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461030e576040516370a0823160e01b81526001600160a01b0383811660048301528416906370a0823190602401602060405180830381865afa1580156102e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610309919061087b565b61031a565b816001600160a01b0316315b9392505050565b6020825161032f9190610894565b600414156103a957602082015162461bcd60e51b6001600160e01b03198216141561039357604483019250818360405160200161036d9291906108e6565b60408051601f198184030181529082905262461bcd60e51b82526100f591600401610915565b8160405160200161036d9190610948565b505050565b8060405160200161036d919061097b565b5050565b806103c7575050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156104d55760007f000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed106001600160a01b03168260405160006040518083038185875af1925050503d8060008114610459576040519150601f19603f3d011682016040523d82523d6000602084013e61045e565b606091505b50509050806103a45760405162461bcd60e51b815260206004820152603860248201527f52656c61795472616e7369742e5f7472616e7366657247656c61746f3a20476560448201527f6c61746f20455448207472616e73666572206661696c6564000000000000000060648201526084016100f5565b604080516001600160a01b037f000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed10818116602484015260448084018690528451808503909101815260649093018452602080840180516001600160e01b031663a9059cbb60e01b17905284518086019095528085527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908501526103ba938693919286926103a492869260009161058f91851690849061060c565b8051909150156103a457808060200190518101906105ad91906109b3565b6103a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100f5565b606061061b8484600085610623565b949350505050565b6060824710156106845760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100f5565b843b6106d25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100f5565b600080866001600160a01b031685876040516106ee91906109d5565b60006040518083038185875af1925050503d806000811461072b576040519150601f19603f3d011682016040523d82523d6000602084013e610730565b606091505b509150915061074082828661074b565b979650505050505050565b6060831561075a57508161031a565b82511561076a5782518084602001fd5b8160405162461bcd60e51b81526004016100f59190610915565b80356001600160a01b038116811461079b57600080fd5b919050565b60008060008060008060a087890312156107b957600080fd5b6107c287610784565b9550602087013567ffffffffffffffff808211156107df57600080fd5b818901915089601f8301126107f357600080fd5b81358181111561080257600080fd5b8a602082850101111561081457600080fd5b6020830197508096505050506040870135925061083360608801610784565b9150608087013590509295509295509295565b8183823760009101908152919050565b60008282101561087657634e487b7160e01b600052601160045260246000fd5b500390565b60006020828403121561088d57600080fd5b5051919050565b6000826108b157634e487b7160e01b600052601260045260246000fd5b500690565b60005b838110156108d15781810151838201526020016108b9565b838111156108e0576000848401525b50505050565b600083516108f88184602088016108b6565b83519083019061090c8183602088016108b6565b01949350505050565b60208152600082518060208401526109348160408501602087016108b6565b601f01601f19169190910160400192915050565b6000825161095a8184602087016108b6565b6e2737a2b93937b929b2b632b1ba37b960891b920191825250600f01919050565b6000825161098d8184602087016108b6565b73556e657870656374656452657475726e6461746160601b920191825250601401919050565b6000602082840312156109c557600080fd5b8151801515811461031a57600080fd5b600082516109e78184602087016108b6565b919091019291505056fea26469706673582212205b9d9e9bf3f1f7d66b3c72c852d48ee56a9432af43381dfdce98b36e615022e764736f6c634300080c0033

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

000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed10

-----Decoded View---------------
Arg [0] : _gelato (address): 0xebA27A2301975FF5BF7864b99F55A4f7A457ED10

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eba27a2301975ff5bf7864b99f55a4f7a457ed10


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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.