false
true
0

Contract Address Details

0x32fB5663619A657839A80133994E45c5e5cDf427

Token
EMIT (EMIT)
Creator
0xb8386e–f548d1 at 0xa89cd1–d0ebe7
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
3,273 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25876080
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
EMIT




Optimization enabled
true
Compiler version
v0.8.20+commit.a1b79de6




Optimization runs
200
EVM Version
paris




Verified at
2025-03-27T13:26:27.977766Z

Constructor Arguments

0x000000000000000000000000133f4205141d869a72724910331c0f0b7235df7b

Arg [0] (address) : 0x133f4205141d869a72724910331c0f0b7235df7b

              

contracts/EMIT.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "./interfaces/IUniswapV2Router02.sol";
import "./interfaces/IUniswapV2Factory.sol";
import "./interfaces/IEmitRewards.sol";
import "./interfaces/IVotingToken.sol";

contract EMIT is ERC20, Ownable {
    using SafeMath for uint256; 
    
    struct Proposal {
        uint256 id;
        string description;
        uint256 forVotes;
        uint256 againstVotes;
        uint256 startTime;
        uint256 endTime;
        bool executed;
        address proposer;
        mapping(address => bool) hasVoted;
    }
    
    uint256 public votingPeriod = 3 days;
    uint256 public PROPOSAL_THRESHOLD_BPS = 100; //1%
    uint256 public QUORUM_BPS = 1000; //10%
    uint256 public constant BPS_DENOMINATOR = 10000;

    address public masterchef;
    address public emitters;
    address public emitRewards;
    address public votingToken;

    mapping (address => bool) public isWhitelisted;
    uint256 public totalBurned;

    address public pair;

    IUniswapV2Router02 public pulseXRouter = IUniswapV2Router02(0x165C3410fC91EF562C50559f7d2289fEbed552d9);

    bool public swapEnabled = true;
    uint256 public swapThreshold = 50 ether;
    uint256 public stakeThreshold = 50000 ether;
    bool inSwap;

    uint256 burnFee = 100;
    uint256 stakeFee = 400;

    modifier swapping() { inSwap = true; _; inSwap = false; }
    
    mapping(uint256 => Proposal) public proposals;
    uint256 public proposalCount;
    
    event ProposalCreated(uint256 indexed proposalId, address indexed proposer, string description, uint256 startTime, uint256 endTime);
    event VoteCast(address indexed voter, uint256 indexed proposalId, bool support, uint256 weight);
    event ProposalExecuted(uint256 indexed proposalId);
    event VotingParametersUpdated(uint256 votingPeriod, uint256 proposalThresholdBps, uint256 quorumBps);
    event Burned(uint256 amount);

    constructor(address _emitters
    ) ERC20("EMIT", "EMIT") {
        emitters = _emitters;

        pair = IUniswapV2Factory(pulseXRouter.factory()).createPair(
            address(this),
            pulseXRouter.WPLS()
        );

        isWhitelisted[address(this)] =  true;
        isWhitelisted[msg.sender] = true;

        _mint(msg.sender, 100_000 * 10**18);
        _approve(address(this), address(pulseXRouter), type(uint256).max);
    }

    receive() external payable {}

    function shouldSwapBack() internal view returns (bool) {
        return msg.sender != pair
        && !inSwap
        && swapEnabled
        && balanceOf(address(this)) >= swapThreshold;
    }

    function swapBack() internal swapping {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = pulseXRouter.WPLS();

        pulseXRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            swapThreshold,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 balance = address(this).balance;
        if (balance >= stakeThreshold) {
            try IEmitRewards(emitRewards).topUp{value: balance}() {} catch {}
        }
    }

    function _transfer(address sender, address recipient, uint256 amount) internal override(ERC20){
        if (isWhitelisted[recipient] || isWhitelisted[sender]) {
            super._transfer(sender, recipient, amount);
        } else {
            if(inSwap) { return super._transfer(sender, recipient, amount); }
            if(shouldSwapBack()) {swapBack();}

            uint256 toBurn = amount * burnFee / 10000;
            uint256 toStake = amount * stakeFee / 10000;
            uint256 afterFees = amount - toBurn - toStake;

            totalBurned += toBurn;
            _burn(sender, toBurn);
            emit Burned(toBurn);
            
            super._transfer(sender, address(this), toStake);
            super._transfer(sender, recipient, afterFees);
        }
    }

    function getProposalThreshold() public view returns (uint256) {
        return IVotingToken(votingToken).totalSupply().mul(PROPOSAL_THRESHOLD_BPS).div(BPS_DENOMINATOR);
    }
    
    function getQuorum() public view returns (uint256) {
        return IVotingToken(votingToken).totalSupply().mul(QUORUM_BPS).div(BPS_DENOMINATOR);
    }

    function mint(uint256 _amount) public onlyMasterchef returns (bool) {
        return mintFor(address(this), _amount);
    }

    function burn(uint256 _amount) public {
        totalBurned += _amount;
        _burn(msg.sender, _amount);
        emit Burned(_amount);
    }

    function setMasterchef(address _masterchef) external onlyOwner {
        masterchef = _masterchef;
    }
    
    // Add onlyMasterchef modifier
    modifier onlyMasterchef() {
        require(msg.sender == masterchef, "Caller is not the Masterchef");
        _;
    }

    function safeTokenTransfer(address _to, uint256 _amount) public onlyMasterchef {
        uint256 balance = balanceOf(address(this));
        if (_amount > balance) {
            _transfer(address(this), _to, balance);
        } else {
            _transfer(address(this), _to, _amount);
        }
    }

    function mintFor(
        address _address,
        uint256 _amount
    ) public onlyMasterchef returns (bool) {
        _mint(_address, _amount);
        return true;
    }
    
    function createProposal(string memory description) external returns (uint256) {
        require(IVotingToken(votingToken).balanceOf(msg.sender) >= getProposalThreshold(), "proposer votes below threshold");
        require(IERC721(emitters).balanceOf(msg.sender) > 0, "must hold emitters nft");
        
        proposalCount++;
        Proposal storage proposal = proposals[proposalCount];
        proposal.id = proposalCount;
        proposal.description = description;
        proposal.proposer = msg.sender;
        proposal.startTime = block.timestamp;
        proposal.endTime = block.timestamp + votingPeriod;
        
        emit ProposalCreated(proposalCount, msg.sender, description, proposal.startTime, proposal.endTime);
        
        return proposalCount;
    }
    
    function castVote(uint256 proposalId, bool support) external {
        Proposal storage proposal = proposals[proposalId];
        require(block.timestamp <= proposal.endTime, "voting is closed");
        require(!proposal.hasVoted[msg.sender], "already voted");
        require(IERC721(emitters).balanceOf(msg.sender) > 0, "must hold emitters nft");
        
        uint256 votes = IVotingToken(votingToken).balanceOf(msg.sender);
        require(votes > 0, "no voting power");
        
        proposal.hasVoted[msg.sender] = true;
        
        if (support) {
            proposal.forVotes = proposal.forVotes.add(votes);
        } else {
            proposal.againstVotes = proposal.againstVotes.add(votes);
        }
        
        emit VoteCast(msg.sender, proposalId, support, votes);
    }
    
    function executeProposal(uint256 proposalId) external {
        Proposal storage proposal = proposals[proposalId];
        require(block.timestamp > proposal.endTime, "voting still active");
        require(!proposal.executed, "proposal already executed");
        
        uint256 totalVotes = proposal.forVotes.add(proposal.againstVotes);
        require(totalVotes >= getQuorum(), "quorum not reached");
        require(proposal.forVotes > proposal.againstVotes, "proposal defeated");
        
        proposal.executed = true;
        
        emit ProposalExecuted(proposalId);
    }
    
    function hasVoted(uint256 proposalId, address voter) external view returns (bool) {
        return proposals[proposalId].hasVoted[voter];
    }
    
    function getProposalState(uint256 proposalId) external view returns (
        uint256 forVotes, 
        uint256 againstVotes, 
        bool active, 
        bool passed
    ) {
        Proposal storage proposal = proposals[proposalId];
        forVotes = proposal.forVotes;
        againstVotes = proposal.againstVotes;
        active = block.timestamp <= proposal.endTime;
        
        if (!active) {
            uint256 totalVotes = forVotes.add(againstVotes);
            passed = totalVotes >= getQuorum() && forVotes > againstVotes;
        }
    }
    
    function setVotingParameters(
        uint256 _votingPeriod,
        uint256 _proposalThresholdBps,
        uint256 _quorumBps
    ) external onlyOwner {
        require(_proposalThresholdBps <= BPS_DENOMINATOR, "threshold BPS exceeds denominator");
        require(_quorumBps <= BPS_DENOMINATOR, "quorum BPS exceeds denominator");
        
        votingPeriod = _votingPeriod;
        PROPOSAL_THRESHOLD_BPS = _proposalThresholdBps;
        QUORUM_BPS = _quorumBps;
        
        emit VotingParametersUpdated(_votingPeriod, _proposalThresholdBps, _quorumBps);
    }

    function setEmitters(address _emitters) external onlyOwner {
        emitters = _emitters;
    }

    function setVotingToken(address _votingToken) external onlyOwner {
        votingToken = _votingToken;
    }

    function addWhitelist(address account) external onlyOwner {
        isWhitelisted[account] = true;
    }

    function removeWhitelist(address account) external onlyOwner {
        isWhitelisted[account] = false;
    }

    function updateEmitRewards(address _emitRewards) external onlyOwner {
        emitRewards = _emitRewards;
    }

    function updateStakeThreshold(uint256 _amount) external onlyOwner {
        stakeThreshold = _amount;
    }

    function updateSwapThreshold(uint256 _amount) external onlyOwner {
        swapThreshold = _amount;
    }
}
        

@openzeppelin/contracts/access/Ownable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

@openzeppelin/contracts/token/ERC20/ERC20.sol

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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 ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 default value returned by this function, unless
     * it's overridden.
     *
     * 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 virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @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 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 Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
          

@openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
          

@openzeppelin/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}
          

@openzeppelin/contracts/utils/Context.sol

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

pragma solidity ^0.8.0;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

@openzeppelin/contracts/utils/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
          

@openzeppelin/contracts/utils/math/SafeMath.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}
          

contracts/interfaces/IEmitRewards.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

interface IEmitRewards {
    function periodFinish() external view returns(uint256);
    function notifyRewardAmount(uint256) external;
    function topUp() external payable;
    function owner() external view returns(address);
    function transferOwnership(address) external;
}
          

contracts/interfaces/IUniswapV2Factory.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
          

contracts/interfaces/IUniswapV2Router01.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    // function WETH() external pure returns (address);
    function WPLS() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
          

contracts/interfaces/IUniswapV2Router02.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
          

contracts/interfaces/IVotingToken.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IVotingToken {
    function mint(address to, uint256 amount) external;
    function burn(address from, uint256 amount) external;
    function balanceOf(address account) external view returns (uint256);
    function totalSupply() external view returns (uint256);
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_emitters","internalType":"address"}]},{"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":"Burned","inputs":[{"type":"uint256","name":"amount","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":"ProposalCreated","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true},{"type":"address","name":"proposer","internalType":"address","indexed":true},{"type":"string","name":"description","internalType":"string","indexed":false},{"type":"uint256","name":"startTime","internalType":"uint256","indexed":false},{"type":"uint256","name":"endTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ProposalExecuted","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256","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":"VoteCast","inputs":[{"type":"address","name":"voter","internalType":"address","indexed":true},{"type":"uint256","name":"proposalId","internalType":"uint256","indexed":true},{"type":"bool","name":"support","internalType":"bool","indexed":false},{"type":"uint256","name":"weight","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"VotingParametersUpdated","inputs":[{"type":"uint256","name":"votingPeriod","internalType":"uint256","indexed":false},{"type":"uint256","name":"proposalThresholdBps","internalType":"uint256","indexed":false},{"type":"uint256","name":"quorumBps","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BPS_DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"PROPOSAL_THRESHOLD_BPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"QUORUM_BPS","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addWhitelist","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"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":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"castVote","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"},{"type":"bool","name":"support","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"createProposal","inputs":[{"type":"string","name":"description","internalType":"string"}]},{"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":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"emitRewards","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"emitters","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeProposal","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"forVotes","internalType":"uint256"},{"type":"uint256","name":"againstVotes","internalType":"uint256"},{"type":"bool","name":"active","internalType":"bool"},{"type":"bool","name":"passed","internalType":"bool"}],"name":"getProposalState","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getProposalThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getQuorum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasVoted","inputs":[{"type":"uint256","name":"proposalId","internalType":"uint256"},{"type":"address","name":"voter","internalType":"address"}]},{"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":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isWhitelisted","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"masterchef","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"mint","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"mintFor","inputs":[{"type":"address","name":"_address","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"proposalCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"string","name":"description","internalType":"string"},{"type":"uint256","name":"forVotes","internalType":"uint256"},{"type":"uint256","name":"againstVotes","internalType":"uint256"},{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"bool","name":"executed","internalType":"bool"},{"type":"address","name":"proposer","internalType":"address"}],"name":"proposals","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"pulseXRouter","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeWhitelist","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTokenTransfer","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setEmitters","inputs":[{"type":"address","name":"_emitters","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMasterchef","inputs":[{"type":"address","name":"_masterchef","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setVotingParameters","inputs":[{"type":"uint256","name":"_votingPeriod","internalType":"uint256"},{"type":"uint256","name":"_proposalThresholdBps","internalType":"uint256"},{"type":"uint256","name":"_quorumBps","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setVotingToken","inputs":[{"type":"address","name":"_votingToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakeThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapThreshold","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":"totalBurned","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":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmitRewards","inputs":[{"type":"address","name":"_emitRewards","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateStakeThreshold","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSwapThreshold","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"votingPeriod","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"votingToken","inputs":[]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60806040526203f480600655606460078190556103e8600855601080546001600160a81b0319167401165c3410fc91ef562c50559f7d2289febed552d91790556802b5e3af16b1880000601155690a968163f0a57b4000006012556014556101906015553480156200007057600080fd5b5060405162002e6938038062002e69833981016040819052620000939162000555565b6040805180820182526004808252631153525560e21b6020808401829052845180860190955291845290830152906003620000cf83826200062b565b506004620000de82826200062b565b505050620000fb620000f56200030b60201b60201c565b6200030f565b600a80546001600160a01b0319166001600160a01b03838116919091179091556010546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa1580156200015e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000184919062000555565b6001600160a01b031663c9c6539630601060009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001e7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020d919062000555565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200025b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000281919062000555565b600f80546001600160a01b0319166001600160a01b0392909216919091179055306000908152600d6020526040808220805460ff1990811660019081179092553380855292909320805490931617909155620002e89069152d02c7e14af680000062000361565b601054620003049030906001600160a01b031660001962000428565b506200071f565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003bd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620003d19190620006f7565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383166200048c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620003b4565b6001600160a01b038216620004ef5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620003b4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b6000602082840312156200056857600080fd5b81516001600160a01b03811681146200058057600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005b257607f821691505b602082108103620005d357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200055057600081815260208120601f850160051c81016020861015620006025750805b601f850160051c820191505b8181101562000623578281556001016200060e565b505050505050565b81516001600160401b0381111562000647576200064762000587565b6200065f816200065884546200059d565b84620005d9565b602080601f8311600181146200069757600084156200067e5750858301515b600019600386901b1c1916600185901b17855562000623565b600085815260208120601f198616915b82811015620006c857888601518255948401946001909101908401620006a7565b5085821015620006e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200071957634e487b7160e01b600052601160045260246000fd5b92915050565b61273a806200072f6000396000f3fe6080604052600436106102e85760003560e01c80638f78e6a211610190578063c26c12eb116100dc578063dd62ed3e11610095578063f11f77f91161006f578063f11f77f914610921578063f2fde38b14610937578063f80f5dd514610957578063fb1db2781461097757600080fd5b8063dd62ed3e146108cb578063e1a45218146108eb578063e2d746281461090157600080fd5b8063c26c12eb1461082a578063cc274b291461083f578063d89135cd1461085f578063da1919b314610875578063da35c66414610895578063dc452b88146108ab57600080fd5b8063a457c2d711610149578063a8b21c1b11610123578063a8b21c1b146107b4578063a9059cbb146107ca578063aec9b6f4146107ea578063b03401231461080a57600080fd5b8063a457c2d71461075e578063a7d54d3f1461077e578063a8aa1b311461079457600080fd5b80638f78e6a2146106815780639080936f146106a1578063933baa86146106e957806395d89b41146107095780639cbbebe61461071e578063a0712d681461073e57600080fd5b80633af32abf1161024f5780636ddd171311610208578063715018a6116101e2578063715018a61461061957806378c8cda71461062e57806385a21b191461064e5780638da5cb5b1461066357600080fd5b80636ddd17131461058a5780636e213bc7146105ab57806370a08231146105e357600080fd5b80633af32abf1461049057806342966c68146104c057806343859632146104e057806349c2a1a61461052a578063555f18601461054a5780635ef533291461056a57600080fd5b806315373e3d116102a157806315373e3d146103df57806318160ddd146103ff57806323b872dd14610414578063301d29db14610434578063313ce56714610454578063395093511461047057600080fd5b8063013cf08b146102f457806302a251a3146103315780630445b6671461035557806306fdde031461036b578063095ea7b31461038d5780630d61b519146103bd57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061031461030f366004612139565b610997565b604051610328989796959493929190612198565b60405180910390f35b34801561033d57600080fd5b5061034760065481565b604051908152602001610328565b34801561036157600080fd5b5061034760115481565b34801561037757600080fd5b50610380610a6f565b60405161032891906121f0565b34801561039957600080fd5b506103ad6103a8366004612218565b610b01565b6040519015158152602001610328565b3480156103c957600080fd5b506103dd6103d8366004612139565b610b1b565b005b3480156103eb57600080fd5b506103dd6103fa366004612244565b610cc1565b34801561040b57600080fd5b50600254610347565b34801561042057600080fd5b506103ad61042f366004612279565b610f61565b34801561044057600080fd5b506103dd61044f366004612218565b610f85565b34801561046057600080fd5b5060405160128152602001610328565b34801561047c57600080fd5b506103ad61048b366004612218565b610fe2565b34801561049c57600080fd5b506103ad6104ab3660046122ba565b600d6020526000908152604090205460ff1681565b3480156104cc57600080fd5b506103dd6104db366004612139565b611004565b3480156104ec57600080fd5b506103ad6104fb3660046122d7565b60008281526016602090815260408083206001600160a01b038516845260070190915290205460ff1692915050565b34801561053657600080fd5b50610347610545366004612312565b61105c565b34801561055657600080fd5b506103dd6105653660046123c3565b61128c565b34801561057657600080fd5b506103dd610585366004612139565b611397565b34801561059657600080fd5b506010546103ad90600160a01b900460ff1681565b3480156105b757600080fd5b50600b546105cb906001600160a01b031681565b6040516001600160a01b039091168152602001610328565b3480156105ef57600080fd5b506103476105fe3660046122ba565b6001600160a01b031660009081526020819052604090205490565b34801561062557600080fd5b506103dd6113a4565b34801561063a57600080fd5b506103dd6106493660046122ba565b6113b8565b34801561065a57600080fd5b506103476113e1565b34801561066f57600080fd5b506005546001600160a01b03166105cb565b34801561068d57600080fd5b506103dd61069c3660046122ba565b611477565b3480156106ad57600080fd5b506106c16106bc366004612139565b6114a1565b6040805194855260208501939093529015159183019190915215156060820152608001610328565b3480156106f557600080fd5b506103dd6107043660046122ba565b6114fe565b34801561071557600080fd5b50610380611528565b34801561072a57600080fd5b50600a546105cb906001600160a01b031681565b34801561074a57600080fd5b506103ad610759366004612139565b611537565b34801561076a57600080fd5b506103ad610779366004612218565b61156e565b34801561078a57600080fd5b5061034760075481565b3480156107a057600080fd5b50600f546105cb906001600160a01b031681565b3480156107c057600080fd5b5061034760085481565b3480156107d657600080fd5b506103ad6107e5366004612218565b6115e9565b3480156107f657600080fd5b506010546105cb906001600160a01b031681565b34801561081657600080fd5b50600c546105cb906001600160a01b031681565b34801561083657600080fd5b506103476115f7565b34801561084b57600080fd5b506103dd61085a366004612139565b611658565b34801561086b57600080fd5b50610347600e5481565b34801561088157600080fd5b506103ad610890366004612218565b611665565b3480156108a157600080fd5b5061034760175481565b3480156108b757600080fd5b506103dd6108c63660046122ba565b6116a5565b3480156108d757600080fd5b506103476108e63660046123ef565b6116cf565b3480156108f757600080fd5b5061034761271081565b34801561090d57600080fd5b506103dd61091c3660046122ba565b6116fa565b34801561092d57600080fd5b5061034760125481565b34801561094357600080fd5b506103dd6109523660046122ba565b611724565b34801561096357600080fd5b506103dd6109723660046122ba565b61179d565b34801561098357600080fd5b506009546105cb906001600160a01b031681565b601660205260009081526040902080546001820180549192916109b99061241d565b80601f01602080910402602001604051908101604052809291908181526020018280546109e59061241d565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b505050600284015460038501546004860154600587015460069097015495969295919450925060ff8116906001600160a01b036101009091041688565b606060038054610a7e9061241d565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaa9061241d565b8015610af75780601f10610acc57610100808354040283529160200191610af7565b820191906000526020600020905b815481529060010190602001808311610ada57829003601f168201915b5050505050905090565b600033610b0f8185856117c9565b60019150505b92915050565b600081815260166020526040902060058101544211610b775760405162461bcd60e51b8152602060048201526013602482015272766f74696e67207374696c6c2061637469766560681b60448201526064015b60405180910390fd5b600681015460ff1615610bcc5760405162461bcd60e51b815260206004820152601960248201527f70726f706f73616c20616c7265616479206578656375746564000000000000006044820152606401610b6e565b6000610be9826003015483600201546118ed90919063ffffffff16565b9050610bf36115f7565b811015610c375760405162461bcd60e51b81526020600482015260126024820152711c5d5bdc9d5b481b9bdd081c995858da195960721b6044820152606401610b6e565b8160030154826002015411610c825760405162461bcd60e51b81526020600482015260116024820152701c1c9bdc1bdcd85b0819195999585d1959607a1b6044820152606401610b6e565b60068201805460ff1916600117905560405183907f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f90600090a2505050565b60008281526016602052604090206005810154421115610d165760405162461bcd60e51b815260206004820152601060248201526f1d9bdd1a5b99c81a5cc818db1bdcd95960821b6044820152606401610b6e565b33600090815260078201602052604090205460ff1615610d685760405162461bcd60e51b815260206004820152600d60248201526c185b1c9958591e481d9bdd1959609a1b6044820152606401610b6e565b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd59190612457565b11610e1b5760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081a1bdb1908195b5a5d1d195c9cc81b999d60521b6044820152606401610b6e565b600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e889190612457565b905060008111610ecc5760405162461bcd60e51b815260206004820152600f60248201526e3737903b37ba34b733903837bbb2b960891b6044820152606401610b6e565b3360009081526007830160205260409020805460ff191660011790558215610f07576002820154610efd90826118ed565b6002830155610f1c565b6003820154610f1690826118ed565b60038301555b60408051841515815260208101839052859133917f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c46910160405180910390a350505050565b600033610f6f858285611900565b610f7a85858561197a565b506001949350505050565b6009546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610b6e90612470565b3060009081526020819052604090205480821115610fd757610fd230848361197a565b505050565b610fd230848461197a565b600033610b0f818585610ff583836116cf565b610fff91906124bd565b6117c9565b80600e600082825461101691906124bd565b9091555061102690503382611abe565b6040518181527fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9060200160405180910390a150565b60006110666113e1565b600c546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d29190612457565b10156111205760405162461bcd60e51b815260206004820152601e60248201527f70726f706f73657220766f7465732062656c6f77207468726573686f6c6400006044820152606401610b6e565b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118d9190612457565b116111d35760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081a1bdb1908195b5a5d1d195c9cc81b999d60521b6044820152606401610b6e565b601780549060006111e3836124d0565b909155505060175460008181526016602052604090209081556001810161120a848261252f565b5060068181018054610100600160a81b031916336101000217905542600483018190559054611238916124bd565b60058201819055601754600483015460405133937f6c98a8c940418b35614f0cd02412d5c9606faff474cbb6cdd6640ba5d1a9f06b9261127a928992906125ef565b60405180910390a35050601754919050565b611294611bf0565b6127108211156112f05760405162461bcd60e51b815260206004820152602160248201527f7468726573686f6c642042505320657863656564732064656e6f6d696e61746f6044820152603960f91b6064820152608401610b6e565b6127108111156113425760405162461bcd60e51b815260206004820152601e60248201527f71756f72756d2042505320657863656564732064656e6f6d696e61746f7200006044820152606401610b6e565b60068390556007829055600881905560408051848152602081018490529081018290527f2f887d9c32f7cc3cbf806949310a3afdd85b147705550dde55deb4af1ab582f99060600160405180910390a1505050565b61139f611bf0565b601255565b6113ac611bf0565b6113b66000611c4a565b565b6113c0611bf0565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600061147261271061146c600754600c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114669190612457565b90611c9c565b90611ca8565b905090565b61147f611bf0565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526016602052604081206002810154600382015460058301549193909242929092111591826114f65760006114da86866118ed565b90506114e46115f7565b81101580156114f257508486115b9250505b509193509193565b611506611bf0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610a7e9061241d565b6009546000906001600160a01b031633146115645760405162461bcd60e51b8152600401610b6e90612470565b610b153083611665565b6000338161157c82866116cf565b9050838110156115dc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b6e565b610f7a82868684036117c9565b600033610b0f81858561197a565b600061147261271061146c600854600c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611442573d6000803e3d6000fd5b611660611bf0565b601155565b6009546000906001600160a01b031633146116925760405162461bcd60e51b8152600401610b6e90612470565b61169c8383611cb4565b50600192915050565b6116ad611bf0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611702611bf0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61172c611bf0565b6001600160a01b0381166117915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6e565b61179a81611c4a565b50565b6117a5611bf0565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6001600160a01b03831661182b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b6e565b6001600160a01b03821661188c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b6e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118f982846124bd565b9392505050565b600061190c84846116cf565b9050600019811461197457818110156119675760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b6e565b61197484848484036117c9565b50505050565b6001600160a01b0382166000908152600d602052604090205460ff16806119b957506001600160a01b0383166000908152600d602052604090205460ff165b156119c957610fd2838383611d73565b60135460ff16156119df57610fd2838383611d73565b6119e7611f17565b156119f4576119f4611f6d565b600061271060145483611a079190612614565b611a11919061262b565b9050600061271060155484611a269190612614565b611a30919061262b565b9050600081611a3f848661264d565b611a49919061264d565b905082600e6000828254611a5d91906124bd565b90915550611a6d90508684611abe565b6040518381527fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9060200160405180910390a1611aab863084611d73565b611ab6868683611d73565b505050505050565b6001600160a01b038216611b1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b6e565b6001600160a01b03821660009081526020819052604090205481811015611b925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b6e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6005546001600160a01b031633146113b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006118f98284612614565b60006118f9828461262b565b6001600160a01b038216611d0a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b6e565b8060026000828254611d1c91906124bd565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316611dd75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b6e565b6001600160a01b038216611e395760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b6e565b6001600160a01b03831660009081526020819052604090205481811015611eb15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b6e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611974565b600f546000906001600160a01b03163314801590611f38575060135460ff16155b8015611f4d5750601054600160a01b900460ff165b801561147257505060115430600090815260208190526040902054101590565b6013805460ff191660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611faf57611faf612660565b6001600160a01b039283166020918202929092018101919091526010546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015612008573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202c9190612676565b8160018151811061203f5761203f612660565b6001600160a01b03928316602091820292909201015260105460115460405163791ac94760e01b8152919092169163791ac947916120899190600090869030904290600401612693565b600060405180830381600087803b1580156120a357600080fd5b505af11580156120b7573d6000803e3d6000fd5b50506012544792508210905061212b57600b60009054906101000a90046001600160a01b03166001600160a01b031663dc29f1de826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561211757600080fd5b505af193505050508015612129575060015b505b50506013805460ff19169055565b60006020828403121561214b57600080fd5b5035919050565b6000815180845260005b818110156121785760208185018101518683018201520161215c565b506000602082860101526020601f19601f83011685010191505092915050565b60006101008a83528060208401526121b28184018b612152565b604084019990995250506060810195909552608085019390935260a0840191909152151560c08301526001600160a01b031660e09091015292915050565b6020815260006118f96020830184612152565b6001600160a01b038116811461179a57600080fd5b6000806040838503121561222b57600080fd5b823561223681612203565b946020939093013593505050565b6000806040838503121561225757600080fd5b823591506020830135801515811461226e57600080fd5b809150509250929050565b60008060006060848603121561228e57600080fd5b833561229981612203565b925060208401356122a981612203565b929592945050506040919091013590565b6000602082840312156122cc57600080fd5b81356118f981612203565b600080604083850312156122ea57600080fd5b82359150602083013561226e81612203565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561232457600080fd5b813567ffffffffffffffff8082111561233c57600080fd5b818401915084601f83011261235057600080fd5b813581811115612362576123626122fc565b604051601f8201601f19908116603f0116810190838211818310171561238a5761238a6122fc565b816040528281528760208487010111156123a357600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806000606084860312156123d857600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561240257600080fd5b823561240d81612203565b9150602083013561226e81612203565b600181811c9082168061243157607f821691505b60208210810361245157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561246957600080fd5b5051919050565b6020808252601c908201527f43616c6c6572206973206e6f7420746865204d61737465726368656600000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1557610b156124a7565b6000600182016124e2576124e26124a7565b5060010190565b601f821115610fd257600081815260208120601f850160051c810160208610156125105750805b601f850160051c820191505b81811015611ab65782815560010161251c565b815167ffffffffffffffff811115612549576125496122fc565b61255d81612557845461241d565b846124e9565b602080601f831160018114612592576000841561257a5750858301515b600019600386901b1c1916600185901b178555611ab6565b600085815260208120601f198616915b828110156125c1578886015182559484019460019091019084016125a2565b50858210156125df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006126026060830186612152565b60208301949094525060400152919050565b8082028115828204841417610b1557610b156124a7565b60008261264857634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b1557610b156124a7565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561268857600080fd5b81516118f981612203565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156126e35784516001600160a01b0316835293830193918301916001016126be565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212201e92db625493239f9e42264bdf2f7a287131bcd66866f6dbbd580856999c50d264736f6c63430008140033000000000000000000000000133f4205141d869a72724910331c0f0b7235df7b

Deployed ByteCode

0x6080604052600436106102e85760003560e01c80638f78e6a211610190578063c26c12eb116100dc578063dd62ed3e11610095578063f11f77f91161006f578063f11f77f914610921578063f2fde38b14610937578063f80f5dd514610957578063fb1db2781461097757600080fd5b8063dd62ed3e146108cb578063e1a45218146108eb578063e2d746281461090157600080fd5b8063c26c12eb1461082a578063cc274b291461083f578063d89135cd1461085f578063da1919b314610875578063da35c66414610895578063dc452b88146108ab57600080fd5b8063a457c2d711610149578063a8b21c1b11610123578063a8b21c1b146107b4578063a9059cbb146107ca578063aec9b6f4146107ea578063b03401231461080a57600080fd5b8063a457c2d71461075e578063a7d54d3f1461077e578063a8aa1b311461079457600080fd5b80638f78e6a2146106815780639080936f146106a1578063933baa86146106e957806395d89b41146107095780639cbbebe61461071e578063a0712d681461073e57600080fd5b80633af32abf1161024f5780636ddd171311610208578063715018a6116101e2578063715018a61461061957806378c8cda71461062e57806385a21b191461064e5780638da5cb5b1461066357600080fd5b80636ddd17131461058a5780636e213bc7146105ab57806370a08231146105e357600080fd5b80633af32abf1461049057806342966c68146104c057806343859632146104e057806349c2a1a61461052a578063555f18601461054a5780635ef533291461056a57600080fd5b806315373e3d116102a157806315373e3d146103df57806318160ddd146103ff57806323b872dd14610414578063301d29db14610434578063313ce56714610454578063395093511461047057600080fd5b8063013cf08b146102f457806302a251a3146103315780630445b6671461035557806306fdde031461036b578063095ea7b31461038d5780630d61b519146103bd57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061031461030f366004612139565b610997565b604051610328989796959493929190612198565b60405180910390f35b34801561033d57600080fd5b5061034760065481565b604051908152602001610328565b34801561036157600080fd5b5061034760115481565b34801561037757600080fd5b50610380610a6f565b60405161032891906121f0565b34801561039957600080fd5b506103ad6103a8366004612218565b610b01565b6040519015158152602001610328565b3480156103c957600080fd5b506103dd6103d8366004612139565b610b1b565b005b3480156103eb57600080fd5b506103dd6103fa366004612244565b610cc1565b34801561040b57600080fd5b50600254610347565b34801561042057600080fd5b506103ad61042f366004612279565b610f61565b34801561044057600080fd5b506103dd61044f366004612218565b610f85565b34801561046057600080fd5b5060405160128152602001610328565b34801561047c57600080fd5b506103ad61048b366004612218565b610fe2565b34801561049c57600080fd5b506103ad6104ab3660046122ba565b600d6020526000908152604090205460ff1681565b3480156104cc57600080fd5b506103dd6104db366004612139565b611004565b3480156104ec57600080fd5b506103ad6104fb3660046122d7565b60008281526016602090815260408083206001600160a01b038516845260070190915290205460ff1692915050565b34801561053657600080fd5b50610347610545366004612312565b61105c565b34801561055657600080fd5b506103dd6105653660046123c3565b61128c565b34801561057657600080fd5b506103dd610585366004612139565b611397565b34801561059657600080fd5b506010546103ad90600160a01b900460ff1681565b3480156105b757600080fd5b50600b546105cb906001600160a01b031681565b6040516001600160a01b039091168152602001610328565b3480156105ef57600080fd5b506103476105fe3660046122ba565b6001600160a01b031660009081526020819052604090205490565b34801561062557600080fd5b506103dd6113a4565b34801561063a57600080fd5b506103dd6106493660046122ba565b6113b8565b34801561065a57600080fd5b506103476113e1565b34801561066f57600080fd5b506005546001600160a01b03166105cb565b34801561068d57600080fd5b506103dd61069c3660046122ba565b611477565b3480156106ad57600080fd5b506106c16106bc366004612139565b6114a1565b6040805194855260208501939093529015159183019190915215156060820152608001610328565b3480156106f557600080fd5b506103dd6107043660046122ba565b6114fe565b34801561071557600080fd5b50610380611528565b34801561072a57600080fd5b50600a546105cb906001600160a01b031681565b34801561074a57600080fd5b506103ad610759366004612139565b611537565b34801561076a57600080fd5b506103ad610779366004612218565b61156e565b34801561078a57600080fd5b5061034760075481565b3480156107a057600080fd5b50600f546105cb906001600160a01b031681565b3480156107c057600080fd5b5061034760085481565b3480156107d657600080fd5b506103ad6107e5366004612218565b6115e9565b3480156107f657600080fd5b506010546105cb906001600160a01b031681565b34801561081657600080fd5b50600c546105cb906001600160a01b031681565b34801561083657600080fd5b506103476115f7565b34801561084b57600080fd5b506103dd61085a366004612139565b611658565b34801561086b57600080fd5b50610347600e5481565b34801561088157600080fd5b506103ad610890366004612218565b611665565b3480156108a157600080fd5b5061034760175481565b3480156108b757600080fd5b506103dd6108c63660046122ba565b6116a5565b3480156108d757600080fd5b506103476108e63660046123ef565b6116cf565b3480156108f757600080fd5b5061034761271081565b34801561090d57600080fd5b506103dd61091c3660046122ba565b6116fa565b34801561092d57600080fd5b5061034760125481565b34801561094357600080fd5b506103dd6109523660046122ba565b611724565b34801561096357600080fd5b506103dd6109723660046122ba565b61179d565b34801561098357600080fd5b506009546105cb906001600160a01b031681565b601660205260009081526040902080546001820180549192916109b99061241d565b80601f01602080910402602001604051908101604052809291908181526020018280546109e59061241d565b8015610a325780601f10610a0757610100808354040283529160200191610a32565b820191906000526020600020905b815481529060010190602001808311610a1557829003601f168201915b505050600284015460038501546004860154600587015460069097015495969295919450925060ff8116906001600160a01b036101009091041688565b606060038054610a7e9061241d565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaa9061241d565b8015610af75780601f10610acc57610100808354040283529160200191610af7565b820191906000526020600020905b815481529060010190602001808311610ada57829003601f168201915b5050505050905090565b600033610b0f8185856117c9565b60019150505b92915050565b600081815260166020526040902060058101544211610b775760405162461bcd60e51b8152602060048201526013602482015272766f74696e67207374696c6c2061637469766560681b60448201526064015b60405180910390fd5b600681015460ff1615610bcc5760405162461bcd60e51b815260206004820152601960248201527f70726f706f73616c20616c7265616479206578656375746564000000000000006044820152606401610b6e565b6000610be9826003015483600201546118ed90919063ffffffff16565b9050610bf36115f7565b811015610c375760405162461bcd60e51b81526020600482015260126024820152711c5d5bdc9d5b481b9bdd081c995858da195960721b6044820152606401610b6e565b8160030154826002015411610c825760405162461bcd60e51b81526020600482015260116024820152701c1c9bdc1bdcd85b0819195999585d1959607a1b6044820152606401610b6e565b60068201805460ff1916600117905560405183907f712ae1383f79ac853f8d882153778e0260ef8f03b504e2866e0593e04d2b291f90600090a2505050565b60008281526016602052604090206005810154421115610d165760405162461bcd60e51b815260206004820152601060248201526f1d9bdd1a5b99c81a5cc818db1bdcd95960821b6044820152606401610b6e565b33600090815260078201602052604090205460ff1615610d685760405162461bcd60e51b815260206004820152600d60248201526c185b1c9958591e481d9bdd1959609a1b6044820152606401610b6e565b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd59190612457565b11610e1b5760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081a1bdb1908195b5a5d1d195c9cc81b999d60521b6044820152606401610b6e565b600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e889190612457565b905060008111610ecc5760405162461bcd60e51b815260206004820152600f60248201526e3737903b37ba34b733903837bbb2b960891b6044820152606401610b6e565b3360009081526007830160205260409020805460ff191660011790558215610f07576002820154610efd90826118ed565b6002830155610f1c565b6003820154610f1690826118ed565b60038301555b60408051841515815260208101839052859133917f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c46910160405180910390a350505050565b600033610f6f858285611900565b610f7a85858561197a565b506001949350505050565b6009546001600160a01b03163314610faf5760405162461bcd60e51b8152600401610b6e90612470565b3060009081526020819052604090205480821115610fd757610fd230848361197a565b505050565b610fd230848461197a565b600033610b0f818585610ff583836116cf565b610fff91906124bd565b6117c9565b80600e600082825461101691906124bd565b9091555061102690503382611abe565b6040518181527fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9060200160405180910390a150565b60006110666113e1565b600c546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d29190612457565b10156111205760405162461bcd60e51b815260206004820152601e60248201527f70726f706f73657220766f7465732062656c6f77207468726573686f6c6400006044820152606401610b6e565b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118d9190612457565b116111d35760405162461bcd60e51b81526020600482015260166024820152751b5d5cdd081a1bdb1908195b5a5d1d195c9cc81b999d60521b6044820152606401610b6e565b601780549060006111e3836124d0565b909155505060175460008181526016602052604090209081556001810161120a848261252f565b5060068181018054610100600160a81b031916336101000217905542600483018190559054611238916124bd565b60058201819055601754600483015460405133937f6c98a8c940418b35614f0cd02412d5c9606faff474cbb6cdd6640ba5d1a9f06b9261127a928992906125ef565b60405180910390a35050601754919050565b611294611bf0565b6127108211156112f05760405162461bcd60e51b815260206004820152602160248201527f7468726573686f6c642042505320657863656564732064656e6f6d696e61746f6044820152603960f91b6064820152608401610b6e565b6127108111156113425760405162461bcd60e51b815260206004820152601e60248201527f71756f72756d2042505320657863656564732064656e6f6d696e61746f7200006044820152606401610b6e565b60068390556007829055600881905560408051848152602081018490529081018290527f2f887d9c32f7cc3cbf806949310a3afdd85b147705550dde55deb4af1ab582f99060600160405180910390a1505050565b61139f611bf0565b601255565b6113ac611bf0565b6113b66000611c4a565b565b6113c0611bf0565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b600061147261271061146c600754600c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114669190612457565b90611c9c565b90611ca8565b905090565b61147f611bf0565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60008181526016602052604081206002810154600382015460058301549193909242929092111591826114f65760006114da86866118ed565b90506114e46115f7565b81101580156114f257508486115b9250505b509193509193565b611506611bf0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610a7e9061241d565b6009546000906001600160a01b031633146115645760405162461bcd60e51b8152600401610b6e90612470565b610b153083611665565b6000338161157c82866116cf565b9050838110156115dc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b6e565b610f7a82868684036117c9565b600033610b0f81858561197a565b600061147261271061146c600854600c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611442573d6000803e3d6000fd5b611660611bf0565b601155565b6009546000906001600160a01b031633146116925760405162461bcd60e51b8152600401610b6e90612470565b61169c8383611cb4565b50600192915050565b6116ad611bf0565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611702611bf0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61172c611bf0565b6001600160a01b0381166117915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6e565b61179a81611c4a565b50565b6117a5611bf0565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6001600160a01b03831661182b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b6e565b6001600160a01b03821661188c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b6e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006118f982846124bd565b9392505050565b600061190c84846116cf565b9050600019811461197457818110156119675760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b6e565b61197484848484036117c9565b50505050565b6001600160a01b0382166000908152600d602052604090205460ff16806119b957506001600160a01b0383166000908152600d602052604090205460ff165b156119c957610fd2838383611d73565b60135460ff16156119df57610fd2838383611d73565b6119e7611f17565b156119f4576119f4611f6d565b600061271060145483611a079190612614565b611a11919061262b565b9050600061271060155484611a269190612614565b611a30919061262b565b9050600081611a3f848661264d565b611a49919061264d565b905082600e6000828254611a5d91906124bd565b90915550611a6d90508684611abe565b6040518381527fd83c63197e8e676d80ab0122beba9a9d20f3828839e9a1d6fe81d242e9cd7e6e9060200160405180910390a1611aab863084611d73565b611ab6868683611d73565b505050505050565b6001600160a01b038216611b1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b6e565b6001600160a01b03821660009081526020819052604090205481811015611b925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b6e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6005546001600160a01b031633146113b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006118f98284612614565b60006118f9828461262b565b6001600160a01b038216611d0a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b6e565b8060026000828254611d1c91906124bd565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316611dd75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b6e565b6001600160a01b038216611e395760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b6e565b6001600160a01b03831660009081526020819052604090205481811015611eb15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b6e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611974565b600f546000906001600160a01b03163314801590611f38575060135460ff16155b8015611f4d5750601054600160a01b900460ff165b801561147257505060115430600090815260208190526040902054101590565b6013805460ff191660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611faf57611faf612660565b6001600160a01b039283166020918202929092018101919091526010546040805163ef8ef56f60e01b81529051919093169263ef8ef56f9260048083019391928290030181865afa158015612008573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202c9190612676565b8160018151811061203f5761203f612660565b6001600160a01b03928316602091820292909201015260105460115460405163791ac94760e01b8152919092169163791ac947916120899190600090869030904290600401612693565b600060405180830381600087803b1580156120a357600080fd5b505af11580156120b7573d6000803e3d6000fd5b50506012544792508210905061212b57600b60009054906101000a90046001600160a01b03166001600160a01b031663dc29f1de826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561211757600080fd5b505af193505050508015612129575060015b505b50506013805460ff19169055565b60006020828403121561214b57600080fd5b5035919050565b6000815180845260005b818110156121785760208185018101518683018201520161215c565b506000602082860101526020601f19601f83011685010191505092915050565b60006101008a83528060208401526121b28184018b612152565b604084019990995250506060810195909552608085019390935260a0840191909152151560c08301526001600160a01b031660e09091015292915050565b6020815260006118f96020830184612152565b6001600160a01b038116811461179a57600080fd5b6000806040838503121561222b57600080fd5b823561223681612203565b946020939093013593505050565b6000806040838503121561225757600080fd5b823591506020830135801515811461226e57600080fd5b809150509250929050565b60008060006060848603121561228e57600080fd5b833561229981612203565b925060208401356122a981612203565b929592945050506040919091013590565b6000602082840312156122cc57600080fd5b81356118f981612203565b600080604083850312156122ea57600080fd5b82359150602083013561226e81612203565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561232457600080fd5b813567ffffffffffffffff8082111561233c57600080fd5b818401915084601f83011261235057600080fd5b813581811115612362576123626122fc565b604051601f8201601f19908116603f0116810190838211818310171561238a5761238a6122fc565b816040528281528760208487010111156123a357600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806000606084860312156123d857600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561240257600080fd5b823561240d81612203565b9150602083013561226e81612203565b600181811c9082168061243157607f821691505b60208210810361245157634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561246957600080fd5b5051919050565b6020808252601c908201527f43616c6c6572206973206e6f7420746865204d61737465726368656600000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1557610b156124a7565b6000600182016124e2576124e26124a7565b5060010190565b601f821115610fd257600081815260208120601f850160051c810160208610156125105750805b601f850160051c820191505b81811015611ab65782815560010161251c565b815167ffffffffffffffff811115612549576125496122fc565b61255d81612557845461241d565b846124e9565b602080601f831160018114612592576000841561257a5750858301515b600019600386901b1c1916600185901b178555611ab6565b600085815260208120601f198616915b828110156125c1578886015182559484019460019091019084016125a2565b50858210156125df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6060815260006126026060830186612152565b60208301949094525060400152919050565b8082028115828204841417610b1557610b156124a7565b60008261264857634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b1557610b156124a7565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561268857600080fd5b81516118f981612203565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156126e35784516001600160a01b0316835293830193918301916001016126be565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212201e92db625493239f9e42264bdf2f7a287131bcd66866f6dbbd580856999c50d264736f6c63430008140033