ETH Price: $2,962.65 (-1.66%)
Gas: 4 Gwei

Contract

0xcADBA199F3AC26F67f660C89d43eB1820b7f7a3b
 

Overview

ETH Balance

0.000564836851394184 ETH

Eth Value

$1.67 (@ $2,962.65/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60a06040154660332022-09-03 15:00:39672 days ago1662217239IN
 Create: TradeHandler
0 ETH0.0135127810.18453876

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
159813972022-11-16 8:29:11599 days ago1668587351
0xcADBA199...20b7f7a3b
0.00056483 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TradeHandler

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, GNU GPLv3 license
File 1 of 7 : TradeHandler.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.15;

import "VM.sol";
import "EnumerableSet.sol";
import "IERC20.sol";
import "SafeERC20.sol";

/**
@title Trade Handler
@author yearn.finance
@notice TradeHandler is in charge of tracking which strategy wants to do certain
trade. The strategy registers what they have and what they want and wait for an
async trade. TradeHandler trades are executed by mechs through a weiroll VM.
*/

contract TradeHandler is VM {
    using EnumerableSet for EnumerableSet.AddressSet;

    address payable public governance;
    address payable public pendingGovernance;

    // Mechs are addresses authorized to execute trades
    mapping(address => bool) public mechs;

    event AddedMech(address mech);
    event RemovedMech(address mech);
    event TradeEnabled(address indexed seller, address indexed tokenIn, address indexed tokenOut);
    event TradeDisabled(address indexed seller, address indexed tokenIn, address indexed tokenOut);

    constructor(address payable _governance) {
        governance = _governance;
        mechs[_governance] = true;
    }

    function setGovernance(address payable _governance) external {
        require(msg.sender == governance);
        pendingGovernance = _governance;
    }

    function acceptGovernance() external {
        require(msg.sender == pendingGovernance);
        governance = pendingGovernance;
        delete pendingGovernance;
    }

    function addMech(address _mech) external {
        require(msg.sender == governance);
        mechs[_mech] = true;
        emit AddedMech(_mech);
    }

    function removeMech(address _mech) external {
        require(msg.sender == governance);
        delete mechs[_mech];
        emit RemovedMech(_mech);
    }

    function enable(address _tokenIn, address _tokenOut) external {
        require(_tokenIn != address(0));
        require(_tokenOut != address(0));

        emit TradeEnabled(msg.sender, _tokenIn, _tokenOut);
    }

    function disable(address _tokenIn, address _tokenOut) external {
        _disable(msg.sender, _tokenIn, _tokenOut);
    }

    function disableByAdmin(
        address _strategy,
        address _tokenIn,
        address _tokenOut
    ) external {
        require(msg.sender == governance);
        _disable(_strategy, _tokenIn, _tokenOut);
    }

    function _disable(
        address _strategy,
        address _tokenIn,
        address _tokenOut
    ) internal {
        emit TradeDisabled(_strategy, _tokenIn, _tokenOut);
    }

    function execute(bytes32[] calldata commands, bytes[] memory state)
        external
        returns (bytes[] memory)
    {
        require(mechs[msg.sender]);
        return _execute(commands, state);
    }

    function sweep(address _token) external {
        require(msg.sender == governance);

        uint256 amount;
        if (_token == address(0)) {
            amount = address(this).balance;
            (bool success, ) = governance.call{value: amount}("");
            require(success, "!transfer");
        } else {
            amount = IERC20(_token).balanceOf(address(this));
            SafeERC20.safeTransfer(IERC20(_token), governance, amount);
        }
    }

    receive() external payable {}
}

File 2 of 7 : VM.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import "CommandBuilder.sol";

abstract contract VM {
    using CommandBuilder for bytes[];

    uint256 constant FLAG_CT_DELEGATECALL = 0x00;
    uint256 constant FLAG_CT_CALL = 0x01;
    uint256 constant FLAG_CT_STATICCALL = 0x02;
    uint256 constant FLAG_CT_VALUECALL = 0x03;
    uint256 constant FLAG_CT_MASK = 0x03;
    uint256 constant FLAG_EXTENDED_COMMAND = 0x40;
    uint256 constant FLAG_TUPLE_RETURN = 0x80;

    uint256 constant SHORT_COMMAND_FILL = 0x000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;

    address immutable self;

    error ExecutionFailed(
        uint256 command_index,
        address target,
        string message
    );

    constructor() {
        self = address(this);
    }

    function _execute(bytes32[] calldata commands, bytes[] memory state)
      internal returns (bytes[] memory)
    {
        bytes32 command;
        uint256 flags;
        bytes32 indices;

        bool success;
        bytes memory outdata;

        uint256 commandsLength = commands.length;
        for (uint256 i; i < commandsLength;) {
            command = commands[i];
            flags = uint256(command >> 216) & 0xFF; // more efficient
            // flags = uint256(uint8(bytes1(command << 32))); // more readable

            if (flags & FLAG_EXTENDED_COMMAND != 0) {
                indices = commands[++i];
            } else {
                indices = bytes32(uint256(command << 40) | SHORT_COMMAND_FILL);
            }

            if (flags & FLAG_CT_MASK == FLAG_CT_DELEGATECALL) {
                (success, outdata) = address(uint160(uint256(command))).delegatecall( // target
                    // inputs
                    state.buildInputs(
                        //selector
                        bytes4(command),
                        indices
                    )
                );
            } else if (flags & FLAG_CT_MASK == FLAG_CT_CALL) {
                (success, outdata) = address(uint160(uint256(command))).call( // target
                    // inputs
                    state.buildInputs(
                        //selector
                        bytes4(command),
                        indices
                    )
                );
            } else if (flags & FLAG_CT_MASK == FLAG_CT_STATICCALL) {
                (success, outdata) = address(uint160(uint256(command))).staticcall( // target
                    // inputs
                    state.buildInputs(
                        //selector
                        bytes4(command),
                        indices
                    )
                );
            } else if (flags & FLAG_CT_MASK == FLAG_CT_VALUECALL) {
                uint256 callEth;
                bytes memory v = state[uint8(bytes1(indices))];
                require(v.length == 32, "_execute: value call has no value indicated.");
                assembly {
                    callEth := mload(add(v, 0x20))
                }
                (success, outdata) = address(uint160(uint256(command))).call{ // target
                    value: callEth
                }(
                    // inputs
                    state.buildInputs(
                        //selector
                        bytes4(command),
                        bytes32(uint256(indices << 8) | CommandBuilder.IDX_END_OF_ARGS)
                    )
                );
            } else {
                revert("Invalid calltype");
            }

            if (!success) {
                if (outdata.length > 0) {
                    assembly {
                        outdata := add(outdata, 68)
                    }
                }
                revert ExecutionFailed({
                    command_index: 0,
                    target: address(uint160(uint256(command))),
                    message: outdata.length > 0 ? string(outdata) : "Unknown"
                });
            }

            if (flags & FLAG_TUPLE_RETURN != 0) {
                state.writeTuple(bytes1(command << 88), outdata);
            } else {
                state = state.writeOutputs(bytes1(command << 88), outdata);
            }
            unchecked{++i;}
        }
        return state;
    }
}

File 3 of 7 : CommandBuilder.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

library CommandBuilder {

    uint256 constant IDX_VARIABLE_LENGTH = 0x80;
    uint256 constant IDX_VALUE_MASK = 0x7f;
    uint256 constant IDX_END_OF_ARGS = 0xff;
    uint256 constant IDX_USE_STATE = 0xfe;

    function buildInputs(
        bytes[] memory state,
        bytes4 selector,
        bytes32 indices
    ) internal view returns (bytes memory ret) {
        uint256 free; // Pointer to first free byte in tail part of message
        uint256 idx;

        // Determine the length of the encoded data
        for (uint256 i; i < 32;) {
            idx = uint8(indices[i]);
            if (idx == IDX_END_OF_ARGS) break;
            unchecked{free += 32;}
            unchecked{++i;}
        }

        // Encode it
        uint256 bytesWritten;
        assembly {
            ret := mload(0x40)
            bytesWritten := add(bytesWritten, 4)
            mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
            mstore(add(ret, 32), selector)
        }
        uint256 count = 0;
        bytes memory stateData; // Optionally encode the current state if the call requires it
        for (uint256 i; i < 32;) {
            idx = uint8(indices[i]);
            if (idx == IDX_END_OF_ARGS) break;

            if (idx & IDX_VARIABLE_LENGTH != 0) {
                if (idx == IDX_USE_STATE) {
                    assembly {
                        bytesWritten := add(bytesWritten, 32)
                        mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
                        mstore(add(add(ret, 36), count), free)
                    }
                    if (stateData.length == 0) {
                        stateData = abi.encode(state);
                    }
                    assembly {
                        bytesWritten := add(bytesWritten, mload(stateData))
                        mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
                    }
                    memcpy(stateData, 32, ret, free + 4, stateData.length - 32);
                    free += stateData.length - 32;
                } else {
                    bytes memory stateVar = state[idx & IDX_VALUE_MASK];
                    uint256 arglen = stateVar.length;

                    // Variable length data; put a pointer in the slot and write the data at the end
                    assembly {
                        bytesWritten := add(bytesWritten, 32)
                        mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
                        mstore(add(add(ret, 36), count), free)
                    }
                    assembly {
                        bytesWritten := add(bytesWritten, arglen)
                        mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
                    }
                    memcpy(
                        stateVar,
                        0,
                        ret,
                        free + 4,
                        arglen
                    );
                    free += arglen;
                }
            } else {
                // Fixed length data; write it directly
                bytes memory stateVar = state[idx & IDX_VALUE_MASK];
                assembly {
                    bytesWritten := add(bytesWritten, mload(stateVar))
                    mstore(0x40, add(ret, and(add(add(bytesWritten, 0x20), 0x1f), not(0x1f))))
                    mstore(add(add(ret, 36), count), mload(add(stateVar, 32)))
                }
            }
            unchecked{count += 32;}
            unchecked{++i;}
        }
        assembly {
            mstore(ret, bytesWritten)
        }
    }

    function writeOutputs(
        bytes[] memory state,
        bytes1 index,
        bytes memory output
    ) internal pure returns (bytes[] memory) {
        uint256 idx = uint8(index);
        if (idx == IDX_END_OF_ARGS) return state;

        if (idx & IDX_VARIABLE_LENGTH != 0) {
            if (idx == IDX_USE_STATE) {
                state = abi.decode(output, (bytes[]));
            } else {
                // Check the first field is 0x20 (because we have only a single return value)
                uint256 argptr;
                assembly {
                    argptr := mload(add(output, 32))
                }
                require(
                    argptr == 32,
                    "Only one return value permitted (variable)"
                );

                assembly {
                    // Overwrite the first word of the return data with the length - 32
                    mstore(add(output, 32), sub(mload(output), 32))
                    // Insert a pointer to the return data, starting at the second word, into state
                    mstore(
                        add(add(state, 32), mul(and(idx, IDX_VALUE_MASK), 32)),
                        add(output, 32)
                    )
                }
            }
        } else {
            // Single word
            require(
                output.length == 32,
                "Only one return value permitted (static)"
            );

            state[idx & IDX_VALUE_MASK] = output;
        }

        return state;
    }

    function writeTuple(
        bytes[] memory state,
        bytes1 index,
        bytes memory output
    ) internal view {
        uint256 idx = uint256(uint8(index));
        if (idx == IDX_END_OF_ARGS) return;

        bytes memory entry = state[idx & IDX_VALUE_MASK] = new bytes(output.length + 32);

        memcpy(output, 0, entry, 32, output.length);
        assembly {
            let l := mload(output)
            mstore(add(entry, 32), l)
        }
    }

    function memcpy(
        bytes memory src,
        uint256 srcidx,
        bytes memory dest,
        uint256 destidx,
        uint256 len
    ) internal view {
        assembly {
            pop(
                staticcall(
                    gas(),
                    4,
                    add(add(src, 32), srcidx),
                    len,
                    add(add(dest, 32), destidx),
                    len
                )
            )
        }
    }
}

File 4 of 7 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

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.
 *
 * ```
 * 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.
 */
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) {
        return _values(set._inner);
    }

    // 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;

        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 on 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;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 7 : 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 "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 7 of 7 : 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);
            }
        }
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "TradeHandler.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_governance","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"command_index","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"string","name":"message","type":"string"}],"name":"ExecutionFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"mech","type":"address"}],"name":"AddedMech","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"mech","type":"address"}],"name":"RemovedMech","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":true,"internalType":"address","name":"tokenOut","type":"address"}],"name":"TradeDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":true,"internalType":"address","name":"tokenOut","type":"address"}],"name":"TradeEnabled","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mech","type":"address"}],"name":"addMech","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"}],"name":"disable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"}],"name":"disableByAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"}],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"commands","type":"bytes32[]"},{"internalType":"bytes[]","name":"state","type":"bytes[]"}],"name":"execute","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mechs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mech","type":"address"}],"name":"removeMech","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b506040516116e63803806116e683398101604081905261002f9161006e565b30608052600080546001600160a01b0319166001600160a01b03929092169182178155908152600260205260409020805460ff1916600117905561009e565b60006020828403121561008057600080fd5b81516001600160a01b038116811461009757600080fd5b9392505050565b6080516116306100b6600039600050506116306000f3fe6080604052600436106100aa5760003560e01c806366f88f821161006457806366f88f82146101aa5780639cd38be5146101ca578063ab033ea9146101ea578063d0adcdf61461020a578063de792d5f1461022a578063f39c38a01461025757600080fd5b8062b8ff92146100b657806301681a62146100d8578063238efcbc146100f857806349d6e2121461010d5780634c854126146101525780635aa6e6751461017257600080fd5b366100b157005b600080fd5b3480156100c257600080fd5b506100d66100d13660046110ba565b610277565b005b3480156100e457600080fd5b506100d66100f3366004611105565b61029e565b34801561010457600080fd5b506100d66103e2565b34801561011957600080fd5b5061013d610128366004611105565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561015e57600080fd5b506100d661016d366004611122565b610420565b34801561017e57600080fd5b50600054610192906001600160a01b031681565b6040516001600160a01b039091168152602001610149565b3480156101b657600080fd5b506100d66101c5366004611105565b610485565b3480156101d657600080fd5b506100d66101e5366004611122565b6104f4565b3480156101f657600080fd5b506100d6610205366004611105565b6104ff565b34801561021657600080fd5b506100d6610225366004611105565b610538565b34801561023657600080fd5b5061024a6102453660046111ee565b6105a3565b604051610149919061139a565b34801561026357600080fd5b50600154610192906001600160a01b031681565b6000546001600160a01b0316331461028e57600080fd5b6102998383836105d7565b505050565b6000546001600160a01b031633146102b557600080fd5b60006001600160a01b03821661035b5750600080546040514792916001600160a01b03169083908381818185875af1925050503d8060008114610314576040519150601f19603f3d011682016040523d82523d6000602084013e610319565b606091505b50509050806102995760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c391906113fc565b6000549091506103de9083906001600160a01b031683610626565b5050565b6001546001600160a01b031633146103f957600080fd5b60018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6001600160a01b03821661043357600080fd5b6001600160a01b03811661044657600080fd5b6040516001600160a01b03808316919084169033907f39e31092deb8f976532f8f405a66c2a1f574b4494ba37cbc2915c1914a9689f290600090a45050565b6000546001600160a01b0316331461049c57600080fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527f74cbb97aad2128ac02cf33c1dd8791a60aae9afab06f3a411169bdae081277c591015b60405180910390a150565b6103de3383836105d7565b6000546001600160a01b0316331461051657600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461054f57600080fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527fb43754e0033076ed886a3bee063313d9f0da4612cd15041451f9ccf4108205bd91016104e9565b3360009081526002602052604090205460609060ff166105c257600080fd5b6105cd848484610678565b90505b9392505050565b806001600160a01b0316826001600160a01b0316846001600160a01b03167fb670ba64017b695a17160f17252635c78b7e4b57d1efcf9a6968b9c03e7b596660405160405180910390a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610299908490610a3d565b606060008080808487825b81811015610a2e578a8a8281811061069d5761069d611415565b90506020020135965060d887901c60001c60ff169550604086166000146106e9578a8a6106c983611441565b9250828181106106db576106db611415565b9050602002013594506106fa565b602887901b6001600160d01b031794505b6003861661076f576001600160a01b0387166107178a8988610b0f565b604051610724919061145a565b600060405180830381855af49150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b606091505b509094509250610992565b600160038716036107d9576001600160a01b03871661078f8a8988610b0f565b60405161079c919061145a565b6000604051808303816000865af19150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b60026003871603610841576001600160a01b0387166107f98a8988610b0f565b604051610806919061145a565b600060405180830381855afa9150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b600380871603610957576000808a8760f81c60ff168151811061086657610866611415565b6020026020010151905080516020146108d65760405162461bcd60e51b815260206004820152602c60248201527f5f657865637574653a2076616c75652063616c6c20686173206e6f2076616c7560448201526b329034b73234b1b0ba32b21760a11b6064820152608401610352565b602081015191506001600160a01b038916826108fa8d8c60088c901b60ff17610b0f565b604051610907919061145a565b60006040518083038185875af1925050503d8060008114610944576040519150601f19603f3d011682016040523d82523d6000602084013e610949565b606091505b509096509450610992915050565b60405162461bcd60e51b815260206004820152601060248201526f496e76616c69642063616c6c7479706560801b6044820152606401610352565b836109f7578251156109a5576044830192505b60008760001c60008551116109d957604051806040016040528060078152602001662ab735b737bbb760c91b8152506109db565b845b60405163ef3dcb2f60e01b815260040161035293929190611476565b6080861615610a1457610a0f89605889901b85610d0f565b610a26565b610a2389605889901b85610db7565b98505b600101610683565b50969998505050505050505050565b6000610a92826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f0f9092919063ffffffff16565b8051909150156102995780806020019051810190610ab091906114a9565b6102995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610352565b606060008060005b6020811015610b4e57848160208110610b3257610b32611415565b1a915060fe19820115610b4e5760209290920191600101610b17565b5060408051808201909152602081018690529250600460006060815b6020811015610d0057878160208110610b8557610b85611415565b1a945060fe19850115610d00576080851615610cb15760fe8503610c4157601f19605f85011687016040526024838801018690528151602090940193600003610beb5789604051602001610bd9919061139a565b60405160208183030381529060405291505b8151603f9401938401601f19168701604052610c2282602089610c0f8a60046114cb565b60208751610c1d91906114e3565b610f1e565b60208251610c3091906114e3565b610c3a90876114cb565b9550610cf1565b60008a607f871681518110610c5857610c58611415565b6020908102919091018101518051868b016024018a9052968701605f8101601f19168b0160405290910195909150610c9e8260008b610c988c60046114cb565b85610f1e565b610ca881896114cb565b97505050610cf1565b60008a607f871681518110610cc857610cc8611415565b6020908102919091018101518051603f9701968701601f19168a01604052015184890160240152505b60209290920191600101610b6a565b50505083525090949350505050565b60f882901c60fe198101610d235750505050565b600082516020610d3391906114cb565b67ffffffffffffffff811115610d4b57610d4b61115b565b6040519080825280601f01601f191660200182016040528015610d75576020820181803683370190505b5085607f841681518110610d8b57610d8b611415565b602002602001018190529050610da78360008360208751610f1e565b8251806020830152505050505050565b606060f883901c60fe198101610dd057849150506105d0565b6080811615610e825760fe8103610dfc5782806020019051810190610df591906114fa565b9450610f06565b602083810151908114610e645760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015269287661726961626c652960b01b6064820152608401610352565b508251601f19016020848101918252607f8316810287010152610f06565b8251602014610ee45760405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015267287374617469632960c01b6064820152608401610352565b8285607f831681518110610efa57610efa611415565b60200260200101819052505b50929392505050565b60606105cd8484600085610f38565b808260208501018286602089010160045afa505050505050565b606082471015610f995760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610352565b6001600160a01b0385163b610ff05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610352565b600080866001600160a01b0316858760405161100c919061145a565b60006040518083038185875af1925050503d8060008114611049576040519150601f19603f3d011682016040523d82523d6000602084013e61104e565b606091505b509150915061105e828286611069565b979650505050505050565b606083156110785750816105d0565b8251156110885782518084602001fd5b8160405162461bcd60e51b815260040161035291906115e7565b6001600160a01b03811681146110b757600080fd5b50565b6000806000606084860312156110cf57600080fd5b83356110da816110a2565b925060208401356110ea816110a2565b915060408401356110fa816110a2565b809150509250925092565b60006020828403121561111757600080fd5b81356105d0816110a2565b6000806040838503121561113557600080fd5b8235611140816110a2565b91506020830135611150816110a2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561119a5761119a61115b565b604052919050565b600067ffffffffffffffff8211156111bc576111bc61115b565b5060051b60200190565b600067ffffffffffffffff8211156111e0576111e061115b565b50601f01601f191660200190565b6000806000604080858703121561120457600080fd5b843567ffffffffffffffff8082111561121c57600080fd5b818701915087601f83011261123057600080fd5b81358181111561123f57600080fd5b602089818360051b860101111561125557600080fd5b80840197508196508089013593508284111561127057600080fd5b838901935089601f85011261128457600080fd5b83359150611299611294836111a2565b611171565b82815260059290921b8401810191818101908b8411156112b857600080fd5b8286015b8481101561132c578035868111156112d45760008081fd5b8701603f81018e136112e65760008081fd5b848101356112f6611294826111c6565b8181528f8b83850101111561130b5760008081fd5b818b84018883013760009181018701919091528452509183019183016112bc565b50809750505050505050509250925092565b60005b83811015611359578181015183820152602001611341565b83811115611368576000848401525b50505050565b6000815180845261138681602086016020860161133e565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156113ef57603f198886030184526113dd85835161136e565b945092850192908501906001016113c1565b5092979650505050505050565b60006020828403121561140e57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016114535761145361142b565b5060010190565b6000825161146c81846020870161133e565b9190910192915050565b8381526001600160a01b03831660208201526060604082018190526000906114a09083018461136e565b95945050505050565b6000602082840312156114bb57600080fd5b815180151581146105d057600080fd5b600082198211156114de576114de61142b565b500190565b6000828210156114f5576114f561142b565b500390565b6000602080838503121561150d57600080fd5b825167ffffffffffffffff8082111561152557600080fd5b818501915085601f83011261153957600080fd5b8151611547611294826111a2565b81815260059190911b8301840190848101908883111561156657600080fd5b8585015b838110156115da578051858111156115825760008081fd5b8601603f81018b136115945760008081fd5b8781015160406115a6611294836111c6565b8281528d828486010111156115bb5760008081fd5b6115ca838c830184870161133e565b865250505091860191860161156a565b5098975050505050505050565b6020815260006105d0602083018461136e56fea2646970667358221220e36687211c84f7e97ec52c0f19efb34982a9adecc82428c80ebf84051511f38664736f6c634300080f00330000000000000000000000002c01b4ad51a67e2d8f02208f54df9ac4c0b778b6

Deployed Bytecode

0x6080604052600436106100aa5760003560e01c806366f88f821161006457806366f88f82146101aa5780639cd38be5146101ca578063ab033ea9146101ea578063d0adcdf61461020a578063de792d5f1461022a578063f39c38a01461025757600080fd5b8062b8ff92146100b657806301681a62146100d8578063238efcbc146100f857806349d6e2121461010d5780634c854126146101525780635aa6e6751461017257600080fd5b366100b157005b600080fd5b3480156100c257600080fd5b506100d66100d13660046110ba565b610277565b005b3480156100e457600080fd5b506100d66100f3366004611105565b61029e565b34801561010457600080fd5b506100d66103e2565b34801561011957600080fd5b5061013d610128366004611105565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561015e57600080fd5b506100d661016d366004611122565b610420565b34801561017e57600080fd5b50600054610192906001600160a01b031681565b6040516001600160a01b039091168152602001610149565b3480156101b657600080fd5b506100d66101c5366004611105565b610485565b3480156101d657600080fd5b506100d66101e5366004611122565b6104f4565b3480156101f657600080fd5b506100d6610205366004611105565b6104ff565b34801561021657600080fd5b506100d6610225366004611105565b610538565b34801561023657600080fd5b5061024a6102453660046111ee565b6105a3565b604051610149919061139a565b34801561026357600080fd5b50600154610192906001600160a01b031681565b6000546001600160a01b0316331461028e57600080fd5b6102998383836105d7565b505050565b6000546001600160a01b031633146102b557600080fd5b60006001600160a01b03821661035b5750600080546040514792916001600160a01b03169083908381818185875af1925050503d8060008114610314576040519150601f19603f3d011682016040523d82523d6000602084013e610319565b606091505b50509050806102995760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa15801561039f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c391906113fc565b6000549091506103de9083906001600160a01b031683610626565b5050565b6001546001600160a01b031633146103f957600080fd5b60018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6001600160a01b03821661043357600080fd5b6001600160a01b03811661044657600080fd5b6040516001600160a01b03808316919084169033907f39e31092deb8f976532f8f405a66c2a1f574b4494ba37cbc2915c1914a9689f290600090a45050565b6000546001600160a01b0316331461049c57600080fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527f74cbb97aad2128ac02cf33c1dd8791a60aae9afab06f3a411169bdae081277c591015b60405180910390a150565b6103de3383836105d7565b6000546001600160a01b0316331461051657600080fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461054f57600080fd5b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527fb43754e0033076ed886a3bee063313d9f0da4612cd15041451f9ccf4108205bd91016104e9565b3360009081526002602052604090205460609060ff166105c257600080fd5b6105cd848484610678565b90505b9392505050565b806001600160a01b0316826001600160a01b0316846001600160a01b03167fb670ba64017b695a17160f17252635c78b7e4b57d1efcf9a6968b9c03e7b596660405160405180910390a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610299908490610a3d565b606060008080808487825b81811015610a2e578a8a8281811061069d5761069d611415565b90506020020135965060d887901c60001c60ff169550604086166000146106e9578a8a6106c983611441565b9250828181106106db576106db611415565b9050602002013594506106fa565b602887901b6001600160d01b031794505b6003861661076f576001600160a01b0387166107178a8988610b0f565b604051610724919061145a565b600060405180830381855af49150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b606091505b509094509250610992565b600160038716036107d9576001600160a01b03871661078f8a8988610b0f565b60405161079c919061145a565b6000604051808303816000865af19150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b60026003871603610841576001600160a01b0387166107f98a8988610b0f565b604051610806919061145a565b600060405180830381855afa9150503d806000811461075f576040519150601f19603f3d011682016040523d82523d6000602084013e610764565b600380871603610957576000808a8760f81c60ff168151811061086657610866611415565b6020026020010151905080516020146108d65760405162461bcd60e51b815260206004820152602c60248201527f5f657865637574653a2076616c75652063616c6c20686173206e6f2076616c7560448201526b329034b73234b1b0ba32b21760a11b6064820152608401610352565b602081015191506001600160a01b038916826108fa8d8c60088c901b60ff17610b0f565b604051610907919061145a565b60006040518083038185875af1925050503d8060008114610944576040519150601f19603f3d011682016040523d82523d6000602084013e610949565b606091505b509096509450610992915050565b60405162461bcd60e51b815260206004820152601060248201526f496e76616c69642063616c6c7479706560801b6044820152606401610352565b836109f7578251156109a5576044830192505b60008760001c60008551116109d957604051806040016040528060078152602001662ab735b737bbb760c91b8152506109db565b845b60405163ef3dcb2f60e01b815260040161035293929190611476565b6080861615610a1457610a0f89605889901b85610d0f565b610a26565b610a2389605889901b85610db7565b98505b600101610683565b50969998505050505050505050565b6000610a92826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f0f9092919063ffffffff16565b8051909150156102995780806020019051810190610ab091906114a9565b6102995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610352565b606060008060005b6020811015610b4e57848160208110610b3257610b32611415565b1a915060fe19820115610b4e5760209290920191600101610b17565b5060408051808201909152602081018690529250600460006060815b6020811015610d0057878160208110610b8557610b85611415565b1a945060fe19850115610d00576080851615610cb15760fe8503610c4157601f19605f85011687016040526024838801018690528151602090940193600003610beb5789604051602001610bd9919061139a565b60405160208183030381529060405291505b8151603f9401938401601f19168701604052610c2282602089610c0f8a60046114cb565b60208751610c1d91906114e3565b610f1e565b60208251610c3091906114e3565b610c3a90876114cb565b9550610cf1565b60008a607f871681518110610c5857610c58611415565b6020908102919091018101518051868b016024018a9052968701605f8101601f19168b0160405290910195909150610c9e8260008b610c988c60046114cb565b85610f1e565b610ca881896114cb565b97505050610cf1565b60008a607f871681518110610cc857610cc8611415565b6020908102919091018101518051603f9701968701601f19168a01604052015184890160240152505b60209290920191600101610b6a565b50505083525090949350505050565b60f882901c60fe198101610d235750505050565b600082516020610d3391906114cb565b67ffffffffffffffff811115610d4b57610d4b61115b565b6040519080825280601f01601f191660200182016040528015610d75576020820181803683370190505b5085607f841681518110610d8b57610d8b611415565b602002602001018190529050610da78360008360208751610f1e565b8251806020830152505050505050565b606060f883901c60fe198101610dd057849150506105d0565b6080811615610e825760fe8103610dfc5782806020019051810190610df591906114fa565b9450610f06565b602083810151908114610e645760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015269287661726961626c652960b01b6064820152608401610352565b508251601f19016020848101918252607f8316810287010152610f06565b8251602014610ee45760405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015267287374617469632960c01b6064820152608401610352565b8285607f831681518110610efa57610efa611415565b60200260200101819052505b50929392505050565b60606105cd8484600085610f38565b808260208501018286602089010160045afa505050505050565b606082471015610f995760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610352565b6001600160a01b0385163b610ff05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610352565b600080866001600160a01b0316858760405161100c919061145a565b60006040518083038185875af1925050503d8060008114611049576040519150601f19603f3d011682016040523d82523d6000602084013e61104e565b606091505b509150915061105e828286611069565b979650505050505050565b606083156110785750816105d0565b8251156110885782518084602001fd5b8160405162461bcd60e51b815260040161035291906115e7565b6001600160a01b03811681146110b757600080fd5b50565b6000806000606084860312156110cf57600080fd5b83356110da816110a2565b925060208401356110ea816110a2565b915060408401356110fa816110a2565b809150509250925092565b60006020828403121561111757600080fd5b81356105d0816110a2565b6000806040838503121561113557600080fd5b8235611140816110a2565b91506020830135611150816110a2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561119a5761119a61115b565b604052919050565b600067ffffffffffffffff8211156111bc576111bc61115b565b5060051b60200190565b600067ffffffffffffffff8211156111e0576111e061115b565b50601f01601f191660200190565b6000806000604080858703121561120457600080fd5b843567ffffffffffffffff8082111561121c57600080fd5b818701915087601f83011261123057600080fd5b81358181111561123f57600080fd5b602089818360051b860101111561125557600080fd5b80840197508196508089013593508284111561127057600080fd5b838901935089601f85011261128457600080fd5b83359150611299611294836111a2565b611171565b82815260059290921b8401810191818101908b8411156112b857600080fd5b8286015b8481101561132c578035868111156112d45760008081fd5b8701603f81018e136112e65760008081fd5b848101356112f6611294826111c6565b8181528f8b83850101111561130b5760008081fd5b818b84018883013760009181018701919091528452509183019183016112bc565b50809750505050505050509250925092565b60005b83811015611359578181015183820152602001611341565b83811115611368576000848401525b50505050565b6000815180845261138681602086016020860161133e565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156113ef57603f198886030184526113dd85835161136e565b945092850192908501906001016113c1565b5092979650505050505050565b60006020828403121561140e57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016114535761145361142b565b5060010190565b6000825161146c81846020870161133e565b9190910192915050565b8381526001600160a01b03831660208201526060604082018190526000906114a09083018461136e565b95945050505050565b6000602082840312156114bb57600080fd5b815180151581146105d057600080fd5b600082198211156114de576114de61142b565b500190565b6000828210156114f5576114f561142b565b500390565b6000602080838503121561150d57600080fd5b825167ffffffffffffffff8082111561152557600080fd5b818501915085601f83011261153957600080fd5b8151611547611294826111a2565b81815260059190911b8301840190848101908883111561156657600080fd5b8585015b838110156115da578051858111156115825760008081fd5b8601603f81018b136115945760008081fd5b8781015160406115a6611294836111c6565b8281528d828486010111156115bb5760008081fd5b6115ca838c830184870161133e565b865250505091860191860161156a565b5098975050505050505050565b6020815260006105d0602083018461136e56fea2646970667358221220e36687211c84f7e97ec52c0f19efb34982a9adecc82428c80ebf84051511f38664736f6c634300080f0033

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

0000000000000000000000002c01b4ad51a67e2d8f02208f54df9ac4c0b778b6

-----Decoded View---------------
Arg [0] : _governance (address): 0x2C01B4AD51a67E2d8F02208F54dF9aC4c0B778B6

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002c01b4ad51a67e2d8f02208f54df9ac4c0b778b6


Deployed Bytecode Sourcemap

442:2794:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2109:219;;;;;;;;;;-1:-1:-1;2109:219:5;;;;;:::i;:::-;;:::i;:::-;;2733:466;;;;;;;;;;-1:-1:-1;2733:466:5;;;;;:::i;:::-;;:::i;1270:168::-;;;;;;;;;;;;;:::i;673:37::-;;;;;;;;;;-1:-1:-1;673:37:5;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1101:14:7;;1094:22;1076:41;;1064:2;1049:18;673:37:5;;;;;;;;1763:213;;;;;;;;;;-1:-1:-1;1763:213:5;;;;;:::i;:::-;;:::i;531:33::-;;;;;;;;;;-1:-1:-1;531:33:5;;;;-1:-1:-1;;;;;531:33:5;;;;;;-1:-1:-1;;;;;1701:32:7;;;1683:51;;1671:2;1656:18;531:33:5;1521:219:7;1601:156:5;;;;;;;;;;-1:-1:-1;1601:156:5;;;;;:::i;:::-;;:::i;1982:121::-;;;;;;;;;;-1:-1:-1;1982:121:5;;;;;:::i;:::-;;:::i;1112:152::-;;;;;;;;;;-1:-1:-1;1112:152:5;;;;;:::i;:::-;;:::i;1444:151::-;;;;;;;;;;-1:-1:-1;1444:151:5;;;;;:::i;:::-;;:::i;2520:207::-;;;;;;;;;;-1:-1:-1;2520:207:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;570:40::-;;;;;;;;;;-1:-1:-1;570:40:5;;;;-1:-1:-1;;;;;570:40:5;;;2109:219;2260:10;;-1:-1:-1;;;;;2260:10:5;2246;:24;2238:33;;;;;;2281:40;2290:9;2301:8;2311:9;2281:8;:40::i;:::-;2109:219;;;:::o;2733:466::-;2805:10;;-1:-1:-1;;;;;2805:10:5;2791;:24;2783:33;;;;;;2827:14;-1:-1:-1;;;;;2855:20:5;;2851:342;;-1:-1:-1;2936:12:5;2954:10;;:34;;2900:21;;2936:12;-1:-1:-1;;;;;2954:10:5;;2900:21;;2936:12;2954:34;2936:12;2954:34;2900:21;2954:10;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2935:53;;;3010:7;3002:29;;;;-1:-1:-1;;;3002:29:5;;6695:2:7;3002:29:5;;;6677:21:7;6734:1;6714:18;;;6707:29;-1:-1:-1;;;6752:18:7;;;6745:39;6801:18;;3002:29:5;;;;;;;;2851:342;3071:39;;-1:-1:-1;;;3071:39:5;;3104:4;3071:39;;;1683:51:7;-1:-1:-1;;;;;3071:24:5;;;;;1656:18:7;;3071:39:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3163:10;;3062:48;;-1:-1:-1;3124:58:5;;3154:6;;-1:-1:-1;;;;;3163:10:5;3062:48;3124:22;:58::i;:::-;2773:426;2733:466;:::o;1270:168::-;1339:17;;-1:-1:-1;;;;;1339:17:5;1325:10;:31;1317:40;;;;;;1380:17;;;;1367:30;;-1:-1:-1;;;;;;1367:30:5;;;-1:-1:-1;;;;;1380:17:5;;1367:30;;;;1407:24;;;1270:168::o;1763:213::-;-1:-1:-1;;;;;1843:22:5;;1835:31;;;;;;-1:-1:-1;;;;;1884:23:5;;1876:32;;;;;;1924:45;;-1:-1:-1;;;;;1924:45:5;;;;;;;;1937:10;;1924:45;;;;;1763:213;;:::o;1601:156::-;1677:10;;-1:-1:-1;;;;;1677:10:5;1663;:24;1655:33;;;;;;-1:-1:-1;;;;;1705:12:5;;;;;;:5;:12;;;;;;;;;1698:19;;-1:-1:-1;;1698:19:5;;;1732:18;;1683:51:7;;;1732:18:5;;1656::7;1732::5;;;;;;;;1601:156;:::o;1982:121::-;2055:41;2064:10;2076:8;2086:9;2055:8;:41::i;1112:152::-;1205:10;;-1:-1:-1;;;;;1205:10:5;1191;:24;1183:33;;;;;;1226:17;:31;;-1:-1:-1;;;;;;1226:31:5;-1:-1:-1;;;;;1226:31:5;;;;;;;;;;1112:152::o;1444:151::-;1517:10;;-1:-1:-1;;;;;1517:10:5;1503;:24;1495:33;;;;;;-1:-1:-1;;;;;1538:12:5;;;;;;:5;:12;;;;;;;;;:19;;-1:-1:-1;;1538:19:5;1553:4;1538:19;;;1572:16;;1683:51:7;;;1572:16:5;;1656:18:7;1572:16:5;1521:219:7;2520:207:5;2666:10;2660:17;;;;:5;:17;;;;;;2622:14;;2660:17;;2652:26;;;;;;2695:25;2704:8;;2714:5;2695:8;:25::i;:::-;2688:32;;2520:207;;;;;;:::o;2334:180::-;2497:9;-1:-1:-1;;;;;2462:45:5;2487:8;-1:-1:-1;;;;;2462:45:5;2476:9;-1:-1:-1;;;;;2462:45:5;;;;;;;;;;;2334:180;;;:::o;683:205:4:-;822:58;;;-1:-1:-1;;;;;7419:32:7;;822:58:4;;;7401:51:7;7468:18;;;;7461:34;;;822:58:4;;;;;;;;;;7374:18:7;;;;822:58:4;;;;;;;;-1:-1:-1;;;;;822:58:4;-1:-1:-1;;;822:58:4;;;795:86;;815:5;;795:19;:86::i;791:3450:6:-;884:14;914:15;;;;884:14;1066:8;914:15;1091:3122;1111:14;1107:1;:18;1091:3122;;;1152:8;;1161:1;1152:11;;;;;;;:::i;:::-;;;;;;;1142:21;;1204:3;1193:7;:14;;1185:23;;1211:4;1185:30;1177:38;;423:4;1331:5;:29;1364:1;1331:34;1327:197;;1395:8;;1404:3;;;:::i;:::-;;;;1395:13;;;;;;;:::i;:::-;;;;;;;1385:23;;1327:197;;;1484:2;1473:13;;;-1:-1:-1;;;;;1465:43:6;;-1:-1:-1;1327:197:6;372:4;1542:20;;1538:1960;;-1:-1:-1;;;;;1627:47:6;;1736:148;:5;1651:7;1855;1736:17;:148::i;:::-;1627:275;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1606:296:6;;-1:-1:-1;1606:296:6;-1:-1:-1;1538:1960:6;;;235:4;372;1927:5;:20;:36;1923:1575;;-1:-1:-1;;;;;2004:39:6;;2105:148;:5;2028:7;2224;2105:17;:148::i;:::-;2004:267;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1923:1575;283:4;372;2296:5;:20;:42;2292:1206;;-1:-1:-1;;;;;2379:45:6;;2486:148;:5;2403:7;2605;2486:17;:148::i;:::-;2379:273;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2292:1206;330:4;372;2677:5;:20;:41;2673:825;;2738:15;2771:14;2788:5;2807:7;2794:22;;2788:29;;;;;;;;;;:::i;:::-;;;;;;;2771:46;;2843:1;:8;2855:2;2843:14;2835:71;;;;-1:-1:-1;;;2835:71:6;;8391:2:7;2835:71:6;;;8373:21:7;8430:2;8410:18;;;8403:30;8469:34;8449:18;;;8442:62;-1:-1:-1;;;8520:18:7;;;8513:42;8572:19;;2835:71:6;8189:408:7;2835:71:6;2979:4;2972:12;;2966:19;;-1:-1:-1;;;;;;3041:39:6;;2966:19;3196:204;:5;3065:7;3342:1;3331:12;;;215:4:1;3323:54:6;3196:17;:204::i;:::-;3041:377;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3020:398:6;;-1:-1:-1;3020:398:6;-1:-1:-1;2673:825:6;;-1:-1:-1;;2673:825:6;;3457:26;;-1:-1:-1;;;3457:26:6;;8804:2:7;3457:26:6;;;8786:21:7;8843:2;8823:18;;;8816:30;-1:-1:-1;;;8862:18:7;;;8855:46;8918:18;;3457:26:6;8602:340:7;2673:825:6;3517:7;3512:435;;3548:14;;:18;3544:148;;3649:2;3640:7;3636:16;3625:27;;3544:148;3769:1;3824:7;3816:16;;3882:1;3865:7;:14;:18;:48;;;;;;;;;;;;;;;-1:-1:-1;;;3865:48:6;;;;;;3893:7;3865:48;3716:216;;-1:-1:-1;;;3716:216:6;;;;;;;;;;:::i;3512:435::-;470:4;3965:25;;:30;3961:214;;4015:48;:5;4050:2;4039:13;;;4055:7;4015:16;:48::i;:::-;3961:214;;;4110:50;:5;4147:2;4136:13;;;4152:7;4110:18;:50::i;:::-;4102:58;;3961:214;4198:3;;1091:3122;;;-1:-1:-1;4229:5:6;;791:3450;-1:-1:-1;;;;;;;;;791:3450:6:o;3189:706:4:-;3608:23;3634:69;3662:4;3634:69;;;;;;;;;;;;;;;;;3642:5;-1:-1:-1;;;;;3634:27:4;;;:69;;;;;:::i;:::-;3717:17;;3608:95;;-1:-1:-1;3717:21:4;3713:176;;3812:10;3801:30;;;;;;;;;;;;:::i;:::-;3793:85;;;;-1:-1:-1;;;3793:85:4;;9831:2:7;3793:85:4;;;9813:21:7;9870:2;9850:18;;;9843:30;9909:34;9889:18;;;9882:62;-1:-1:-1;;;9960:18:7;;;9953:40;10010:19;;3793:85:4;9629:406:7;269:3487:1;399:16;427:12;503:11;582:9;577:183;597:2;593:1;:6;577:183;;;628:7;636:1;628:10;;;;;;;:::i;:::-;;;-1:-1:-1;;;657:22:1;;653:33;681:5;653:33;718:2;710:10;;;;;745:3;;577:183;;;-1:-1:-1;857:4:1;851:11;;937:60;;;924:74;;;972:4;1018:12;;1011:30;;;851:11;-1:-1:-1;909:1:1;791:20;1087:22;791:20;1182:2501;1202:2;1198:1;:6;1182:2501;;;1233:7;1241:1;1233:10;;;;;;;:::i;:::-;;;-1:-1:-1;;;1262:22:1;;1258:33;1286:5;1258:33;126:4;1310:25;;:30;1306:2303;;258:4;1364:3;:20;1360:1799;;-1:-1:-1;;1531:34:1;;;1527:50;1518:60;;1535:23;1505:74;1624:2;1611:24;;;;1604:38;;;1689:16;;1477:2;1459:21;;;;1709:1;1689:21;1685:105;;1761:5;1750:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;1738:29;;1685:105;1880:16;;1948:34;1862:35;;1948:34;;;-1:-1:-1;;1944:50:1;1935:60;;1929:4;1922:74;2039:59;1886:9;1970:4;1939:3;2066:8;:4;2073:1;2066:8;:::i;:::-;2095:2;2076:9;:16;:21;;;;:::i;:::-;2039:6;:59::i;:::-;2147:2;2128:9;:16;:21;;;;:::i;:::-;2120:29;;;;:::i;:::-;;;1306:2303;;1360:1799;2196:21;2220:5;170:4;2226:3;:20;2220:27;;;;;;;;:::i;:::-;;;;;;;;;;;;2286:15;;2628:24;;;2641:2;2628:24;2621:38;;;2753:25;;;2548:34;2829;;-1:-1:-1;;2825:50:1;2816:60;;2552:23;2803:74;2753:25;;;;2220:27;;-1:-1:-1;2920:184:1;2220:27;2269:14;2539:3;3042:8;2654:4;3049:1;3042:8;:::i;:::-;3076:6;2920;:184::i;:::-;3126:14;3134:6;3126:14;;:::i;:::-;;;2174:985;;1306:2303;;;3253:21;3277:5;170:4;3283:3;:20;3277:27;;;;;;;;:::i;:::-;;;;;;;;;;;;3387:15;;3450:34;3369;;3450;;;-1:-1:-1;;3446:50:1;3437:60;;3431:4;3424:74;3558:17;3552:24;3526;;;3539:2;3526:24;3519:58;-1:-1:-1;1306:2303:1;3641:2;3632:11;;;;;3668:3;;1182:2501;;;-1:-1:-1;;;3715:25:1;;-1:-1:-1;3722:3:1;;269:3487;-1:-1:-1;;;;269:3487:1:o;5285:464::-;5438:12;;;;-1:-1:-1;;5465:22:1;;5461:35;;5489:7;5285:464;;;:::o;5461:35::-;5506:18;5567:6;:13;5583:2;5567:18;;;;:::i;:::-;5557:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5557:29:1;;5527:5;170:4;5533:3;:20;5527:27;;;;;;;;:::i;:::-;;;;;;:59;;;5506:80;;5597:43;5604:6;5612:1;5615:5;5622:2;5626:6;:13;5597:6;:43::i;:::-;5688:6;5682:13;5731:1;5726:2;5719:5;5715:14;5708:25;;5659:84;;5285:464;;;:::o;3762:1517::-;3894:14;3934:12;;;;-1:-1:-1;;3960:22:1;;3956:40;;3991:5;3984:12;;;;;3956:40;126:4;4011:25;;:30;4007:1243;;258:4;4061:3;:20;4057:956;;4120:6;4109:29;;;;;;;;;;;;:::i;:::-;4101:37;;4007:1243;;4057:956;4362:2;4350:15;;;4344:22;;4430:12;;4401:125;;;;-1:-1:-1;;;4401:125:1;;12133:2:7;4401:125:1;;;12115:21:7;12172:2;12152:18;;;12145:30;12211:34;12191:18;;;12184:62;-1:-1:-1;;;12262:18:7;;;12255:40;12312:19;;4401:125:1;11931:406:7;4401:125:1;-1:-1:-1;4692:13:1;;-1:-1:-1;;4688:22:1;4707:2;4671:15;;;4664:47;;;4897:14;4888:24;;4884:33;;4864:54;;;4832:149;4007:1243;;;5095:6;:13;5112:2;5095:19;5070:118;;;;-1:-1:-1;;;5070:118:1;;12544:2:7;5070:118:1;;;12526:21:7;12583:2;12563:18;;;12556:30;12622:34;12602:18;;;12595:62;-1:-1:-1;;;12673:18:7;;;12666:38;12721:19;;5070:118:1;12342:404:7;5070:118:1;5233:6;5203:5;170:4;5209:3;:20;5203:27;;;;;;;;:::i;:::-;;;;;;:36;;;;4007:1243;-1:-1:-1;5267:5:1;;3762:1517;-1:-1:-1;;;3762:1517:1:o;3861:223:0:-;3994:12;4025:52;4047:6;4055:4;4061:1;4064:12;4025:21;:52::i;5755:467:1:-;6171:3;6141:7;6136:2;6130:4;6126:13;6122:27;6097:3;6068:6;6063:2;6058:3;6054:12;6050:25;6027:1;6000:5;5968:224;5947:259;5755:467;;;;;:::o;4948:499:0:-;5113:12;5170:5;5145:21;:30;;5137:81;;;;-1:-1:-1;;;5137:81:0;;12953:2:7;5137:81:0;;;12935:21:7;12992:2;12972:18;;;12965:30;13031:34;13011:18;;;13004:62;-1:-1:-1;;;13082:18:7;;;13075:36;13128:19;;5137:81:0;12751:402:7;5137:81:0;-1:-1:-1;;;;;1465:19:0;;;5228:60;;;;-1:-1:-1;;;5228:60:0;;13360:2:7;5228:60:0;;;13342:21:7;13399:2;13379:18;;;13372:30;13438:31;13418:18;;;13411:59;13487:18;;5228:60:0;13158:353:7;5228:60:0;5300:12;5314:23;5341:6;-1:-1:-1;;;;;5341:11:0;5360:5;5367:4;5341:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5299:73;;;;5389:51;5406:7;5415:10;5427:12;5389:16;:51::i;:::-;5382:58;4948:499;-1:-1:-1;;;;;;;4948:499:0:o;7561:692::-;7707:12;7735:7;7731:516;;;-1:-1:-1;7765:10:0;7758:17;;7731:516;7876:17;;:21;7872:365;;8070:10;8064:17;8130:15;8117:10;8113:2;8109:19;8102:44;7872:365;8209:12;8202:20;;-1:-1:-1;;;8202:20:0;;;;;;;;:::i;14:131:7:-;-1:-1:-1;;;;;89:31:7;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:529::-;227:6;235;243;296:2;284:9;275:7;271:23;267:32;264:52;;;312:1;309;302:12;264:52;351:9;338:23;370:31;395:5;370:31;:::i;:::-;420:5;-1:-1:-1;477:2:7;462:18;;449:32;490:33;449:32;490:33;:::i;:::-;542:7;-1:-1:-1;601:2:7;586:18;;573:32;614:33;573:32;614:33;:::i;:::-;666:7;656:17;;;150:529;;;;;:::o;684:247::-;743:6;796:2;784:9;775:7;771:23;767:32;764:52;;;812:1;809;802:12;764:52;851:9;838:23;870:31;895:5;870:31;:::i;1128:388::-;1196:6;1204;1257:2;1245:9;1236:7;1232:23;1228:32;1225:52;;;1273:1;1270;1263:12;1225:52;1312:9;1299:23;1331:31;1356:5;1331:31;:::i;:::-;1381:5;-1:-1:-1;1438:2:7;1423:18;;1410:32;1451:33;1410:32;1451:33;:::i;:::-;1503:7;1493:17;;;1128:388;;;;;:::o;2005:127::-;2066:10;2061:3;2057:20;2054:1;2047:31;2097:4;2094:1;2087:15;2121:4;2118:1;2111:15;2137:275;2208:2;2202:9;2273:2;2254:13;;-1:-1:-1;;2250:27:7;2238:40;;2308:18;2293:34;;2329:22;;;2290:62;2287:88;;;2355:18;;:::i;:::-;2391:2;2384:22;2137:275;;-1:-1:-1;2137:275:7:o;2417:181::-;2475:4;2508:18;2500:6;2497:30;2494:56;;;2530:18;;:::i;:::-;-1:-1:-1;2575:1:7;2571:14;2587:4;2567:25;;2417:181::o;2603:186::-;2651:4;2684:18;2676:6;2673:30;2670:56;;;2706:18;;:::i;:::-;-1:-1:-1;2772:2:7;2751:15;-1:-1:-1;;2747:29:7;2778:4;2743:40;;2603:186::o;2794:2154::-;2923:6;2931;2939;2970:2;3013;3001:9;2992:7;2988:23;2984:32;2981:52;;;3029:1;3026;3019:12;2981:52;3069:9;3056:23;3098:18;3139:2;3131:6;3128:14;3125:34;;;3155:1;3152;3145:12;3125:34;3193:6;3182:9;3178:22;3168:32;;3238:7;3231:4;3227:2;3223:13;3219:27;3209:55;;3260:1;3257;3250:12;3209:55;3300:2;3287:16;3326:2;3318:6;3315:14;3312:34;;;3342:1;3339;3332:12;3312:34;3365:4;3418:7;3413:2;3403:6;3400:1;3396:14;3392:2;3388:23;3384:32;3381:45;3378:65;;;3439:1;3436;3429:12;3378:65;3470:2;3466;3462:11;3452:21;;3492:6;3482:16;;3551:2;3540:9;3536:18;3523:32;3507:48;;3580:2;3570:8;3567:16;3564:36;;;3596:1;3593;3586:12;3564:36;3634:8;3623:9;3619:24;3609:34;;3681:7;3674:4;3670:2;3666:13;3662:27;3652:55;;3703:1;3700;3693:12;3652:55;3739:2;3726:16;3716:26;;3762:58;3778:41;3816:2;3778:41;:::i;:::-;3762:58;:::i;:::-;3854:15;;;3936:1;3932:10;;;;3924:19;;3920:28;;;3885:12;;;;3960:19;;;3957:39;;;3992:1;3989;3982:12;3957:39;4024:2;4020;4016:11;4036:882;4052:6;4047:3;4044:15;4036:882;;;4138:3;4125:17;4174:2;4161:11;4158:19;4155:109;;;4218:1;4247:2;4243;4236:14;4155:109;4287:20;;4342:2;4334:11;;4330:25;-1:-1:-1;4320:123:7;;4397:1;4426:2;4422;4415:14;4320:123;4488:2;4484;4480:11;4467:25;4518:49;4534:32;4562:3;4534:32;:::i;4518:49::-;4594:3;4587:5;4580:18;4640:7;4635:2;4629:3;4625:2;4621:12;4617:21;4614:34;4611:127;;;4690:1;4720:3;4715;4708:16;4611:127;4793:3;4788:2;4784;4780:11;4775:2;4768:5;4764:14;4751:46;4843:1;4821:15;;;4817:24;;4810:35;;;;4858:18;;-1:-1:-1;4896:12:7;;;;4069;;4036:882;;;4040:3;4937:5;4927:15;;;;;;;;;2794:2154;;;;;:::o;4953:258::-;5025:1;5035:113;5049:6;5046:1;5043:13;5035:113;;;5125:11;;;5119:18;5106:11;;;5099:39;5071:2;5064:10;5035:113;;;5166:6;5163:1;5160:13;5157:48;;;5201:1;5192:6;5187:3;5183:16;5176:27;5157:48;;4953:258;;;:::o;5216:257::-;5257:3;5295:5;5289:12;5322:6;5317:3;5310:19;5338:63;5394:6;5387:4;5382:3;5378:14;5371:4;5364:5;5360:16;5338:63;:::i;:::-;5455:2;5434:15;-1:-1:-1;;5430:29:7;5421:39;;;;5462:4;5417:50;;5216:257;-1:-1:-1;;5216:257:7:o;5478:800::-;5638:4;5667:2;5707;5696:9;5692:18;5737:2;5726:9;5719:21;5760:6;5795;5789:13;5826:6;5818;5811:22;5864:2;5853:9;5849:18;5842:25;;5926:2;5916:6;5913:1;5909:14;5898:9;5894:30;5890:39;5876:53;;5964:2;5956:6;5952:15;5985:1;5995:254;6009:6;6006:1;6003:13;5995:254;;;6102:2;6098:7;6086:9;6078:6;6074:22;6070:36;6065:3;6058:49;6130:39;6162:6;6153;6147:13;6130:39;:::i;:::-;6120:49;-1:-1:-1;6227:12:7;;;;6192:15;;;;6031:1;6024:9;5995:254;;;-1:-1:-1;6266:6:7;;5478:800;-1:-1:-1;;;;;;;5478:800:7:o;7038:184::-;7108:6;7161:2;7149:9;7140:7;7136:23;7132:32;7129:52;;;7177:1;7174;7167:12;7129:52;-1:-1:-1;7200:16:7;;7038:184;-1:-1:-1;7038:184:7:o;7506:127::-;7567:10;7562:3;7558:20;7555:1;7548:31;7598:4;7595:1;7588:15;7622:4;7619:1;7612:15;7638:127;7699:10;7694:3;7690:20;7687:1;7680:31;7730:4;7727:1;7720:15;7754:4;7751:1;7744:15;7770:135;7809:3;7830:17;;;7827:43;;7850:18;;:::i;:::-;-1:-1:-1;7897:1:7;7886:13;;7770:135::o;7910:274::-;8039:3;8077:6;8071:13;8093:53;8139:6;8134:3;8127:4;8119:6;8115:17;8093:53;:::i;:::-;8162:16;;;;;7910:274;-1:-1:-1;;7910:274:7:o;8947:395::-;9142:25;;;-1:-1:-1;;;;;9203:32:7;;9198:2;9183:18;;9176:60;9272:2;9267;9252:18;;9245:30;;;-1:-1:-1;;9292:44:7;;9317:18;;9309:6;9292:44;:::i;:::-;9284:52;8947:395;-1:-1:-1;;;;;8947:395:7:o;9347:277::-;9414:6;9467:2;9455:9;9446:7;9442:23;9438:32;9435:52;;;9483:1;9480;9473:12;9435:52;9515:9;9509:16;9568:5;9561:13;9554:21;9547:5;9544:32;9534:60;;9590:1;9587;9580:12;10040:128;10080:3;10111:1;10107:6;10104:1;10101:13;10098:39;;;10117:18;;:::i;:::-;-1:-1:-1;10153:9:7;;10040:128::o;10173:125::-;10213:4;10241:1;10238;10235:8;10232:34;;;10246:18;;:::i;:::-;-1:-1:-1;10283:9:7;;10173:125::o;10303:1623::-;10407:6;10438:2;10481;10469:9;10460:7;10456:23;10452:32;10449:52;;;10497:1;10494;10487:12;10449:52;10530:9;10524:16;10559:18;10600:2;10592:6;10589:14;10586:34;;;10616:1;10613;10606:12;10586:34;10654:6;10643:9;10639:22;10629:32;;10699:7;10692:4;10688:2;10684:13;10680:27;10670:55;;10721:1;10718;10711:12;10670:55;10750:2;10744:9;10773:58;10789:41;10827:2;10789:41;:::i;10773:58::-;10865:15;;;10947:1;10943:10;;;;10935:19;;10931:28;;;10896:12;;;;10971:19;;;10968:39;;;11003:1;11000;10993:12;10968:39;11035:2;11031;11027:11;11047:849;11063:6;11058:3;11055:15;11047:849;;;11142:3;11136:10;11178:2;11165:11;11162:19;11159:109;;;11222:1;11251:2;11247;11240:14;11159:109;11291:20;;11346:2;11338:11;;11334:25;-1:-1:-1;11324:123:7;;11401:1;11430:2;11426;11419:14;11324:123;11484:2;11480;11476:11;11470:18;11511:2;11539:48;11555:31;11583:2;11555:31;:::i;11539:48::-;11614:2;11607:5;11600:17;11658:7;11653:2;11648;11644;11640:11;11636:20;11633:33;11630:126;;;11708:1;11738:3;11733;11726:16;11630:126;11769:54;11820:2;11815;11808:5;11804:14;11799:2;11795;11791:11;11769:54;:::i;:::-;11836:18;;-1:-1:-1;;;11874:12:7;;;;11080;;11047:849;;;-1:-1:-1;11915:5:7;10303:1623;-1:-1:-1;;;;;;;;10303:1623:7:o;13516:219::-;13665:2;13654:9;13647:21;13628:4;13685:44;13725:2;13714:9;13710:18;13702:6;13685:44;:::i

Swarm Source

ipfs://e36687211c84f7e97ec52c0f19efb34982a9adecc82428c80ebf84051511f386

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Chain Token Portfolio % Price Amount Value
ETH62.75%$3.7431.2094$116.72
ETH6.68%$0.52467123.6713$12.42
ETH2.71%$39.240.1282$5.03
ETH2.54%$3.21.4778$4.73
ETH2.25%$1.113.7777$4.19
ETH2.11%$0.9770544.0121$3.92
ETH1.82%$1.033.2737$3.38
ETH1.32%$9.150.2677$2.45
ETH1.28%$0.983162.4275$2.39
ETH1.25%$0.02819582.7466$2.33
ETH1.20%$1.082.0763$2.23
ETH1.17%$2.041.0708$2.18
ETH1.16%$14.280.151$2.16
ETH1.14%$23.760.0893$2.12
ETH1.01%$0.9868111.9012$1.88
ETH0.94%$242.70.00717989$1.74
ETH0.93%$0.3154725.504$1.74
ETH0.92%$0.04733335.9577$1.7
ETH
Ether (ETH)
0.90%$2,965.290.00056484$1.67
ETH0.87%$0.9983551.625$1.62
ETH0.75%$0.1407419.9696$1.4
ETH0.70%$0.003122419.8115$1.31
ETH0.36%$2.430.2785$0.6766
ETH0.33%$0.9957950.614$0.6114
ETH0.33%$10.604$0.6051
ETH0.31%$0.01638234.8759$0.5713
ETH0.30%$51.080.0109$0.5563
ETH0.26%$0.1499613.2293$0.4842
ETH0.24%$0.01499829.536$0.4429
ETH0.18%$0.093023.6655$0.3409
ETH0.18%$0.00636353.1628$0.3382
ETH0.15%<$0.0000012,906,812.8333$0.2803
ETH0.15%$0.02411311.3495$0.2736
ETH0.12%$0.2921230.7851$0.2293
ETH0.12%$0.2590970.8419$0.2181
ETH0.11%$0.7169450.2868$0.2056
ETH0.11%$2.010.1022$0.2054
ETH0.10%$2.160.0903$0.1946
ETH0.09%$0.0385614.2941$0.1655
ETH0.08%$0.2250410.694$0.1561
ETH0.06%$0.0193275.7933$0.1119
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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