POL Price: $0.617312 (+3.89%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HFunds

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 11 : HFunds.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

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

contract HFunds is HandlerBase {
    using SafeERC20 for IERC20;

    function getContractName() public pure override returns (string memory) {
        return "HFunds";
    }

    function updateTokens(address[] calldata tokens) external payable returns (uint256[] memory) {
        uint256[] memory balances = new uint256[](tokens.length);
        for (uint256 i = 0; i < tokens.length; i++) {
            address token = tokens[i];
            _notMaticToken(token);
            // Update involved token
            _updateInitialToken(token);
            balances[i] = _getBalance(token, type(uint256).max);
        }
        return balances;
    }

    function addFunds(address[] calldata tokens, uint256[] calldata amounts)
        external
        payable
        returns (uint256[] memory)
    {
        _requireMsg(tokens.length == amounts.length, "addFunds", "token and amount does not match");
        address sender = _getSender();
        for (uint256 i = 0; i < tokens.length; i++) {
            _notMaticToken(tokens[i]);
            IERC20(tokens[i]).safeTransferFrom(sender, address(this), amounts[i]);

            // Update involved token
            _updateToken(tokens[i]);
        }
        return amounts;
    }

    function returnFunds(address[] calldata tokens, uint256[] calldata amounts) external payable {
        _requireMsg(tokens.length == amounts.length, "returnFunds", "token and amount do not match");

        address payable receiver = payable(_getSender());
        for (uint256 i = 0; i < tokens.length; i++) {
            // token can't be matic token
            _notMaticToken(tokens[i]);

            uint256 amount = _getBalance(tokens[i], amounts[i]);
            if (amount > 0) {
                IERC20(tokens[i]).safeTransfer(receiver, amount);
            }
        }
    }

    function checkSlippage(address[] calldata tokens, uint256[] calldata amounts) external payable {
        _requireMsg(tokens.length == amounts.length, "checkSlippage", "token and amount do not match");

        for (uint256 i = 0; i < tokens.length; i++) {
            // token can't be matic token
            _notMaticToken(tokens[i]);

            uint256 balance = IERC20(tokens[i]).balanceOf(address(this));
            if (balance < amounts[i]) {
                string memory errMsg = string(abi.encodePacked("error: ", _uint2String(i), "_", _uint2String(balance)));
                _revertMsg("checkSlippage", errMsg);
            }
        }
    }

    function getBalance(address token) external payable returns (uint256) {
        return _getBalance(token, type(uint256).max);
    }
}

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `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);

    /**
     * @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 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

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 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

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

File 5 of 11 : Config.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract Config {
    // function signature of "postProcess()"
    bytes4 public constant POSTPROCESS_SIG = 0xc2722916;

    // The base amount of percentage function
    uint256 public constant PERCENTAGE_BASE = 1 ether;

    // Handler post-process type. Others should not happen now.
    enum HandlerType {
        Token,
        Custom,
        Others,
        Initial
    }
}

File 6 of 11 : Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {LibCache} from "./lib/LibCache.sol";
import {LibStack} from "./lib/LibStack.sol";
import {IFurucomboRegistry} from "./interfaces/IFurucomboRegistry.sol";

/// @notice A cache structure composed by a bytes32 array
abstract contract Storage {
    using LibCache for mapping(bytes32 => bytes32);
    using LibStack for bytes32[];

    IFurucomboRegistry public registry;

    bytes32[] public stack;
    mapping(bytes32 => bytes32) public cache;

    // keccak256 hash of "msg.sender"
    // prettier-ignore
    bytes32 public constant MSG_SENDER_KEY = 0xb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a;

    modifier isStackEmpty() {
        require(stack.length == 0, "Stack not empty");
        _;
    }

    modifier isInitialized() {
        require(_getSender() != address(0), "Sender is not initialized");
        _;
    }

    modifier isNotInitialized() {
        require(_getSender() == address(0), "Sender is initialized");
        _;
    }

    function _setSender() internal isNotInitialized {
        cache.setAddress(MSG_SENDER_KEY, msg.sender);
    }

    function _resetSender() internal {
        cache.setAddress(MSG_SENDER_KEY, address(0));
    }

    function _getSender() internal view returns (address) {
        return cache.getAddress(MSG_SENDER_KEY);
    }
}

File 7 of 11 : HandlerBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC20Usdt} from "../../interfaces/IERC20Usdt.sol";
import {Config} from "../Config.sol";
import {Storage, LibStack} from "../Storage.sol";

abstract contract HandlerBase is Storage, Config {
    using SafeERC20 for IERC20;
    using LibStack for bytes32[];

    // prettier-ignore
    address public constant NATIVE_TOKEN_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    // prettier-ignore
    address private constant MATIC_TOKEN = 0x0000000000000000000000000000000000001010;

    modifier validCallee(
        string memory functionName,
        address handler,
        address callee
    ) {
        _requireMsg(registry.handlerCalleeWhiteList(handler, callee), functionName, "invalid callee");
        _;
    }

    function postProcess() external payable virtual {
        revert("Invalid post process");
        /* Implementation template
        bytes4 sig = stack.getSig();
        if (sig == bytes4(keccak256(bytes("handlerFunction_1()")))) {
            // Do something
        } else if (sig == bytes4(keccak256(bytes("handlerFunction_2()")))) {
            bytes32 temp = stack.get();
            // Do something
        } else revert("Invalid post process");
        */
    }

    function _updateToken(address token) internal {
        _notMaticToken(token);
        stack.setAddress(token);
        // Ignore token type to fit old handlers
        // stack.setHandlerType(uint256(HandlerType.Token));
    }

    function _updateInitialToken(address token) internal {
        _notMaticToken(token);
        stack.setAddress(token);
        stack.setHandlerType(HandlerType.Initial);
    }

    function _updatePostProcess(bytes32[] memory params) internal {
        for (uint256 i = params.length; i > 0; i--) {
            stack.set(params[i - 1]);
        }
        stack.set(msg.sig);
        stack.setHandlerType(HandlerType.Custom);
    }

    function getContractName() public pure virtual returns (string memory);

    function _revertMsg(string memory functionName, string memory reason) internal pure {
        revert(string(abi.encodePacked(getContractName(), "_", functionName, ": ", reason)));
    }

    function _revertMsg(string memory functionName) internal pure {
        _revertMsg(functionName, "Unspecified");
    }

    function _requireMsg(
        bool condition,
        string memory functionName,
        string memory reason
    ) internal pure {
        if (!condition) _revertMsg(functionName, reason);
    }

    function _uint2String(uint256 n) internal pure returns (string memory) {
        if (n == 0) {
            return "0";
        } else {
            uint256 len = 0;
            for (uint256 temp = n; temp > 0; temp /= 10) {
                len++;
            }
            bytes memory str = new bytes(len);
            for (uint256 i = len; i > 0; i--) {
                str[i - 1] = bytes1(uint8(48 + (n % 10)));
                n /= 10;
            }
            return string(str);
        }
    }

    function _getBalance(address token, uint256 amount) internal view returns (uint256) {
        if (amount != type(uint256).max) {
            return amount;
        }

        // ETH case
        if (token == address(0) || token == NATIVE_TOKEN_ADDRESS) {
            return address(this).balance;
        }
        // ERC20 token case
        return IERC20(token).balanceOf(address(this));
    }

    function _tokenApprove(
        address token,
        address spender,
        uint256 amount
    ) internal {
        try IERC20Usdt(token).approve(spender, amount) {} catch {
            IERC20(token).safeApprove(spender, 0);
            IERC20(token).safeApprove(spender, amount);
        }
    }

    function _tokenApproveZero(address token, address spender) internal {
        if (IERC20Usdt(token).allowance(address(this), spender) > 0) {
            try IERC20Usdt(token).approve(spender, 0) {} catch {
                IERC20Usdt(token).approve(spender, 1);
            }
        }
    }

    // Do not support matic token (0x0000...1010)
    function _notMaticToken(address token) internal pure {
        require(token != MATIC_TOKEN, "Not support matic token");
    }

    function _notMaticToken(address[] memory tokens) internal pure {
        for (uint256 i = 0; i < tokens.length; i++) {
            require(tokens[i] != MATIC_TOKEN, "Not support matic token");
        }
    }
}

File 8 of 11 : IFurucomboRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IFurucomboRegistry {
    function handlers(address) external view returns (bytes32);

    function callers(address) external view returns (bytes32);

    function bannedAgents(address) external view returns (uint256);

    function fHalt() external view returns (bool);

    function isValidHandler(address handler) external view returns (bool);

    function isValidCaller(address handler) external view returns (bool);

    function handlerCalleeWhiteList(address handler, address callee) external view returns (bool);
}

File 9 of 11 : LibCache.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library LibCache {
    function set(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        bytes32 _value
    ) internal {
        _cache[_key] = _value;
    }

    function setAddress(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        address _value
    ) internal {
        _cache[_key] = bytes32(uint256(uint160(_value)));
    }

    function setUint256(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        uint256 _value
    ) internal {
        _cache[_key] = bytes32(_value);
    }

    function getAddress(mapping(bytes32 => bytes32) storage _cache, bytes32 _key) internal view returns (address ret) {
        ret = address(uint160(uint256(_cache[_key])));
    }

    function getUint256(mapping(bytes32 => bytes32) storage _cache, bytes32 _key) internal view returns (uint256 ret) {
        ret = uint256(_cache[_key]);
    }

    function get(mapping(bytes32 => bytes32) storage _cache, bytes32 _key) internal view returns (bytes32 ret) {
        ret = _cache[_key];
    }
}

File 10 of 11 : LibStack.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Config} from "../Config.sol";

library LibStack {
    function setAddress(bytes32[] storage _stack, address _input) internal {
        _stack.push(bytes32(uint256(uint160(_input))));
    }

    function set(bytes32[] storage _stack, bytes32 _input) internal {
        _stack.push(_input);
    }

    function setHandlerType(bytes32[] storage _stack, Config.HandlerType _input) internal {
        _stack.push(bytes12(uint96(_input)));
    }

    function getAddress(bytes32[] storage _stack) internal returns (address ret) {
        ret = address(uint160(uint256(peek(_stack))));
        _stack.pop();
    }

    function getSig(bytes32[] storage _stack) internal returns (bytes4 ret) {
        ret = bytes4(peek(_stack));
        _stack.pop();
    }

    function get(bytes32[] storage _stack) internal returns (bytes32 ret) {
        ret = peek(_stack);
        _stack.pop();
    }

    function peek(bytes32[] storage _stack) internal view returns (bytes32 ret) {
        uint256 length = _stack.length;
        require(length > 0, "stack empty");
        ret = _stack[length - 1];
    }

    function peek(bytes32[] storage _stack, uint256 _index) internal view returns (bytes32 ret) {
        uint256 length = _stack.length;
        require(length > 0, "stack empty");
        require(length > _index, "not enough elements in stack");
        ret = _stack[length - _index - 1];
    }
}

File 11 of 11 : IERC20Usdt.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20Usdt {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external;

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external;

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external;

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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":[],"name":"MSG_SENDER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NATIVE_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSTPROCESS_SIG","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"addFunds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cache","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"checkSlippage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getContractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"postProcess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract IFurucomboRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"returnFunds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stack","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"updateTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b50611351806100206000396000f3fe6080604052600436106100dd5760003560e01c8063db71410e1161007f578063df2ebdbb11610059578063df2ebdbb14610231578063f5f5ba7214610259578063f8b2cb4f1461028e578063fa2901a5146102a157600080fd5b8063db71410e146101eb578063dc9031c4146101fe578063de41691c1461021e57600080fd5b806387c13943116100bb57806387c139431461018557806399eb59b9146101a1578063b3e38f16146101ce578063c2722916146101e357600080fd5b80630ce7df36146100e25780630f532d181461010b5780637b1039991461014d575b600080fd5b6100f56100f0366004610f8b565b6102d5565b6040516101029190610ff7565b60405180910390f35b34801561011757600080fd5b5061013f7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b604051908152602001610102565b34801561015957600080fd5b5060005461016d906001600160a01b031681565b6040516001600160a01b039091168152602001610102565b34801561019157600080fd5b5061013f670de0b6b3a764000081565b3480156101ad57600080fd5b5061013f6101bc36600461103b565b60026020526000908152604090205481565b6101e16101dc366004610f8b565b610454565b005b6101e161058d565b6101e16101f9366004610f8b565b6105d1565b34801561020a57600080fd5b5061013f61021936600461103b565b610786565b6100f561022c366004611054565b6107a7565b34801561023d57600080fd5b5061016d73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561026557600080fd5b5060408051808201825260068152654846756e647360d01b6020820152905161010291906110c2565b61013f61029c3660046110f5565b61087e565b3480156102ad57600080fd5b506102bc636139148b60e11b81565b6040516001600160e01b03199091168152602001610102565b604080518082018252600881526761646446756e647360c01b6020808301919091528251808401909352601f83527f746f6b656e20616e6420616d6f756e7420646f6573206e6f74206d617463680090830152606091610338918685149161088c565b60006103426108a0565b905060005b858110156104155761037e8787838181106103645761036461111e565b905060200201602081019061037991906110f5565b6108ee565b6103d482308787858181106103955761039561111e565b905060200201358a8a868181106103ae576103ae61111e565b90506020020160208101906103c391906110f5565b6001600160a01b031692919061094c565b6104038787838181106103e9576103e961111e565b90506020020160208101906103fe91906110f5565b6109bd565b8061040d8161114a565b915050610347565b50838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929998505050505050505050565b604080518082018252600b81526a72657475726e46756e647360a81b6020808301919091528251808401909352601d83527f746f6b656e20616e6420616d6f756e7420646f206e6f74206d61746368000000908301526104b891858414919061088c565b60006104c26108a0565b905060005b84811015610585576104e48686838181106103645761036461111e565b600061052e8787848181106104fb576104fb61111e565b905060200201602081019061051091906110f5565b8686858181106105225761052261111e565b90506020020135610a07565b9050801561057257610572838289898681811061054d5761054d61111e565b905060200201602081019061056291906110f5565b6001600160a01b03169190610ac6565b508061057d8161114a565b9150506104c7565b505050505050565b60405162461bcd60e51b8152602060048201526014602482015273496e76616c696420706f73742070726f6365737360601b60448201526064015b60405180910390fd5b604080518082018252600d81526c636865636b536c69707061676560981b6020808301919091528251808401909352601d83527f746f6b656e20616e6420616d6f756e7420646f206e6f74206d617463680000009083015261063791858414919061088c565b60005b8381101561077f576106578585838181106103645761036461111e565b600085858381811061066b5761066b61111e565b905060200201602081019061068091906110f5565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190611165565b90508383838181106106fe576106fe61111e565b9050602002013581101561076c57600061071783610af6565b61072083610af6565b60405160200161073192919061117e565b60408051601f19818403018152828201909152600d82526c636865636b536c69707061676560981b6020830152915061076a9082610c08565b505b50806107778161114a565b91505061063a565b5050505050565b6001818154811061079657600080fd5b600091825260209091200154905081565b606060008267ffffffffffffffff8111156107c4576107c46111cd565b6040519080825280602002602001820160405280156107ed578160200160208202803683370190505b50905060005b8381101561087457600085858381811061080f5761080f61111e565b905060200201602081019061082491906110f5565b905061082f816108ee565b61083881610c5f565b61084481600019610a07565b8383815181106108565761085661111e565b6020908102919091010152508061086c8161114a565b9150506107f3565b5090505b92915050565b600061087882600019610a07565b8261089b5761089b8282610c08565b505050565b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a60005260026020527fa16660c9fdaef0ffbd874dbca3ad3826346e1249977aad34a9ca109abdbfe3185490565b6001600160a01b03811661101014156109495760405162461bcd60e51b815260206004820152601760248201527f4e6f7420737570706f7274206d6174696320746f6b656e00000000000000000060448201526064016105c8565b50565b6040516001600160a01b03808516602483015283166044820152606481018290526109b79085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610cb0565b50505050565b6109c6816108ee565b6001805480820182556000919091526001600160a01b0382167fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69091015550565b60006000198214610a19575080610878565b6001600160a01b0383161580610a4b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b15610a57575047610878565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190611165565b9392505050565b6040516001600160a01b03831660248201526044810182905261089b90849063a9059cbb60e01b90606401610980565b606081610b1a5750506040805180820190915260018152600360fc1b602082015290565b6000825b8015610b445781610b2e8161114a565b9250610b3d9050600a826111f9565b9050610b1e565b5060008167ffffffffffffffff811115610b6057610b606111cd565b6040519080825280601f01601f191660200182016040528015610b8a576020820181803683370190505b509050815b8015610c0057610ba0600a8661120d565b610bab906030611221565b60f81b82610bba600184611239565b81518110610bca57610bca61111e565b60200101906001600160f81b031916908160001a905350610bec600a866111f9565b945080610bf881611250565b915050610b8f565b509392505050565b6040805180820190915260068152654846756e647360d01b60208201528282604051602001610c3993929190611267565b60408051601f198184030181529082905262461bcd60e51b82526105c8916004016110c2565b610c68816108ee565b60018054808201825560008290526001600160a01b0383167fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690910155610949906003610d82565b6000610d05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dbe9092919063ffffffff16565b80519091501561089b5780806020019051810190610d2391906112c7565b61089b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c8565b81816003811115610d9557610d956112e9565b81546001810183556000928352602090922060a09190911b6001600160a01b0319169101555050565b6060610dcd8484600085610dd5565b949350505050565b606082471015610e365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c8565b6001600160a01b0385163b610e8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c8565b600080866001600160a01b03168587604051610ea991906112ff565b60006040518083038185875af1925050503d8060008114610ee6576040519150601f19603f3d011682016040523d82523d6000602084013e610eeb565b606091505b5091509150610efb828286610f06565b979650505050505050565b60608315610f15575081610abf565b825115610f255782518084602001fd5b8160405162461bcd60e51b81526004016105c891906110c2565b60008083601f840112610f5157600080fd5b50813567ffffffffffffffff811115610f6957600080fd5b6020830191508360208260051b8501011115610f8457600080fd5b9250929050565b60008060008060408587031215610fa157600080fd5b843567ffffffffffffffff80821115610fb957600080fd5b610fc588838901610f3f565b90965094506020870135915080821115610fde57600080fd5b50610feb87828801610f3f565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561102f57835183529284019291840191600101611013565b50909695505050505050565b60006020828403121561104d57600080fd5b5035919050565b6000806020838503121561106757600080fd5b823567ffffffffffffffff81111561107e57600080fd5b61108a85828601610f3f565b90969095509350505050565b60005b838110156110b1578181015183820152602001611099565b838111156109b75750506000910152565b60208152600082518060208401526110e1816040850160208701611096565b601f01601f19169190910160400192915050565b60006020828403121561110757600080fd5b81356001600160a01b0381168114610abf57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561115e5761115e611134565b5060010190565b60006020828403121561117757600080fd5b5051919050565b66032b93937b91d160cd1b8152600083516111a0816007850160208801611096565b605f60f81b60079184019182015283516111c1816008840160208801611096565b01600801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611208576112086111e3565b500490565b60008261121c5761121c6111e3565b500690565b6000821982111561123457611234611134565b500190565b60008282101561124b5761124b611134565b500390565b60008161125f5761125f611134565b506000190190565b60008451611279818460208901611096565b605f60f81b9083019081528451611297816001840160208901611096565b6101d160f51b6001929091019182015283516112ba816003840160208801611096565b0160030195945050505050565b6000602082840312156112d957600080fd5b81518015158114610abf57600080fd5b634e487b7160e01b600052602160045260246000fd5b60008251611311818460208701611096565b919091019291505056fea2646970667358221220f9a18f0cd204c93af5d5fe21f7326a2b39d53b6c539abf90430e544346cdef3864736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106100dd5760003560e01c8063db71410e1161007f578063df2ebdbb11610059578063df2ebdbb14610231578063f5f5ba7214610259578063f8b2cb4f1461028e578063fa2901a5146102a157600080fd5b8063db71410e146101eb578063dc9031c4146101fe578063de41691c1461021e57600080fd5b806387c13943116100bb57806387c139431461018557806399eb59b9146101a1578063b3e38f16146101ce578063c2722916146101e357600080fd5b80630ce7df36146100e25780630f532d181461010b5780637b1039991461014d575b600080fd5b6100f56100f0366004610f8b565b6102d5565b6040516101029190610ff7565b60405180910390f35b34801561011757600080fd5b5061013f7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b604051908152602001610102565b34801561015957600080fd5b5060005461016d906001600160a01b031681565b6040516001600160a01b039091168152602001610102565b34801561019157600080fd5b5061013f670de0b6b3a764000081565b3480156101ad57600080fd5b5061013f6101bc36600461103b565b60026020526000908152604090205481565b6101e16101dc366004610f8b565b610454565b005b6101e161058d565b6101e16101f9366004610f8b565b6105d1565b34801561020a57600080fd5b5061013f61021936600461103b565b610786565b6100f561022c366004611054565b6107a7565b34801561023d57600080fd5b5061016d73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b34801561026557600080fd5b5060408051808201825260068152654846756e647360d01b6020820152905161010291906110c2565b61013f61029c3660046110f5565b61087e565b3480156102ad57600080fd5b506102bc636139148b60e11b81565b6040516001600160e01b03199091168152602001610102565b604080518082018252600881526761646446756e647360c01b6020808301919091528251808401909352601f83527f746f6b656e20616e6420616d6f756e7420646f6573206e6f74206d617463680090830152606091610338918685149161088c565b60006103426108a0565b905060005b858110156104155761037e8787838181106103645761036461111e565b905060200201602081019061037991906110f5565b6108ee565b6103d482308787858181106103955761039561111e565b905060200201358a8a868181106103ae576103ae61111e565b90506020020160208101906103c391906110f5565b6001600160a01b031692919061094c565b6104038787838181106103e9576103e961111e565b90506020020160208101906103fe91906110f5565b6109bd565b8061040d8161114a565b915050610347565b50838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929998505050505050505050565b604080518082018252600b81526a72657475726e46756e647360a81b6020808301919091528251808401909352601d83527f746f6b656e20616e6420616d6f756e7420646f206e6f74206d61746368000000908301526104b891858414919061088c565b60006104c26108a0565b905060005b84811015610585576104e48686838181106103645761036461111e565b600061052e8787848181106104fb576104fb61111e565b905060200201602081019061051091906110f5565b8686858181106105225761052261111e565b90506020020135610a07565b9050801561057257610572838289898681811061054d5761054d61111e565b905060200201602081019061056291906110f5565b6001600160a01b03169190610ac6565b508061057d8161114a565b9150506104c7565b505050505050565b60405162461bcd60e51b8152602060048201526014602482015273496e76616c696420706f73742070726f6365737360601b60448201526064015b60405180910390fd5b604080518082018252600d81526c636865636b536c69707061676560981b6020808301919091528251808401909352601d83527f746f6b656e20616e6420616d6f756e7420646f206e6f74206d617463680000009083015261063791858414919061088c565b60005b8381101561077f576106578585838181106103645761036461111e565b600085858381811061066b5761066b61111e565b905060200201602081019061068091906110f5565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190611165565b90508383838181106106fe576106fe61111e565b9050602002013581101561076c57600061071783610af6565b61072083610af6565b60405160200161073192919061117e565b60408051601f19818403018152828201909152600d82526c636865636b536c69707061676560981b6020830152915061076a9082610c08565b505b50806107778161114a565b91505061063a565b5050505050565b6001818154811061079657600080fd5b600091825260209091200154905081565b606060008267ffffffffffffffff8111156107c4576107c46111cd565b6040519080825280602002602001820160405280156107ed578160200160208202803683370190505b50905060005b8381101561087457600085858381811061080f5761080f61111e565b905060200201602081019061082491906110f5565b905061082f816108ee565b61083881610c5f565b61084481600019610a07565b8383815181106108565761085661111e565b6020908102919091010152508061086c8161114a565b9150506107f3565b5090505b92915050565b600061087882600019610a07565b8261089b5761089b8282610c08565b505050565b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a60005260026020527fa16660c9fdaef0ffbd874dbca3ad3826346e1249977aad34a9ca109abdbfe3185490565b6001600160a01b03811661101014156109495760405162461bcd60e51b815260206004820152601760248201527f4e6f7420737570706f7274206d6174696320746f6b656e00000000000000000060448201526064016105c8565b50565b6040516001600160a01b03808516602483015283166044820152606481018290526109b79085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610cb0565b50505050565b6109c6816108ee565b6001805480820182556000919091526001600160a01b0382167fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69091015550565b60006000198214610a19575080610878565b6001600160a01b0383161580610a4b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b15610a57575047610878565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190611165565b9392505050565b6040516001600160a01b03831660248201526044810182905261089b90849063a9059cbb60e01b90606401610980565b606081610b1a5750506040805180820190915260018152600360fc1b602082015290565b6000825b8015610b445781610b2e8161114a565b9250610b3d9050600a826111f9565b9050610b1e565b5060008167ffffffffffffffff811115610b6057610b606111cd565b6040519080825280601f01601f191660200182016040528015610b8a576020820181803683370190505b509050815b8015610c0057610ba0600a8661120d565b610bab906030611221565b60f81b82610bba600184611239565b81518110610bca57610bca61111e565b60200101906001600160f81b031916908160001a905350610bec600a866111f9565b945080610bf881611250565b915050610b8f565b509392505050565b6040805180820190915260068152654846756e647360d01b60208201528282604051602001610c3993929190611267565b60408051601f198184030181529082905262461bcd60e51b82526105c8916004016110c2565b610c68816108ee565b60018054808201825560008290526001600160a01b0383167fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690910155610949906003610d82565b6000610d05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dbe9092919063ffffffff16565b80519091501561089b5780806020019051810190610d2391906112c7565b61089b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c8565b81816003811115610d9557610d956112e9565b81546001810183556000928352602090922060a09190911b6001600160a01b0319169101555050565b6060610dcd8484600085610dd5565b949350505050565b606082471015610e365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c8565b6001600160a01b0385163b610e8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c8565b600080866001600160a01b03168587604051610ea991906112ff565b60006040518083038185875af1925050503d8060008114610ee6576040519150601f19603f3d011682016040523d82523d6000602084013e610eeb565b606091505b5091509150610efb828286610f06565b979650505050505050565b60608315610f15575081610abf565b825115610f255782518084602001fd5b8160405162461bcd60e51b81526004016105c891906110c2565b60008083601f840112610f5157600080fd5b50813567ffffffffffffffff811115610f6957600080fd5b6020830191508360208260051b8501011115610f8457600080fd5b9250929050565b60008060008060408587031215610fa157600080fd5b843567ffffffffffffffff80821115610fb957600080fd5b610fc588838901610f3f565b90965094506020870135915080821115610fde57600080fd5b50610feb87828801610f3f565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561102f57835183529284019291840191600101611013565b50909695505050505050565b60006020828403121561104d57600080fd5b5035919050565b6000806020838503121561106757600080fd5b823567ffffffffffffffff81111561107e57600080fd5b61108a85828601610f3f565b90969095509350505050565b60005b838110156110b1578181015183820152602001611099565b838111156109b75750506000910152565b60208152600082518060208401526110e1816040850160208701611096565b601f01601f19169190910160400192915050565b60006020828403121561110757600080fd5b81356001600160a01b0381168114610abf57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561115e5761115e611134565b5060010190565b60006020828403121561117757600080fd5b5051919050565b66032b93937b91d160cd1b8152600083516111a0816007850160208801611096565b605f60f81b60079184019182015283516111c1816008840160208801611096565b01600801949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082611208576112086111e3565b500490565b60008261121c5761121c6111e3565b500690565b6000821982111561123457611234611134565b500190565b60008282101561124b5761124b611134565b500390565b60008161125f5761125f611134565b506000190190565b60008451611279818460208901611096565b605f60f81b9083019081528451611297816001840160208901611096565b6101d160f51b6001929091019182015283516112ba816003840160208801611096565b0160030195945050505050565b6000602082840312156112d957600080fd5b81518015158114610abf57600080fd5b634e487b7160e01b600052602160045260246000fd5b60008251611311818460208701611096565b919091019291505056fea2646970667358221220f9a18f0cd204c93af5d5fe21f7326a2b39d53b6c539abf90430e544346cdef3864736f6c634300080a0033

Block Transaction 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

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.