Contract

0x75B07f81DD25d408ff2ab0b5EBE44182Fd520937

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Rebases17549762024-12-27 15:03:4345 hrs ago1735311823IN
0x75B07f81...2Fd520937
0 S0.000741471.12
Claim Voter Rewa...17549332024-12-27 15:02:5745 hrs ago1735311777IN
0x75B07f81...2Fd520937
0 S0.000800881.11
Claim Voter Rewa...17512532024-12-27 14:10:2045 hrs ago1735308620IN
0x75B07f81...2Fd520937
0 S0.000858371.11
Vote For Protoco...17477412024-12-27 13:14:3546 hrs ago1735305275IN
0x75B07f81...2Fd520937
0 S0.001543982.52
Claim Voter Rewa...17472582024-12-27 13:06:0647 hrs ago1735304766IN
0x75B07f81...2Fd520937
0 S0.000699911.12
Claim Voter Rewa...17438142024-12-27 12:02:042 days ago1735300924IN
0x75B07f81...2Fd520937
0 S0.000855381.11
Vote For Protoco...17437132024-12-27 12:00:502 days ago1735300850IN
0x75B07f81...2Fd520937
0 S0.000902831.21
Set Whitelist Fo...17429692024-12-27 11:51:322 days ago1735300292IN
0x75B07f81...2Fd520937
0 S0.000110151.11
Set Name17417862024-12-27 11:33:162 days ago1735299196IN
0x75B07f81...2Fd520937
0 S0.000057071.11
Assign17417382024-12-27 11:32:302 days ago1735299150IN
0x75B07f81...2Fd520937
0 S0.000155251.14
Vote For Protoco...15802892024-12-25 17:15:313 days ago1735146931IN
0x75B07f81...2Fd520937
0 S0.000374091.12
Set Whitelist Fo...15800482024-12-25 17:13:153 days ago1735146795IN
0x75B07f81...2Fd520937
0 S0.000090221.11
Set Whitelist Fo...15796102024-12-25 17:08:223 days ago1735146502IN
0x75B07f81...2Fd520937
0 S0.000110151.11
Assign15789292024-12-25 16:59:073 days ago1735145947IN
0x75B07f81...2Fd520937
0 S0.000151171.11
Set Operator15788182024-12-25 16:57:083 days ago1735145828IN
0x75B07f81...2Fd520937
0 S0.000033291.1
Set Multisig13411772024-12-23 13:00:325 days ago1734958832IN
0x75B07f81...2Fd520937
0 S0.000030911.1

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

Contract Source Code Verified (Exact Match)

Contract Name:
MonolithicVoter

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : MonolithicVoter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/*
Monolithic Voter contract which houses all partner voting power, 
streamlining the process to ensure they do not obtain operational overhead.

Dev: DOG @RAMSES https://twitter.com/yesthatdog
*/

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";

interface IVoter {
    function vote(
        uint256 _tokenId,
        address[] calldata _poolVote,
        uint256[] calldata _weights
    ) external;

    function reset(uint256 tokenID) external;

    function claimFees(
        address[] calldata,
        address[][] calldata,
        uint256
    ) external;

    function poke(uint256 _tokenId) external;

    function poolVote(
        uint256 _tokenId,
        uint256 _index
    ) external view returns (address);

    function poolVoteLength(uint256 tokenId) external view returns (uint256);

    function votes(
        uint256 _tokenId,
        address _pool
    ) external view returns (uint256);

    function _epochTimestamp() external view returns (uint256);

    function lastVoted(uint256 tokenId) external view returns (uint256);
}

interface IVe {
    function increase_unlock_time(uint _tokenId, uint _lock_duration) external;

    function transferFrom(address from, address to, uint256 tokenID) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenID
    ) external;

    function ownerOf(uint256 tokenID) external view returns (address);
}

interface IVeDist {
    function claim_many(uint[] memory _tokenIds) external returns (bool);
}

contract MonolithicVoter is ERC721Holder {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableSet for EnumerableSet.AddressSet;

    uint128 public constant MAX = 2 * 365 * 86400; // 2 years

    address public operator;
    address public multisig;
    IVoter public voter;
    IVe public ve;
    IVeDist public veDist;

    EnumerableSet.AddressSet private _allowedToVote;

    mapping(uint256 => address) private __ownerOf;
    mapping(uint256 => string) private __partner;
    mapping(address => EnumerableSet.UintSet) private _tokensOwned;
    mapping(uint256 => EnumerableSet.AddressSet) private _partnerAllowedToVote;

    event TokenAssigned(uint256 tokenID, address designatee);
    event PartnerNameSetted(uint256 tokenID, string name);
    event OperatorSetted(address value);
    event MultisigSetted(address value);
    event PairsWhitelisted(address[] pairs);
    event PairsRemoved(address[] pairs);
    event PairsWhitelistedForPartner(uint256 tokenID, address[] pairs);
    event PairsRemovedForPartner(uint256 tokenID, address[] pairs);
    event TokenRevoked(uint256 tokenID);

    event Voted(
        uint256 tokenID,
        address ownerOf,
        address[] pools,
        uint256[] weights
    );
    event RewardClaimed(
        uint256 tokenID,
        address ownerOf,
        address receiver,
        address[] pools,
        address[][] tokens,
        uint256[][] values
    );
    event Rebased(uint256[] tokenIDs);
    event LockupIncreased(uint256[] tokenIDs);

    modifier operatorGated() {
        require(msg.sender == operator || msg.sender == multisig, "!auth");
        _;
    }

    constructor(
        address _multisig,
        address _voter,
        address _ve,
        address _veDist
    ) {
        operator = msg.sender;
        multisig = _multisig;
        voter = IVoter(_voter);
        ve = IVe(_ve);
        veDist = IVeDist(_veDist);
    }

    ///@notice set the owner of a protocol nft
    function assign(
        uint256 _tokenID,
        address _designatee
    ) external operatorGated {
        require(ve.ownerOf(_tokenID) == address(this), "!custodied");
        if (__ownerOf[_tokenID] != address(0))
            _tokensOwned[__ownerOf[_tokenID]].remove(_tokenID);
        __ownerOf[_tokenID] = _designatee;
        _tokensOwned[_designatee].add(_tokenID);

        emit TokenAssigned(_tokenID, _designatee);
    }

    ///@notice set the name of the protocol associated with the tokenID
    function setName(
        uint256 _tokenID,
        string calldata _partner
    ) external operatorGated {
        __partner[_tokenID] = _partner;

        emit PartnerNameSetted(_tokenID, _partner);
    }

    ///@notice set operator address
    function setOperator(address _operator) external operatorGated {
        require(_operator != address(0));
        operator = _operator;

        emit OperatorSetted(_operator);
    }

    ///@notice set multisig address
    function setMultisig(address _multisig) external {
        require(msg.sender == multisig, "!auth");
        require(_multisig != address(0));
        multisig = _multisig;

        emit MultisigSetted(multisig);
    }

    ///@notice allow protocols for voting for list of pools
    function setWhitelisted(
        address[] calldata _whitelistedPairs
    ) external operatorGated {
        for (uint256 i; i < _whitelistedPairs.length; ++i) {
            if (!_allowedToVote.contains(_whitelistedPairs[i]))
                _allowedToVote.add(_whitelistedPairs[i]);
        }

        emit PairsWhitelisted(_whitelistedPairs);
    }

    ///@notice remove pools from the protocol whitelist
    function removeWhitelisted(
        address[] calldata _whitelistedPairs
    ) external operatorGated {
        for (uint256 i = 0; i < _whitelistedPairs.length; ++i) {
            if (_allowedToVote.contains(_whitelistedPairs[i])) {
                _allowedToVote.remove(_whitelistedPairs[i]);
            }
        }

        emit PairsRemoved(_whitelistedPairs);
    }

    ///@notice allow specific partner protocols for voting for current pools
    function setWhitelistForPartner(
        uint256 _tokenID,
        address[] calldata _whitelistedPairs
    ) external operatorGated {
        for (uint256 i = 0; i < _whitelistedPairs.length; ++i) {
            if (
                !_partnerAllowedToVote[_tokenID].contains(_whitelistedPairs[i])
            ) {
                _partnerAllowedToVote[_tokenID].add(_whitelistedPairs[i]);
            }
        }

        emit PairsWhitelistedForPartner(_tokenID, _whitelistedPairs);
    }

    ///@notice disallow specific partner protocols for voting for current pools
    function removeWhitelistForPartner(
        uint256 _tokenID,
        address[] calldata _whitelistedPairs
    ) external operatorGated {
        for (uint256 i = 0; i < _whitelistedPairs.length; ++i) {
            if (
                _partnerAllowedToVote[_tokenID].contains(_whitelistedPairs[i])
            ) {
                _partnerAllowedToVote[_tokenID].remove(_whitelistedPairs[i]);
            }
        }

        emit PairsRemovedForPartner(_tokenID, _whitelistedPairs);
    }

    ///@notice removes the veNFT from the protocol
    function revoke(uint256 _tokenID) external operatorGated {
        voter.reset(_tokenID);
        ve.transferFrom(address(this), multisig, _tokenID);

        _tokensOwned[__ownerOf[_tokenID]].remove(_tokenID);
        delete __ownerOf[_tokenID];
        delete __partner[_tokenID];

        emit TokenRevoked(_tokenID);
    }

    ///@notice allow the designated protocol to vote using their partner NFT
    function voteForProtocolPools(
        address[] calldata _pools,
        uint256[] calldata _weights,
        uint256 _tokenID
    ) external {
        require(
            msg.sender == __ownerOf[_tokenID] || msg.sender == address(this),
            "!protocol"
        );
        require(_pools.length == _weights.length, "length mismatch");
        //TODO: Add a check to ensure protocols cannot change their votes 1 hour before epoch flip
        for (uint256 i = 0; i < _pools.length; ++i) {
            require(
                _allowedToVote.contains(_pools[i]) ||
                    _partnerAllowedToVote[_tokenID].contains(_pools[i]),
                "not allowed"
            );
        }
        voter.vote(_tokenID, _pools, _weights);
    }

    ///@notice claim rewards for current partner
    function claimVoterRewards(
        address[] calldata _feedists,
        address[][] calldata _tokens,
        uint256 _tokenId
    ) external {
        address _owner = __ownerOf[_tokenId];
        voter.claimFees(_feedists, _tokens, _tokenId);

        uint256[][] memory values = new uint256[][](_feedists.length);
        for (uint256 i = 0; i < _feedists.length; ++i) {
            values[i] = new uint256[](_tokens[i].length);
            for (uint256 j = 0; j < _tokens[i].length; ++j) {
                IERC20 temp = IERC20(_tokens[i][j]);
                values[i][j] = temp.balanceOf(address(this));
                if (values[i][j] > 0) {
                    temp.safeTransfer(_owner, values[i][j]);
                }
            }
        }

        emit RewardClaimed(
            _tokenId,
            _owner,
            _owner,
            _feedists,
            _tokens,
            values
        );
    }

    ///@notice elevated version
    function elevatedClaimVoterRewards(
        address[] calldata _feedists,
        address[][] calldata _tokens,
        uint256 _tokenId
    ) external operatorGated {
        voter.claimFees(_feedists, _tokens, _tokenId);

        uint256[][] memory values = new uint256[][](_feedists.length);
        for (uint256 i = 0; i < _feedists.length; ++i) {
            values[i] = new uint256[](_tokens[i].length);
            for (uint256 j = 0; j < _tokens[i].length; ++j) {
                IERC20 temp = IERC20(_tokens[i][j]);
                values[i][j] = temp.balanceOf(address(this));
                if (values[i][j] > 0) {
                    temp.safeTransfer(multisig, values[i][j]);
                }
            }
        }

        emit RewardClaimed(
            _tokenId,
            __ownerOf[_tokenId],
            multisig,
            _feedists,
            _tokens,
            values
        );
    }

    ///@dev permissionless
    function poke(uint256[] calldata _tokenIDs) public {
        address[] memory lastVotes;
        uint256[] memory lastWeights;
        address ownerOf;

        for (uint256 i = 0; i < _tokenIDs.length; ++i) {
            (ownerOf, , , , lastVotes, lastWeights) = getTokenInfo(
                _tokenIDs[i]
            );
            if (
                ownerOf != address(0) &&
                voter.lastVoted(_tokenIDs[i]) < voter._epochTimestamp() + 1
            ) {
                voter.poke(_tokenIDs[i]);
                emit Voted(_tokenIDs[i], ownerOf, lastVotes, lastWeights);
            }
        }
    }

    ///@dev permissionless
    function claimRebases(uint256[] calldata _tokenIDs) public {
        veDist.claim_many(_tokenIDs);

        emit Rebased(_tokenIDs);
    }

    ///@dev permissionless
    function extend(uint256[] calldata _tokenIDs) public {
        for (uint256 i = 0; i < _tokenIDs.length; ++i) {
            ve.increase_unlock_time(_tokenIDs[i], MAX);
        }

        emit LockupIncreased(_tokenIDs);
    }

    ///@dev permissionless maintenance to be called weekly
    function maintenance(uint256[] calldata _tokenIDs) public {
        claimRebases(_tokenIDs);
        extend(_tokenIDs);
        poke(_tokenIDs);
    }

    ///@notice backstop
    function execute(address _x, bytes calldata _data) external operatorGated {
        (bool success, ) = _x.call(_data);
        require(success);
    }

    // view methods

    function getAddressInfo(
        address account
    )
        external
        view
        returns (
            uint256[] memory tokenIDs,
            address[] memory allowedToVote,
            string[] memory partnerNames,
            address[][] memory personalAllowedToVote,
            address[][] memory lastVotes,
            uint256[][] memory lastWeights
        )
    {
        tokenIDs = _tokensOwned[account].values();
        allowedToVote = _allowedToVote.values();
        partnerNames = new string[](tokenIDs.length);
        personalAllowedToVote = new address[][](tokenIDs.length);
        lastVotes = new address[][](tokenIDs.length);
        lastWeights = new uint256[][](tokenIDs.length);

        for (uint256 i; i < tokenIDs.length; ++i) {
            (
                ,
                partnerNames[i],
                ,
                personalAllowedToVote[i],
                lastVotes[i],
                lastWeights[i]
            ) = getTokenInfo(tokenIDs[i]);
        }
    }

    function getTokensInfo(
        uint256[] calldata tokenIDs
    )
        external
        view
        returns (
            address[] memory ownersOf,
            address[] memory allowedToVote,
            string[] memory partnerNames,
            address[][] memory personalAllowedToVote,
            address[][] memory lastVotes,
            uint256[][] memory lastWeights
        )
    {
        allowedToVote = _allowedToVote.values();
        partnerNames = new string[](tokenIDs.length);
        ownersOf = new address[](tokenIDs.length);
        personalAllowedToVote = new address[][](tokenIDs.length);
        lastVotes = new address[][](tokenIDs.length);
        lastWeights = new uint256[][](tokenIDs.length);

        for (uint256 i; i < tokenIDs.length; ++i) {
            (
                ownersOf[i],
                partnerNames[i],
                ,
                personalAllowedToVote[i],
                lastVotes[i],
                lastWeights[i]
            ) = getTokenInfo(tokenIDs[i]);
        }
    }

    function getTokenInfo(
        uint256 tokenID
    )
        public
        view
        returns (
            address ownerOf,
            string memory partnerName,
            address[] memory allowedToVote,
            address[] memory personalAllowedToVote,
            address[] memory lastVotes,
            uint256[] memory lastWeights
        )
    {
        ownerOf = __ownerOf[tokenID];
        partnerName = __partner[tokenID];
        allowedToVote = _allowedToVote.values();
        personalAllowedToVote = _partnerAllowedToVote[tokenID].values();
        uint256 len = voter.poolVoteLength(tokenID);
        lastVotes = new address[](len);
        lastWeights = new uint256[](len);
        for (uint256 i = 0; i < lastVotes.length; ++i) {
            lastVotes[i] = voter.poolVote(tokenID, i);
            lastWeights[i] = voter.votes(tokenID, lastVotes[i]);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

File 3 of 8 : 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 4 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 8 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 8 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 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);
        }
    }
}

File 8 of 8 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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.
 *
 * ```
 * 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_multisig","type":"address"},{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_ve","type":"address"},{"internalType":"address","name":"_veDist","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"LockupIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"value","type":"address"}],"name":"MultisigSetted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"value","type":"address"}],"name":"OperatorSetted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"pairs","type":"address[]"}],"name":"PairsRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"pairs","type":"address[]"}],"name":"PairsRemovedForPartner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"pairs","type":"address[]"}],"name":"PairsWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"pairs","type":"address[]"}],"name":"PairsWhitelistedForPartner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"PartnerNameSetted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"Rebased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"address","name":"ownerOf","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address[]","name":"pools","type":"address[]"},{"indexed":false,"internalType":"address[][]","name":"tokens","type":"address[][]"},{"indexed":false,"internalType":"uint256[][]","name":"values","type":"uint256[][]"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"address","name":"designatee","type":"address"}],"name":"TokenAssigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"TokenRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"address","name":"ownerOf","type":"address"},{"indexed":false,"internalType":"address[]","name":"pools","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"weights","type":"uint256[]"}],"name":"Voted","type":"event"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"address","name":"_designatee","type":"address"}],"name":"assign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"claimRebases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_feedists","type":"address[]"},{"internalType":"address[][]","name":"_tokens","type":"address[][]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimVoterRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_feedists","type":"address[]"},{"internalType":"address[][]","name":"_tokens","type":"address[][]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"elevatedClaimVoterRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_x","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"extend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAddressInfo","outputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"},{"internalType":"address[]","name":"allowedToVote","type":"address[]"},{"internalType":"string[]","name":"partnerNames","type":"string[]"},{"internalType":"address[][]","name":"personalAllowedToVote","type":"address[][]"},{"internalType":"address[][]","name":"lastVotes","type":"address[][]"},{"internalType":"uint256[][]","name":"lastWeights","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getTokenInfo","outputs":[{"internalType":"address","name":"ownerOf","type":"address"},{"internalType":"string","name":"partnerName","type":"string"},{"internalType":"address[]","name":"allowedToVote","type":"address[]"},{"internalType":"address[]","name":"personalAllowedToVote","type":"address[]"},{"internalType":"address[]","name":"lastVotes","type":"address[]"},{"internalType":"uint256[]","name":"lastWeights","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"getTokensInfo","outputs":[{"internalType":"address[]","name":"ownersOf","type":"address[]"},{"internalType":"address[]","name":"allowedToVote","type":"address[]"},{"internalType":"string[]","name":"partnerNames","type":"string[]"},{"internalType":"address[][]","name":"personalAllowedToVote","type":"address[][]"},{"internalType":"address[][]","name":"lastVotes","type":"address[][]"},{"internalType":"uint256[][]","name":"lastWeights","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"maintenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"multisig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"address[]","name":"_whitelistedPairs","type":"address[]"}],"name":"removeWhitelistForPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistedPairs","type":"address[]"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_multisig","type":"address"}],"name":"setMultisig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"string","name":"_partner","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"address[]","name":"_whitelistedPairs","type":"address[]"}],"name":"setWhitelistForPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistedPairs","type":"address[]"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ve","outputs":[{"internalType":"contract IVe","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veDist","outputs":[{"internalType":"contract IVeDist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_pools","type":"address[]"},{"internalType":"uint256[]","name":"_weights","type":"uint256[]"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"voteForProtocolPools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"contract IVoter","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003412380380620034128339810160408190526200003491620000af565b60008054336001600160a01b0319918216179091556001805482166001600160a01b0396871617905560028054821694861694909417909355600380548416928516929092179091556004805490921692169190911790556200010c565b80516001600160a01b0381168114620000aa57600080fd5b919050565b60008060008060808587031215620000c657600080fd5b620000d18562000092565b9350620000e16020860162000092565b9250620000f16040860162000092565b9150620001016060860162000092565b905092959194509250565b6132f6806200011c6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806387322816116100f9578063d4f9463e11610097578063ebb0079611610071578063ebb00796146103d8578063f3283fba146103fd578063f5e7f5d914610410578063fe55932a1461042357600080fd5b8063d4f9463e1461039f578063d6470856146103b2578063e07d3b5a146103c557600080fd5b8063c13270f1116100d3578063c13270f11461033a578063c40805061461034d578063c8bd739614610360578063d49d51811461037357600080fd5b806387322816146102ef5780638c7a63ae14610302578063b3ab15fb1461032757600080fd5b8063372fa458116101665780634ff0943a116101405780634ff0943a14610291578063570ca735146102a457806380480503146102b757806384214e56146102dc57600080fd5b8063372fa4581461025857806346c96aac1461026b5780634783c35b1461027e57600080fd5b80630ee7d5f3146101ae5780630f7a8802146101c3578063150b7a02146101d65780631cff79cd146102075780631f8507161461021a57806320c5429b14610245575b600080fd5b6101c16101bc36600461283e565b610436565b005b6101c16101d1366004612889565b61055d565b6101e96101e4366004612927565b61092e565b6040516001600160e01b031990911681526020015b60405180910390f35b6101c1610215366004612a47565b61093f565b60035461022d906001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b6101c1610253366004612a8e565b6109f0565b6101c1610266366004612889565b610b90565b60025461022d906001600160a01b031681565b60015461022d906001600160a01b031681565b6101c161029f366004612889565b610ece565b60005461022d906001600160a01b031681565b6102ca6102c5366004612aa7565b6110a8565b6040516101fe96959493929190612cd6565b6101c16102ea366004612aa7565b611329565b6101c16102fd366004612aa7565b611409565b610315610310366004612a8e565b6114e3565b6040516101fe96959493929190612d58565b6101c1610335366004612dca565b61183b565b60045461022d906001600160a01b031681565b6101c161035b366004612aa7565b6118db565b6101c161036e366004612aa7565b6119b4565b61037e6303c2670081565b6040516fffffffffffffffffffffffffffffffff90911681526020016101fe565b6101c16103ad366004612aa7565b6119d6565b6101c16103c036600461283e565b611a7c565b6101c16103d3366004612de7565b611b63565b6103eb6103e6366004612dca565b611d1e565b6040516101fe96959493929190612e17565b6101c161040b366004612dca565b611f63565b6101c161041e366004612aa7565b611fee565b6101c1610431366004612e2a565b61222a565b6000546001600160a01b031633148061045957506001546001600160a01b031633145b61047e5760405162461bcd60e51b815260040161047590612e5c565b60405180910390fd5b60005b8181101561051c576104c783838381811061049e5761049e612e7b565b90506020020160208101906104b39190612dca565b6000868152600a60205260409020906122b6565b1561050c5761050a8383838181106104e1576104e1612e7b565b90506020020160208101906104f69190612dca565b6000868152600a60205260409020906122dd565b505b61051581612ea7565b9050610481565b507f53870d2a8637e7629710f74561a4c28f6fc8ecf5218f39ffa2e7323f4fb0420483838360405161055093929190612efe565b60405180910390a1505050565b6000546001600160a01b031633148061058057506001546001600160a01b031633145b61059c5760405162461bcd60e51b815260040161047590612e5c565b6002546040516333312b5560e11b81526001600160a01b039091169063666256aa906105d49088908890889088908890600401612fb5565b600060405180830381600087803b1580156105ee57600080fd5b505af1158015610602573d6000803e3d6000fd5b5060009250869150506001600160401b0381111561062257610622612911565b60405190808252806020026020018201604052801561065557816020015b60608152602001906001900390816106405790505b50905060005b858110156108c05784848281811061067557610675612e7b565b90506020028101906106879190612fef565b90506001600160401b038111156106a0576106a0612911565b6040519080825280602002602001820160405280156106c9578160200160208202803683370190505b508282815181106106dc576106dc612e7b565b602002602001018190525060005b8585838181106106fc576106fc612e7b565b905060200281019061070e9190612fef565b90508110156108af57600086868481811061072b5761072b612e7b565b905060200281019061073d9190612fef565b8381811061074d5761074d612e7b565b90506020020160208101906107629190612dca565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190613038565b8484815181106107df576107df612e7b565b602002602001015183815181106107f8576107f8612e7b565b602002602001018181525050600084848151811061081857610818612e7b565b6020026020010151838151811061083157610831612e7b565b6020026020010151111561089e57600154845161089e916001600160a01b03169086908690811061086457610864612e7b565b6020026020010151848151811061087d5761087d612e7b565b6020026020010151836001600160a01b03166122f29092919063ffffffff16565b506108a881612ea7565b90506106ea565b506108b981612ea7565b905061065b565b50600082815260076020526040908190205460015491517f7ee77f865ac7b7e2b097712137626484abe269dd07638f251884cb273239cf339261091e9286926001600160a01b0391821692909116908b908b908b908b908a90613051565b60405180910390a1505050505050565b630a85bd0160e11b5b949350505050565b6000546001600160a01b031633148061096257506001546001600160a01b031633145b61097e5760405162461bcd60e51b815260040161047590612e5c565b6000836001600160a01b0316838360405161099a9291906130ba565b6000604051808303816000865af19150503d80600081146109d7576040519150601f19603f3d011682016040523d82523d6000602084013e6109dc565b606091505b50509050806109ea57600080fd5b50505050565b6000546001600160a01b0316331480610a1357506001546001600160a01b031633145b610a2f5760405162461bcd60e51b815260040161047590612e5c565b60025460405163310bd74b60e01b8152600481018390526001600160a01b039091169063310bd74b90602401600060405180830381600087803b158015610a7557600080fd5b505af1158015610a89573d6000803e3d6000fd5b50506003546001546040516323b872dd60e01b81523060048201526001600160a01b03918216602482015260448101869052911692506323b872dd9150606401600060405180830381600087803b158015610ae357600080fd5b505af1158015610af7573d6000803e3d6000fd5b5050506000828152600760209081526040808320546001600160a01b0316835260099091529020610b29915082612349565b50600081815260076020908152604080832080546001600160a01b031916905560089091528120610b599161271d565b6040518181527fdd1d49ebfce788b875cea0c153d8c2714b07c405b7cb2ed4989f22df886da0ba906020015b60405180910390a150565b600081815260076020526040908190205460025491516333312b5560e11b81526001600160a01b03918216929091169063666256aa90610bdc9089908990899089908990600401612fb5565b600060405180830381600087803b158015610bf657600080fd5b505af1158015610c0a573d6000803e3d6000fd5b5060009250879150506001600160401b03811115610c2a57610c2a612911565b604051908082528060200260200182016040528015610c5d57816020015b6060815260200190600190039081610c485790505b50905060005b86811015610e7f57858582818110610c7d57610c7d612e7b565b9050602002810190610c8f9190612fef565b90506001600160401b03811115610ca857610ca8612911565b604051908082528060200260200182016040528015610cd1578160200160208202803683370190505b50828281518110610ce457610ce4612e7b565b602002602001018190525060005b868683818110610d0457610d04612e7b565b9050602002810190610d169190612fef565b9050811015610e6e576000878784818110610d3357610d33612e7b565b9050602002810190610d459190612fef565b83818110610d5557610d55612e7b565b9050602002016020810190610d6a9190612dca565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd59190613038565b848481518110610de757610de7612e7b565b60200260200101518381518110610e0057610e00612e7b565b6020026020010181815250506000848481518110610e2057610e20612e7b565b60200260200101518381518110610e3957610e39612e7b565b60200260200101511115610e5d57610e5d8585858151811061086457610864612e7b565b50610e6781612ea7565b9050610cf2565b50610e7881612ea7565b9050610c63565b507f7ee77f865ac7b7e2b097712137626484abe269dd07638f251884cb273239cf338383848a8a8a8a88604051610ebd989796959493929190613051565b60405180910390a150505050505050565b6000818152600760205260409020546001600160a01b0316331480610ef257503330145b610f2a5760405162461bcd60e51b8152602060048201526009602482015268085c1c9bdd1bd8dbdb60ba1b6044820152606401610475565b838214610f6b5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610475565b60005b8481101561103657610fa8868683818110610f8b57610f8b612e7b565b9050602002016020810190610fa09190612dca565b6005906122b6565b80610fec5750610fec868683818110610fc357610fc3612e7b565b9050602002016020810190610fd89190612dca565b6000848152600a60205260409020906122b6565b6110265760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610475565b61102f81612ea7565b9050610f6e565b50600254604051637ac09bf760e01b81526001600160a01b0390911690637ac09bf79061106f9084908990899089908990600401613100565b600060405180830381600087803b15801561108957600080fd5b505af115801561109d573d6000803e3d6000fd5b505050505050505050565b6060806060806060806110bb6005612355565b9450866001600160401b038111156110d5576110d5612911565b60405190808252806020026020018201604052801561110857816020015b60608152602001906001900390816110f35790505b509350866001600160401b0381111561112357611123612911565b60405190808252806020026020018201604052801561114c578160200160208202803683370190505b509550866001600160401b0381111561116757611167612911565b60405190808252806020026020018201604052801561119a57816020015b60608152602001906001900390816111855790505b509250866001600160401b038111156111b5576111b5612911565b6040519080825280602002602001820160405280156111e857816020015b60608152602001906001900390816111d35790505b509150866001600160401b0381111561120357611203612911565b60405190808252806020026020018201604052801561123657816020015b60608152602001906001900390816112215790505b50905060005b8781101561131e5761126589898381811061125957611259612e7b565b905060200201356114e3565b909192508b868151811061127b5761127b612e7b565b602002602001018a878151811061129457611294612e7b565b602002602001018a88815181106112ad576112ad612e7b565b602002602001018a89815181106112c6576112c6612e7b565b602002602001018a8a815181106112df576112df612e7b565b60200260200101859052859052859052859052856001600160a01b03166001600160a01b031681525050505050508061131790612ea7565b905061123c565b509295509295509295565b60005b818110156113cb576003546001600160a01b031663a4d855df84848481811061135757611357612e7b565b6040516001600160e01b031960e086901b168152602090910292909201356004830152506303c267006024820152604401600060405180830381600087803b1580156113a257600080fd5b505af11580156113b6573d6000803e3d6000fd5b50505050806113c490612ea7565b905061132c565b507f9b2297a2bfc481035383d3fe5d47b5787c7088f66455fd8446f8942e10765d8182826040516113fd929190613139565b60405180910390a15050565b6000546001600160a01b031633148061142c57506001546001600160a01b031633145b6114485760405162461bcd60e51b815260040161047590612e5c565b60005b818110156114b157611468838383818110610f8b57610f8b612e7b565b156114a15761149f83838381811061148257611482612e7b565b90506020020160208101906114979190612dca565b6005906122dd565b505b6114aa81612ea7565b905061144b565b507fc4e3896f6723227c4bbe33febd7b011dc3a76447c34ed6cdf290b4839491dedc82826040516113fd92919061314d565b600081815260076020908152604080832054600890925290912080546001600160a01b039092169160609182918291829182919061152090613161565b80601f016020809104026020016040519081016040528092919081815260200182805461154c90613161565b80156115995780601f1061156e57610100808354040283529160200191611599565b820191906000526020600020905b81548152906001019060200180831161157c57829003601f168201915b505050505094506115aa6005612355565b6000888152600a602052604090209094506115c490612355565b600254604051633223f3ed60e11b8152600481018a90529194506000916001600160a01b0390911690636447e7da90602401602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613038565b9050806001600160401b0381111561165157611651612911565b60405190808252806020026020018201604052801561167a578160200160208202803683370190505b509250806001600160401b0381111561169557611695612911565b6040519080825280602002602001820160405280156116be578160200160208202803683370190505b50915060005b83518110156118305760025460405163a86a366d60e01b8152600481018b9052602481018390526001600160a01b039091169063a86a366d90604401602060405180830381865afa15801561171d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611741919061319b565b84828151811061175357611753612e7b565b6001600160a01b039283166020918202929092010152600254855191169063d23254b4908b9087908590811061178b5761178b612e7b565b60200260200101516040518363ffffffff1660e01b81526004016117c29291909182526001600160a01b0316602082015260400190565b602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118039190613038565b83828151811061181557611815612e7b565b602090810291909101015261182981612ea7565b90506116c4565b505091939550919395565b6000546001600160a01b031633148061185e57506001546001600160a01b031633145b61187a5760405162461bcd60e51b815260040161047590612e5c565b6001600160a01b03811661188d57600080fd5b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f25e685c2df1877d5fb41d4b737f7070c25654faadfdea2de79ab95d2b4100f1e90602001610b85565b6000546001600160a01b03163314806118fe57506001546001600160a01b031633145b61191a5760405162461bcd60e51b815260040161047590612e5c565b60005b818110156119825761193a838383818110610f8b57610f8b612e7b565b6119725761197083838381811061195357611953612e7b565b90506020020160208101906119689190612dca565b600590612369565b505b61197b81612ea7565b905061191d565b507f013c141d97eadeda2f225a9e361bd1ec23de41d4f91d64bb7f03b199df40a96b82826040516113fd92919061314d565b6119be82826119d6565b6119c88282611329565b6119d28282611fee565b5050565b60048054604051631f1db04360e01b81526001600160a01b0390911691631f1db04391611a07918691869101613139565b6020604051808303816000875af1158015611a26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4a91906131b8565b507fbc007cf01cc88e6b132d5a5c8cce4eea8cd9511365ee60dffac113164f39ddd782826040516113fd929190613139565b6000546001600160a01b0316331480611a9f57506001546001600160a01b031633145b611abb5760405162461bcd60e51b815260040161047590612e5c565b60005b81811015611b2f57611adb83838381811061049e5761049e612e7b565b611b1f57611b1d838383818110611af457611af4612e7b565b9050602002016020810190611b099190612dca565b6000868152600a6020526040902090612369565b505b611b2881612ea7565b9050611abe565b507f87b0854a84628ee8132ea23d00b60e74e99976712f59b70af5713c343f6fa83683838360405161055093929190612efe565b6000546001600160a01b0316331480611b8657506001546001600160a01b031633145b611ba25760405162461bcd60e51b815260040161047590612e5c565b6003546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e90602401602060405180830381865afa158015611beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0f919061319b565b6001600160a01b031614611c525760405162461bcd60e51b815260206004820152600a6024820152690858dd5cdd1bd91a595960b21b6044820152606401610475565b6000828152600760205260409020546001600160a01b031615611c9f576000828152600760209081526040808320546001600160a01b0316835260099091529020611c9d9083612349565b505b600082815260076020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260099091529020611cdf908361237e565b50604080518381526001600160a01b03831660208201527f5e6aa8b98718da3d88c3d06b39d800866087a6f9adb9fd8f574becffffa0e5e291016113fd565b606080606080606080611d5460096000896001600160a01b03166001600160a01b03168152602001908152602001600020612355565b9550611d606005612355565b945085516001600160401b03811115611d7b57611d7b612911565b604051908082528060200260200182016040528015611dae57816020015b6060815260200190600190039081611d995790505b50935085516001600160401b03811115611dca57611dca612911565b604051908082528060200260200182016040528015611dfd57816020015b6060815260200190600190039081611de85790505b50925085516001600160401b03811115611e1957611e19612911565b604051908082528060200260200182016040528015611e4c57816020015b6060815260200190600190039081611e375790505b50915085516001600160401b03811115611e6857611e68612911565b604051908082528060200260200182016040528015611e9b57816020015b6060815260200190600190039081611e865790505b50905060005b8651811015611f5957611ecc878281518110611ebf57611ebf612e7b565b60200260200101516114e3565b90919293945090919250888581518110611ee857611ee8612e7b565b60200260200101888681518110611f0157611f01612e7b565b60200260200101888781518110611f1a57611f1a612e7b565b60200260200101888881518110611f3357611f33612e7b565b60209081029190910101939093529290915291905252611f5281612ea7565b9050611ea1565b5091939550919395565b6001546001600160a01b03163314611f8d5760405162461bcd60e51b815260040161047590612e5c565b6001600160a01b038116611fa057600080fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527fe1b1af55113a3214e19289ec90dbcaf5c79bde71215861bf8e502d3b9a26ad4c90602001610b85565b6060806000805b848110156122225761201286868381811061125957611259612e7b565b90985096509294505050506001600160a01b0382161580159061213d5750600260009054906101000a90046001600160a01b03166001600160a01b031663f8803bb66040518163ffffffff1660e01b8152600401602060405180830381865afa158015612083573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a79190613038565b6120b29060016131da565b6002546001600160a01b031663f3594be08888858181106120d5576120d5612e7b565b905060200201356040518263ffffffff1660e01b81526004016120fa91815260200190565b602060405180830381865afa158015612117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213b9190613038565b105b15612212576002546001600160a01b03166332145f9087878481811061216557612165612e7b565b905060200201356040518263ffffffff1660e01b815260040161218a91815260200190565b600060405180830381600087803b1580156121a457600080fd5b505af11580156121b8573d6000803e3d6000fd5b505050507f1e1ece3e391c47c1492d12356c3bec497fe84e0b2ac11f5f0f82c10486e23b968686838181106121ef576121ef612e7b565b9050602002013583868660405161220994939291906131f2565b60405180910390a15b61221b81612ea7565b9050611ff5565b505050505050565b6000546001600160a01b031633148061224d57506001546001600160a01b031633145b6122695760405162461bcd60e51b815260040161047590612e5c565b600083815260086020526040902061228290838361275a565b507f9525e4c435652a68a5021c471bfa1c88c95dfe5cf3f41e407c2a2bc8f6d3a3d88383836040516105509392919061322e565b6001600160a01b038116600090815260018301602052604081205415155b90505b92915050565b60006122d4836001600160a01b03841661238a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261234490849061247d565b505050565b60006122d4838361238a565b606060006123628361254f565b9392505050565b60006122d4836001600160a01b0384166125ab565b60006122d483836125ab565b600081815260018301602052604081205480156124735760006123ae600183613264565b85549091506000906123c290600190613264565b90508181146124275760008660000182815481106123e2576123e2612e7b565b906000526020600020015490508087600001848154811061240557612405612e7b565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806124385761243861327b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506122d7565b60009150506122d7565b60006124d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125fa9092919063ffffffff16565b80519091501561234457808060200190518101906124f091906131b8565b6123445760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610475565b60608160000180548060200260200160405190810160405280929190818152602001828054801561259f57602002820191906000526020600020905b81548152602001906001019080831161258b575b50505050509050919050565b60008181526001830160205260408120546125f2575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556122d7565b5060006122d7565b6060610937848460008585600080866001600160a01b031685876040516126219190613291565b60006040518083038185875af1925050503d806000811461265e576040519150601f19603f3d011682016040523d82523d6000602084013e612663565b606091505b50915091506126748783838761267f565b979650505050505050565b606083156126ee5782516000036126e7576001600160a01b0385163b6126e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610475565b5081610937565b61093783838151156127035781518083602001fd5b8060405162461bcd60e51b815260040161047591906132ad565b50805461272990613161565b6000825580601f10612739575050565b601f01602090049060005260206000209081019061275791906127de565b50565b82805461276690613161565b90600052602060002090601f01602090048101928261278857600085556127ce565b82601f106127a15782800160ff198235161785556127ce565b828001600101855582156127ce579182015b828111156127ce5782358255916020019190600101906127b3565b506127da9291506127de565b5090565b5b808211156127da57600081556001016127df565b60008083601f84011261280557600080fd5b5081356001600160401b0381111561281c57600080fd5b6020830191508360208260051b850101111561283757600080fd5b9250929050565b60008060006040848603121561285357600080fd5b8335925060208401356001600160401b0381111561287057600080fd5b61287c868287016127f3565b9497909650939450505050565b6000806000806000606086880312156128a157600080fd5b85356001600160401b03808211156128b857600080fd5b6128c489838a016127f3565b909750955060208801359150808211156128dd57600080fd5b506128ea888289016127f3565b96999598509660400135949350505050565b6001600160a01b038116811461275757600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561293d57600080fd5b8435612948816128fc565b93506020850135612958816128fc565b92506040850135915060608501356001600160401b038082111561297b57600080fd5b818701915087601f83011261298f57600080fd5b8135818111156129a1576129a1612911565b604051601f8201601f19908116603f011681019083821181831017156129c9576129c9612911565b816040528281528a60208487010111156129e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f840112612a1857600080fd5b5081356001600160401b03811115612a2f57600080fd5b60208301915083602082850101111561283757600080fd5b600080600060408486031215612a5c57600080fd5b8335612a67816128fc565b925060208401356001600160401b03811115612a8257600080fd5b61287c86828701612a06565b600060208284031215612aa057600080fd5b5035919050565b60008060208385031215612aba57600080fd5b82356001600160401b03811115612ad057600080fd5b612adc858286016127f3565b90969095509350505050565b600081518084526020808501945080840160005b83811015612b215781516001600160a01b031687529582019590820190600101612afc565b509495945050505050565b60005b83811015612b47578181015183820152602001612b2f565b838111156109ea5750506000910152565b60008151808452612b70816020860160208601612b2c565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612bcc578284038952612bba848351612b58565b98850198935090840190600101612ba2565b5091979650505050505050565b600081518084526020808501808196508360051b810191508286016000805b86811015612c50578385038a52825180518087529087019087870190845b81811015612c3b5783516001600160a01b031683529289019291890191600101612c16565b50509a87019a95505091850191600101612bf8565b509298975050505050505050565b600081518084526020808501945080840160005b83811015612b2157815187529582019590820190600101612c72565b600081518084526020808501808196508360051b8101915082860160005b85811015612bcc578284038952612cc4848351612c5e565b98850198935090840190600101612cac565b60c081526000612ce960c0830189612ae8565b8281036020840152612cfb8189612ae8565b90508281036040840152612d0f8188612b84565b90508281036060840152612d238187612bd9565b90508281036080840152612d378186612bd9565b905082810360a0840152612d4b8185612c8e565b9998505050505050505050565b6001600160a01b038716815260c060208201819052600090612d7c90830188612b58565b8281036040840152612d8e8188612ae8565b90508281036060840152612da28187612ae8565b90508281036080840152612db68186612ae8565b905082810360a0840152612d4b8185612c5e565b600060208284031215612ddc57600080fd5b8135612362816128fc565b60008060408385031215612dfa57600080fd5b823591506020830135612e0c816128fc565b809150509250929050565b60c081526000612ce960c0830189612c5e565b600080600060408486031215612e3f57600080fd5b8335925060208401356001600160401b03811115612a8257600080fd5b602080825260059082015264042c2eae8d60db1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612eb957612eb9612e91565b5060010190565b8183526000602080850194508260005b85811015612b21578135612ee3816128fc565b6001600160a01b031687529582019590820190600101612ed0565b838152604060208201526000612f18604083018486612ec0565b95945050505050565b81835260006020808501808196506005915085821b81018560005b88811015612fa7578383038a528135601e19893603018112612f5d57600080fd5b880180356001600160401b03811115612f7557600080fd5b80871b36038a1315612f8657600080fd5b612f9385828a8501612ec0565b9b88019b9450505090850190600101612f3c565b509098975050505050505050565b606081526000612fc9606083018789612ec0565b8281036020840152612fdc818688612f21565b9150508260408301529695505050505050565b6000808335601e1984360301811261300657600080fd5b8301803591506001600160401b0382111561302057600080fd5b6020019150600581901b360382131561283757600080fd5b60006020828403121561304a57600080fd5b5051919050565b8881526001600160a01b0388811660208301528716604082015260c0606082018190526000906130849083018789612ec0565b8281036080840152613097818688612f21565b905082810360a08401526130ab8185612c8e565b9b9a5050505050505050505050565b8183823760009101908152919050565b81835260006001600160fb1b038311156130e357600080fd5b8260051b8083602087013760009401602001938452509192915050565b85815260606020820152600061311a606083018688612ec0565b828103604084015261312d8185876130ca565b98975050505050505050565b6020815260006109376020830184866130ca565b602081526000610937602083018486612ec0565b600181811c9082168061317557607f821691505b60208210810361319557634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156131ad57600080fd5b8151612362816128fc565b6000602082840312156131ca57600080fd5b8151801515811461236257600080fd5b600082198211156131ed576131ed612e91565b500190565b8481526001600160a01b038416602082015260806040820181905260009061321c90830185612ae8565b82810360608401526126748185612c5e565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008282101561327657613276612e91565b500390565b634e487b7160e01b600052603160045260246000fd5b600082516132a3818460208701612b2c565b9190910192915050565b6020815260006122d46020830184612b5856fea26469706673582212209489100907b1f5bacc3f99904e769ef21d3807a082b8c1ebb940adefc2eb95cd64736f6c634300080d00330000000000000000000000004d5bcfc14282d930ee09bee96d3a7d5f338251c600000000000000000000000040247ba1012404134958da41b6bd93be1cd5bf3f000000000000000000000000329d9ca4fad82d10f128050535c138d3bd83e3970000000000000000000000008f1795bb3eb2046cc7a05cadd594030bdc374430

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806387322816116100f9578063d4f9463e11610097578063ebb0079611610071578063ebb00796146103d8578063f3283fba146103fd578063f5e7f5d914610410578063fe55932a1461042357600080fd5b8063d4f9463e1461039f578063d6470856146103b2578063e07d3b5a146103c557600080fd5b8063c13270f1116100d3578063c13270f11461033a578063c40805061461034d578063c8bd739614610360578063d49d51811461037357600080fd5b806387322816146102ef5780638c7a63ae14610302578063b3ab15fb1461032757600080fd5b8063372fa458116101665780634ff0943a116101405780634ff0943a14610291578063570ca735146102a457806380480503146102b757806384214e56146102dc57600080fd5b8063372fa4581461025857806346c96aac1461026b5780634783c35b1461027e57600080fd5b80630ee7d5f3146101ae5780630f7a8802146101c3578063150b7a02146101d65780631cff79cd146102075780631f8507161461021a57806320c5429b14610245575b600080fd5b6101c16101bc36600461283e565b610436565b005b6101c16101d1366004612889565b61055d565b6101e96101e4366004612927565b61092e565b6040516001600160e01b031990911681526020015b60405180910390f35b6101c1610215366004612a47565b61093f565b60035461022d906001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b6101c1610253366004612a8e565b6109f0565b6101c1610266366004612889565b610b90565b60025461022d906001600160a01b031681565b60015461022d906001600160a01b031681565b6101c161029f366004612889565b610ece565b60005461022d906001600160a01b031681565b6102ca6102c5366004612aa7565b6110a8565b6040516101fe96959493929190612cd6565b6101c16102ea366004612aa7565b611329565b6101c16102fd366004612aa7565b611409565b610315610310366004612a8e565b6114e3565b6040516101fe96959493929190612d58565b6101c1610335366004612dca565b61183b565b60045461022d906001600160a01b031681565b6101c161035b366004612aa7565b6118db565b6101c161036e366004612aa7565b6119b4565b61037e6303c2670081565b6040516fffffffffffffffffffffffffffffffff90911681526020016101fe565b6101c16103ad366004612aa7565b6119d6565b6101c16103c036600461283e565b611a7c565b6101c16103d3366004612de7565b611b63565b6103eb6103e6366004612dca565b611d1e565b6040516101fe96959493929190612e17565b6101c161040b366004612dca565b611f63565b6101c161041e366004612aa7565b611fee565b6101c1610431366004612e2a565b61222a565b6000546001600160a01b031633148061045957506001546001600160a01b031633145b61047e5760405162461bcd60e51b815260040161047590612e5c565b60405180910390fd5b60005b8181101561051c576104c783838381811061049e5761049e612e7b565b90506020020160208101906104b39190612dca565b6000868152600a60205260409020906122b6565b1561050c5761050a8383838181106104e1576104e1612e7b565b90506020020160208101906104f69190612dca565b6000868152600a60205260409020906122dd565b505b61051581612ea7565b9050610481565b507f53870d2a8637e7629710f74561a4c28f6fc8ecf5218f39ffa2e7323f4fb0420483838360405161055093929190612efe565b60405180910390a1505050565b6000546001600160a01b031633148061058057506001546001600160a01b031633145b61059c5760405162461bcd60e51b815260040161047590612e5c565b6002546040516333312b5560e11b81526001600160a01b039091169063666256aa906105d49088908890889088908890600401612fb5565b600060405180830381600087803b1580156105ee57600080fd5b505af1158015610602573d6000803e3d6000fd5b5060009250869150506001600160401b0381111561062257610622612911565b60405190808252806020026020018201604052801561065557816020015b60608152602001906001900390816106405790505b50905060005b858110156108c05784848281811061067557610675612e7b565b90506020028101906106879190612fef565b90506001600160401b038111156106a0576106a0612911565b6040519080825280602002602001820160405280156106c9578160200160208202803683370190505b508282815181106106dc576106dc612e7b565b602002602001018190525060005b8585838181106106fc576106fc612e7b565b905060200281019061070e9190612fef565b90508110156108af57600086868481811061072b5761072b612e7b565b905060200281019061073d9190612fef565b8381811061074d5761074d612e7b565b90506020020160208101906107629190612dca565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190613038565b8484815181106107df576107df612e7b565b602002602001015183815181106107f8576107f8612e7b565b602002602001018181525050600084848151811061081857610818612e7b565b6020026020010151838151811061083157610831612e7b565b6020026020010151111561089e57600154845161089e916001600160a01b03169086908690811061086457610864612e7b565b6020026020010151848151811061087d5761087d612e7b565b6020026020010151836001600160a01b03166122f29092919063ffffffff16565b506108a881612ea7565b90506106ea565b506108b981612ea7565b905061065b565b50600082815260076020526040908190205460015491517f7ee77f865ac7b7e2b097712137626484abe269dd07638f251884cb273239cf339261091e9286926001600160a01b0391821692909116908b908b908b908b908a90613051565b60405180910390a1505050505050565b630a85bd0160e11b5b949350505050565b6000546001600160a01b031633148061096257506001546001600160a01b031633145b61097e5760405162461bcd60e51b815260040161047590612e5c565b6000836001600160a01b0316838360405161099a9291906130ba565b6000604051808303816000865af19150503d80600081146109d7576040519150601f19603f3d011682016040523d82523d6000602084013e6109dc565b606091505b50509050806109ea57600080fd5b50505050565b6000546001600160a01b0316331480610a1357506001546001600160a01b031633145b610a2f5760405162461bcd60e51b815260040161047590612e5c565b60025460405163310bd74b60e01b8152600481018390526001600160a01b039091169063310bd74b90602401600060405180830381600087803b158015610a7557600080fd5b505af1158015610a89573d6000803e3d6000fd5b50506003546001546040516323b872dd60e01b81523060048201526001600160a01b03918216602482015260448101869052911692506323b872dd9150606401600060405180830381600087803b158015610ae357600080fd5b505af1158015610af7573d6000803e3d6000fd5b5050506000828152600760209081526040808320546001600160a01b0316835260099091529020610b29915082612349565b50600081815260076020908152604080832080546001600160a01b031916905560089091528120610b599161271d565b6040518181527fdd1d49ebfce788b875cea0c153d8c2714b07c405b7cb2ed4989f22df886da0ba906020015b60405180910390a150565b600081815260076020526040908190205460025491516333312b5560e11b81526001600160a01b03918216929091169063666256aa90610bdc9089908990899089908990600401612fb5565b600060405180830381600087803b158015610bf657600080fd5b505af1158015610c0a573d6000803e3d6000fd5b5060009250879150506001600160401b03811115610c2a57610c2a612911565b604051908082528060200260200182016040528015610c5d57816020015b6060815260200190600190039081610c485790505b50905060005b86811015610e7f57858582818110610c7d57610c7d612e7b565b9050602002810190610c8f9190612fef565b90506001600160401b03811115610ca857610ca8612911565b604051908082528060200260200182016040528015610cd1578160200160208202803683370190505b50828281518110610ce457610ce4612e7b565b602002602001018190525060005b868683818110610d0457610d04612e7b565b9050602002810190610d169190612fef565b9050811015610e6e576000878784818110610d3357610d33612e7b565b9050602002810190610d459190612fef565b83818110610d5557610d55612e7b565b9050602002016020810190610d6a9190612dca565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a0823190602401602060405180830381865afa158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd59190613038565b848481518110610de757610de7612e7b565b60200260200101518381518110610e0057610e00612e7b565b6020026020010181815250506000848481518110610e2057610e20612e7b565b60200260200101518381518110610e3957610e39612e7b565b60200260200101511115610e5d57610e5d8585858151811061086457610864612e7b565b50610e6781612ea7565b9050610cf2565b50610e7881612ea7565b9050610c63565b507f7ee77f865ac7b7e2b097712137626484abe269dd07638f251884cb273239cf338383848a8a8a8a88604051610ebd989796959493929190613051565b60405180910390a150505050505050565b6000818152600760205260409020546001600160a01b0316331480610ef257503330145b610f2a5760405162461bcd60e51b8152602060048201526009602482015268085c1c9bdd1bd8dbdb60ba1b6044820152606401610475565b838214610f6b5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610475565b60005b8481101561103657610fa8868683818110610f8b57610f8b612e7b565b9050602002016020810190610fa09190612dca565b6005906122b6565b80610fec5750610fec868683818110610fc357610fc3612e7b565b9050602002016020810190610fd89190612dca565b6000848152600a60205260409020906122b6565b6110265760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610475565b61102f81612ea7565b9050610f6e565b50600254604051637ac09bf760e01b81526001600160a01b0390911690637ac09bf79061106f9084908990899089908990600401613100565b600060405180830381600087803b15801561108957600080fd5b505af115801561109d573d6000803e3d6000fd5b505050505050505050565b6060806060806060806110bb6005612355565b9450866001600160401b038111156110d5576110d5612911565b60405190808252806020026020018201604052801561110857816020015b60608152602001906001900390816110f35790505b509350866001600160401b0381111561112357611123612911565b60405190808252806020026020018201604052801561114c578160200160208202803683370190505b509550866001600160401b0381111561116757611167612911565b60405190808252806020026020018201604052801561119a57816020015b60608152602001906001900390816111855790505b509250866001600160401b038111156111b5576111b5612911565b6040519080825280602002602001820160405280156111e857816020015b60608152602001906001900390816111d35790505b509150866001600160401b0381111561120357611203612911565b60405190808252806020026020018201604052801561123657816020015b60608152602001906001900390816112215790505b50905060005b8781101561131e5761126589898381811061125957611259612e7b565b905060200201356114e3565b909192508b868151811061127b5761127b612e7b565b602002602001018a878151811061129457611294612e7b565b602002602001018a88815181106112ad576112ad612e7b565b602002602001018a89815181106112c6576112c6612e7b565b602002602001018a8a815181106112df576112df612e7b565b60200260200101859052859052859052859052856001600160a01b03166001600160a01b031681525050505050508061131790612ea7565b905061123c565b509295509295509295565b60005b818110156113cb576003546001600160a01b031663a4d855df84848481811061135757611357612e7b565b6040516001600160e01b031960e086901b168152602090910292909201356004830152506303c267006024820152604401600060405180830381600087803b1580156113a257600080fd5b505af11580156113b6573d6000803e3d6000fd5b50505050806113c490612ea7565b905061132c565b507f9b2297a2bfc481035383d3fe5d47b5787c7088f66455fd8446f8942e10765d8182826040516113fd929190613139565b60405180910390a15050565b6000546001600160a01b031633148061142c57506001546001600160a01b031633145b6114485760405162461bcd60e51b815260040161047590612e5c565b60005b818110156114b157611468838383818110610f8b57610f8b612e7b565b156114a15761149f83838381811061148257611482612e7b565b90506020020160208101906114979190612dca565b6005906122dd565b505b6114aa81612ea7565b905061144b565b507fc4e3896f6723227c4bbe33febd7b011dc3a76447c34ed6cdf290b4839491dedc82826040516113fd92919061314d565b600081815260076020908152604080832054600890925290912080546001600160a01b039092169160609182918291829182919061152090613161565b80601f016020809104026020016040519081016040528092919081815260200182805461154c90613161565b80156115995780601f1061156e57610100808354040283529160200191611599565b820191906000526020600020905b81548152906001019060200180831161157c57829003601f168201915b505050505094506115aa6005612355565b6000888152600a602052604090209094506115c490612355565b600254604051633223f3ed60e11b8152600481018a90529194506000916001600160a01b0390911690636447e7da90602401602060405180830381865afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613038565b9050806001600160401b0381111561165157611651612911565b60405190808252806020026020018201604052801561167a578160200160208202803683370190505b509250806001600160401b0381111561169557611695612911565b6040519080825280602002602001820160405280156116be578160200160208202803683370190505b50915060005b83518110156118305760025460405163a86a366d60e01b8152600481018b9052602481018390526001600160a01b039091169063a86a366d90604401602060405180830381865afa15801561171d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611741919061319b565b84828151811061175357611753612e7b565b6001600160a01b039283166020918202929092010152600254855191169063d23254b4908b9087908590811061178b5761178b612e7b565b60200260200101516040518363ffffffff1660e01b81526004016117c29291909182526001600160a01b0316602082015260400190565b602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118039190613038565b83828151811061181557611815612e7b565b602090810291909101015261182981612ea7565b90506116c4565b505091939550919395565b6000546001600160a01b031633148061185e57506001546001600160a01b031633145b61187a5760405162461bcd60e51b815260040161047590612e5c565b6001600160a01b03811661188d57600080fd5b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f25e685c2df1877d5fb41d4b737f7070c25654faadfdea2de79ab95d2b4100f1e90602001610b85565b6000546001600160a01b03163314806118fe57506001546001600160a01b031633145b61191a5760405162461bcd60e51b815260040161047590612e5c565b60005b818110156119825761193a838383818110610f8b57610f8b612e7b565b6119725761197083838381811061195357611953612e7b565b90506020020160208101906119689190612dca565b600590612369565b505b61197b81612ea7565b905061191d565b507f013c141d97eadeda2f225a9e361bd1ec23de41d4f91d64bb7f03b199df40a96b82826040516113fd92919061314d565b6119be82826119d6565b6119c88282611329565b6119d28282611fee565b5050565b60048054604051631f1db04360e01b81526001600160a01b0390911691631f1db04391611a07918691869101613139565b6020604051808303816000875af1158015611a26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4a91906131b8565b507fbc007cf01cc88e6b132d5a5c8cce4eea8cd9511365ee60dffac113164f39ddd782826040516113fd929190613139565b6000546001600160a01b0316331480611a9f57506001546001600160a01b031633145b611abb5760405162461bcd60e51b815260040161047590612e5c565b60005b81811015611b2f57611adb83838381811061049e5761049e612e7b565b611b1f57611b1d838383818110611af457611af4612e7b565b9050602002016020810190611b099190612dca565b6000868152600a6020526040902090612369565b505b611b2881612ea7565b9050611abe565b507f87b0854a84628ee8132ea23d00b60e74e99976712f59b70af5713c343f6fa83683838360405161055093929190612efe565b6000546001600160a01b0316331480611b8657506001546001600160a01b031633145b611ba25760405162461bcd60e51b815260040161047590612e5c565b6003546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e90602401602060405180830381865afa158015611beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0f919061319b565b6001600160a01b031614611c525760405162461bcd60e51b815260206004820152600a6024820152690858dd5cdd1bd91a595960b21b6044820152606401610475565b6000828152600760205260409020546001600160a01b031615611c9f576000828152600760209081526040808320546001600160a01b0316835260099091529020611c9d9083612349565b505b600082815260076020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260099091529020611cdf908361237e565b50604080518381526001600160a01b03831660208201527f5e6aa8b98718da3d88c3d06b39d800866087a6f9adb9fd8f574becffffa0e5e291016113fd565b606080606080606080611d5460096000896001600160a01b03166001600160a01b03168152602001908152602001600020612355565b9550611d606005612355565b945085516001600160401b03811115611d7b57611d7b612911565b604051908082528060200260200182016040528015611dae57816020015b6060815260200190600190039081611d995790505b50935085516001600160401b03811115611dca57611dca612911565b604051908082528060200260200182016040528015611dfd57816020015b6060815260200190600190039081611de85790505b50925085516001600160401b03811115611e1957611e19612911565b604051908082528060200260200182016040528015611e4c57816020015b6060815260200190600190039081611e375790505b50915085516001600160401b03811115611e6857611e68612911565b604051908082528060200260200182016040528015611e9b57816020015b6060815260200190600190039081611e865790505b50905060005b8651811015611f5957611ecc878281518110611ebf57611ebf612e7b565b60200260200101516114e3565b90919293945090919250888581518110611ee857611ee8612e7b565b60200260200101888681518110611f0157611f01612e7b565b60200260200101888781518110611f1a57611f1a612e7b565b60200260200101888881518110611f3357611f33612e7b565b60209081029190910101939093529290915291905252611f5281612ea7565b9050611ea1565b5091939550919395565b6001546001600160a01b03163314611f8d5760405162461bcd60e51b815260040161047590612e5c565b6001600160a01b038116611fa057600080fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527fe1b1af55113a3214e19289ec90dbcaf5c79bde71215861bf8e502d3b9a26ad4c90602001610b85565b6060806000805b848110156122225761201286868381811061125957611259612e7b565b90985096509294505050506001600160a01b0382161580159061213d5750600260009054906101000a90046001600160a01b03166001600160a01b031663f8803bb66040518163ffffffff1660e01b8152600401602060405180830381865afa158015612083573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a79190613038565b6120b29060016131da565b6002546001600160a01b031663f3594be08888858181106120d5576120d5612e7b565b905060200201356040518263ffffffff1660e01b81526004016120fa91815260200190565b602060405180830381865afa158015612117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213b9190613038565b105b15612212576002546001600160a01b03166332145f9087878481811061216557612165612e7b565b905060200201356040518263ffffffff1660e01b815260040161218a91815260200190565b600060405180830381600087803b1580156121a457600080fd5b505af11580156121b8573d6000803e3d6000fd5b505050507f1e1ece3e391c47c1492d12356c3bec497fe84e0b2ac11f5f0f82c10486e23b968686838181106121ef576121ef612e7b565b9050602002013583868660405161220994939291906131f2565b60405180910390a15b61221b81612ea7565b9050611ff5565b505050505050565b6000546001600160a01b031633148061224d57506001546001600160a01b031633145b6122695760405162461bcd60e51b815260040161047590612e5c565b600083815260086020526040902061228290838361275a565b507f9525e4c435652a68a5021c471bfa1c88c95dfe5cf3f41e407c2a2bc8f6d3a3d88383836040516105509392919061322e565b6001600160a01b038116600090815260018301602052604081205415155b90505b92915050565b60006122d4836001600160a01b03841661238a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261234490849061247d565b505050565b60006122d4838361238a565b606060006123628361254f565b9392505050565b60006122d4836001600160a01b0384166125ab565b60006122d483836125ab565b600081815260018301602052604081205480156124735760006123ae600183613264565b85549091506000906123c290600190613264565b90508181146124275760008660000182815481106123e2576123e2612e7b565b906000526020600020015490508087600001848154811061240557612405612e7b565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806124385761243861327b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506122d7565b60009150506122d7565b60006124d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125fa9092919063ffffffff16565b80519091501561234457808060200190518101906124f091906131b8565b6123445760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610475565b60608160000180548060200260200160405190810160405280929190818152602001828054801561259f57602002820191906000526020600020905b81548152602001906001019080831161258b575b50505050509050919050565b60008181526001830160205260408120546125f2575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556122d7565b5060006122d7565b6060610937848460008585600080866001600160a01b031685876040516126219190613291565b60006040518083038185875af1925050503d806000811461265e576040519150601f19603f3d011682016040523d82523d6000602084013e612663565b606091505b50915091506126748783838761267f565b979650505050505050565b606083156126ee5782516000036126e7576001600160a01b0385163b6126e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610475565b5081610937565b61093783838151156127035781518083602001fd5b8060405162461bcd60e51b815260040161047591906132ad565b50805461272990613161565b6000825580601f10612739575050565b601f01602090049060005260206000209081019061275791906127de565b50565b82805461276690613161565b90600052602060002090601f01602090048101928261278857600085556127ce565b82601f106127a15782800160ff198235161785556127ce565b828001600101855582156127ce579182015b828111156127ce5782358255916020019190600101906127b3565b506127da9291506127de565b5090565b5b808211156127da57600081556001016127df565b60008083601f84011261280557600080fd5b5081356001600160401b0381111561281c57600080fd5b6020830191508360208260051b850101111561283757600080fd5b9250929050565b60008060006040848603121561285357600080fd5b8335925060208401356001600160401b0381111561287057600080fd5b61287c868287016127f3565b9497909650939450505050565b6000806000806000606086880312156128a157600080fd5b85356001600160401b03808211156128b857600080fd5b6128c489838a016127f3565b909750955060208801359150808211156128dd57600080fd5b506128ea888289016127f3565b96999598509660400135949350505050565b6001600160a01b038116811461275757600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561293d57600080fd5b8435612948816128fc565b93506020850135612958816128fc565b92506040850135915060608501356001600160401b038082111561297b57600080fd5b818701915087601f83011261298f57600080fd5b8135818111156129a1576129a1612911565b604051601f8201601f19908116603f011681019083821181831017156129c9576129c9612911565b816040528281528a60208487010111156129e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008083601f840112612a1857600080fd5b5081356001600160401b03811115612a2f57600080fd5b60208301915083602082850101111561283757600080fd5b600080600060408486031215612a5c57600080fd5b8335612a67816128fc565b925060208401356001600160401b03811115612a8257600080fd5b61287c86828701612a06565b600060208284031215612aa057600080fd5b5035919050565b60008060208385031215612aba57600080fd5b82356001600160401b03811115612ad057600080fd5b612adc858286016127f3565b90969095509350505050565b600081518084526020808501945080840160005b83811015612b215781516001600160a01b031687529582019590820190600101612afc565b509495945050505050565b60005b83811015612b47578181015183820152602001612b2f565b838111156109ea5750506000910152565b60008151808452612b70816020860160208601612b2c565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612bcc578284038952612bba848351612b58565b98850198935090840190600101612ba2565b5091979650505050505050565b600081518084526020808501808196508360051b810191508286016000805b86811015612c50578385038a52825180518087529087019087870190845b81811015612c3b5783516001600160a01b031683529289019291890191600101612c16565b50509a87019a95505091850191600101612bf8565b509298975050505050505050565b600081518084526020808501945080840160005b83811015612b2157815187529582019590820190600101612c72565b600081518084526020808501808196508360051b8101915082860160005b85811015612bcc578284038952612cc4848351612c5e565b98850198935090840190600101612cac565b60c081526000612ce960c0830189612ae8565b8281036020840152612cfb8189612ae8565b90508281036040840152612d0f8188612b84565b90508281036060840152612d238187612bd9565b90508281036080840152612d378186612bd9565b905082810360a0840152612d4b8185612c8e565b9998505050505050505050565b6001600160a01b038716815260c060208201819052600090612d7c90830188612b58565b8281036040840152612d8e8188612ae8565b90508281036060840152612da28187612ae8565b90508281036080840152612db68186612ae8565b905082810360a0840152612d4b8185612c5e565b600060208284031215612ddc57600080fd5b8135612362816128fc565b60008060408385031215612dfa57600080fd5b823591506020830135612e0c816128fc565b809150509250929050565b60c081526000612ce960c0830189612c5e565b600080600060408486031215612e3f57600080fd5b8335925060208401356001600160401b03811115612a8257600080fd5b602080825260059082015264042c2eae8d60db1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612eb957612eb9612e91565b5060010190565b8183526000602080850194508260005b85811015612b21578135612ee3816128fc565b6001600160a01b031687529582019590820190600101612ed0565b838152604060208201526000612f18604083018486612ec0565b95945050505050565b81835260006020808501808196506005915085821b81018560005b88811015612fa7578383038a528135601e19893603018112612f5d57600080fd5b880180356001600160401b03811115612f7557600080fd5b80871b36038a1315612f8657600080fd5b612f9385828a8501612ec0565b9b88019b9450505090850190600101612f3c565b509098975050505050505050565b606081526000612fc9606083018789612ec0565b8281036020840152612fdc818688612f21565b9150508260408301529695505050505050565b6000808335601e1984360301811261300657600080fd5b8301803591506001600160401b0382111561302057600080fd5b6020019150600581901b360382131561283757600080fd5b60006020828403121561304a57600080fd5b5051919050565b8881526001600160a01b0388811660208301528716604082015260c0606082018190526000906130849083018789612ec0565b8281036080840152613097818688612f21565b905082810360a08401526130ab8185612c8e565b9b9a5050505050505050505050565b8183823760009101908152919050565b81835260006001600160fb1b038311156130e357600080fd5b8260051b8083602087013760009401602001938452509192915050565b85815260606020820152600061311a606083018688612ec0565b828103604084015261312d8185876130ca565b98975050505050505050565b6020815260006109376020830184866130ca565b602081526000610937602083018486612ec0565b600181811c9082168061317557607f821691505b60208210810361319557634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156131ad57600080fd5b8151612362816128fc565b6000602082840312156131ca57600080fd5b8151801515811461236257600080fd5b600082198211156131ed576131ed612e91565b500190565b8481526001600160a01b038416602082015260806040820181905260009061321c90830185612ae8565b82810360608401526126748185612c5e565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60008282101561327657613276612e91565b500390565b634e487b7160e01b600052603160045260246000fd5b600082516132a3818460208701612b2c565b9190910192915050565b6020815260006122d46020830184612b5856fea26469706673582212209489100907b1f5bacc3f99904e769ef21d3807a082b8c1ebb940adefc2eb95cd64736f6c634300080d0033

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

0000000000000000000000004d5bcfc14282d930ee09bee96d3a7d5f338251c600000000000000000000000040247ba1012404134958da41b6bd93be1cd5bf3f000000000000000000000000329d9ca4fad82d10f128050535c138d3bd83e3970000000000000000000000008f1795bb3eb2046cc7a05cadd594030bdc374430

-----Decoded View---------------
Arg [0] : _multisig (address): 0x4D5bCfc14282d930eE09bee96D3a7D5F338251C6
Arg [1] : _voter (address): 0x40247ba1012404134958dA41b6Bd93Be1cD5BF3f
Arg [2] : _ve (address): 0x329D9cA4FAd82D10f128050535c138D3bd83E397
Arg [3] : _veDist (address): 0x8F1795bB3Eb2046CC7a05Cadd594030bdC374430

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d5bcfc14282d930ee09bee96d3a7d5f338251c6
Arg [1] : 00000000000000000000000040247ba1012404134958da41b6bd93be1cd5bf3f
Arg [2] : 000000000000000000000000329d9ca4fad82d10f128050535c138d3bd83e397
Arg [3] : 0000000000000000000000008f1795bb3eb2046cc7a05cadd594030bdc374430


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.