BNB Price: $619.73 (+0.94%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Execute925873232026-04-15 1:05:1354 mins ago1776215113IN
0x770fb945...76d8efbf4
0 BNB0.000266030.055
System Withdraw925872942026-04-15 1:05:0054 mins ago1776215100IN
0x770fb945...76d8efbf4
0 BNB0.000002970.055
Execute925793242026-04-15 0:05:111 hr ago1776211511IN
0x770fb945...76d8efbf4
0 BNB0.000243160.055
Execute925633312026-04-14 22:05:103 hrs ago1776204310IN
0x770fb945...76d8efbf4
0 BNB0.000306390.055
Execute925553402026-04-14 21:05:134 hrs ago1776200713IN
0x770fb945...76d8efbf4
0 BNB0.000161670.055
Execute925473422026-04-14 20:05:135 hrs ago1776197113IN
0x770fb945...76d8efbf4
0 BNB0.000121830.055
System Withdraw925473142026-04-14 20:05:005 hrs ago1776197100IN
0x770fb945...76d8efbf4
0 BNB0.000005950.11
Execute925393452026-04-14 19:05:126 hrs ago1776193512IN
0x770fb945...76d8efbf4
0 BNB0.000113490.055
Execute925393402026-04-14 19:05:106 hrs ago1776193510IN
0x770fb945...76d8efbf4
0 BNB0.000266430.055
Execute925313472026-04-14 18:05:127 hrs ago1776189912IN
0x770fb945...76d8efbf4
0 BNB0.000059860.055
Execute925233582026-04-14 17:05:138 hrs ago1776186313IN
0x770fb945...76d8efbf4
0 BNB0.000065610.055
Execute925233532026-04-14 17:05:108 hrs ago1776186310IN
0x770fb945...76d8efbf4
0 BNB0.000401460.055
Execute925153662026-04-14 16:05:129 hrs ago1776182712IN
0x770fb945...76d8efbf4
0 BNB0.000187830.055
System Withdraw925153392026-04-14 16:05:009 hrs ago1776182700IN
0x770fb945...76d8efbf4
0 BNB0.000002970.055
Execute925073842026-04-14 15:05:1310 hrs ago1776179113IN
0x770fb945...76d8efbf4
0 BNB0.000053640.055
Execute925073782026-04-14 15:05:1010 hrs ago1776179110IN
0x770fb945...76d8efbf4
0 BNB0.000254330.055
Execute924994012026-04-14 14:05:1211 hrs ago1776175512IN
0x770fb945...76d8efbf4
0 BNB0.000259480.055
Execute924914182026-04-14 13:05:1212 hrs ago1776171912IN
0x770fb945...76d8efbf4
0 BNB0.000116250.055
Execute924834412026-04-14 12:05:1413 hrs ago1776168314IN
0x770fb945...76d8efbf4
0 BNB0.000265780.055
System Withdraw924834112026-04-14 12:05:0113 hrs ago1776168301IN
0x770fb945...76d8efbf4
0 BNB0.000002970.055
Execute924754392026-04-14 11:05:0914 hrs ago1776164709IN
0x770fb945...76d8efbf4
0 BNB0.000262410.055
Execute924674492026-04-14 10:05:0915 hrs ago1776161109IN
0x770fb945...76d8efbf4
0 BNB0.00016650.055
Execute924594602026-04-14 9:05:1016 hrs ago1776157510IN
0x770fb945...76d8efbf4
0 BNB0.000110750.055
Execute924514732026-04-14 8:05:1117 hrs ago1776153911IN
0x770fb945...76d8efbf4
0 BNB0.000263410.055
Execute924434842026-04-14 7:05:1318 hrs ago1776150313IN
0x770fb945...76d8efbf4
0 BNB0.000207480.055
View all transactions

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

Contract Source Code Verified (Exact Match)

Contract Name:
DexFiKeeper

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 10 runs

Other Settings:
shanghai EvmVersion
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract DexFiKeeper is Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;
    using SafeERC20 for IERC20;

    struct ExecutionData {
        address target;
        bytes data;
        uint256 value;
    }

    EnumerableSet.AddressSet private _subs;

    function subs(uint256 index) external view returns (address) {
        return _subs.at(index);
    }

    function subsCount() external view returns (uint256) {
        return _subs.length();
    }

    function subsContains(address sub) external view returns (bool) {
        return _subs.contains(sub);
    }

    event SubAdded(address sub);
    event SubRemoved(address sub);
    event Executed(ExecutionData[] data);

    error CallerNotSub(address caller);
    error SystemWithdrawRecipientZero();
    error SysthemWithdrawAmountOverflow(uint256 amount, uint256 max);
    error ExecuteValueDiffers(uint256 totalValue, uint256 targetValue);

    receive() external payable {}

    function addSubs(address[] memory subs_) external onlyOwner returns (bool) {
        for (uint256 i = 0; i < subs_.length; i++) if (_subs.add(subs_[i])) emit SubAdded(subs_[i]);
        return true;
    }

    function removeSubs(address[] memory subs_) external onlyOwner returns (bool) {
        for (uint256 i = 0; i < subs_.length; i++) if (_subs.remove(subs_[i])) emit SubRemoved(subs_[i]);
        return true;
    }

    function execute(ExecutionData[] memory data_) external payable onlySub returns (bytes[] memory output) {
        uint256 totalValue = 0;
        output = new bytes[](data_.length);
        for (uint256 i = 0; i < data_.length; i++) {
            ExecutionData memory executionData = data_[i];
            totalValue += executionData.value;
            output[i] = Address.functionCallWithValue(executionData.target, executionData.data, executionData.value);
        }
        if (totalValue != msg.value) revert ExecuteValueDiffers(msg.value, totalValue);
        emit Executed(data_);
    }

    function systemWithdraw(address token_, uint256 amount, address recipient) external onlySub returns (bool) {
        if (recipient == address(0)) revert SystemWithdrawRecipientZero();
        bool isERC20 = token_ != address(0);
        uint256 maxAmount = isERC20 ? IERC20(token_).balanceOf(address(this)) : address(this).balance;
        if (amount > maxAmount) revert SysthemWithdrawAmountOverflow(amount, maxAmount);
        if (isERC20) IERC20(token_).safeTransfer(recipient, amount);
        else Address.sendValue(payable(recipient), amount);
        return true;
    }

    modifier onlySub() {
        if (!_subs.contains(msg.sender)) revert CallerNotSub(msg.sender);
        _;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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.9.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 (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

Settings
{
  "evmVersion": "shanghai",
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 10
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerNotSub","type":"error"},{"inputs":[{"internalType":"uint256","name":"totalValue","type":"uint256"},{"internalType":"uint256","name":"targetValue","type":"uint256"}],"name":"ExecuteValueDiffers","type":"error"},{"inputs":[],"name":"SystemWithdrawRecipientZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"SysthemWithdrawAmountOverflow","type":"error"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"indexed":false,"internalType":"struct DexFiKeeper.ExecutionData[]","name":"data","type":"tuple[]"}],"name":"Executed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sub","type":"address"}],"name":"SubAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sub","type":"address"}],"name":"SubRemoved","type":"event"},{"inputs":[{"internalType":"address[]","name":"subs_","type":"address[]"}],"name":"addSubs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct DexFiKeeper.ExecutionData[]","name":"data_","type":"tuple[]"}],"name":"execute","outputs":[{"internalType":"bytes[]","name":"output","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"subs_","type":"address[]"}],"name":"removeSubs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"subs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sub","type":"address"}],"name":"subsContains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"subsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"systemWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080806040523461005a575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3610f62908161005f8239f35b5f80fdfe6040608081526004908136101561001f575b5050361561001d575f80fd5b005b5f803560e01c80630b8645ca14610a4a57806323ecc20b1461073a578063715018a6146106f3578063760f2a0b146102d957806388b69a791461029f5780638da5cb5b14610277578063dbb93aab146101df578063f2fde38b1461012b578063f63ddc9d146101085763f8a64f9a146100985750610011565b346101055760203660031901126101055782356001548110156100f25760019091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6015490516001600160a01b03909116815260209150f35b634e487b7160e01b825260328452602482fd5b80fd5b5090346101275781600319360112610127576020906001549051908152f35b5080fd5b5091346101db5760203660031901126101db57610146610b17565b9061014f610c24565b6001600160a01b0391821692831561018957505082546001600160a01b0319811683178455165f80516020610f0d8339815191528380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5034610105576101ee36610b45565b906101f7610c24565b815181101561026d5761022c906001600160a01b036102218161021a8487610cc9565b5116610cdd565b610231575b50610ca7565b6101f7565b60207f9fe164add20b8b06a593029811395e910fb1089c380c66428ec0e044a92793559161025f8487610cc9565b51168651908152a184610226565b6020835160018152f35b509034610127578160031936011261012757905490516001600160a01b039091168152602090f35b5090346101275760203660031901126101275760209181906001600160a01b036102c7610b17565b16815260028452205415159051908152f35b50916020806003193601126106ef578135936001600160401b0392838611610127573660238701121561012757858101359460249361031787610b00565b976103248351998a610ac9565b87895281890186819960051b830101913683116106eb57878101915b83831061061f575050505033845260028152818420541561060a57839288519861038161036c8b610b00565b9a61037986519c8d610ac9565b808c52610b00565b601f190183875b8c8382106105fa5750505050855b81518110156104d7576103a98183610cc9565b519585870190815181018091116104c557968560018060a01b03825116910151915191875192606084018d858210908211176104b3578952602984527f416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c88850152681d594819985a5b195960ba1b89850152804710610462579361044c8f939482958d808661045d9a8e6104529951920190855af1610446610e40565b91610e6f565b92610cc9565b52610226818d610cc9565b610396565b885162461bcd60e51b81528088018990526026818e01527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608490fd5b634e487b7160e01b8c52604188528c8cfd5b634e487b7160e01b8952601185528989fd5b508590898b93878a3482036105df57505086518681529251868401819052600581901b84018801929150848489015b8883831061059357505050505090807faa4bc5ba89c97af5e1cab0b8823d908f64911f5a8870d38a4e664ebc04730759920390a183519280840190808552835180925280868601968360051b870101940192955b8287106105675785850386f35b909192938280610583600193603f198a82030186528851610be6565b960192019601959291909261055a565b8060019293949596603f198982030185528751908d806105cb6060888060a01b03865116855286860151908088870152850190610be6565b930151910152960192019201909291610506565b60449350885192634f41e6b960e01b84523490840152820152fd5b8282606092010152018490610388565b81516319a31d0d60e01b815233818501528590fd5b82358a81116106e75782016060908160231982360301126106e35787519182018281108d8211176106d15788526106578b8201610b31565b82526044808201358d81116106cd57820190366043830112156106cd578c8201359061068282610bcb565b9261068f8c519485610ac9565b828452368284830101116106c957928d8b84606495829a9895839a9801838601378301015285840152013589820152815201920191610340565b8d80fd5b8b80fd5b634e487b7160e01b8b5260418a528b8bfd5b8980fd5b8880fd5b8680fd5b8380fd5b503461010557806003193601126101055761070c610c24565b80546001600160a01b03198116825581906001600160a01b03165f80516020610f0d8339815191528280a380f35b5091346101db5760603660031901126101db57610755610b17565b92604490602490813583356001600160a01b03818116918290036106ef5733845260209860028a528885205415610a35578215610a255716908115801590610a1f5788516370a0823160e01b815230898201528a818881875afa908115610a155786916109e4575b505b8085116109ca57501561090157875163a9059cbb60e01b8a8201908152868201929092528681019390935285835260808301926001600160401b03808511828610176108ef5760c08201908111858210176108ef5789528984527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460a0820152516108569392918591829182855af1610446610e40565b8051918215918883156108cb575b505050905015610879575050505b5160018152f35b602a906084957f5361666545524332303a204552433230206f7065726174696f6e20646964206e9495519562461bcd60e51b8752860152840152820152691bdd081cdd58d8d9595960b21b6064820152fd5b919381809450010312610127578601519081151582036101055750805f8088610864565b634e487b7160e01b8652604189528686fd5b90508147106109895782809281925af1610919610e40565b501561092757505050610872565b603a906084957f416464726573733a20756e61626c6520746f2073656e642076616c75652c20729495519562461bcd60e51b8752860152840152820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152fd5b865162461bcd60e51b8152808701899052601d818601527f416464726573733a20696e73756666696369656e742062616c616e636500000081870152606490fd5b88889188878d519363722f871360e01b8552840152820152fd5b90508a81813d8311610a0e575b6109fb8183610ac9565b81010312610a0a57515f6107bd565b8580fd5b503d6109f1565b8a513d88823e3d90fd5b476107bf565b88516379dafe4560e01b81528890fd5b88516319a31d0d60e01b815233818a01528690fd5b503461010557610a5936610b45565b90610a62610c24565b815181101561026d57610a96906001600160a01b03610a8c81610a858487610cc9565b5116610d58565b610a9b5750610ca7565b610a62565b60207fae1f99499aeec816ef78e80ad895acdf49816d86b177a70afb014e754ed302919161025f8487610cc9565b601f909101601f19168101906001600160401b03821190821017610aec57604052565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b038111610aec5760051b60200190565b600435906001600160a01b0382168203610b2d57565b5f80fd5b35906001600160a01b0382168203610b2d57565b602080600319830112610b2d57600435916001600160401b038311610b2d5780602384011215610b2d578260040135610b7d81610b00565b93610b8b6040519586610ac9565b81855260248486019260051b820101928311610b2d57602401905b828210610bb4575050505090565b838091610bc084610b31565b815201910190610ba6565b6001600160401b038111610aec57601f01601f191660200190565b91908251928382525f5b848110610c10575050825f602080949584010152601f8019910116010190565b602081830181015184830182015201610bf0565b5f546001600160a01b03163303610c3757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600154811015610c935760015f5260205f2001905f90565b634e487b7160e01b5f52603260045260245ffd5b5f198114610cb55760010190565b634e487b7160e01b5f52601160045260245ffd5b8051821015610c935760209160051b010190565b5f81815260026020526040812054610d5357600154600160401b811015610d3f579082610d2b610d1584600160409601600155610c7b565b819391549060031b91821b915f19901b19161790565b905560015492815260026020522055600190565b634e487b7160e01b82526041600452602482fd5b905090565b5f818152600260205260408120549091908015610e3b575f1990808201818111610e275760015490838201918211610e1357808203610ddf575b5050506001548015610dcb57810190610daa82610c7b565b909182549160031b1b19169055600155815260026020526040812055600190565b634e487b7160e01b84526031600452602484fd5b610dfd610dee610d1593610c7b565b90549060031b1c928392610c7b565b90558452600260205260408420555f8080610d92565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b85526011600452602485fd5b505090565b3d15610e6a573d90610e5182610bcb565b91610e5f6040519384610ac9565b82523d5f602084013e565b606090565b91929015610ed15750815115610e83575090565b3b15610e8c5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610ee45750805190602001fd5b60405162461bcd60e51b815260206004820152908190610f08906024830190610be6565b0390fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e36890c5720773cb59f2eb46ac7b7735b8833ad7657edcfb88eb0855f7f7083464736f6c63430008150033

Deployed Bytecode

0x6040608081526004908136101561001f575b5050361561001d575f80fd5b005b5f803560e01c80630b8645ca14610a4a57806323ecc20b1461073a578063715018a6146106f3578063760f2a0b146102d957806388b69a791461029f5780638da5cb5b14610277578063dbb93aab146101df578063f2fde38b1461012b578063f63ddc9d146101085763f8a64f9a146100985750610011565b346101055760203660031901126101055782356001548110156100f25760019091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6015490516001600160a01b03909116815260209150f35b634e487b7160e01b825260328452602482fd5b80fd5b5090346101275781600319360112610127576020906001549051908152f35b5080fd5b5091346101db5760203660031901126101db57610146610b17565b9061014f610c24565b6001600160a01b0391821692831561018957505082546001600160a01b0319811683178455165f80516020610f0d8339815191528380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5034610105576101ee36610b45565b906101f7610c24565b815181101561026d5761022c906001600160a01b036102218161021a8487610cc9565b5116610cdd565b610231575b50610ca7565b6101f7565b60207f9fe164add20b8b06a593029811395e910fb1089c380c66428ec0e044a92793559161025f8487610cc9565b51168651908152a184610226565b6020835160018152f35b509034610127578160031936011261012757905490516001600160a01b039091168152602090f35b5090346101275760203660031901126101275760209181906001600160a01b036102c7610b17565b16815260028452205415159051908152f35b50916020806003193601126106ef578135936001600160401b0392838611610127573660238701121561012757858101359460249361031787610b00565b976103248351998a610ac9565b87895281890186819960051b830101913683116106eb57878101915b83831061061f575050505033845260028152818420541561060a57839288519861038161036c8b610b00565b9a61037986519c8d610ac9565b808c52610b00565b601f190183875b8c8382106105fa5750505050855b81518110156104d7576103a98183610cc9565b519585870190815181018091116104c557968560018060a01b03825116910151915191875192606084018d858210908211176104b3578952602984527f416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c88850152681d594819985a5b195960ba1b89850152804710610462579361044c8f939482958d808661045d9a8e6104529951920190855af1610446610e40565b91610e6f565b92610cc9565b52610226818d610cc9565b610396565b885162461bcd60e51b81528088018990526026818e01527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608490fd5b634e487b7160e01b8c52604188528c8cfd5b634e487b7160e01b8952601185528989fd5b508590898b93878a3482036105df57505086518681529251868401819052600581901b84018801929150848489015b8883831061059357505050505090807faa4bc5ba89c97af5e1cab0b8823d908f64911f5a8870d38a4e664ebc04730759920390a183519280840190808552835180925280868601968360051b870101940192955b8287106105675785850386f35b909192938280610583600193603f198a82030186528851610be6565b960192019601959291909261055a565b8060019293949596603f198982030185528751908d806105cb6060888060a01b03865116855286860151908088870152850190610be6565b930151910152960192019201909291610506565b60449350885192634f41e6b960e01b84523490840152820152fd5b8282606092010152018490610388565b81516319a31d0d60e01b815233818501528590fd5b82358a81116106e75782016060908160231982360301126106e35787519182018281108d8211176106d15788526106578b8201610b31565b82526044808201358d81116106cd57820190366043830112156106cd578c8201359061068282610bcb565b9261068f8c519485610ac9565b828452368284830101116106c957928d8b84606495829a9895839a9801838601378301015285840152013589820152815201920191610340565b8d80fd5b8b80fd5b634e487b7160e01b8b5260418a528b8bfd5b8980fd5b8880fd5b8680fd5b8380fd5b503461010557806003193601126101055761070c610c24565b80546001600160a01b03198116825581906001600160a01b03165f80516020610f0d8339815191528280a380f35b5091346101db5760603660031901126101db57610755610b17565b92604490602490813583356001600160a01b03818116918290036106ef5733845260209860028a528885205415610a35578215610a255716908115801590610a1f5788516370a0823160e01b815230898201528a818881875afa908115610a155786916109e4575b505b8085116109ca57501561090157875163a9059cbb60e01b8a8201908152868201929092528681019390935285835260808301926001600160401b03808511828610176108ef5760c08201908111858210176108ef5789528984527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460a0820152516108569392918591829182855af1610446610e40565b8051918215918883156108cb575b505050905015610879575050505b5160018152f35b602a906084957f5361666545524332303a204552433230206f7065726174696f6e20646964206e9495519562461bcd60e51b8752860152840152820152691bdd081cdd58d8d9595960b21b6064820152fd5b919381809450010312610127578601519081151582036101055750805f8088610864565b634e487b7160e01b8652604189528686fd5b90508147106109895782809281925af1610919610e40565b501561092757505050610872565b603a906084957f416464726573733a20756e61626c6520746f2073656e642076616c75652c20729495519562461bcd60e51b8752860152840152820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152fd5b865162461bcd60e51b8152808701899052601d818601527f416464726573733a20696e73756666696369656e742062616c616e636500000081870152606490fd5b88889188878d519363722f871360e01b8552840152820152fd5b90508a81813d8311610a0e575b6109fb8183610ac9565b81010312610a0a57515f6107bd565b8580fd5b503d6109f1565b8a513d88823e3d90fd5b476107bf565b88516379dafe4560e01b81528890fd5b88516319a31d0d60e01b815233818a01528690fd5b503461010557610a5936610b45565b90610a62610c24565b815181101561026d57610a96906001600160a01b03610a8c81610a858487610cc9565b5116610d58565b610a9b5750610ca7565b610a62565b60207fae1f99499aeec816ef78e80ad895acdf49816d86b177a70afb014e754ed302919161025f8487610cc9565b601f909101601f19168101906001600160401b03821190821017610aec57604052565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b038111610aec5760051b60200190565b600435906001600160a01b0382168203610b2d57565b5f80fd5b35906001600160a01b0382168203610b2d57565b602080600319830112610b2d57600435916001600160401b038311610b2d5780602384011215610b2d578260040135610b7d81610b00565b93610b8b6040519586610ac9565b81855260248486019260051b820101928311610b2d57602401905b828210610bb4575050505090565b838091610bc084610b31565b815201910190610ba6565b6001600160401b038111610aec57601f01601f191660200190565b91908251928382525f5b848110610c10575050825f602080949584010152601f8019910116010190565b602081830181015184830182015201610bf0565b5f546001600160a01b03163303610c3757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600154811015610c935760015f5260205f2001905f90565b634e487b7160e01b5f52603260045260245ffd5b5f198114610cb55760010190565b634e487b7160e01b5f52601160045260245ffd5b8051821015610c935760209160051b010190565b5f81815260026020526040812054610d5357600154600160401b811015610d3f579082610d2b610d1584600160409601600155610c7b565b819391549060031b91821b915f19901b19161790565b905560015492815260026020522055600190565b634e487b7160e01b82526041600452602482fd5b905090565b5f818152600260205260408120549091908015610e3b575f1990808201818111610e275760015490838201918211610e1357808203610ddf575b5050506001548015610dcb57810190610daa82610c7b565b909182549160031b1b19169055600155815260026020526040812055600190565b634e487b7160e01b84526031600452602484fd5b610dfd610dee610d1593610c7b565b90549060031b1c928392610c7b565b90558452600260205260408420555f8080610d92565b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b85526011600452602485fd5b505090565b3d15610e6a573d90610e5182610bcb565b91610e5f6040519384610ac9565b82523d5f602084013e565b606090565b91929015610ed15750815115610e83575090565b3b15610e8c5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b825190915015610ee45750805190602001fd5b60405162461bcd60e51b815260206004820152908190610f08906024830190610be6565b0390fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e36890c5720773cb59f2eb46ac7b7735b8833ad7657edcfb88eb0855f7f7083464736f6c63430008150033

Block Transaction Gas Used Reward
view all blocks produced
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
View All Validatorset

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.