ETH Price: $3,372.40 (+0.15%)

Token

Varen Staking Share (yVRN)
 

Overview

Max Total Supply

816.413589939985251126 yVRN

Holders

188

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
lsd-btc.eth
Balance
0.002115645555619589 yVRN

Value
$0.00
0x19BB34410c9a0f70E89d1b9ab054059Ed1cf5aa8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
yVaren

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 11 : yVaren.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IyVaren.sol";
import "./interfaces/IERC677.sol";

contract yVaren is IyVaren, IERC677Receiver, ERC20, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    uint256 public constant override MAX_OPERATIONS = 10;
    IERC677 public immutable override VAREN;

    uint256 public override blocksForNoWithdrawalFee;
    uint256 public override earlyWithdrawalFeePercent = 5000; // 0.5%
    mapping(address => uint256) public override earlyWithdrawalFeeExpiry;
    address public override treasury;
    uint256 public override treasuryEarlyWithdrawalFeeShare = 1000000; // 100%
    mapping(address => uint256) public override voteLockAmount;
    mapping(address => uint256) public override voteLockExpiry;
    mapping(address => bool) public override hasActiveProposal;
    mapping(uint256 => Proposal) public override proposals;
    uint256 public override proposalCount;
    uint256 public override votingPeriodBlocks;
    uint256 public override minVarenForProposal = 1e17; // 0.1 Varen
    uint256 public override quorumPercent = 150000; // 15%
    uint256 public override voteThresholdPercent = 500000; // 50%
    uint256 public override executionPeriodBlocks;

    modifier onlyThis() {
        require(msg.sender == address(this), "yVRN: FORBIDDEN");
        _;
    }

    constructor(
        address _varen,
        address _treasury,
        uint256 _blocksForNoWithdrawalFee,
        uint256 _votingPeriodBlocks,
        uint256 _executionPeriodBlocks
    ) ERC20("Varen Staking Share", "yVRN") {
        require(
            _varen != address(0) && _treasury != address(0),
            "yVRN: ZERO_ADDRESS"
        );
        VAREN = IERC677(_varen);
        treasury = _treasury;
        blocksForNoWithdrawalFee = _blocksForNoWithdrawalFee;
        votingPeriodBlocks = _votingPeriodBlocks;
        executionPeriodBlocks = _executionPeriodBlocks;
    }

    function stake(uint256 amount) external override nonReentrant {
        require(amount > 0, "yVRN: ZERO");
        require(VAREN.transferFrom(msg.sender, address(this), amount), 'yVRN: transferFrom failed');
        _stake(msg.sender, amount);
    }

    function _stake(address sender, uint256 amount) internal virtual {
        uint256 shares = totalSupply() == 0
            ? amount
            : (amount.mul(totalSupply())).div(VAREN.balanceOf(address(this)).sub(amount));
        _mint(sender, shares);
        earlyWithdrawalFeeExpiry[sender] = blocksForNoWithdrawalFee.add(
            block.number
        );
    }

    function onTokenTransfer(address sender, uint value, bytes memory) external override nonReentrant {                
      require(value > 0, "yVRN: ZERO");
      require(msg.sender == address(VAREN), 'yVRN: access denied');
      _stake(sender, value);
    }

    function withdraw(uint256 shares) external override nonReentrant {
        require(shares > 0, "yVRN: ZERO");
        _updateVoteExpiry();
        require(_checkVoteExpiry(msg.sender, shares), "voteLockExpiry");
        uint256 varenAmount = (VAREN.balanceOf(address(this))).mul(shares).div(
            totalSupply()
        );
        _burn(msg.sender, shares);
        if (block.number < earlyWithdrawalFeeExpiry[msg.sender]) {
            uint256 feeAmount = varenAmount.mul(earlyWithdrawalFeePercent) /
                1000000;
            VAREN.transfer(
                treasury,
                feeAmount.mul(treasuryEarlyWithdrawalFeeShare) / 1000000
            );
            varenAmount = varenAmount.sub(feeAmount);
        }
        VAREN.transfer(msg.sender, varenAmount);
    }

    function getPricePerFullShare() external view override returns (uint256) {
        return totalSupply() == 0 ? 0 : VAREN.balanceOf(address(this)).mul(1e18).div(totalSupply());
    }

    function getStakeVarenValue(address staker)
        external
        view
        override
        returns (uint256)
    {
        return
            (VAREN.balanceOf(address(this)).mul(balanceOf(staker))).div(
                totalSupply()
            );
    }

    function propose(
        address[] memory targets,
        uint256[] memory values,
        string[] memory signatures,
        bytes[] memory calldatas,
        string memory description
    ) public override nonReentrant returns (uint256 id) {
        require(!hasActiveProposal[msg.sender], "yVRN: HAS_ACTIVE_PROPOSAL");
        require(
            targets.length == values.length &&
                targets.length == signatures.length &&
                targets.length == calldatas.length,
            "yVRN: PARITY_MISMATCH"
        );
        require(targets.length != 0, "yVRN: NO_ACTIONS");
        require(targets.length <= MAX_OPERATIONS, "yVRN: TOO_MANY_ACTIONS");
        require(
            (VAREN.balanceOf(address(this)).mul(balanceOf(msg.sender))).div(
                totalSupply()
            ) >= minVarenForProposal,
            "yVRN: INSUFFICIENT_VAREN_FOR_PROPOSAL"
        );
        uint256 endBlock = votingPeriodBlocks.add(block.number);
        Proposal storage newProposal = proposals[proposalCount];
        newProposal.proposer = msg.sender;
        newProposal.endBlock = endBlock;
        newProposal.targets = targets;
        newProposal.values = values;
        newProposal.signatures = signatures;
        newProposal.calldatas = calldatas;
        newProposal.totalForVotes = 0;
        newProposal.totalAgainstVotes = 0;
        newProposal.quorumVotes = VAREN.balanceOf(address(this)).mul(quorumPercent) / 1000000;
        newProposal.executed = false;

        hasActiveProposal[msg.sender] = true;
        proposalCount = proposalCount.add(1);

        emit ProposalCreated(
            id,
            msg.sender,
            targets,
            values,
            signatures,
            calldatas,
            block.number,
            endBlock,
            description
        );
    }

    function _checkVoteExpiry(address _sender, uint256 _shares)
        private
        view
        returns (bool)
    {
        // ?????
        return _shares <= balanceOf(_sender).sub(voteLockAmount[_sender]);
    }

    function _updateVoteExpiry() private {
        if (block.number >= voteLockExpiry[msg.sender]) {
            voteLockExpiry[msg.sender] = 0;
            voteLockAmount[msg.sender] = 0;
        }
    }

    function vote(
        uint256 id,
        bool support,
        uint256 voteAmount
    ) external override nonReentrant {
        Proposal storage proposal = proposals[id];
        require(proposal.proposer != address(0), "yVRN: INVALID_PROPOSAL_ID");
        require(block.number < proposal.endBlock, "yVRN: VOTING_ENDED");
        require(voteAmount > 0, "yVRN: ZERO");
        require(
            voteAmount <= balanceOf(msg.sender),
            "yVRN: INSUFFICIENT_BALANCE"
        );
        _updateVoteExpiry();
        require(
            voteAmount >= voteLockAmount[msg.sender],
            "yVRN: SMALLER_VOTE"
        );
        if (
            (support && voteAmount == proposal.forVotes[msg.sender]) ||
            (!support && voteAmount == proposal.againstVotes[msg.sender])
        ) {
            revert("yVRN: SAME_VOTE");
        }
        if (voteAmount > voteLockAmount[msg.sender]) {
            voteLockAmount[msg.sender] = voteAmount;
        }

        voteLockExpiry[msg.sender] = proposal.endBlock >
            voteLockExpiry[msg.sender]
            ? proposal.endBlock
            : voteLockExpiry[msg.sender];

        if (support) {
            proposal.totalForVotes = proposal.totalForVotes.add(voteAmount).sub(
                proposal.forVotes[msg.sender]
            );
            proposal.forVotes[msg.sender] = voteAmount;
            // remove opposite votes
            proposal.totalAgainstVotes = proposal.totalAgainstVotes.sub(
                proposal.againstVotes[msg.sender]
            );
            proposal.againstVotes[msg.sender] = 0;
        } else {
            proposal.totalAgainstVotes = proposal
            .totalAgainstVotes
            .add(voteAmount)
            .sub(proposal.againstVotes[msg.sender]);
            proposal.againstVotes[msg.sender] = voteAmount;
            // remove opposite votes
            proposal.totalForVotes = proposal.totalForVotes.sub(
                proposal.forVotes[msg.sender]
            );
            proposal.forVotes[msg.sender] = 0;
        }

        emit VoteCast(msg.sender, id, support, voteAmount);
    }

    function executeProposal(uint256 id)
        external
        payable
        override
        nonReentrant
    {
        Proposal storage proposal = proposals[id];
        require(!proposal.executed, "yVRN: PROPOSAL_ALREADY_EXECUTED");
        {
            // check if proposal passed
            require(
                proposal.proposer != address(0),
                "yVRN: INVALID_PROPOSAL_ID"
            );
            require(
                block.number >= proposal.endBlock,
                "yVRN: PROPOSAL_IN_VOTING"
            );
            hasActiveProposal[proposal.proposer] = false;
            uint256 totalVotes = proposal.totalForVotes.add(
                proposal.totalAgainstVotes
            );
            if (
                totalVotes < proposal.quorumVotes ||
                proposal.totalForVotes <
                totalVotes.mul(voteThresholdPercent) / 1000000 ||
                block.number >= proposal.endBlock.add(executionPeriodBlocks) // execution period ended
            ) {
                return;
            }
        }

        bool success = true;
        uint256 remainingValue = msg.value;
        for (uint256 i = 0; i < proposal.targets.length; i++) {
            if (proposal.values[i] > 0) {
                require(
                    remainingValue >= proposal.values[i],
                    "yVRN: INSUFFICIENT_ETH"
                );
                remainingValue = remainingValue - proposal.values[i];
            }
            (success, ) = proposal.targets[i].call{value: proposal.values[i]}(
                abi.encodePacked(
                    bytes4(keccak256(bytes(proposal.signatures[i]))),
                    proposal.calldatas[i]
                )
            );
            if (!success) break;
        }
        proposal.executed = true;

        emit ProposalExecuted(id, success);
    }

    function getVotes(uint256 proposalId, address voter)
        external
        view
        override
        returns (bool support, uint256 voteAmount)
    {
        support = proposals[proposalId].forVotes[voter] > 0;
        voteAmount = support
            ? proposals[proposalId].forVotes[voter]
            : proposals[proposalId].againstVotes[voter];
    }

    function getProposalCalls(uint256 proposalId)
        external
        view
        override
        returns (
            address[] memory targets,
            uint256[] memory values,
            string[] memory signatures,
            bytes[] memory calldatas
        )
    {
        targets = proposals[proposalId].targets;
        values = proposals[proposalId].values;
        signatures = proposals[proposalId].signatures;
        calldatas = proposals[proposalId].calldatas;
    }

    // SETTERS
    function setTreasury(address _treasury) external override onlyThis {
        treasury = _treasury;
    }

    function setTreasuryEarlyWithdrawalFeeShare(
        uint256 _treasuryEarlyWithdrawalFeeShare
    ) external override onlyThis {
        require(_treasuryEarlyWithdrawalFeeShare <= 1000000);
        treasuryEarlyWithdrawalFeeShare = _treasuryEarlyWithdrawalFeeShare;
    }

    function setBlocksForNoWithdrawalFee(uint256 _blocksForNoWithdrawalFee)
        external
        override
        onlyThis
    {
        // max 60 days
        require(_blocksForNoWithdrawalFee <= 345600);
        blocksForNoWithdrawalFee = _blocksForNoWithdrawalFee;
    }

    function setEarlyWithdrawalFeePercent(uint256 _earlyWithdrawalFeePercent)
        external
        override
        onlyThis
    {
        // max 100%
        require(_earlyWithdrawalFeePercent <= 1000000);
        earlyWithdrawalFeePercent = _earlyWithdrawalFeePercent;
    }

    function setVotingPeriodBlocks(uint256 _votingPeriodBlocks)
        external
        override
        onlyThis
    {
        // min 8 hours, max 2 weeks
        require(_votingPeriodBlocks >= 1920 && _votingPeriodBlocks <= 80640);
        votingPeriodBlocks = _votingPeriodBlocks;
    }

    function setMinVarenForProposal(uint256 _minVarenForProposal)
        external
        override
        onlyThis
    {
        // min 0.01 Varen, max 520 Varen (1% of total supply)
        require(
            _minVarenForProposal >= 1e16 && _minVarenForProposal <= 520 * (1e18)
        );
        minVarenForProposal = _minVarenForProposal;
    }

    function setQuorumPercent(uint256 _quorumPercent)
        external
        override
        onlyThis
    {
        // min 10%, max 33%
        require(_quorumPercent >= 100000 && _quorumPercent <= 330000);
        quorumPercent = _quorumPercent;
    }

    function setVoteThresholdPercent(uint256 _voteThresholdPercent)
        external
        override
        onlyThis
    {
        // min 50%, max 66%
        require(
            _voteThresholdPercent >= 500000 && _voteThresholdPercent <= 660000
        );
        voteThresholdPercent = _voteThresholdPercent;
    }

    function setExecutionPeriodBlocks(uint256 _executionPeriodBlocks)
        external
        override
        onlyThis
    {
        // min 8 hours, max 30 days
        require(
            _executionPeriodBlocks >= 1920 && _executionPeriodBlocks <= 172800
        );
        executionPeriodBlocks = _executionPeriodBlocks;
    }

    // ERC20 functions (overridden to add modifiers)
    function transfer(address recipient, uint256 amount)
        public
        override
        nonReentrant
        returns (bool)
    {
        _updateVoteExpiry();
        require(_checkVoteExpiry(msg.sender, amount), "voteLockExpiry");
        super.transfer(recipient, amount);
    }

    function approve(address spender, uint256 amount)
        public
        override
        nonReentrant
        returns (bool)
    {
        super.approve(spender, amount);
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override nonReentrant returns (bool) {
        _updateVoteExpiry();
        require(_checkVoteExpiry(sender, amount), "voteLockExpiry");
        super.transferFrom(sender, recipient, amount);
    }

    function increaseAllowance(address spender, uint256 addedValue)
        public
        override
        nonReentrant
        returns (bool)
    {
        super.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue)
        public
        override
        nonReentrant
        returns (bool)
    {
        super.decreaseAllowance(spender, subtractedValue);
    }
    function decimals() public view virtual override returns (uint8) {
        return VAREN.decimals();
    }
}

File 2 of 11 : IERC677.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";

interface IERC677 is IERC20, IERC20Metadata {
    function transferAndCall(address recipient, uint amount, bytes memory data) external returns (bool success);
    
    event Transfer(address indexed from, address indexed to, uint value, bytes data);
}

interface IERC677Receiver {
    function onTokenTransfer(address sender, uint value, bytes memory data) external;
}

File 3 of 11 : IyVaren.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;
pragma experimental ABIEncoderV2;

import "./IERC677.sol";

interface IyVaren {
    // Event emitted when a new proposal is created
    event ProposalCreated(
        uint256 id,
        address indexed proposer,
        address[] targets,
        uint256[] values,
        string[] signatures,
        bytes[] calldatas,
        uint256 startBlock,
        uint256 endBlock,
        string description
    );
    // Event emitted when a vote has been cast on a proposal
    event VoteCast(
        address indexed voter,
        uint256 proposalId,
        bool support,
        uint256 votes
    );
    // Event emitted when a proposal has been executed
    // Success=true if all actions were executed successfully
    // Success=false if not all actions were executed successfully (executeProposal will not revert)
    event ProposalExecuted(uint256 id, bool success);

    // Maximum number of actions that can be included in a proposal
    function MAX_OPERATIONS() external pure returns (uint256);

    // https://etherscan.io/token/0x72377f31e30a405282b522d588aebbea202b4f23
    function VAREN() external returns (IERC677);

    struct Proposal {
        // Address that created the proposal
        address proposer;
        // Number of votes in support of the proposal by a particular address
        mapping(address => uint256) forVotes;
        // Number of votes against the proposal by a particular address
        mapping(address => uint256) againstVotes;
        // Total number of votes in support of the proposal
        uint256 totalForVotes;
        // Total number of votes against the proposal
        uint256 totalAgainstVotes;
        // Number of votes in support of a proposal required for a quorum to be reached and for a vote to succeed
        uint256 quorumVotes;
        // Block at which voting ends: votes must be cast prior to this block
        uint256 endBlock;
        // Ordered list of target addresses for calls to be made on
        address[] targets;
        // Ordered list of ETH values (i.e. msg.value) to be passed to the calls to be made
        uint256[] values;
        // Ordered list of function signatures to be called
        string[] signatures;
        // Ordered list of calldata to be passed to each call
        bytes[] calldatas;
        // Flag marking whether the proposal has been executed
        bool executed;
    }

    // Number of blocks after staking when the early withdrawal fee stops applying
    function blocksForNoWithdrawalFee() external view returns (uint256);

    // Fee for withdrawing before blocksForNoWithdrawalFee have passed, divide by 1,000,000 to get decimal form
    function earlyWithdrawalFeePercent() external view returns (uint256);

    function earlyWithdrawalFeeExpiry(address) external view returns (uint256);

    function treasury() external view returns (address);

    // Share of early withdrawal fee that goes to treasury (remainder goes to governance),
    // divide by 1,000,000 to get decimal form
    function treasuryEarlyWithdrawalFeeShare() external view returns (uint256);

    // Amount of an address's stake that is locked for voting
    function voteLockAmount(address) external view returns (uint256);

    // Block number when an address's vote-locked amount will be unlock
    function voteLockExpiry(address) external view returns (uint256);

    function hasActiveProposal(address) external view returns (bool);

    function proposals(uint256 id)
        external
        view
        returns (
            address proposer,
            uint256 totalForVotes,
            uint256 totalAgainstVotes,
            uint256 quorumVotes,
            uint256 endBlock,
            bool executed
        );

    // Number of proposals created, used as the id for the next proposal
    function proposalCount() external view returns (uint256);

    // Length of voting period in blocks
    function votingPeriodBlocks() external view returns (uint256);

    function minVarenForProposal() external view returns (uint256);

    // Need to divide by 1,000,000
    function quorumPercent() external view returns (uint256);

    // Need to divide by 1,000,000
    function voteThresholdPercent() external view returns (uint256);

    // Number of blocks after voting ends where proposals are allowed to be executed
    function executionPeriodBlocks() external view returns (uint256);

    function stake(uint256 amount) external;

    function withdraw(uint256 shares) external;

    function getPricePerFullShare() external view returns (uint256);

    function getStakeVarenValue(address staker) external view returns (uint256);

    function propose(
        address[] calldata targets,
        uint256[] calldata values,
        string[] calldata signatures,
        bytes[] calldata calldatas,
        string calldata description
    ) external returns (uint256 id);

    function vote(
        uint256 id,
        bool support,
        uint256 voteAmount
    ) external;

    function executeProposal(uint256 id) external payable;

    function getVotes(uint256 proposalId, address voter)
        external
        view
        returns (bool support, uint256 voteAmount);

    function getProposalCalls(uint256 proposalId)
        external
        view
        returns (
            address[] memory targets,
            uint256[] memory values,
            string[] memory signatures,
            bytes[] memory calldatas
        );

    function setTreasury(address) external;

    function setTreasuryEarlyWithdrawalFeeShare(uint256) external;

    function setBlocksForNoWithdrawalFee(uint256) external;

    function setEarlyWithdrawalFeePercent(uint256) external;

    function setVotingPeriodBlocks(uint256) external;

    function setMinVarenForProposal(uint256) external;

    function setQuorumPercent(uint256) external;

    function setVoteThresholdPercent(uint256) external;

    function setExecutionPeriodBlocks(uint256) external;
}

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract 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}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 value {ERC20} uses, unless this function is
     * 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `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;
        _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;
        }
        _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 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 {}
}

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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);
}

File 8 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 9 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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

File 11 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 no longer needed starting with Solidity 0.8. 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 substraction 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;
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "evmVersion": "berlin",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_varen","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_blocksForNoWithdrawalFee","type":"uint256"},{"internalType":"uint256","name":"_votingPeriodBlocks","type":"uint256"},{"internalType":"uint256","name":"_executionPeriodBlocks","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"proposer","type":"address"},{"indexed":false,"internalType":"address[]","name":"targets","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"},{"indexed":false,"internalType":"string[]","name":"signatures","type":"string[]"},{"indexed":false,"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"support","type":"bool"},{"indexed":false,"internalType":"uint256","name":"votes","type":"uint256"}],"name":"VoteCast","type":"event"},{"inputs":[],"name":"MAX_OPERATIONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAREN","outputs":[{"internalType":"contract IERC677","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksForNoWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"earlyWithdrawalFeeExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyWithdrawalFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"executeProposal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"executionPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposalCalls","outputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakeVarenValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"address","name":"voter","type":"address"}],"name":"getVotes","outputs":[{"internalType":"bool","name":"support","type":"bool"},{"internalType":"uint256","name":"voteAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasActiveProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minVarenForProposal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onTokenTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proposalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"uint256","name":"totalForVotes","type":"uint256"},{"internalType":"uint256","name":"totalAgainstVotes","type":"uint256"},{"internalType":"uint256","name":"quorumVotes","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"internalType":"string","name":"description","type":"string"}],"name":"propose","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"quorumPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blocksForNoWithdrawalFee","type":"uint256"}],"name":"setBlocksForNoWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyWithdrawalFeePercent","type":"uint256"}],"name":"setEarlyWithdrawalFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_executionPeriodBlocks","type":"uint256"}],"name":"setExecutionPeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minVarenForProposal","type":"uint256"}],"name":"setMinVarenForProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quorumPercent","type":"uint256"}],"name":"setQuorumPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryEarlyWithdrawalFeeShare","type":"uint256"}],"name":"setTreasuryEarlyWithdrawalFeeShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_voteThresholdPercent","type":"uint256"}],"name":"setVoteThresholdPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_votingPeriodBlocks","type":"uint256"}],"name":"setVotingPeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryEarlyWithdrawalFeeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"support","type":"bool"},{"internalType":"uint256","name":"voteAmount","type":"uint256"}],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voteLockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voteLockExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteThresholdPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052611388600755620f4240600a5567016345785d8a0000601155620249f06012556207a1206013553480156200003857600080fd5b5060405162004c5a38038062004c5a8339810160408190526200005b9162000247565b604080518082018252601381527f566172656e205374616b696e67205368617265000000000000000000000000006020808301918252835180850190945260048452633cab292760e11b908401528151919291620000bc9160039162000184565b508051620000d290600490602084019062000184565b50506001600555506001600160a01b03851615801590620000fb57506001600160a01b03841615155b620001415760405162461bcd60e51b81526020600482015260126024820152717956524e3a205a45524f5f4144445245535360701b604482015260640160405180910390fd5b60609490941b6001600160601b031916608052600980546001600160a01b0319166001600160a01b039490941693909317909255600655601055601455620002d7565b82805462000192906200029a565b90600052602060002090601f016020900481019282620001b6576000855562000201565b82601f10620001d157805160ff191683800117855562000201565b8280016001018555821562000201579182015b8281111562000201578251825591602001919060010190620001e4565b506200020f92915062000213565b5090565b5b808211156200020f576000815560010162000214565b80516001600160a01b03811681146200024257600080fd5b919050565b600080600080600060a086880312156200026057600080fd5b6200026b866200022a565b94506200027b602087016200022a565b6040870151606088015160809098015196999198509695945092505050565b600181811c90821680620002af57607f821691505b60208210811415620002d157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61491e6200033c600039600081816108ab015281816114360152818161152501528181611652015281816116f1015281816119b90152818161204a015281816121ef0152818161245101528181612dbe0152613521015261491e6000f3fe6080604052600436106103085760003560e01c8063797294ac1161019a578063b902421f116100e1578063dabee5541161008a578063f0f4426011610064578063f0f44260146109ac578063f81cbd26146109cc578063ffafe4ad146109e257600080fd5b8063dabee55414610923578063dd62ed3e14610939578063e5d5c76a1461098c57600080fd5b8063d46a5d7e116100bb578063d46a5d7e146108cd578063da35c664146108ed578063da95691a1461090357600080fd5b8063b902421f14610863578063bd5e83d014610879578063d3d7c5531461089957600080fd5b8063a388133a11610143578063a694fc3a1161011d578063a694fc3a1461080d578063a9059cbb1461082d578063b24b7ffd1461084d57600080fd5b8063a388133a146107ad578063a457c2d7146107cd578063a4c0ed36146107ed57600080fd5b806394924e551161017457806394924e551461074857806395d89b41146107685780639f6905351461077d57600080fd5b8063797294ac146106f2578063809c84b21461071257806384db62f41461072857600080fd5b806328a7878b1161025e5780635dc2803a116102075780636d6b086f116101e15780636d6b086f1461066d57806370a082311461069a57806377c7b8fc146106dd57600080fd5b80635dc2803a146105cf57806361d027b3146105e4578063681973601461063657600080fd5b806338e440841161023857806338e4408414610579578063395093511461058f57806357b223ba146105af57600080fd5b806328a7878b146105125780632e1a7d4d14610532578063313ce5671461055257600080fd5b80630d61b519116102c05780631a45650e1161029a5780631a45650e146104c657806323b872dd146104dc578063253fe18a146104fc57600080fd5b80630d61b519146104715780630f2049dd1461048457806318160ddd146104b157600080fd5b8063089275ff116102f1578063089275ff146103e4578063095ea7b31461041f5780630c9f441f1461044f57600080fd5b8063013cf08b1461030d57806306fdde03146103c2575b600080fd5b34801561031957600080fd5b50610377610328366004614296565b600e60205260009081526040902080546003820154600483015460058401546006850154600b9095015473ffffffffffffffffffffffffffffffffffffffff9094169492939192909160ff1686565b6040805173ffffffffffffffffffffffffffffffffffffffff909716875260208701959095529385019290925260608401526080830152151560a082015260c0015b60405180910390f35b3480156103ce57600080fd5b506103d7610a12565b6040516103b991906145e2565b3480156103f057600080fd5b506104116103ff3660046140a5565b600c6020526000908152604090205481565b6040519081526020016103b9565b34801561042b57600080fd5b5061043f61043a366004614126565b610aa4565b60405190151581526020016103b9565b34801561045b57600080fd5b5061046f61046a366004614296565b610b33565b005b61046f61047f366004614296565b610bb1565b34801561049057600080fd5b5061041161049f3660046140a5565b60086020526000908152604090205481565b3480156104bd57600080fd5b50600254610411565b3480156104d257600080fd5b5061041160115481565b3480156104e857600080fd5b5061043f6104f73660046140ea565b61110c565b34801561050857600080fd5b5061041160075481565b34801561051e57600080fd5b5061046f61052d366004614296565b611210565b34801561053e57600080fd5b5061046f61054d366004614296565b61128e565b34801561055e57600080fd5b506105676116ed565b60405160ff90911681526020016103b9565b34801561058557600080fd5b5061041160065481565b34801561059b57600080fd5b5061043f6105aa366004614126565b611792565b3480156105bb57600080fd5b5061046f6105ca366004614296565b611810565b3480156105db57600080fd5b50610411600a81565b3480156105f057600080fd5b506009546106119073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b9565b34801561064257600080fd5b506106566106513660046142c8565b61189c565b6040805192151583526020830191909152016103b9565b34801561067957600080fd5b506104116106883660046140a5565b600b6020526000908152604090205481565b3480156106a657600080fd5b506104116106b53660046140a5565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106e957600080fd5b5061041161194c565b3480156106fe57600080fd5b5061046f61070d366004614296565b6119ee565b34801561071e57600080fd5b5061041160135481565b34801561073457600080fd5b5061046f610743366004614296565b611a7b565b34801561075457600080fd5b5061046f610763366004614296565b611af9565b34801561077457600080fd5b506103d7611b85565b34801561078957600080fd5b5061079d610798366004614296565b611b94565b6040516103b9949392919061458a565b3480156107b957600080fd5b5061046f6107c8366004614296565b611e4e565b3480156107d957600080fd5b5061043f6107e8366004614126565b611edb565b3480156107f957600080fd5b5061046f610808366004614150565b611f59565b34801561081957600080fd5b5061046f610828366004614296565b6120db565b34801561083957600080fd5b5061043f610848366004614126565b6122f0565b34801561085957600080fd5b5061041160105481565b34801561086f57600080fd5b50610411600a5481565b34801561088557600080fd5b506104116108943660046140a5565b6123e6565b3480156108a557600080fd5b506106117f000000000000000000000000000000000000000000000000000000000000000081565b3480156108d957600080fd5b5061046f6108e83660046142eb565b61249b565b3480156108f957600080fd5b50610411600f5481565b34801561090f57600080fd5b5061041161091e3660046141a7565b6129c4565b34801561092f57600080fd5b5061041160145481565b34801561094557600080fd5b506104116109543660046140c0565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561099857600080fd5b5061046f6109a7366004614296565b612ec1565b3480156109b857600080fd5b5061046f6109c73660046140a5565b612f58565b3480156109d857600080fd5b5061041160125481565b3480156109ee57600080fd5b5061043f6109fd3660046140a5565b600d6020526000908152604090205460ff1681565b606060038054610a21906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4d906147c0565b8015610a9a5780601f10610a6f57610100808354040283529160200191610a9a565b820191906000526020600020905b815481529060010190602001808311610a7d57829003601f168201915b5050505050905090565b600060026005541415610b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600555610b278383613008565b50600160055592915050565b333014610b9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620f4240811115610bac57600080fd5b600a55565b60026005541415610c1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b60026005556000818152600e60205260409020600b81015460ff1615610ca0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f7956524e3a2050524f504f53414c5f414c52454144595f4558454355544544006044820152606401610b0f565b805473ffffffffffffffffffffffffffffffffffffffff16610d1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a20494e56414c49445f50524f504f53414c5f4944000000000000006044820152606401610b0f565b8060060154431015610d8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7956524e3a2050524f504f53414c5f494e5f564f54494e4700000000000000006044820152606401610b0f565b805473ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560048201546003830154610deb9161301e565b90508160050154811080610e245750620f4240610e136013548361303190919063ffffffff16565b610e1d9190614705565b8260030154105b80610e3f57506014546006830154610e3b9161301e565b4310155b15610e4b575050611104565b5060013460005b6007840154811015611098576000846008018281548110610e7557610e7561487c565b90600052602060002001541115610f3d57836008018181548110610e9b57610e9b61487c565b9060005260206000200154821015610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7956524e3a20494e53554646494349454e545f455448000000000000000000006044820152606401610b0f565b836008018181548110610f2457610f2461487c565b906000526020600020015482610f3a919061477d565b91505b836007018181548110610f5257610f5261487c565b60009182526020909120015460088501805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610f8d57610f8d61487c565b9060005260206000200154856009018381548110610fad57610fad61487c565b90600052602060002001604051610fc4919061457e565b604051809103902086600a018481548110610fe157610fe161487c565b90600052602060002001604051602001610ffc929190614526565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261103491614562565b60006040518083038185875af1925050503d8060008114611071576040519150601f19603f3d011682016040523d82523d6000602084013e611076565b606091505b5050809350508261108657611098565b8061109081614814565b915050610e52565b50600b830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805185815283151560208201527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc03910160405180910390a15050505b506001600555565b60006002600554141561117b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055561118861303d565b6111928483613073565b6111f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b6112038484846130b7565b5060016005559392505050565b333014611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620f424081111561128957600080fd5b600755565b600260055414156112fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055580611367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b61136f61303d565b6113793382613073565b6113df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b60006114bd6113ed60025490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526114b790859073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a08231906024015b60206040518083038186803b15801561147957600080fd5b505afa15801561148d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b191906142af565b90613031565b9061319d565b90506114c933836131a9565b3360009081526008602052604090205443101561161d576000620f42406114fb6007548461303190919063ffffffff16565b6115059190614705565b600954600a5491925073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169263a9059cbb9290911690620f424090611561908690613031565b61156b9190614705565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b1580156115d657600080fd5b505af11580156115ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160e9190614279565b506116198282613397565b9150505b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156116ab57600080fd5b505af11580156116bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e39190614279565b5050600160055550565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561175557600080fd5b505afa158015611769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178d9190614323565b905090565b600060026005541415611801576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555610b2783836133a3565b333014611879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b610780811015801561188e57506202a3008111155b61189757600080fd5b601455565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684526001019091528120541515908161190f576000848152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452600201909152902054611943565b6000848152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684526001019091529020545b90509250929050565b600061195760025490565b156119e85761178d61196860025490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526114b790670de0b6b3a76400009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401611461565b50600090565b333014611a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620186a08110158015611a6d5750620509108111155b611a7657600080fd5b601255565b333014611ae4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b62054600811115611af457600080fd5b600655565b333014611b62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b6107808110158015611b77575062013b008111155b611b8057600080fd5b601055565b606060048054610a21906147c0565b606080606080600e6000868152602001908152602001600020600701805480602002602001604051908101604052809291908181526020018280548015611c1157602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611be6575b50505050509350600e6000868152602001908152602001600020600801805480602002602001604051908101604052809291908181526020018280548015611c7857602002820191906000526020600020905b815481526020019060010190808311611c64575b5050506000888152600e6020908152604080832060090180548251818502810185019093528083529699509095909450925084015b82821015611d59578382906000526020600020018054611ccc906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf8906147c0565b8015611d455780601f10611d1a57610100808354040283529160200191611d45565b820191906000526020600020905b815481529060010190602001808311611d2857829003601f168201915b505050505081526020019060010190611cad565b505050509150600e6000868152602001908152602001600020600a01805480602002602001604051908101604052809291908181526020016000905b82821015611e41578382906000526020600020018054611db4906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054611de0906147c0565b8015611e2d5780601f10611e0257610100808354040283529160200191611e2d565b820191906000526020600020905b815481529060010190602001808311611e1057829003601f168201915b505050505081526020019060010190611d95565b5050505090509193509193565b333014611eb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b6207a1208110158015611ecd5750620a12208111155b611ed657600080fd5b601355565b600060026005541415611f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555610b2783836133ec565b60026005541415611fc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055581612032576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146120d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7956524e3a206163636573732064656e696564000000000000000000000000006044820152606401610b0f565b6116e383836134c4565b60026005541415612148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555806121b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b15801561224857600080fd5b505af115801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122809190614279565b6122e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a207472616e7366657246726f6d206661696c6564000000000000006044820152606401610b0f565b61110433826134c4565b60006002600554141561235f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055561236c61303d565b6123763383613073565b6123dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b610b2783836135fc565b60006124956123f460025490565b6114b76124238573ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401611461565b92915050565b60026005541415612508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b60026005556000838152600e60205260409020805473ffffffffffffffffffffffffffffffffffffffff16612599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a20494e56414c49445f50524f504f53414c5f4944000000000000006044820152606401610b0f565b80600601544310612606576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7956524e3a20564f54494e475f454e44454400000000000000000000000000006044820152606401610b0f565b60008211612670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b336000908152602081905260409020548211156126e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f7956524e3a20494e53554646494349454e545f42414c414e43450000000000006044820152606401610b0f565b6126f161303d565b336000908152600b602052604090205482101561276a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7956524e3a20534d414c4c45525f564f544500000000000000000000000000006044820152606401610b0f565b828015612787575033600090815260018201602052604090205482145b806127ab5750821580156127ab575033600090815260028201602052604090205482145b15612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a2053414d455f564f544500000000000000000000000000000000006044820152606401610b0f565b336000908152600b602052604090205482111561283c57336000908152600b602052604090208290555b336000908152600c602052604090205460068201541161286b57336000908152600c6020526040902054612871565b80600601545b336000908152600c602052604090205582156129035733600090815260018201602052604090205460038201546128b391906128ad908561301e565b90613397565b600382015533600090815260018201602090815260408083208590556002840190915290205460048201546128e791613397565b6004820155336000908152600282016020526040812055612975565b336000908152600282016020526040902054600482015461292991906128ad908561301e565b6004820155336000908152600282016020908152604080832085905560018401909152902054600382015461295d91613397565b60038201553360009081526001820160205260408120555b60408051858152841515602082015290810183905233907f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c469060600160405180910390a2505060016005555050565b600060026005541415612a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555336000908152600d602052604090205460ff1615612ab2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a204841535f4143544956455f50524f504f53414c000000000000006044820152606401610b0f565b84518651148015612ac4575083518651145b8015612ad1575082518651145b612b37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f7956524e3a205041524954595f4d49534d4154434800000000000000000000006044820152606401610b0f565b8551612b9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f7956524e3a204e4f5f414354494f4e53000000000000000000000000000000006044820152606401610b0f565b600a86511115612c0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7956524e3a20544f4f5f4d414e595f414354494f4e53000000000000000000006044820152606401610b0f565b601154612c33612c1a60025490565b336000908152602081905260409020546114b790612423565b1015612cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7956524e3a20494e53554646494349454e545f564152454e5f464f525f50524f60448201527f504f53414c0000000000000000000000000000000000000000000000000000006064820152608401610b0f565b601054600090612cd1904361301e565b600f546000908152600e6020908152604090912080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317815560068101839055895192935091612d2c916007840191908b0190613b89565b508651612d4290600883019060208a0190613c13565b508551612d589060098301906020890190613c4e565b508451612d6e90600a8301906020880190613ca7565b506000600382018190556004808301919091556012546040517f70a082310000000000000000000000000000000000000000000000000000000081523092810192909252620f424091612e0291907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401611461565b612e0c9190614705565b6005820155600b810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00908116909155336000908152600d6020526040902080549091166001908117909155600f54612e669161301e565b600f5560405133907f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e090612ea99086908c908c908c908c9043908b908e906145f5565b60405180910390a25050600160055595945050505050565b333014612f2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b662386f26fc100008110158015612f4a5750681c30731cec032000008111155b612f5357600080fd5b601155565b333014612fc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000613015338484613609565b50600192915050565b600061302a82846146ed565b9392505050565b600061302a8284614740565b336000908152600c6020526040902054431061307157336000908152600c60209081526040808320839055600b9091528120555b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832054918390528220546130ad91906128ad565b9091111592915050565b60006130c48484846137b4565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482811015613185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610b0f565b6131928533858403613609565b506001949350505050565b600061302a8284614705565b73ffffffffffffffffffffffffffffffffffffffff821661324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015613302576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040812083830390556002805484929061333e90849061477d565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050565b600061302a828461477d565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916130159185906133e79086906146ed565b613609565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054828110156134ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b0f565b6134ba3385858403613609565b5060019392505050565b60006134cf60025490565b156135b3576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526135ae9061359b90849073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561356357600080fd5b505afa158015613577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ad91906142af565b6114b76135a760025490565b8590613031565b6135b5565b815b90506135c18382613a69565b6006546135ce904361301e565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600860205260409020929092555050565b60006130153384846137b4565b73ffffffffffffffffffffffffffffffffffffffff83166136ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff821661374e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161338a565b73ffffffffffffffffffffffffffffffffffffffff8316613857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff82166138fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156139b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082208585039055918516815290812080548492906139f49084906146ed565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613a5a91815260200190565b60405180910390a35b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216613ae6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b0f565b8060026000828254613af891906146ed565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290613b329084906146ed565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054828255906000526020600020908101928215613c03579160200282015b82811115613c0357825182547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178255602090920191600190910190613ba9565b50613c0f929150613d00565b5090565b828054828255906000526020600020908101928215613c03579160200282015b82811115613c03578251825591602001919060010190613c33565b828054828255906000526020600020908101928215613c9b579160200282015b82811115613c9b5782518051613c8b918491602090910190613d15565b5091602001919060010190613c6e565b50613c0f929150613d88565b828054828255906000526020600020908101928215613cf4579160200282015b82811115613cf45782518051613ce4918491602090910190613d15565b5091602001919060010190613cc7565b50613c0f929150613da5565b5b80821115613c0f5760008155600101613d01565b828054613d21906147c0565b90600052602060002090601f016020900481019282613d435760008555613c03565b82601f10613d5c57805160ff1916838001178555613c03565b82800160010185558215613c035791820182811115613c03578251825591602001919060010190613c33565b80821115613c0f576000613d9c8282613dc2565b50600101613d88565b80821115613c0f576000613db98282613dc2565b50600101613da5565b508054613dce906147c0565b6000825580601f10613dde575050565b601f016020900490600052602060002090810190613dfc9190613d00565b50565b803573ffffffffffffffffffffffffffffffffffffffff81168114613e2357600080fd5b919050565b600082601f830112613e3957600080fd5b81356020613e4e613e49836146c9565b61467a565b80838252828201915082860187848660051b8901011115613e6e57600080fd5b60005b85811015613e9457613e8282613dff565b84529284019290840190600101613e71565b5090979650505050505050565b600082601f830112613eb257600080fd5b81356020613ec2613e49836146c9565b80838252828201915082860187848660051b8901011115613ee257600080fd5b6000805b86811015613f2557823567ffffffffffffffff811115613f04578283fd5b613f128b88838d0101614017565b8652509385019391850191600101613ee6565b509198975050505050505050565b600082601f830112613f4457600080fd5b81356020613f54613e49836146c9565b80838252828201915082860187848660051b8901011115613f7457600080fd5b6000805b86811015613f2557823567ffffffffffffffff811115613f96578283fd5b613fa48b88838d0101614017565b8652509385019391850191600101613f78565b600082601f830112613fc857600080fd5b81356020613fd8613e49836146c9565b80838252828201915082860187848660051b8901011115613ff857600080fd5b60005b85811015613e9457813584529284019290840190600101613ffb565b600082601f83011261402857600080fd5b813567ffffffffffffffff811115614042576140426148ab565b61407360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161467a565b81815284602083860101111561408857600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156140b757600080fd5b61302a82613dff565b600080604083850312156140d357600080fd5b6140dc83613dff565b915061194360208401613dff565b6000806000606084860312156140ff57600080fd5b61410884613dff565b925061411660208501613dff565b9150604084013590509250925092565b6000806040838503121561413957600080fd5b61414283613dff565b946020939093013593505050565b60008060006060848603121561416557600080fd5b61416e84613dff565b925060208401359150604084013567ffffffffffffffff81111561419157600080fd5b61419d86828701614017565b9150509250925092565b600080600080600060a086880312156141bf57600080fd5b853567ffffffffffffffff808211156141d757600080fd5b6141e389838a01613e28565b965060208801359150808211156141f957600080fd5b61420589838a01613fb7565b9550604088013591508082111561421b57600080fd5b61422789838a01613f33565b9450606088013591508082111561423d57600080fd5b61424989838a01613ea1565b9350608088013591508082111561425f57600080fd5b5061426c88828901614017565b9150509295509295909350565b60006020828403121561428b57600080fd5b815161302a816148da565b6000602082840312156142a857600080fd5b5035919050565b6000602082840312156142c157600080fd5b5051919050565b600080604083850312156142db57600080fd5b8235915061194360208401613dff565b60008060006060848603121561430057600080fd5b833592506020840135614312816148da565b929592945050506040919091013590565b60006020828403121561433557600080fd5b815160ff8116811461302a57600080fd5b600081518084526020808501945080840160005b8381101561438c57815173ffffffffffffffffffffffffffffffffffffffff168752958201959082019060010161435a565b509495945050505050565b6000815180845260208085019450848260051b860182860160005b85811015613e945783830389526143ca83835161440c565b988501989250908401906001016143b2565b600081518084526020808501945080840160005b8381101561438c578151875295820195908201906001016143f0565b60008151808452614424816020860160208601614794565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8054600090600181811c908083168061447057607f831692505b60208084108214156144ab577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b8180156144bf57600181146144ee5761451a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061451a565b876000528160002060005b868110156145125781548b8201529085019083016144f9565b505084890196505b50505050505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000083168152600061455a6004830184614456565b949350505050565b60008251614574818460208701614794565b9190910192915050565b600061302a8284614456565b60808152600061459d6080830187614346565b82810360208401526145af81876143dc565b905082810360408401526145c38186614397565b905082810360608401526145d78185614397565b979650505050505050565b60208152600061302a602083018461440c565b60006101008a835280602084015261460f8184018b614346565b90508281036040840152614623818a6143dc565b905082810360608401526146378189614397565b9050828103608084015261464b8188614397565b90508560a08401528460c084015282810360e084015261466b818561440c565b9b9a5050505050505050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146c1576146c16148ab565b604052919050565b600067ffffffffffffffff8211156146e3576146e36148ab565b5060051b60200190565b600082198211156147005761470061484d565b500190565b60008261473b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147785761477861484d565b500290565b60008282101561478f5761478f61484d565b500390565b60005b838110156147af578181015183820152602001614797565b83811115613a635750506000910152565b600181811c908216806147d457607f821691505b6020821081141561480e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148465761484661484d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114613dfc57600080fdfea2646970667358221220fd7322202cdb69396cd1a08a972b2128cf5afcbf90f159f94b4d5609b510a83264736f6c6343000806003300000000000000000000000072377f31e30a405282b522d588aebbea202b4f23000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae40000000000000000000000000000000000000000000000000000000000030d400000000000000000000000000000000000000000000000000000000000004a380000000000000000000000000000000000000000000000000000000000001b58

Deployed Bytecode

0x6080604052600436106103085760003560e01c8063797294ac1161019a578063b902421f116100e1578063dabee5541161008a578063f0f4426011610064578063f0f44260146109ac578063f81cbd26146109cc578063ffafe4ad146109e257600080fd5b8063dabee55414610923578063dd62ed3e14610939578063e5d5c76a1461098c57600080fd5b8063d46a5d7e116100bb578063d46a5d7e146108cd578063da35c664146108ed578063da95691a1461090357600080fd5b8063b902421f14610863578063bd5e83d014610879578063d3d7c5531461089957600080fd5b8063a388133a11610143578063a694fc3a1161011d578063a694fc3a1461080d578063a9059cbb1461082d578063b24b7ffd1461084d57600080fd5b8063a388133a146107ad578063a457c2d7146107cd578063a4c0ed36146107ed57600080fd5b806394924e551161017457806394924e551461074857806395d89b41146107685780639f6905351461077d57600080fd5b8063797294ac146106f2578063809c84b21461071257806384db62f41461072857600080fd5b806328a7878b1161025e5780635dc2803a116102075780636d6b086f116101e15780636d6b086f1461066d57806370a082311461069a57806377c7b8fc146106dd57600080fd5b80635dc2803a146105cf57806361d027b3146105e4578063681973601461063657600080fd5b806338e440841161023857806338e4408414610579578063395093511461058f57806357b223ba146105af57600080fd5b806328a7878b146105125780632e1a7d4d14610532578063313ce5671461055257600080fd5b80630d61b519116102c05780631a45650e1161029a5780631a45650e146104c657806323b872dd146104dc578063253fe18a146104fc57600080fd5b80630d61b519146104715780630f2049dd1461048457806318160ddd146104b157600080fd5b8063089275ff116102f1578063089275ff146103e4578063095ea7b31461041f5780630c9f441f1461044f57600080fd5b8063013cf08b1461030d57806306fdde03146103c2575b600080fd5b34801561031957600080fd5b50610377610328366004614296565b600e60205260009081526040902080546003820154600483015460058401546006850154600b9095015473ffffffffffffffffffffffffffffffffffffffff9094169492939192909160ff1686565b6040805173ffffffffffffffffffffffffffffffffffffffff909716875260208701959095529385019290925260608401526080830152151560a082015260c0015b60405180910390f35b3480156103ce57600080fd5b506103d7610a12565b6040516103b991906145e2565b3480156103f057600080fd5b506104116103ff3660046140a5565b600c6020526000908152604090205481565b6040519081526020016103b9565b34801561042b57600080fd5b5061043f61043a366004614126565b610aa4565b60405190151581526020016103b9565b34801561045b57600080fd5b5061046f61046a366004614296565b610b33565b005b61046f61047f366004614296565b610bb1565b34801561049057600080fd5b5061041161049f3660046140a5565b60086020526000908152604090205481565b3480156104bd57600080fd5b50600254610411565b3480156104d257600080fd5b5061041160115481565b3480156104e857600080fd5b5061043f6104f73660046140ea565b61110c565b34801561050857600080fd5b5061041160075481565b34801561051e57600080fd5b5061046f61052d366004614296565b611210565b34801561053e57600080fd5b5061046f61054d366004614296565b61128e565b34801561055e57600080fd5b506105676116ed565b60405160ff90911681526020016103b9565b34801561058557600080fd5b5061041160065481565b34801561059b57600080fd5b5061043f6105aa366004614126565b611792565b3480156105bb57600080fd5b5061046f6105ca366004614296565b611810565b3480156105db57600080fd5b50610411600a81565b3480156105f057600080fd5b506009546106119073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b9565b34801561064257600080fd5b506106566106513660046142c8565b61189c565b6040805192151583526020830191909152016103b9565b34801561067957600080fd5b506104116106883660046140a5565b600b6020526000908152604090205481565b3480156106a657600080fd5b506104116106b53660046140a5565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156106e957600080fd5b5061041161194c565b3480156106fe57600080fd5b5061046f61070d366004614296565b6119ee565b34801561071e57600080fd5b5061041160135481565b34801561073457600080fd5b5061046f610743366004614296565b611a7b565b34801561075457600080fd5b5061046f610763366004614296565b611af9565b34801561077457600080fd5b506103d7611b85565b34801561078957600080fd5b5061079d610798366004614296565b611b94565b6040516103b9949392919061458a565b3480156107b957600080fd5b5061046f6107c8366004614296565b611e4e565b3480156107d957600080fd5b5061043f6107e8366004614126565b611edb565b3480156107f957600080fd5b5061046f610808366004614150565b611f59565b34801561081957600080fd5b5061046f610828366004614296565b6120db565b34801561083957600080fd5b5061043f610848366004614126565b6122f0565b34801561085957600080fd5b5061041160105481565b34801561086f57600080fd5b50610411600a5481565b34801561088557600080fd5b506104116108943660046140a5565b6123e6565b3480156108a557600080fd5b506106117f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2381565b3480156108d957600080fd5b5061046f6108e83660046142eb565b61249b565b3480156108f957600080fd5b50610411600f5481565b34801561090f57600080fd5b5061041161091e3660046141a7565b6129c4565b34801561092f57600080fd5b5061041160145481565b34801561094557600080fd5b506104116109543660046140c0565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561099857600080fd5b5061046f6109a7366004614296565b612ec1565b3480156109b857600080fd5b5061046f6109c73660046140a5565b612f58565b3480156109d857600080fd5b5061041160125481565b3480156109ee57600080fd5b5061043f6109fd3660046140a5565b600d6020526000908152604090205460ff1681565b606060038054610a21906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4d906147c0565b8015610a9a5780601f10610a6f57610100808354040283529160200191610a9a565b820191906000526020600020905b815481529060010190602001808311610a7d57829003601f168201915b5050505050905090565b600060026005541415610b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600555610b278383613008565b50600160055592915050565b333014610b9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620f4240811115610bac57600080fd5b600a55565b60026005541415610c1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b60026005556000818152600e60205260409020600b81015460ff1615610ca0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f7956524e3a2050524f504f53414c5f414c52454144595f4558454355544544006044820152606401610b0f565b805473ffffffffffffffffffffffffffffffffffffffff16610d1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a20494e56414c49445f50524f504f53414c5f4944000000000000006044820152606401610b0f565b8060060154431015610d8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7956524e3a2050524f504f53414c5f494e5f564f54494e4700000000000000006044820152606401610b0f565b805473ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560048201546003830154610deb9161301e565b90508160050154811080610e245750620f4240610e136013548361303190919063ffffffff16565b610e1d9190614705565b8260030154105b80610e3f57506014546006830154610e3b9161301e565b4310155b15610e4b575050611104565b5060013460005b6007840154811015611098576000846008018281548110610e7557610e7561487c565b90600052602060002001541115610f3d57836008018181548110610e9b57610e9b61487c565b9060005260206000200154821015610f0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7956524e3a20494e53554646494349454e545f455448000000000000000000006044820152606401610b0f565b836008018181548110610f2457610f2461487c565b906000526020600020015482610f3a919061477d565b91505b836007018181548110610f5257610f5261487c565b60009182526020909120015460088501805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610f8d57610f8d61487c565b9060005260206000200154856009018381548110610fad57610fad61487c565b90600052602060002001604051610fc4919061457e565b604051809103902086600a018481548110610fe157610fe161487c565b90600052602060002001604051602001610ffc929190614526565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261103491614562565b60006040518083038185875af1925050503d8060008114611071576040519150601f19603f3d011682016040523d82523d6000602084013e611076565b606091505b5050809350508261108657611098565b8061109081614814565b915050610e52565b50600b830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805185815283151560208201527f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc03910160405180910390a15050505b506001600555565b60006002600554141561117b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055561118861303d565b6111928483613073565b6111f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b6112038484846130b7565b5060016005559392505050565b333014611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620f424081111561128957600080fd5b600755565b600260055414156112fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055580611367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b61136f61303d565b6113793382613073565b6113df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b60006114bd6113ed60025490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526114b790859073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2316906370a08231906024015b60206040518083038186803b15801561147957600080fd5b505afa15801561148d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b191906142af565b90613031565b9061319d565b90506114c933836131a9565b3360009081526008602052604090205443101561161d576000620f42406114fb6007548461303190919063ffffffff16565b6115059190614705565b600954600a5491925073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2381169263a9059cbb9290911690620f424090611561908690613031565b61156b9190614705565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b1580156115d657600080fd5b505af11580156115ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160e9190614279565b506116198282613397565b9150505b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2373ffffffffffffffffffffffffffffffffffffffff169063a9059cbb90604401602060405180830381600087803b1580156116ab57600080fd5b505af11580156116bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e39190614279565b5050600160055550565b60007f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2373ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561175557600080fd5b505afa158015611769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178d9190614323565b905090565b600060026005541415611801576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555610b2783836133a3565b333014611879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b610780811015801561188e57506202a3008111155b61189757600080fd5b601455565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684526001019091528120541515908161190f576000848152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452600201909152902054611943565b6000848152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684526001019091529020545b90509250929050565b600061195760025490565b156119e85761178d61196860025490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526114b790670de0b6b3a76400009073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2316906370a0823190602401611461565b50600090565b333014611a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b620186a08110158015611a6d5750620509108111155b611a7657600080fd5b601255565b333014611ae4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b62054600811115611af457600080fd5b600655565b333014611b62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b6107808110158015611b77575062013b008111155b611b8057600080fd5b601055565b606060048054610a21906147c0565b606080606080600e6000868152602001908152602001600020600701805480602002602001604051908101604052809291908181526020018280548015611c1157602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611be6575b50505050509350600e6000868152602001908152602001600020600801805480602002602001604051908101604052809291908181526020018280548015611c7857602002820191906000526020600020905b815481526020019060010190808311611c64575b5050506000888152600e6020908152604080832060090180548251818502810185019093528083529699509095909450925084015b82821015611d59578382906000526020600020018054611ccc906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cf8906147c0565b8015611d455780601f10611d1a57610100808354040283529160200191611d45565b820191906000526020600020905b815481529060010190602001808311611d2857829003601f168201915b505050505081526020019060010190611cad565b505050509150600e6000868152602001908152602001600020600a01805480602002602001604051908101604052809291908181526020016000905b82821015611e41578382906000526020600020018054611db4906147c0565b80601f0160208091040260200160405190810160405280929190818152602001828054611de0906147c0565b8015611e2d5780601f10611e0257610100808354040283529160200191611e2d565b820191906000526020600020905b815481529060010190602001808311611e1057829003601f168201915b505050505081526020019060010190611d95565b5050505090509193509193565b333014611eb7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b6207a1208110158015611ecd5750620a12208111155b611ed657600080fd5b601355565b600060026005541415611f4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555610b2783836133ec565b60026005541415611fc6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055581612032576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2316146120d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7956524e3a206163636573732064656e696564000000000000000000000000006044820152606401610b0f565b6116e383836134c4565b60026005541415612148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555806121b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2373ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b15801561224857600080fd5b505af115801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122809190614279565b6122e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a207472616e7366657246726f6d206661696c6564000000000000006044820152606401610b0f565b61110433826134c4565b60006002600554141561235f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b600260055561236c61303d565b6123763383613073565b6123dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f766f74654c6f636b4578706972790000000000000000000000000000000000006044820152606401610b0f565b610b2783836135fc565b60006124956123f460025490565b6114b76124238573ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2373ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401611461565b92915050565b60026005541415612508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b60026005556000838152600e60205260409020805473ffffffffffffffffffffffffffffffffffffffff16612599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a20494e56414c49445f50524f504f53414c5f4944000000000000006044820152606401610b0f565b80600601544310612606576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7956524e3a20564f54494e475f454e44454400000000000000000000000000006044820152606401610b0f565b60008211612670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f7956524e3a205a45524f000000000000000000000000000000000000000000006044820152606401610b0f565b336000908152602081905260409020548211156126e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f7956524e3a20494e53554646494349454e545f42414c414e43450000000000006044820152606401610b0f565b6126f161303d565b336000908152600b602052604090205482101561276a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f7956524e3a20534d414c4c45525f564f544500000000000000000000000000006044820152606401610b0f565b828015612787575033600090815260018201602052604090205482145b806127ab5750821580156127ab575033600090815260028201602052604090205482145b15612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a2053414d455f564f544500000000000000000000000000000000006044820152606401610b0f565b336000908152600b602052604090205482111561283c57336000908152600b602052604090208290555b336000908152600c602052604090205460068201541161286b57336000908152600c6020526040902054612871565b80600601545b336000908152600c602052604090205582156129035733600090815260018201602052604090205460038201546128b391906128ad908561301e565b90613397565b600382015533600090815260018201602090815260408083208590556002840190915290205460048201546128e791613397565b6004820155336000908152600282016020526040812055612975565b336000908152600282016020526040902054600482015461292991906128ad908561301e565b6004820155336000908152600282016020908152604080832085905560018401909152902054600382015461295d91613397565b60038201553360009081526001820160205260408120555b60408051858152841515602082015290810183905233907f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c469060600160405180910390a2505060016005555050565b600060026005541415612a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0f565b6002600555336000908152600d602052604090205460ff1615612ab2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7956524e3a204841535f4143544956455f50524f504f53414c000000000000006044820152606401610b0f565b84518651148015612ac4575083518651145b8015612ad1575082518651145b612b37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f7956524e3a205041524954595f4d49534d4154434800000000000000000000006044820152606401610b0f565b8551612b9f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f7956524e3a204e4f5f414354494f4e53000000000000000000000000000000006044820152606401610b0f565b600a86511115612c0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7956524e3a20544f4f5f4d414e595f414354494f4e53000000000000000000006044820152606401610b0f565b601154612c33612c1a60025490565b336000908152602081905260409020546114b790612423565b1015612cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7956524e3a20494e53554646494349454e545f564152454e5f464f525f50524f60448201527f504f53414c0000000000000000000000000000000000000000000000000000006064820152608401610b0f565b601054600090612cd1904361301e565b600f546000908152600e6020908152604090912080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317815560068101839055895192935091612d2c916007840191908b0190613b89565b508651612d4290600883019060208a0190613c13565b508551612d589060098301906020890190613c4e565b508451612d6e90600a8301906020880190613ca7565b506000600382018190556004808301919091556012546040517f70a082310000000000000000000000000000000000000000000000000000000081523092810192909252620f424091612e0291907f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2373ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401611461565b612e0c9190614705565b6005820155600b810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00908116909155336000908152600d6020526040902080549091166001908117909155600f54612e669161301e565b600f5560405133907f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e090612ea99086908c908c908c908c9043908b908e906145f5565b60405180910390a25050600160055595945050505050565b333014612f2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b662386f26fc100008110158015612f4a5750681c30731cec032000008111155b612f5357600080fd5b601155565b333014612fc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7956524e3a20464f5242494444454e00000000000000000000000000000000006044820152606401610b0f565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000613015338484613609565b50600192915050565b600061302a82846146ed565b9392505050565b600061302a8284614740565b336000908152600c6020526040902054431061307157336000908152600c60209081526040808320839055600b9091528120555b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832054918390528220546130ad91906128ad565b9091111592915050565b60006130c48484846137b4565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482811015613185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610b0f565b6131928533858403613609565b506001949350505050565b600061302a8284614705565b73ffffffffffffffffffffffffffffffffffffffff821661324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015613302576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040812083830390556002805484929061333e90849061477d565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a3505050565b600061302a828461477d565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916130159185906133e79086906146ed565b613609565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054828110156134ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b0f565b6134ba3385858403613609565b5060019392505050565b60006134cf60025490565b156135b3576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526135ae9061359b90849073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000072377f31e30a405282b522d588aebbea202b4f2316906370a082319060240160206040518083038186803b15801561356357600080fd5b505afa158015613577573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ad91906142af565b6114b76135a760025490565b8590613031565b6135b5565b815b90506135c18382613a69565b6006546135ce904361301e565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600860205260409020929092555050565b60006130153384846137b4565b73ffffffffffffffffffffffffffffffffffffffff83166136ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff821661374e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910161338a565b73ffffffffffffffffffffffffffffffffffffffff8316613857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff82166138fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156139b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b0f565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082208585039055918516815290812080548492906139f49084906146ed565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613a5a91815260200190565b60405180910390a35b50505050565b73ffffffffffffffffffffffffffffffffffffffff8216613ae6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b0f565b8060026000828254613af891906146ed565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290613b329084906146ed565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054828255906000526020600020908101928215613c03579160200282015b82811115613c0357825182547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178255602090920191600190910190613ba9565b50613c0f929150613d00565b5090565b828054828255906000526020600020908101928215613c03579160200282015b82811115613c03578251825591602001919060010190613c33565b828054828255906000526020600020908101928215613c9b579160200282015b82811115613c9b5782518051613c8b918491602090910190613d15565b5091602001919060010190613c6e565b50613c0f929150613d88565b828054828255906000526020600020908101928215613cf4579160200282015b82811115613cf45782518051613ce4918491602090910190613d15565b5091602001919060010190613cc7565b50613c0f929150613da5565b5b80821115613c0f5760008155600101613d01565b828054613d21906147c0565b90600052602060002090601f016020900481019282613d435760008555613c03565b82601f10613d5c57805160ff1916838001178555613c03565b82800160010185558215613c035791820182811115613c03578251825591602001919060010190613c33565b80821115613c0f576000613d9c8282613dc2565b50600101613d88565b80821115613c0f576000613db98282613dc2565b50600101613da5565b508054613dce906147c0565b6000825580601f10613dde575050565b601f016020900490600052602060002090810190613dfc9190613d00565b50565b803573ffffffffffffffffffffffffffffffffffffffff81168114613e2357600080fd5b919050565b600082601f830112613e3957600080fd5b81356020613e4e613e49836146c9565b61467a565b80838252828201915082860187848660051b8901011115613e6e57600080fd5b60005b85811015613e9457613e8282613dff565b84529284019290840190600101613e71565b5090979650505050505050565b600082601f830112613eb257600080fd5b81356020613ec2613e49836146c9565b80838252828201915082860187848660051b8901011115613ee257600080fd5b6000805b86811015613f2557823567ffffffffffffffff811115613f04578283fd5b613f128b88838d0101614017565b8652509385019391850191600101613ee6565b509198975050505050505050565b600082601f830112613f4457600080fd5b81356020613f54613e49836146c9565b80838252828201915082860187848660051b8901011115613f7457600080fd5b6000805b86811015613f2557823567ffffffffffffffff811115613f96578283fd5b613fa48b88838d0101614017565b8652509385019391850191600101613f78565b600082601f830112613fc857600080fd5b81356020613fd8613e49836146c9565b80838252828201915082860187848660051b8901011115613ff857600080fd5b60005b85811015613e9457813584529284019290840190600101613ffb565b600082601f83011261402857600080fd5b813567ffffffffffffffff811115614042576140426148ab565b61407360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161467a565b81815284602083860101111561408857600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156140b757600080fd5b61302a82613dff565b600080604083850312156140d357600080fd5b6140dc83613dff565b915061194360208401613dff565b6000806000606084860312156140ff57600080fd5b61410884613dff565b925061411660208501613dff565b9150604084013590509250925092565b6000806040838503121561413957600080fd5b61414283613dff565b946020939093013593505050565b60008060006060848603121561416557600080fd5b61416e84613dff565b925060208401359150604084013567ffffffffffffffff81111561419157600080fd5b61419d86828701614017565b9150509250925092565b600080600080600060a086880312156141bf57600080fd5b853567ffffffffffffffff808211156141d757600080fd5b6141e389838a01613e28565b965060208801359150808211156141f957600080fd5b61420589838a01613fb7565b9550604088013591508082111561421b57600080fd5b61422789838a01613f33565b9450606088013591508082111561423d57600080fd5b61424989838a01613ea1565b9350608088013591508082111561425f57600080fd5b5061426c88828901614017565b9150509295509295909350565b60006020828403121561428b57600080fd5b815161302a816148da565b6000602082840312156142a857600080fd5b5035919050565b6000602082840312156142c157600080fd5b5051919050565b600080604083850312156142db57600080fd5b8235915061194360208401613dff565b60008060006060848603121561430057600080fd5b833592506020840135614312816148da565b929592945050506040919091013590565b60006020828403121561433557600080fd5b815160ff8116811461302a57600080fd5b600081518084526020808501945080840160005b8381101561438c57815173ffffffffffffffffffffffffffffffffffffffff168752958201959082019060010161435a565b509495945050505050565b6000815180845260208085019450848260051b860182860160005b85811015613e945783830389526143ca83835161440c565b988501989250908401906001016143b2565b600081518084526020808501945080840160005b8381101561438c578151875295820195908201906001016143f0565b60008151808452614424816020860160208601614794565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8054600090600181811c908083168061447057607f831692505b60208084108214156144ab577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b8180156144bf57600181146144ee5761451a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061451a565b876000528160002060005b868110156145125781548b8201529085019083016144f9565b505084890196505b50505050505092915050565b7fffffffff0000000000000000000000000000000000000000000000000000000083168152600061455a6004830184614456565b949350505050565b60008251614574818460208701614794565b9190910192915050565b600061302a8284614456565b60808152600061459d6080830187614346565b82810360208401526145af81876143dc565b905082810360408401526145c38186614397565b905082810360608401526145d78185614397565b979650505050505050565b60208152600061302a602083018461440c565b60006101008a835280602084015261460f8184018b614346565b90508281036040840152614623818a6143dc565b905082810360608401526146378189614397565b9050828103608084015261464b8188614397565b90508560a08401528460c084015282810360e084015261466b818561440c565b9b9a5050505050505050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146c1576146c16148ab565b604052919050565b600067ffffffffffffffff8211156146e3576146e36148ab565b5060051b60200190565b600082198211156147005761470061484d565b500190565b60008261473b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147785761477861484d565b500290565b60008282101561478f5761478f61484d565b500390565b60005b838110156147af578181015183820152602001614797565b83811115613a635750506000910152565b600181811c908216806147d457607f821691505b6020821081141561480e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148465761484661484d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114613dfc57600080fdfea2646970667358221220fd7322202cdb69396cd1a08a972b2128cf5afcbf90f159f94b4d5609b510a83264736f6c63430008060033

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

00000000000000000000000072377f31e30a405282b522d588aebbea202b4f23000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae40000000000000000000000000000000000000000000000000000000000030d400000000000000000000000000000000000000000000000000000000000004a380000000000000000000000000000000000000000000000000000000000001b58

-----Decoded View---------------
Arg [0] : _varen (address): 0x72377f31e30a405282b522d588AEbbea202b4f23
Arg [1] : _treasury (address): 0xE69A81b96FBF5Cb6CAe95d2cE5323Eff2bA0EAE4
Arg [2] : _blocksForNoWithdrawalFee (uint256): 200000
Arg [3] : _votingPeriodBlocks (uint256): 19000
Arg [4] : _executionPeriodBlocks (uint256): 7000

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000072377f31e30a405282b522d588aebbea202b4f23
Arg [1] : 000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000030d40
Arg [3] : 0000000000000000000000000000000000000000000000000000000000004a38
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001b58


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.