false
false
0

Contract Address Details

0x9FaE2529863bD691B4A7171bDfCf33C7ebB10a65

Token
SOY Finance token (SOY)
Creator
0x67c20e–f52b67 at 0x9e636b–f28290
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
254,009 Transactions
Transfers
10 Transfers
Gas Used
12,361,291,207
Last Balance Update
16289916
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
SoyToken




Optimization enabled
true
Compiler version
v0.8.0+commit.c7dfd78e




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:34:30.714833Z

Contract source code

// SPDX-License-Identifier: No License (None)

pragma solidity 0.8.0;

abstract contract IERC223Recipient { 
/**
 * @dev Standard ERC223 function that will handle incoming token transfers.
 *
 * @param _from  Token sender address.
 * @param _value Amount of tokens.
 * @param _data  Transaction metadata.
 */
    function tokenReceived(address _from, uint _value, bytes memory _data) external virtual;
}

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

abstract contract MinterSetup {
    bool public setup_mode = true;
    mapping (address => bool) public minters;
    
    modifier onlyMinter()
    {
        require(minters[msg.sender], "Only minter is allowed to do this");
        _;
    }
    
    modifier onlySetupMode()
    {
        require(setup_mode, "This is only allowed in setup mode");
        _;
    }
}


/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC223 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);
    event TransferData(bytes);

    /**
     * @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 Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC223 is Context, IERC223, MinterSetup {
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory new_name, string memory new_symbol) {
        _name = new_name;
        _symbol = new_symbol;
        _decimals = 18;
    }
    
    function standard() public pure returns (string memory)
    {
        return "erc223";
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC223-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount, new bytes(0));
        return true;
    }

    /**
     * @dev See {IERC223-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     * 
     */
    function transfer(address recipient, uint256 amount, bytes calldata data) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount, data);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transferFrom(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue);
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount, bytes memory data) internal virtual {
        require(sender != address(0), "ERC223: transfer from the zero address");
        require(recipient != address(0), "ERC223: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender] - amount;
        _balances[recipient] = _balances[recipient] + amount;
        
        if(recipient.isContract())
        {
            IERC223Recipient(recipient).tokenReceived(sender, amount, data);
        }
        emit Transfer(sender, recipient, amount);
        emit TransferData(data);
    }
    
    function _transferFrom(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC223: transfer from the zero address");
        require(recipient != address(0), "ERC223: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);
        
        _balances[sender] = _balances[sender] - amount;
        _balances[recipient] = _balances[recipient] + amount;
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] -= amount;
        _totalSupply -= amount;
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

// File: contracts/SoyToken.sol






// SoyToken with Governance.
contract SoyToken is ERC223("SOY Finance token", "SOY"), Ownable {
    function rescueERC20(address token, address to) external onlyOwner {
        uint256 value = IERC223(token).balanceOf(address(this));
        IERC223(token).transfer(to, value);
    }
    
    // @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyMinter {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    // A record of each accounts delegate
    mapping (address => address) internal _delegates;

    // A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    // A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    // The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    // The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    // The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

    // An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    // An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);
    
    // An event thats emitted when assign a minter
    event AssignMinter(address minter, bool status);

    constructor() {
        address msgSender = _msgSender();
        _owner = msg.sender;
        _mint(msg.sender, 120000000 * 10 ** 18);
        _moveDelegates(address(0), _delegates[msg.sender], 120000000 * 10 ** 18);
        emit OwnershipTransferred(address(0), msgSender);
    }
    
    function assignMinter(address _minter, bool _status) public onlyOwner onlySetupMode
    {
        minters[_minter] = _status;
        emit AssignMinter(_minter, _status);
    }
    
    function disableSetup() public onlyOwner onlySetupMode
    {
        setup_mode = false;
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "SOY::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "SOY::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "SOY::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "SOY::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying SOYs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld - amount;
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld + amount;
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "SOY::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal view returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AssignMinter","inputs":[{"type":"address","name":"minter","internalType":"address","indexed":false},{"type":"bool","name":"status","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TransferData","inputs":[{"type":"bytes","name":"","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"assignMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"},{"type":"bool","name":"_status","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint256","name":"votes","internalType":"uint256"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"delegator","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"disableSetup","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"minters","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueERC20","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"setup_mode","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"standard","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x60806040526000805460ff191660011790553480156200001e57600080fd5b50604080518082018252601181527029a7ac902334b730b731b2903a37b5b2b760791b602080830191825283518085019094526003845262534f5960e81b90840152815191929162000073916005916200057f565b508051620000899060069060208401906200057f565b50506007805460ff19166012179055506000620000a562000149565b60078054610100600160a81b03191633610100810291909117909155909150620000db906a6342fd08f00f63780000006200014d565b336000908152600860205260408120546200010c91906001600160a01b03166a6342fd08f00f637800000062000221565b6040516001600160a01b038216906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620007a4565b3390565b6001600160a01b0382166200017f5760405162461bcd60e51b815260040162000176906200067b565b60405180910390fd5b6200018d6000838362000398565b8060046000828254620001a19190620006c9565b90915550506001600160a01b03821660009081526002602052604081208054839290620001d0908490620006c9565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9062000215908590620006b2565b60405180910390a35050565b816001600160a01b0316836001600160a01b031614158015620002445750600081115b1562000398576001600160a01b03831615620002f1576001600160a01b0383166000908152600a602052604081205463ffffffff16908162000288576000620002cd565b6001600160a01b038516600090815260096020526040812090620002ae60018562000729565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000620002dd84836200070f565b9050620002ed868484846200039d565b5050505b6001600160a01b0382161562000398576001600160a01b0382166000908152600a602052604081205463ffffffff1690816200032f57600062000374565b6001600160a01b0384166000908152600960205260408120906200035560018562000729565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000620003848483620006c9565b905062000394858484846200039d565b5050505b505050565b6000620003c44360405180606001604052806033815260200162002960603391396200054c565b905060008463ffffffff161180156200042157506001600160a01b038516600090815260096020526040812063ffffffff8316916200040560018862000729565b63ffffffff908116825260208201929092526040016000205416145b156200046e576001600160a01b038516600090815260096020526040812083916200044e60018862000729565b63ffffffff16815260208101919091526040016000206001015562000500565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600983528581208a851682529092529390209151825463ffffffff191691161781559051600191820155620004cf908590620006e4565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72484846040516200053d929190620006bb565b60405180910390a25050505050565b6000816401000000008410620005775760405162461bcd60e51b815260040162000176919062000625565b509192915050565b8280546200058d9062000751565b90600052602060002090601f016020900481019282620005b15760008555620005fc565b82601f10620005cc57805160ff1916838001178555620005fc565b82800160010185558215620005fc579182015b82811115620005fc578251825591602001919060010190620005df565b506200060a9291506200060e565b5090565b5b808211156200060a57600081556001016200060f565b6000602080835283518082850152825b81811015620006535785810183015185820160400152820162000635565b81811115620006655783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b918252602082015260400190565b60008219821115620006df57620006df6200078e565b500190565b600063ffffffff8083168185168083038211156200070657620007066200078e565b01949350505050565b6000828210156200072457620007246200078e565b500390565b600063ffffffff838116908316818110156200074957620007496200078e565b039392505050565b6002810460018216806200076657607f821691505b602082108114156200078857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6121ac80620007b46000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063782d6fe11161010f578063b4b5ea57116100a2578063e7a324dc11610071578063e7a324dc146103f4578063f1127ed8146103fc578063f2fde38b1461041d578063f46eccc414610430576101f0565b8063b4b5ea57146103a8578063be45fd62146103bb578063c3cda520146103ce578063dd62ed3e146103e1576101f0565b8063a457c2d7116100de578063a457c2d714610372578063a9059cbb14610385578063a9b9cd1e14610398578063b28fc6a3146103a0576101f0565b8063782d6fe11461033c5780637ecebe001461034f5780638da5cb5b1461036257806395d89b411461036a576101f0565b8063557a2b9d116101875780635d799f87116101565780635d799f87146102ee5780636fcfff451461030157806370a0823114610321578063715018a614610334576101f0565b8063557a2b9d146102a0578063587cde1e146102b35780635a3b7e42146102d35780635c19a95c146102db576101f0565b806323b872dd116101c357806323b872dd14610250578063313ce56714610263578063395093511461027857806340c10f191461028b576101f0565b806306fdde03146101f5578063095ea7b31461021357806318160ddd1461023357806320606b7014610248575b600080fd5b6101fd610443565b60405161020a9190611c72565b60405180910390f35b6102266102213660046119aa565b6104d5565b60405161020a9190611bf8565b61023b6104f3565b60405161020a9190611c03565b61023b6104f9565b61022661025e366004611939565b61051d565b61026b610592565b60405161020a9190612010565b6102266102863660046119aa565b61059b565b61029e6102993660046119aa565b6105ea565b005b61029e6102ae366004611974565b610655565b6102c66102c13660046118ed565b610713565b60405161020a9190611b80565b6101fd610734565b61029e6102e93660046118ed565b610754565b61029e6102fc366004611907565b610761565b61031461030f3660046118ed565b6108a3565b60405161020a9190611fe9565b61023b61032f3660046118ed565b6108bb565b61029e6108d6565b61023b61034a3660046119aa565b610960565b61023b61035d3660046118ed565b610b85565b6102c6610b97565b6101fd610bab565b6102266103803660046119aa565b610bba565b6102266103933660046119aa565b610c09565b61029e610c2e565b610226610c96565b61023b6103b63660046118ed565b610c9f565b6102266103c93660046119d3565b610d14565b61029e6103dc366004611a55565b610d6a565b61023b6103ef366004611907565b610f45565b61023b610f70565b61040f61040a366004611ab3565b610f94565b60405161020a929190611ffa565b61029e61042b3660046118ed565b610fc1565b61022661043e3660046118ed565b611088565b606060058054610452906120c9565b80601f016020809104026020016040519081016040528092919081815260200182805461047e906120c9565b80156104cb5780601f106104a0576101008083540402835291602001916104cb565b820191906000526020600020905b8154815290600101906020018083116104ae57829003601f168201915b5050505050905090565b60006104e96104e261109d565b84846110a1565b5060015b92915050565b60045490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600061052a848484611155565b6105888461053661109d565b6001600160a01b0387166000908152600360205260408120869161055861109d565b6001600160a01b03166001600160a01b0316815260200190815260200160002054610583919061208d565b6110a1565b5060019392505050565b60075460ff1690565b60006104e96105a861109d565b8484600360006105b661109d565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054610583919061201e565b3360009081526001602052604090205460ff166106225760405162461bcd60e51b815260040161061990611e94565b60405180910390fd5b61062c8282611252565b6001600160a01b03808316600090815260086020526040812054610651921683611312565b5050565b61065d61109d565b60075461010090046001600160a01b0390811691161461068f5760405162461bcd60e51b815260040161061990611e19565b60005460ff166106b15760405162461bcd60e51b815260040161061990611d96565b6001600160a01b03821660009081526001602052604090819020805460ff1916831515179055517fc0683d49b30b07504a325a45406936546070e67d5d75ab8bff33edc236d32762906107079084908490611b94565b60405180910390a15050565b6001600160a01b03808216600090815260086020526040902054165b919050565b60408051808201909152600681526565726332323360d01b602082015290565b61075e3382611476565b50565b61076961109d565b60075461010090046001600160a01b0390811691161461079b5760405162461bcd60e51b815260040161061990611e19565b6040516370a0823160e01b81526000906001600160a01b038416906370a08231906107ca903090600401611b80565b60206040518083038186803b1580156107e257600080fd5b505afa1580156107f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190611b02565b60405163a9059cbb60e01b81529091506001600160a01b0384169063a9059cbb9061084b9085908590600401611baf565b602060405180830381600087803b15801561086557600080fd5b505af1158015610879573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089d9190611ae6565b50505050565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b6108de61109d565b60075461010090046001600160a01b039081169116146109105760405162461bcd60e51b815260040161061990611e19565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b60004382106109815760405162461bcd60e51b815260040161061990611f5e565b6001600160a01b0383166000908152600a602052604090205463ffffffff16806109af5760009150506104ed565b6001600160a01b038416600090815260096020526040812084916109d46001856120a4565b63ffffffff90811682526020820192909252604001600020541611610a3d576001600160a01b038416600090815260096020526040812090610a176001846120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101549150506104ed565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610a785760009150506104ed565b600080610a866001846120a4565b90505b8163ffffffff168163ffffffff161115610b4e5760006002610aab84846120a4565b610ab5919061205e565b610abf90836120a4565b6001600160a01b038816600090815260096020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610b22576020015194506104ed9350505050565b805163ffffffff16871115610b3957819350610b47565b610b446001836120a4565b92505b5050610a89565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b600b6020526000908152604090205481565b60075461010090046001600160a01b031690565b606060068054610452906120c9565b60006104e9610bc761109d565b848460036000610bd561109d565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054610583919061208d565b60006104e9610c1661109d565b60408051600081526020810190915285908590611505565b610c3661109d565b60075461010090046001600160a01b03908116911614610c685760405162461bcd60e51b815260040161061990611e19565b60005460ff16610c8a5760405162461bcd60e51b815260040161061990611d96565b6000805460ff19169055565b60005460ff1681565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610cca576000610d0d565b6001600160a01b038316600090815260096020526040812090610cee6001846120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b6000610d5f610d2161109d565b868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061150592505050565b506001949350505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610d95610443565b80519060200120610da46116c5565b30604051602001610db89493929190611c30565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001610e099493929190611c0c565b60405160208183030381529060405280519060200120905060008282604051602001610e36929190611b65565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051610e739493929190611c54565b6020604051602081039080840390855afa158015610e95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ec85760405162461bcd60e51b815260040161061990611c85565b6001600160a01b0381166000908152600b60205260408120805491610eec83612104565b919050558914610f0e5760405162461bcd60e51b815260040161061990611dd8565b87421115610f2e5760405162461bcd60e51b815260040161061990611f19565b610f38818b611476565b505050505b505050505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b610fc961109d565b60075461010090046001600160a01b03908116911614610ffb5760405162461bcd60e51b815260040161061990611e19565b6001600160a01b0381166110215760405162461bcd60e51b815260040161061990611cca565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60016020526000908152604090205460ff1681565b3390565b6001600160a01b0383166110c75760405162461bcd60e51b815260040161061990611ed5565b6001600160a01b0382166110ed5760405162461bcd60e51b815260040161061990611d10565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611148908590611c03565b60405180910390a3505050565b6001600160a01b03831661117b5760405162461bcd60e51b815260040161061990611e4e565b6001600160a01b0382166111a15760405162461bcd60e51b815260040161061990611d52565b6111ac838383611471565b6001600160a01b0383166000908152600260205260409020546111d090829061208d565b6001600160a01b03808516600090815260026020526040808220939093559084168152205461120090829061201e565b6001600160a01b0380841660008181526002602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611148908590611c03565b6001600160a01b0382166112785760405162461bcd60e51b815260040161061990611fa4565b61128460008383611471565b8060046000828254611296919061201e565b90915550506001600160a01b038216600090815260026020526040812080548392906112c390849061201e565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611306908590611c03565b60405180910390a35050565b816001600160a01b0316836001600160a01b0316141580156113345750600081115b15611471576001600160a01b038316156113d7576001600160a01b0383166000908152600a602052604081205463ffffffff1690816113745760006113b7565b6001600160a01b0385166000908152600960205260408120906113986001856120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006113c5848361208d565b90506113d3868484846116c9565b5050505b6001600160a01b03821615611471576001600160a01b0382166000908152600a602052604081205463ffffffff169081611412576000611455565b6001600160a01b0384166000908152600960205260408120906114366001856120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611463848361201e565b9050610f3d858484846116c9565b505050565b6001600160a01b038083166000908152600860205260408120549091169061149d846108bb565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461089d828483611312565b6001600160a01b03841661152b5760405162461bcd60e51b815260040161061990611e4e565b6001600160a01b0383166115515760405162461bcd60e51b815260040161061990611d52565b61155c848484611471565b6001600160a01b03841660009081526002602052604090205461158090839061208d565b6001600160a01b0380861660009081526002602052604080822093909355908516815220546115b090839061201e565b6001600160a01b0384166000818152600260205260409020919091556115d59061186a565b1561163d576040516344a1f60160e11b81526001600160a01b03841690638943ec029061160a90879086908690600401611bc8565b600060405180830381600087803b15801561162457600080fd5b505af1158015611638573d6000803e3d6000fd5b505050505b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116809190611c03565b60405180910390a37f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516116b79190611c72565b60405180910390a150505050565b4690565b60006116ed43604051806060016040528060338152602001612144603391396118a6565b905060008463ffffffff1611801561174757506001600160a01b038516600090815260096020526040812063ffffffff83169161172b6001886120a4565b63ffffffff908116825260208201929092526040016000205416145b15611790576001600160a01b038516600090815260096020526040812083916117716001886120a4565b63ffffffff168152602081019190915260400160002060010155611820565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600983528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556117ef908590612036565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724848460405161185b929190611fdb565b60405180910390a25050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061189e57508115155b949350505050565b60008164010000000084106118ce5760405162461bcd60e51b81526004016106199190611c72565b509192915050565b80356001600160a01b038116811461072f57600080fd5b6000602082840312156118fe578081fd5b610d0d826118d6565b60008060408385031215611919578081fd5b611922836118d6565b9150611930602084016118d6565b90509250929050565b60008060006060848603121561194d578081fd5b611956846118d6565b9250611964602085016118d6565b9150604084013590509250925092565b60008060408385031215611986578182fd5b61198f836118d6565b9150602083013561199f81612135565b809150509250929050565b600080604083850312156119bc578182fd5b6119c5836118d6565b946020939093013593505050565b600080600080606085870312156119e8578081fd5b6119f1856118d6565b935060208501359250604085013567ffffffffffffffff80821115611a14578283fd5b818701915087601f830112611a27578283fd5b813581811115611a35578384fd5b886020828501011115611a46578384fd5b95989497505060200194505050565b60008060008060008060c08789031215611a6d578182fd5b611a76876118d6565b95506020870135945060408701359350606087013560ff81168114611a99578283fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215611ac5578182fd5b611ace836118d6565b9150602083013563ffffffff8116811461199f578182fd5b600060208284031215611af7578081fd5b8151610d0d81612135565b600060208284031215611b13578081fd5b5051919050565b60008151808452815b81811015611b3f57602081850181015186830182015201611b23565b81811115611b505782602083870101525b50601f01601f19169290920160200192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b038516825283602083015260606040830152611bef6060830184611b1a565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252610d0d6020830184611b1a565b60208082526025908201527f534f593a3a64656c656761746542795369673a20696e76616c6964207369676e604082015264617475726560d81b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526024908201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f54686973206973206f6e6c7920616c6c6f77656420696e207365747570206d6f604082015261646560f01b606082015260800190565b60208082526021908201527f534f593a3a64656c656761746542795369673a20696e76616c6964206e6f6e636040820152606560f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526021908201527f4f6e6c79206d696e74657220697320616c6c6f77656420746f20646f207468696040820152607360f81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f534f593a3a64656c656761746542795369673a207369676e61747572652065786040820152641c1a5c995960da1b606082015260800190565b60208082526026908201527f534f593a3a6765745072696f72566f7465733a206e6f742079657420646574656040820152651c9b5a5b995960d21b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b63ffffffff91909116815260200190565b63ffffffff929092168252602082015260400190565b60ff91909116815260200190565b600082198211156120315761203161211f565b500190565b600063ffffffff8083168185168083038211156120555761205561211f565b01949350505050565b600063ffffffff8084168061208157634e487b7160e01b83526012600452602483fd5b92169190910492915050565b60008282101561209f5761209f61211f565b500390565b600063ffffffff838116908316818110156120c1576120c161211f565b039392505050565b6002810460018216806120dd57607f821691505b602082108114156120fe57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121185761211861211f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b801515811461075e57600080fdfe534f593a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a264697066735822122079d6c31b5e4742e7f861a8c36d2a476ff75a8d884c8e748795298dd32994cf4664736f6c63430008000033534f593a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063782d6fe11161010f578063b4b5ea57116100a2578063e7a324dc11610071578063e7a324dc146103f4578063f1127ed8146103fc578063f2fde38b1461041d578063f46eccc414610430576101f0565b8063b4b5ea57146103a8578063be45fd62146103bb578063c3cda520146103ce578063dd62ed3e146103e1576101f0565b8063a457c2d7116100de578063a457c2d714610372578063a9059cbb14610385578063a9b9cd1e14610398578063b28fc6a3146103a0576101f0565b8063782d6fe11461033c5780637ecebe001461034f5780638da5cb5b1461036257806395d89b411461036a576101f0565b8063557a2b9d116101875780635d799f87116101565780635d799f87146102ee5780636fcfff451461030157806370a0823114610321578063715018a614610334576101f0565b8063557a2b9d146102a0578063587cde1e146102b35780635a3b7e42146102d35780635c19a95c146102db576101f0565b806323b872dd116101c357806323b872dd14610250578063313ce56714610263578063395093511461027857806340c10f191461028b576101f0565b806306fdde03146101f5578063095ea7b31461021357806318160ddd1461023357806320606b7014610248575b600080fd5b6101fd610443565b60405161020a9190611c72565b60405180910390f35b6102266102213660046119aa565b6104d5565b60405161020a9190611bf8565b61023b6104f3565b60405161020a9190611c03565b61023b6104f9565b61022661025e366004611939565b61051d565b61026b610592565b60405161020a9190612010565b6102266102863660046119aa565b61059b565b61029e6102993660046119aa565b6105ea565b005b61029e6102ae366004611974565b610655565b6102c66102c13660046118ed565b610713565b60405161020a9190611b80565b6101fd610734565b61029e6102e93660046118ed565b610754565b61029e6102fc366004611907565b610761565b61031461030f3660046118ed565b6108a3565b60405161020a9190611fe9565b61023b61032f3660046118ed565b6108bb565b61029e6108d6565b61023b61034a3660046119aa565b610960565b61023b61035d3660046118ed565b610b85565b6102c6610b97565b6101fd610bab565b6102266103803660046119aa565b610bba565b6102266103933660046119aa565b610c09565b61029e610c2e565b610226610c96565b61023b6103b63660046118ed565b610c9f565b6102266103c93660046119d3565b610d14565b61029e6103dc366004611a55565b610d6a565b61023b6103ef366004611907565b610f45565b61023b610f70565b61040f61040a366004611ab3565b610f94565b60405161020a929190611ffa565b61029e61042b3660046118ed565b610fc1565b61022661043e3660046118ed565b611088565b606060058054610452906120c9565b80601f016020809104026020016040519081016040528092919081815260200182805461047e906120c9565b80156104cb5780601f106104a0576101008083540402835291602001916104cb565b820191906000526020600020905b8154815290600101906020018083116104ae57829003601f168201915b5050505050905090565b60006104e96104e261109d565b84846110a1565b5060015b92915050565b60045490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600061052a848484611155565b6105888461053661109d565b6001600160a01b0387166000908152600360205260408120869161055861109d565b6001600160a01b03166001600160a01b0316815260200190815260200160002054610583919061208d565b6110a1565b5060019392505050565b60075460ff1690565b60006104e96105a861109d565b8484600360006105b661109d565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054610583919061201e565b3360009081526001602052604090205460ff166106225760405162461bcd60e51b815260040161061990611e94565b60405180910390fd5b61062c8282611252565b6001600160a01b03808316600090815260086020526040812054610651921683611312565b5050565b61065d61109d565b60075461010090046001600160a01b0390811691161461068f5760405162461bcd60e51b815260040161061990611e19565b60005460ff166106b15760405162461bcd60e51b815260040161061990611d96565b6001600160a01b03821660009081526001602052604090819020805460ff1916831515179055517fc0683d49b30b07504a325a45406936546070e67d5d75ab8bff33edc236d32762906107079084908490611b94565b60405180910390a15050565b6001600160a01b03808216600090815260086020526040902054165b919050565b60408051808201909152600681526565726332323360d01b602082015290565b61075e3382611476565b50565b61076961109d565b60075461010090046001600160a01b0390811691161461079b5760405162461bcd60e51b815260040161061990611e19565b6040516370a0823160e01b81526000906001600160a01b038416906370a08231906107ca903090600401611b80565b60206040518083038186803b1580156107e257600080fd5b505afa1580156107f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081a9190611b02565b60405163a9059cbb60e01b81529091506001600160a01b0384169063a9059cbb9061084b9085908590600401611baf565b602060405180830381600087803b15801561086557600080fd5b505af1158015610879573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089d9190611ae6565b50505050565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b6108de61109d565b60075461010090046001600160a01b039081169116146109105760405162461bcd60e51b815260040161061990611e19565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b60004382106109815760405162461bcd60e51b815260040161061990611f5e565b6001600160a01b0383166000908152600a602052604090205463ffffffff16806109af5760009150506104ed565b6001600160a01b038416600090815260096020526040812084916109d46001856120a4565b63ffffffff90811682526020820192909252604001600020541611610a3d576001600160a01b038416600090815260096020526040812090610a176001846120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101549150506104ed565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610a785760009150506104ed565b600080610a866001846120a4565b90505b8163ffffffff168163ffffffff161115610b4e5760006002610aab84846120a4565b610ab5919061205e565b610abf90836120a4565b6001600160a01b038816600090815260096020908152604080832063ffffffff8086168552908352928190208151808301909252805490931680825260019093015491810191909152919250871415610b22576020015194506104ed9350505050565b805163ffffffff16871115610b3957819350610b47565b610b446001836120a4565b92505b5050610a89565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b600b6020526000908152604090205481565b60075461010090046001600160a01b031690565b606060068054610452906120c9565b60006104e9610bc761109d565b848460036000610bd561109d565b6001600160a01b03908116825260208083019390935260409182016000908120918b1681529252902054610583919061208d565b60006104e9610c1661109d565b60408051600081526020810190915285908590611505565b610c3661109d565b60075461010090046001600160a01b03908116911614610c685760405162461bcd60e51b815260040161061990611e19565b60005460ff16610c8a5760405162461bcd60e51b815260040161061990611d96565b6000805460ff19169055565b60005460ff1681565b6001600160a01b0381166000908152600a602052604081205463ffffffff1680610cca576000610d0d565b6001600160a01b038316600090815260096020526040812090610cee6001846120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b6000610d5f610d2161109d565b868686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061150592505050565b506001949350505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610d95610443565b80519060200120610da46116c5565b30604051602001610db89493929190611c30565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001610e099493929190611c0c565b60405160208183030381529060405280519060200120905060008282604051602001610e36929190611b65565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051610e739493929190611c54565b6020604051602081039080840390855afa158015610e95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ec85760405162461bcd60e51b815260040161061990611c85565b6001600160a01b0381166000908152600b60205260408120805491610eec83612104565b919050558914610f0e5760405162461bcd60e51b815260040161061990611dd8565b87421115610f2e5760405162461bcd60e51b815260040161061990611f19565b610f38818b611476565b505050505b505050505050565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b610fc961109d565b60075461010090046001600160a01b03908116911614610ffb5760405162461bcd60e51b815260040161061990611e19565b6001600160a01b0381166110215760405162461bcd60e51b815260040161061990611cca565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60016020526000908152604090205460ff1681565b3390565b6001600160a01b0383166110c75760405162461bcd60e51b815260040161061990611ed5565b6001600160a01b0382166110ed5760405162461bcd60e51b815260040161061990611d10565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611148908590611c03565b60405180910390a3505050565b6001600160a01b03831661117b5760405162461bcd60e51b815260040161061990611e4e565b6001600160a01b0382166111a15760405162461bcd60e51b815260040161061990611d52565b6111ac838383611471565b6001600160a01b0383166000908152600260205260409020546111d090829061208d565b6001600160a01b03808516600090815260026020526040808220939093559084168152205461120090829061201e565b6001600160a01b0380841660008181526002602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611148908590611c03565b6001600160a01b0382166112785760405162461bcd60e51b815260040161061990611fa4565b61128460008383611471565b8060046000828254611296919061201e565b90915550506001600160a01b038216600090815260026020526040812080548392906112c390849061201e565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611306908590611c03565b60405180910390a35050565b816001600160a01b0316836001600160a01b0316141580156113345750600081115b15611471576001600160a01b038316156113d7576001600160a01b0383166000908152600a602052604081205463ffffffff1690816113745760006113b7565b6001600160a01b0385166000908152600960205260408120906113986001856120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006113c5848361208d565b90506113d3868484846116c9565b5050505b6001600160a01b03821615611471576001600160a01b0382166000908152600a602052604081205463ffffffff169081611412576000611455565b6001600160a01b0384166000908152600960205260408120906114366001856120a4565b63ffffffff1663ffffffff168152602001908152602001600020600101545b90506000611463848361201e565b9050610f3d858484846116c9565b505050565b6001600160a01b038083166000908152600860205260408120549091169061149d846108bb565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a461089d828483611312565b6001600160a01b03841661152b5760405162461bcd60e51b815260040161061990611e4e565b6001600160a01b0383166115515760405162461bcd60e51b815260040161061990611d52565b61155c848484611471565b6001600160a01b03841660009081526002602052604090205461158090839061208d565b6001600160a01b0380861660009081526002602052604080822093909355908516815220546115b090839061201e565b6001600160a01b0384166000818152600260205260409020919091556115d59061186a565b1561163d576040516344a1f60160e11b81526001600160a01b03841690638943ec029061160a90879086908690600401611bc8565b600060405180830381600087803b15801561162457600080fd5b505af1158015611638573d6000803e3d6000fd5b505050505b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116809190611c03565b60405180910390a37f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad976816040516116b79190611c72565b60405180910390a150505050565b4690565b60006116ed43604051806060016040528060338152602001612144603391396118a6565b905060008463ffffffff1611801561174757506001600160a01b038516600090815260096020526040812063ffffffff83169161172b6001886120a4565b63ffffffff908116825260208201929092526040016000205416145b15611790576001600160a01b038516600090815260096020526040812083916117716001886120a4565b63ffffffff168152602081019190915260400160002060010155611820565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600983528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556117ef908590612036565b6001600160a01b0386166000908152600a60205260409020805463ffffffff191663ffffffff929092169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724848460405161185b929190611fdb565b60405180910390a25050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061189e57508115155b949350505050565b60008164010000000084106118ce5760405162461bcd60e51b81526004016106199190611c72565b509192915050565b80356001600160a01b038116811461072f57600080fd5b6000602082840312156118fe578081fd5b610d0d826118d6565b60008060408385031215611919578081fd5b611922836118d6565b9150611930602084016118d6565b90509250929050565b60008060006060848603121561194d578081fd5b611956846118d6565b9250611964602085016118d6565b9150604084013590509250925092565b60008060408385031215611986578182fd5b61198f836118d6565b9150602083013561199f81612135565b809150509250929050565b600080604083850312156119bc578182fd5b6119c5836118d6565b946020939093013593505050565b600080600080606085870312156119e8578081fd5b6119f1856118d6565b935060208501359250604085013567ffffffffffffffff80821115611a14578283fd5b818701915087601f830112611a27578283fd5b813581811115611a35578384fd5b886020828501011115611a46578384fd5b95989497505060200194505050565b60008060008060008060c08789031215611a6d578182fd5b611a76876118d6565b95506020870135945060408701359350606087013560ff81168114611a99578283fd5b9598949750929560808101359460a0909101359350915050565b60008060408385031215611ac5578182fd5b611ace836118d6565b9150602083013563ffffffff8116811461199f578182fd5b600060208284031215611af7578081fd5b8151610d0d81612135565b600060208284031215611b13578081fd5b5051919050565b60008151808452815b81811015611b3f57602081850181015186830182015201611b23565b81811115611b505782602083870101525b50601f01601f19169290920160200192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b038516825283602083015260606040830152611bef6060830184611b1a565b95945050505050565b901515815260200190565b90815260200190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252610d0d6020830184611b1a565b60208082526025908201527f534f593a3a64656c656761746542795369673a20696e76616c6964207369676e604082015264617475726560d81b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526024908201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f54686973206973206f6e6c7920616c6c6f77656420696e207365747570206d6f604082015261646560f01b606082015260800190565b60208082526021908201527f534f593a3a64656c656761746542795369673a20696e76616c6964206e6f6e636040820152606560f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526021908201527f4f6e6c79206d696e74657220697320616c6c6f77656420746f20646f207468696040820152607360f81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f534f593a3a64656c656761746542795369673a207369676e61747572652065786040820152641c1a5c995960da1b606082015260800190565b60208082526026908201527f534f593a3a6765745072696f72566f7465733a206e6f742079657420646574656040820152651c9b5a5b995960d21b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b918252602082015260400190565b63ffffffff91909116815260200190565b63ffffffff929092168252602082015260400190565b60ff91909116815260200190565b600082198211156120315761203161211f565b500190565b600063ffffffff8083168185168083038211156120555761205561211f565b01949350505050565b600063ffffffff8084168061208157634e487b7160e01b83526012600452602483fd5b92169190910492915050565b60008282101561209f5761209f61211f565b500390565b600063ffffffff838116908316818110156120c1576120c161211f565b039392505050565b6002810460018216806120dd57607f821691505b602082108114156120fe57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121185761211861211f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b801515811461075e57600080fdfe534f593a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473a264697066735822122079d6c31b5e4742e7f861a8c36d2a476ff75a8d884c8e748795298dd32994cf4664736f6c63430008000033