Contract 0x02a8dc66334b1cc6cd8f28fe8dbf6b58b49b47b6

Contract Overview

10mb: 10MB Token
Balance:
0 CRO

CRO Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x00d81963e4dfbc6221bcd6d87ceaa70a93fd0f34f8d35951a1a64094c46d44c7Approve131119482024-03-21 14:15:227 days 14 hrs ago0x664fe2accb8096bd612639eb1e05a81121a9ea9a IN  10mb: 10MB Token0 CRO0.1228047625 5,048.5
0x734ebdf5d9d6deb249c2539cf74ff982006243060d9e9c7c2856022ccc2fc7d0Approve130559302024-03-17 22:42:0411 days 6 hrs ago0xb1eeaff637b5392dff4419d812b5456862d158a1 IN  10mb: 10MB Token0 CRO0.126490
0x696bc1ba2ffca8e9f878bcc38b3232f31c5e299d69c69f4a0c71f6901ce0af84Approve125451472024-02-13 21:22:2544 days 7 hrs ago0x846ca504974ee0e5feb8c6cf2d3bedd27216197a IN  10mb: 10MB Token0 CRO0.245609525 10,097
0xcb5ce74f27a44367a8e300f7f9ff91be9e7c698c37c0faf618fe8d014b3c4dd4Approve121189972024-01-17 4:04:0672 days 46 mins ago0xfd8e71d21d5a5709d5c135328068c95d5f0fefc3 IN  10mb: 10MB Token0 CRO0.245609525 10,097
0xece40a14dcfa18fffc98822068557762aa3c3b58aea89bd9f7bf3f9db680e603Approve118769042024-01-01 10:10:1587 days 18 hrs ago0xd317eb45737c60f7f914d3b64c9df0694bb2db07 IN  10mb: 10MB Token0 CRO0.265510617322 10,085.87340257
0xbdf7da3e2738bf25f554f6c98a536950a1c66cd702cccd05bca8631c826e665eApprove118768932024-01-01 10:09:1287 days 18 hrs ago0xd317eb45737c60f7f914d3b64c9df0694bb2db07 IN  10mb: 10MB Token0 CRO0.24540347476 10,088.529281
0xe32d3a80aa07693fd428c32652837a8f084e9caa1f0a5e1a0a0ebfca24bc97dcApprove113902032023-11-30 18:08:13119 days 10 hrs agoCronos ID Name todatop.cro IN  10mb: 10MB Token0 CRO0.121402560813 4,611.683221781
0xffae03f46f151652eb15bb7a6a7c3ffd3d5ee2bb17b02bb3375eda8181e8f944Approve112883742023-11-24 3:29:59126 days 1 hr ago0x73233bee38bb2a0a9ee119d984652e87ee2dab7c IN  10mb: 10MB Token0 CRO0.112289712884 4,616.226634522
0x847ace397f12f3042434f891dfffa8fd3bf4ba7efd8586777528726f00200485Approve112670102023-11-22 18:12:26127 days 10 hrs ago0x24f5cb4d0846395c629032eb2deb759ecc251846 IN  10mb: 10MB Token0 CRO0.112312770764 4,617.174543242
0x08b667dc64731e39d4021ac1b18ad1be4fff1a8c2bc6821e82b341ea7351c2dfApprove109741092023-11-03 17:15:51146 days 11 hrs ago0x7b42c7b6ff2ab456e4ba16b0f47885a04c755a4f IN  10mb: 10MB Token0 CRO0.112627041041 4,630.094184657
0x0506abeae8c951639e2d0c2e6b6439c582fd773a5803f19ad439f8785fd76fd2Approve109741082023-11-03 17:15:46146 days 11 hrs ago0x7b42c7b6ff2ab456e4ba16b0f47885a04c755a4f IN  10mb: 10MB Token0 CRO0.112627042162 4,630.094230723
0x9ade2cbd96cad19de68c4ad4f6a55a2a7b622b314e51e44b9568a7cdc8a5ad05Approve106810192023-10-15 14:20:28165 days 14 hrs ago0xf6073199dab4e8c34e89f53265970fcd89cf7f32 IN  10mb: 10MB Token0 CRO0.11294750967 4,643.268640122
0x6f9301ba8eeeaed97116d10a6ce9f411df6603d9e655a248553b491b7630a28dApprove96766942023-08-11 1:25:14231 days 3 hrs agoCronos ID Name todatop.cro IN  10mb: 10MB Token0 CRO0.11402159567 4,687.424282463
0xe875fe854c02751351312c0f1e9d620e4c9ecd28394121b73ef2e9a4116a1c26Approve94835962023-07-29 11:12:42243 days 17 hrs ago0x7d0522a27409ad6f6a93ac604da2bfcdf703f5cc IN  10mb: 10MB Token0 CRO0.114272255509 4,697.728900719
0x2d13bbbbefb7272ae4a752627889290d22e6703050a873275006b50b388b51c5Approve88131802023-06-15 18:42:31287 days 10 hrs ago0xce91b54d0f2ff5a299392f224957105db74cb558 IN  10mb: 10MB Token0 CRO0.14271250
0x8818d72fde2fbe7dce1cdc0eb13b492c5cc242136b1632ce3cf597c893439b9bApprove87073002023-06-08 20:06:18294 days 8 hrs ago0xfdf1bff1850f05641075588e380622d25774a7ec IN  10mb: 10MB Token0 CRO0.14271250
0xdd7f437bbe9f6cbace5b209a59f177faf4c9fb8fff3edfceb0379a94f3bf2819Approve85318112023-05-28 7:49:08305 days 21 hrs agoCronos ID Name cla6ixx.cro IN  10mb: 10MB Token0 CRO0.224105221792 4,808.196309567
0x511867da8628f04a7732fa9946f7d143665ed8ee167d183d9774f006c75492c2Approve83089862023-05-13 17:03:28320 days 11 hrs ago0x4e3a9949461384bef2bc09ba4f2539c4c6e4eed4 IN  10mb: 10MB Token0 CRO0.1733148163950
0xd47c359f8e11ede60f88a5c1e778cbadc82c886e4045760433ab46614256be9aApprove81011852023-04-30 2:36:05334 days 2 hrs ago0x73cbdf131364a3b8dc6110a6037aba1f868167ee IN  10mb: 10MB Token0 CRO0.11919250
0x67b046da9ac767b0db2411ffd82340e865a6e00abd0185235c50ca409b70c5c9Approve80985782023-04-29 22:30:14334 days 6 hrs ago0x73cbdf131364a3b8dc6110a6037aba1f868167ee IN  10mb: 10MB Token0 CRO0.1216250
0x931aad8de41fc35d1cde15328472ca03ab541db47b68bc7a80b16ea07cc57a16Approve77814082023-04-09 4:30:23355 days 19 mins ago0xecfdc48b0d8bdcc97654611bc138c88593820a2c IN  10mb: 10MB Token0 CRO0.2383850
0x0e6c9a4877cd170de9149c21738eef0fb266e9ae34a1b86acdb086b6ceb7ce91Approve77714592023-04-08 12:54:17355 days 15 hrs ago0x6608fa018c3bde5dec9c24765255696cc7eb1b0e IN  10mb: 10MB Token0 CRO0.116143929182 4,774.673347707
0xcaf1f320496d95d1b26d0a440a77a19c3cc4b0db68cb90e697d46a8f1884b9a6Approve75751952023-03-26 16:56:50368 days 11 hrs agoMinotaur Money: Deployer IN  10mb: 10MB Token0 CRO0.231665 5,000
0xed08c352d5030cf62cec50e81258b5b1fc80213428c4b603de7f652bb4f8eb74Approve73631852023-03-12 20:07:25382 days 8 hrs ago0x4cdeb85717fecf5f890bcb3cd19779cbeecc4592 IN  10mb: 10MB Token0 CRO0.1165988597030
0x4f2bd3c66136d56e572f7f8c08a2373b4ece7eaa9bac087c741e137e1e86d853Transfer68690152023-02-08 12:39:40414 days 16 hrs agoCronos ID Name monkieboi.cro IN  10mb: 10MB Token0 CRO0.1774963486410
[ Download CSV Export 

OVERVIEW

10mb is an algorithmic stable coin pegged to 0.1 USDC by two different mechanisms: Seignorage and Fractional Collateralization.

Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
_10MB

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >0.6.12;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "../lib/SafeMath8.sol";
import "../interfaces/IOracle.sol";
import "../interfaces/ITreasury.sol";

contract _10MB is ERC20Burnable, Ownable {
    using SafeMath8 for uint8;
    using SafeMath for uint256;

    mapping(address => bool) public operators;

    /* ================= Taxation =============== */
    // Address of the Oracle
    address public oracle;
    // Address of the Tax Office
    address public taxOffice;

    ITreasury public treasury;

    // Current tax rate
    uint256 public taxRate;
    // Price threshold below which taxes will get burned
    uint256 public burnThreshold = 0;//1.10e18;
    // Address of the tax collector wallet
    address public taxCollectorAddress;

    // Should the taxes be calculated using the tax tiers
    bool public autoCalculateTax = false; // turn on at the end of deploy script

    // Tax Tiers
    uint256[] public taxTiersTwaps = [0, 5e4, 6e4, 7e4, 8e4, 9e4, 9.5e4, 1e5, 1.05e5, 1.10e5, 1.20e5, 1.30e5, 1.40e5, 1.50e5];
    uint256[] public taxTiersRates = [2000, 1500, 1500, 1500, 1000, 500, 200, 20, 20, 20, 20, 20, 20, 20];

    // Sender addresses excluded from Tax
    mapping(address => bool) public excludedAddresses;

    event TaxOfficeTransferred(address oldAddress, address newAddress);
    // Track DOLLAR burned
    event DollarBurned(address indexed from, address indexed to, uint256 amount);

    // Track DOLLAR minted
    event DollarMinted(address indexed from, address indexed to, uint256 amount);

    event SetTaxTiersTwap(uint256 indexed index, uint256 value);
    event SetTaxTiersRates(uint256 indexed from, uint256 value);

    modifier onlyPools() {
        require(ITreasury(treasury).hasPool(msg.sender), "!pools");
        _;
    }

    modifier onlyOperator() {
        require(operators[msg.sender], "Caller is not operator");
        _;
    }

    modifier onlyTaxOffice() {
        require(taxOffice == msg.sender, "Caller is not the tax office");
        _;
    }

    modifier onlyOperatorOrTaxOffice() {
        require(operators[msg.sender] || taxOffice == msg.sender, "Caller is not the operator or the tax office");
        _;
    }

    /**
     * @notice Constructs the 10MB ERC-20 contract.
     */
    constructor(ITreasury _treasury, uint256 _taxRate, address _taxCollectorAddress) public ERC20("10MB", "10MB") {
        require(_taxRate <= 2000, "tax equal or less than 20%");
        require(_taxCollectorAddress != address(0), "tax collector address must be non-zero address");

        operators[msg.sender] = true;

        excludeAddress(address(this));

        _mint(msg.sender, 5100000 ether);
        _mint(0x67CF8F525d89a26f23f05dc7D8C811b0CDB5CbE0, 1500000 ether);
        
        taxRate = _taxRate;
        taxCollectorAddress = _taxCollectorAddress;

        treasury = _treasury;
    }

    /* ============= Taxation ============= */

    function getTaxTiersTwapsCount() public view returns (uint256 count) {
        return taxTiersTwaps.length;
    }

    function getTaxTiersRatesCount() public view returns (uint256 count) {
        return taxTiersRates.length;
    }

    function isAddressExcluded(address _address) public view returns (bool) {
        return excludedAddresses[_address];
    }

    function setTaxTiersTwap(uint8 _index, uint256 _value) public onlyTaxOffice returns (bool) {
        require(_index >= 0, "Index has to be higher than 0");
        require(_value <= 2000, "tax equal or less than 20%");
        require(_index < getTaxTiersTwapsCount(), "Index has to lower than count of tax tiers");
        if (_index > 0) {
            require(_value > taxTiersTwaps[_index - 1]);
        }
        if (_index < getTaxTiersTwapsCount().sub(1)) {
            require(_value < taxTiersTwaps[_index + 1]);
        }

        taxTiersTwaps[_index] = _value;

        emit SetTaxTiersTwap(_index, _value);
        return true;
    }

    function setTaxTiersRate(uint8 _index, uint256 _value) public onlyTaxOffice returns (bool) {
        require(_index >= 0, "Index has to be higher than 0");
        require(_index < getTaxTiersRatesCount(), "Index has to lower than count of tax tiers");
        taxTiersRates[_index] = _value;

        emit SetTaxTiersRates(_index, _value);
        return true;
    }

    function setBurnThreshold(uint256 _burnThreshold) public onlyTaxOffice returns (bool) {
        burnThreshold = _burnThreshold;
    }

    function _get10MBPrice() internal view returns (uint256 __10MBPrice) {
        try IOracle(oracle).consult(address(this), 1e18) returns (uint144 _price) {
            return uint256(_price);
        } catch {
            revert("10MB: failed to fetch 10MB price from Oracle");
        }
    }

    function _updateTaxRate(uint256 __10MBPrice) internal returns (uint256){
        if (autoCalculateTax) {
            for (uint8 tierId = uint8(getTaxTiersTwapsCount()).sub(1); tierId >= 0; --tierId) {
                if (__10MBPrice >= taxTiersTwaps[tierId]) {
                    require(taxTiersRates[tierId] < 10000, "tax equal or bigger to 100%");
                    taxRate = taxTiersRates[tierId];
                    return taxTiersRates[tierId];
                }
            }
        }
    }

    function enableAutoCalculateTax() public onlyTaxOffice {
        autoCalculateTax = true;
    }

    function disableAutoCalculateTax() public onlyTaxOffice {
        autoCalculateTax = false;
    }

    function setOperator(address operator, bool isOperator) public onlyOwner {
        require(operator != address(0), "operator address cannot be 0 address");
        operators[operator] = isOperator;
    }

    function set10MBOracle(address _oracle) public onlyOperatorOrTaxOffice {
        require(_oracle != address(0), "oracle address cannot be 0 address");
        oracle = _oracle;
    }

    function setTaxOffice(address _taxOffice) public onlyOperatorOrTaxOffice {
        require(_taxOffice != address(0), "tax office address cannot be 0 address");
        emit TaxOfficeTransferred(taxOffice, _taxOffice);
        taxOffice = _taxOffice;
    }

    function setTaxCollectorAddress(address _taxCollectorAddress) public onlyTaxOffice {
        require(_taxCollectorAddress != address(0), "tax collector address must be non-zero address");
        taxCollectorAddress = _taxCollectorAddress;
    }

    function setTaxRate(uint256 _taxRate) public onlyTaxOffice {
        require(!autoCalculateTax, "cannot set if auto calculate tax is enabled");
        require(_taxRate <= 2000, "tax equal or less than 20%");
        taxRate = _taxRate;
    }

    function excludeAddress(address _address) public onlyOperatorOrTaxOffice returns (bool) {
        require(!excludedAddresses[_address], "address can't be excluded");
        excludedAddresses[_address] = true;
        return true;
    }

    function includeAddress(address _address) public onlyOperatorOrTaxOffice returns (bool) {
        require(excludedAddresses[_address], "address can't be included");
        excludedAddresses[_address] = false;
        return true;
    }

    /**
     * @notice Operator mints 10MB to a recipient
     * @param recipient_ The address of recipient
     * @param amount_ The amount of 10MB to mint to

     */
    function mint(address recipient_, uint256 amount_) public onlyOperator {
        _mint(recipient_, amount_);
    }

    function burnFrom(address account, uint256 amount) public override onlyOperator {
        super.burnFrom(account, amount);
    }

    // Burn DOLLAR. Can be used by Pool only
    function poolBurnFrom(address _address, uint256 _amount) external onlyPools {
        super.burnFrom(_address, _amount);
        emit DollarBurned(_address, msg.sender, _amount);
    }

    // Mint DOLLAR. Can be used by Pool only
    function poolMint(address _address, uint256 _amount) external onlyPools {
        _mint(_address, _amount);
        emit DollarMinted(msg.sender, _address, _amount);
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        uint256 currentTaxRate = 0;
        bool burnTax = false;

        if (autoCalculateTax) {
            uint256 current10MBPrice = _get10MBPrice();
            currentTaxRate = _updateTaxRate(current10MBPrice);
            if (current10MBPrice < burnThreshold) {
                burnTax = true;
            }
        }

        if (currentTaxRate == 0 || excludedAddresses[sender]) {
            _transfer(sender, recipient, amount);
        } else {
            _transferWithTax(sender, recipient, amount, burnTax);
        }

        _approve(sender, _msgSender(), allowance(sender, _msgSender()).sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function _transferWithTax(
        address sender,
        address recipient,
        uint256 amount,
        bool burnTax
    ) internal returns (bool) {
        uint256 taxAmount = amount.mul(taxRate).div(10000);
        uint256 amountAfterTax = amount.sub(taxAmount);

        if (burnTax) {
            // Burn tax
            super.burnFrom(sender, taxAmount);
        } else {
            // Transfer tax to tax collector
            _transfer(sender, taxCollectorAddress, taxAmount);
        }

        // Transfer amount after tax to recipient
        _transfer(sender, recipient, amountAfterTax);

        return true;
    }

    function amIOperator() public view returns (bool) {
        if (operators[msg.sender])
            return true;
        return false;
    }

    function setTreasuryAddress(ITreasury _treasury) public onlyOperator {
        require(address(_treasury) != address(0), "treasury address can't be 0!");
        treasury = _treasury;
    }
}

File 2 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 3 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the 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;
        }
    }
}

File 4 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 5 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 12 : SafeMath8.sol
// SPDX-License-Identifier: MIT

pragma solidity >0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath8 {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint8 a, uint8 b) internal pure returns (uint8) {
        uint8 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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(uint8 a, uint8 b) internal pure returns (uint8) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b <= a, errorMessage);
        uint8 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint8 a, uint8 b) internal pure returns (uint8) {
        // 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 0;
        }

        uint8 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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(uint8 a, uint8 b) internal pure returns (uint8) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b > 0, errorMessage);
        uint8 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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(uint8 a, uint8 b) internal pure returns (uint8) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 7 of 12 : IOracle.sol
// SPDX-License-Identifier: MIT

pragma solidity >0.6.12;

interface IOracle {
    function update() external;

    function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut);

    function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut);
}

File 8 of 12 : ITreasury.sol
// SPDX-License-Identifier: MIT

pragma solidity >0.6.12;

interface ITreasury {
    function epoch() external view returns (uint256);

    function startTime() external view returns (uint256);

    function nextEpochPoint() external view returns (uint256);

    function get10MBPrice() external view returns (uint256);

    function get10MBUpdatedPrice() external view returns (uint256);

    function buyBonds(uint256 amount, uint256 targetPrice) external;

    function redeemBonds(uint256 amount, uint256 targetPrice) external;

    function treasuryUpdates() external;

    function _update10MBPrice() external;

    function _update10SHAREPrice() external;

    function refreshCollateralRatio() external;

    function allocateSeigniorage() external;

    function hasPool(address _address) external view returns (bool);

    function info()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        );

    function epochInfo()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        );
}

File 9 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 10 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

    /**
     * @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 12 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_taxRate","type":"uint256"},{"internalType":"address","name":"_taxCollectorAddress","type":"address"}],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DollarBurned","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":"amount","type":"uint256"}],"name":"DollarMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"from","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetTaxTiersRates","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetTaxTiersTwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TaxOfficeTransferred","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"},{"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":[],"name":"amIOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"autoCalculateTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnThreshold","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":[],"name":"disableAutoCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableAutoCalculateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"excludeAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxTiersRatesCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxTiersTwapsCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"includeAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAddressExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"set10MBOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnThreshold","type":"uint256"}],"name":"setBurnThreshold","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"isOperator","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxCollectorAddress","type":"address"}],"name":"setTaxCollectorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxOffice","type":"address"}],"name":"setTaxOffice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersRate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_index","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTaxTiersTwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxTiersTwaps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ITreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6000600b819055600c805460ff60a01b19169055610240604052608090815261c35060a05261ea6060c0526201117060e052620138806101005262015f90610120526201731861014052620186a06101605262019a28610180526201adb06101a0526201d4c06101c0526201fbd06101e052620222e061020052620249f0610220526200009190600d90600e6200057f565b50604080516101c0810182526107d081526105dc6020820181905291810182905260608101919091526103e860808201526101f460a082015260c860c0820152601460e08201819052610100820181905261012082018190526101408201819052610160820181905261018082018190526101a08201526200011790600e9081620005d6565b503480156200012557600080fd5b5060405162002be738038062002be78339810160408190526200014891620006ae565b604080518082018252600480825263189826a160e11b60208084018281528551808701909652928552840152815191929162000187916003916200061a565b5080516200019d9060049060208401906200061a565b505050620001ba620001b46200032460201b60201c565b62000328565b6107d0821115620002125760405162461bcd60e51b815260206004820152601a60248201527f74617820657175616c206f72206c657373207468616e2032302500000000000060448201526064015b60405180910390fd5b6001600160a01b038116620002815760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b606482015260840162000209565b336000908152600660205260409020805460ff19166001179055620002a6306200037a565b50620002be336a0437f78dd1e1ef1b8000006200049a565b620002e97367cf8f525d89a26f23f05dc7d8c811b0cdb5cbe06a013da329b63364718000006200049a565b600a91909155600c80546001600160a01b039283166001600160a01b0319918216179091556009805493909216921691909117905562000770565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360009081526006602052604081205460ff1680620003a357506008546001600160a01b031633145b620004065760405162461bcd60e51b815260206004820152602c60248201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860448201526b6520746178206f666669636560a01b606482015260840162000209565b6001600160a01b0382166000908152600f602052604090205460ff1615620004715760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c7564656400000000000000604482015260640162000209565b506001600160a01b03166000908152600f60205260409020805460ff1916600190811790915590565b6001600160a01b038216620004f25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000209565b8060026000828254620005069190620006f5565b90915550506001600160a01b0382166000908152602081905260408120805483929062000535908490620006f5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054828255906000526020600020908101928215620005c4579160200282015b82811115620005c4578251829062ffffff16905591602001919060010190620005a0565b50620005d292915062000697565b5090565b828054828255906000526020600020908101928215620005c4579160200282015b82811115620005c4578251829061ffff16905591602001919060010190620005f7565b82805462000628906200071a565b90600052602060002090601f0160209004810192826200064c5760008555620005c4565b82601f106200066757805160ff1916838001178555620005c4565b82800160010185558215620005c4579182015b82811115620005c45782518255916020019190600101906200067a565b5b80821115620005d2576000815560010162000698565b600080600060608486031215620006c3578283fd5b8351620006d08162000757565b602085015160408601519194509250620006ea8162000757565b809150509250925092565b600082198211156200071557634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200072f57607f821691505b602082108114156200075157634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200076d57600080fd5b50565b61246780620007806000396000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c806369356d4711610167578063a6431bba116100ce578063dd62ed3e11610087578063dd62ed3e146105bf578063df5a2988146105f8578063ebca1bd91461060b578063ee2a953514610637578063f2fde38b1461063f578063ff87fc7c1461065257600080fd5b8063a6431bba14610548578063a9059cbb14610550578063b87c5a4a14610563578063c3bdf61314610576578063c6d69a3014610589578063cf011b261461059c57600080fd5b80638d3cc818116101205780638d3cc818146104e25780638da5cb5b146104f657806393995d4b1461050757806395d89b411461051a5780639d6b5f2114610522578063a457c2d71461053557600080fd5b806369356d471461046f57806370a0823114610482578063715018a6146104ab578063771a3a1d146104b357806379cc6790146104bc5780637dc0d1d0146104cf57600080fd5b80633e5f13d41161020b578063558a7297116101c4578063558a7297146104085780635c29908d1461041b57806361d027b31461042e57806365bbacd9146104415780636605bfda1461044957806366206ce91461045c57600080fd5b80633e5f13d4146103885780633f07d76a146103b357806340c10f19146103c657806342966c68146103d957806342c6b4f1146103ec5780634f6d38d0146103ff57600080fd5b806318160ddd1161025d57806318160ddd1461032657806323b872dd1461033857806330e37a911461034b578063313ce567146103535780633758e6ce14610362578063395093511461037557600080fd5b806306fdde031461029a578063095ea7b3146102b85780630a0c165a146102db5780630c407d56146102f057806313e7c9d814610303575b600080fd5b6102a261065a565b6040516102af9190612143565b60405180910390f35b6102cb6102c636600461209b565b6106ec565b60405190151581526020016102af565b6102ee6102e936600461209b565b610704565b005b6102ee6102fe36600461209b565b610808565b6102cb610311366004611fda565b60066020526000908152604090205460ff1681565b6002545b6040519081526020016102af565b6102cb61034636600461202e565b6108ff565b6102cb6109cc565b604051601281526020016102af565b6102cb610370366004611fda565b6109f0565b6102cb61038336600461209b565b610aca565b60085461039b906001600160a01b031681565b6040516001600160a01b0390911681526020016102af565b6102ee6103c1366004611fda565b610b04565b6102ee6103d436600461209b565b610c16565b6102ee6103e7366004612109565b610c53565b61032a6103fa366004612109565b610c60565b61032a600b5481565b6102ee61041636600461206e565b610c81565b61032a610429366004612109565b610d38565b60095461039b906001600160a01b031681565b6102ee610d48565b6102ee610457366004611fda565b610d81565b6102cb61046a366004612121565b610e28565b6102ee61047d366004611fda565b610ff3565b61032a610490366004611fda565b6001600160a01b031660009081526020819052604090205490565b6102ee6110ac565b61032a600a5481565b6102ee6104ca36600461209b565b6110e2565b60075461039b906001600160a01b031681565b600c546102cb90600160a01b900460ff1681565b6005546001600160a01b031661039b565b6102cb610515366004611fda565b61111b565b6102a26111ec565b6102cb610530366004612109565b6111fb565b6102cb61054336600461209b565b611231565b600d5461032a565b6102cb61055e36600461209b565b6112ce565b6102cb610571366004612121565b6112dc565b600c5461039b906001600160a01b031681565b6102ee610597366004612109565b611395565b6102cb6105aa366004611fda565b600f6020526000908152604090205460ff1681565b61032a6105cd366004611ff6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102ee610606366004611fda565b611484565b6102cb610619366004611fda565b6001600160a01b03166000908152600f602052604090205460ff1690565b600e5461032a565b6102ee61064d366004611fda565b61154b565b6102ee6115e3565b6060600380546106699061239b565b80601f01602080910402602001604051908101604052809291908181526020018280546106959061239b565b80156106e25780601f106106b7576101008083540402835291602001916106e2565b820191906000526020600020905b8154815290600101906020018083116106c557829003601f168201915b5050505050905090565b6000336106fa818585611622565b5060019392505050565b600954604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561074757600080fd5b505afa15801561075b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f91906120c6565b6107b95760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b6107c38282611747565b60405181815233906001600160a01b038416907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad0906020015b60405180910390a35050565b600954604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561084b57600080fd5b505afa15801561085f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088391906120c6565b6108b85760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064016107b0565b6108c2828261175c565b6040518181526001600160a01b0383169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf9906020016107fc565b600c5460009081908190600160a01b900460ff161561094057600061092261183b565b905061092d8161192c565b9250600b5481101561093e57600191505b505b81158061096557506001600160a01b0386166000908152600f602052604090205460ff165b1561097a57610975868686611a93565b610988565b61098686868684611c63565b505b6109c086336109bb8760405180606001604052806028815260200161240a602891396109b48c336105cd565b9190611cdc565b611622565b50600195945050505050565b3360009081526006602052604081205460ff16156109ea5750600190565b50600090565b3360009081526006602052604081205460ff1680610a1857506008546001600160a01b031633145b610a345760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0382166000908152600f602052604090205460ff1615610a9d5760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c756465640000000000000060448201526064016107b0565b506001600160a01b0381166000908152600f60205260409020805460ff191660019081179091555b919050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106fa90829086906109bb9087906122c8565b3360009081526006602052604090205460ff1680610b2c57506008546001600160a01b031633145b610b485760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b038116610bad5760405162461bcd60e51b815260206004820152602660248201527f746178206f666669636520616464726573732063616e6e6f742062652030206160448201526564647265737360d01b60648201526084016107b0565b600854604080516001600160a01b03928316815291831660208301527f75237613d1cfb394eb7979839ecbeacaca4592ef0cf96791979625803948a601910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff16610c455760405162461bcd60e51b81526004016107b090612202565b610c4f828261175c565b5050565b610c5d3382611d08565b50565b600d8181548110610c7057600080fd5b600091825260209091200154905081565b6005546001600160a01b03163314610cab5760405162461bcd60e51b81526004016107b0906121cd565b6001600160a01b038216610d0d5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f7220616464726573732063616e6e6f742062652030206164646044820152637265737360e01b60648201526084016107b0565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b600e8181548110610c7057600080fd5b6008546001600160a01b03163314610d725760405162461bcd60e51b81526004016107b090612196565b600c805460ff60a01b19169055565b3360009081526006602052604090205460ff16610db05760405162461bcd60e51b81526004016107b090612202565b6001600160a01b038116610e065760405162461bcd60e51b815260206004820152601c60248201527f747265617375727920616464726573732063616e27742062652030210000000060448201526064016107b0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546000906001600160a01b03163314610e555760405162461bcd60e51b81526004016107b090612196565b6107d0821115610ea75760405162461bcd60e51b815260206004820152601a60248201527f74617820657175616c206f72206c657373207468616e2032302500000000000060448201526064016107b0565b600d548360ff1610610ecb5760405162461bcd60e51b81526004016107b090612232565b60ff831615610f1857600d610ee160018561235b565b60ff1681548110610f0257634e487b7160e01b600052603260045260246000fd5b90600052602060002001548211610f1857600080fd5b610f2c6001610f26600d5490565b90611e4e565b8360ff161015610f7a57600d610f438460016122e0565b60ff1681548110610f6457634e487b7160e01b600052603260045260246000fd5b90600052602060002001548210610f7a57600080fd5b81600d8460ff1681548110610f9f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508260ff167ff8b83902d6c8579ff700fbd4f32eac3a14e70d5620fa6b781f204dba84d1ad3583604051610fe291815260200190565b60405180910390a250600192915050565b6008546001600160a01b0316331461101d5760405162461bcd60e51b81526004016107b090612196565b6001600160a01b03811661108a5760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b60648201526084016107b0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146110d65760405162461bcd60e51b81526004016107b0906121cd565b6110e06000611e61565b565b3360009081526006602052604090205460ff166111115760405162461bcd60e51b81526004016107b090612202565b610c4f8282611747565b3360009081526006602052604081205460ff168061114357506008546001600160a01b031633145b61115f5760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0382166000908152600f602052604090205460ff166111c75760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e277420626520696e636c756465640000000000000060448201526064016107b0565b506001600160a01b03166000908152600f60205260409020805460ff19169055600190565b6060600480546106699061239b565b6008546000906001600160a01b031633146112285760405162461bcd60e51b81526004016107b090612196565b600b9190915590565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112b65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107b0565b6112c38286868403611622565b506001949350505050565b6000336106fa818585611a93565b6008546000906001600160a01b031633146113095760405162461bcd60e51b81526004016107b090612196565b600e548360ff161061132d5760405162461bcd60e51b81526004016107b090612232565b81600e8460ff168154811061135257634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508260ff167f928b65ceafb94528671a69ce610f88fe966fb93882ae0baf969367d63440d48983604051610fe291815260200190565b6008546001600160a01b031633146113bf5760405162461bcd60e51b81526004016107b090612196565b600c54600160a01b900460ff161561142d5760405162461bcd60e51b815260206004820152602b60248201527f63616e6e6f7420736574206966206175746f2063616c63756c6174652074617860448201526a081a5cc8195b98589b195960aa1b60648201526084016107b0565b6107d081111561147f5760405162461bcd60e51b815260206004820152601a60248201527f74617820657175616c206f72206c657373207468616e2032302500000000000060448201526064016107b0565b600a55565b3360009081526006602052604090205460ff16806114ac57506008546001600160a01b031633145b6114c85760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0381166115295760405162461bcd60e51b815260206004820152602260248201527f6f7261636c6520616464726573732063616e6e6f742062652030206164647265604482015261737360f01b60648201526084016107b0565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115755760405162461bcd60e51b81526004016107b0906121cd565b6001600160a01b0381166115da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b0565b610c5d81611e61565b6008546001600160a01b0316331461160d5760405162461bcd60e51b81526004016107b090612196565b600c805460ff60a01b1916600160a01b179055565b6001600160a01b0383166116845760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b0565b6001600160a01b0382166116e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b611752823383611eb3565b610c4f8282611d08565b6001600160a01b0382166117b25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b0565b80600260008282546117c491906122c8565b90915550506001600160a01b038216600090815260208190526040812080548392906117f19084906122c8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600754604051633ddac95360e01b8152306004820152670de0b6b3a764000060248201526000916001600160a01b031690633ddac9539060440160206040518083038186803b15801561188d57600080fd5b505afa9250505080156118bd575060408051601f3d908101601f191682019092526118ba918101906120e2565b60015b61191e5760405162461bcd60e51b815260206004820152602c60248201527f31304d423a206661696c656420746f2066657463682031304d4220707269636560448201526b2066726f6d204f7261636c6560a01b60648201526084016107b0565b6001600160901b0316919050565b600c54600090600160a01b900460ff1615610ac557600061195a6001611951600d5490565b60ff1690611f3f565b90505b600d8160ff168154811061198157634e487b7160e01b600052603260045260246000fd5b90600052602060002001548310611a7d57612710600e8260ff16815481106119b957634e487b7160e01b600052603260045260246000fd5b906000526020600020015410611a115760405162461bcd60e51b815260206004820152601b60248201527f74617820657175616c206f722062696767657220746f2031303025000000000060448201526064016107b0565b600e8160ff1681548110611a3557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600a81905550600e8160ff1681548110611a6a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154915050919050565b611a868161237e565b905061195d565b50919050565b6001600160a01b038316611af75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b0565b6001600160a01b038216611b595760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b0565b6001600160a01b03831660009081526020819052604090205481811015611bd15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107b0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c089084906122c8565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c5491815260200190565b60405180910390a35b50505050565b600080611c87612710611c81600a5487611f8190919063ffffffff16565b90611f8d565b90506000611c958583611e4e565b90508315611cac57611ca78783611747565b611cc4565b600c54611cc49088906001600160a01b031684611a93565b611ccf878783611a93565b5060019695505050505050565b60008184841115611d005760405162461bcd60e51b81526004016107b09190612143565b505050900390565b6001600160a01b038216611d685760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107b0565b6001600160a01b03821660009081526020819052604090205481811015611ddc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107b0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611e0b908490612344565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161173a565b6000611e5a8284612344565b9392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611c5d5781811015611f325760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107b0565b611c5d8484848403611622565b6000611e5a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f99565b6000611e5a8284612325565b6000611e5a8284612305565b60008360ff168360ff1611158290611fc45760405162461bcd60e51b81526004016107b09190612143565b506000611fd1848661235b565b95945050505050565b600060208284031215611feb578081fd5b8135611e5a816123e6565b60008060408385031215612008578081fd5b8235612013816123e6565b91506020830135612023816123e6565b809150509250929050565b600080600060608486031215612042578081fd5b833561204d816123e6565b9250602084013561205d816123e6565b929592945050506040919091013590565b60008060408385031215612080578182fd5b823561208b816123e6565b91506020830135612023816123fb565b600080604083850312156120ad578182fd5b82356120b8816123e6565b946020939093013593505050565b6000602082840312156120d7578081fd5b8151611e5a816123fb565b6000602082840312156120f3578081fd5b81516001600160901b0381168114611e5a578182fd5b60006020828403121561211a578081fd5b5035919050565b60008060408385031215612133578182fd5b823560ff811681146120b8578283fd5b6000602080835283518082850152825b8181101561216f57858101830151858201604001528201612153565b818111156121805783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601c908201527f43616c6c6572206973206e6f742074686520746178206f666669636500000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527521b0b63632b91034b9903737ba1037b832b930ba37b960511b604082015260600190565b6020808252602a908201527f496e6465782068617320746f206c6f776572207468616e20636f756e74206f666040820152692074617820746965727360b01b606082015260800190565b6020808252602c908201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860408201526b6520746178206f666669636560a01b606082015260800190565b600082198211156122db576122db6123d0565b500190565b600060ff821660ff84168060ff038211156122fd576122fd6123d0565b019392505050565b60008261232057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561233f5761233f6123d0565b500290565b600082821015612356576123566123d0565b500390565b600060ff821660ff841680821015612375576123756123d0565b90039392505050565b600060ff821680612391576123916123d0565b6000190192915050565b600181811c908216806123af57607f821691505b60208210811415611a8d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610c5d57600080fd5b8015158114610c5d57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220259a25bbd1ca03725b403c9ef78dd4644174beedbd0375edf113d828da572f2764736f6c63430008040033000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000091284bf5ac4ab6665e2b6cec7ff11861d606354d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c806369356d4711610167578063a6431bba116100ce578063dd62ed3e11610087578063dd62ed3e146105bf578063df5a2988146105f8578063ebca1bd91461060b578063ee2a953514610637578063f2fde38b1461063f578063ff87fc7c1461065257600080fd5b8063a6431bba14610548578063a9059cbb14610550578063b87c5a4a14610563578063c3bdf61314610576578063c6d69a3014610589578063cf011b261461059c57600080fd5b80638d3cc818116101205780638d3cc818146104e25780638da5cb5b146104f657806393995d4b1461050757806395d89b411461051a5780639d6b5f2114610522578063a457c2d71461053557600080fd5b806369356d471461046f57806370a0823114610482578063715018a6146104ab578063771a3a1d146104b357806379cc6790146104bc5780637dc0d1d0146104cf57600080fd5b80633e5f13d41161020b578063558a7297116101c4578063558a7297146104085780635c29908d1461041b57806361d027b31461042e57806365bbacd9146104415780636605bfda1461044957806366206ce91461045c57600080fd5b80633e5f13d4146103885780633f07d76a146103b357806340c10f19146103c657806342966c68146103d957806342c6b4f1146103ec5780634f6d38d0146103ff57600080fd5b806318160ddd1161025d57806318160ddd1461032657806323b872dd1461033857806330e37a911461034b578063313ce567146103535780633758e6ce14610362578063395093511461037557600080fd5b806306fdde031461029a578063095ea7b3146102b85780630a0c165a146102db5780630c407d56146102f057806313e7c9d814610303575b600080fd5b6102a261065a565b6040516102af9190612143565b60405180910390f35b6102cb6102c636600461209b565b6106ec565b60405190151581526020016102af565b6102ee6102e936600461209b565b610704565b005b6102ee6102fe36600461209b565b610808565b6102cb610311366004611fda565b60066020526000908152604090205460ff1681565b6002545b6040519081526020016102af565b6102cb61034636600461202e565b6108ff565b6102cb6109cc565b604051601281526020016102af565b6102cb610370366004611fda565b6109f0565b6102cb61038336600461209b565b610aca565b60085461039b906001600160a01b031681565b6040516001600160a01b0390911681526020016102af565b6102ee6103c1366004611fda565b610b04565b6102ee6103d436600461209b565b610c16565b6102ee6103e7366004612109565b610c53565b61032a6103fa366004612109565b610c60565b61032a600b5481565b6102ee61041636600461206e565b610c81565b61032a610429366004612109565b610d38565b60095461039b906001600160a01b031681565b6102ee610d48565b6102ee610457366004611fda565b610d81565b6102cb61046a366004612121565b610e28565b6102ee61047d366004611fda565b610ff3565b61032a610490366004611fda565b6001600160a01b031660009081526020819052604090205490565b6102ee6110ac565b61032a600a5481565b6102ee6104ca36600461209b565b6110e2565b60075461039b906001600160a01b031681565b600c546102cb90600160a01b900460ff1681565b6005546001600160a01b031661039b565b6102cb610515366004611fda565b61111b565b6102a26111ec565b6102cb610530366004612109565b6111fb565b6102cb61054336600461209b565b611231565b600d5461032a565b6102cb61055e36600461209b565b6112ce565b6102cb610571366004612121565b6112dc565b600c5461039b906001600160a01b031681565b6102ee610597366004612109565b611395565b6102cb6105aa366004611fda565b600f6020526000908152604090205460ff1681565b61032a6105cd366004611ff6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102ee610606366004611fda565b611484565b6102cb610619366004611fda565b6001600160a01b03166000908152600f602052604090205460ff1690565b600e5461032a565b6102ee61064d366004611fda565b61154b565b6102ee6115e3565b6060600380546106699061239b565b80601f01602080910402602001604051908101604052809291908181526020018280546106959061239b565b80156106e25780601f106106b7576101008083540402835291602001916106e2565b820191906000526020600020905b8154815290600101906020018083116106c557829003601f168201915b5050505050905090565b6000336106fa818585611622565b5060019392505050565b600954604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561074757600080fd5b505afa15801561075b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f91906120c6565b6107b95760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b6107c38282611747565b60405181815233906001600160a01b038416907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad0906020015b60405180910390a35050565b600954604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561084b57600080fd5b505afa15801561085f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088391906120c6565b6108b85760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064016107b0565b6108c2828261175c565b6040518181526001600160a01b0383169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf9906020016107fc565b600c5460009081908190600160a01b900460ff161561094057600061092261183b565b905061092d8161192c565b9250600b5481101561093e57600191505b505b81158061096557506001600160a01b0386166000908152600f602052604090205460ff165b1561097a57610975868686611a93565b610988565b61098686868684611c63565b505b6109c086336109bb8760405180606001604052806028815260200161240a602891396109b48c336105cd565b9190611cdc565b611622565b50600195945050505050565b3360009081526006602052604081205460ff16156109ea5750600190565b50600090565b3360009081526006602052604081205460ff1680610a1857506008546001600160a01b031633145b610a345760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0382166000908152600f602052604090205460ff1615610a9d5760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c756465640000000000000060448201526064016107b0565b506001600160a01b0381166000908152600f60205260409020805460ff191660019081179091555b919050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106fa90829086906109bb9087906122c8565b3360009081526006602052604090205460ff1680610b2c57506008546001600160a01b031633145b610b485760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b038116610bad5760405162461bcd60e51b815260206004820152602660248201527f746178206f666669636520616464726573732063616e6e6f742062652030206160448201526564647265737360d01b60648201526084016107b0565b600854604080516001600160a01b03928316815291831660208301527f75237613d1cfb394eb7979839ecbeacaca4592ef0cf96791979625803948a601910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff16610c455760405162461bcd60e51b81526004016107b090612202565b610c4f828261175c565b5050565b610c5d3382611d08565b50565b600d8181548110610c7057600080fd5b600091825260209091200154905081565b6005546001600160a01b03163314610cab5760405162461bcd60e51b81526004016107b0906121cd565b6001600160a01b038216610d0d5760405162461bcd60e51b8152602060048201526024808201527f6f70657261746f7220616464726573732063616e6e6f742062652030206164646044820152637265737360e01b60648201526084016107b0565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b600e8181548110610c7057600080fd5b6008546001600160a01b03163314610d725760405162461bcd60e51b81526004016107b090612196565b600c805460ff60a01b19169055565b3360009081526006602052604090205460ff16610db05760405162461bcd60e51b81526004016107b090612202565b6001600160a01b038116610e065760405162461bcd60e51b815260206004820152601c60248201527f747265617375727920616464726573732063616e27742062652030210000000060448201526064016107b0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546000906001600160a01b03163314610e555760405162461bcd60e51b81526004016107b090612196565b6107d0821115610ea75760405162461bcd60e51b815260206004820152601a60248201527f74617820657175616c206f72206c657373207468616e2032302500000000000060448201526064016107b0565b600d548360ff1610610ecb5760405162461bcd60e51b81526004016107b090612232565b60ff831615610f1857600d610ee160018561235b565b60ff1681548110610f0257634e487b7160e01b600052603260045260246000fd5b90600052602060002001548211610f1857600080fd5b610f2c6001610f26600d5490565b90611e4e565b8360ff161015610f7a57600d610f438460016122e0565b60ff1681548110610f6457634e487b7160e01b600052603260045260246000fd5b90600052602060002001548210610f7a57600080fd5b81600d8460ff1681548110610f9f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508260ff167ff8b83902d6c8579ff700fbd4f32eac3a14e70d5620fa6b781f204dba84d1ad3583604051610fe291815260200190565b60405180910390a250600192915050565b6008546001600160a01b0316331461101d5760405162461bcd60e51b81526004016107b090612196565b6001600160a01b03811661108a5760405162461bcd60e51b815260206004820152602e60248201527f74617820636f6c6c6563746f722061646472657373206d757374206265206e6f60448201526d6e2d7a65726f206164647265737360901b60648201526084016107b0565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146110d65760405162461bcd60e51b81526004016107b0906121cd565b6110e06000611e61565b565b3360009081526006602052604090205460ff166111115760405162461bcd60e51b81526004016107b090612202565b610c4f8282611747565b3360009081526006602052604081205460ff168061114357506008546001600160a01b031633145b61115f5760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0382166000908152600f602052604090205460ff166111c75760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e277420626520696e636c756465640000000000000060448201526064016107b0565b506001600160a01b03166000908152600f60205260409020805460ff19169055600190565b6060600480546106699061239b565b6008546000906001600160a01b031633146112285760405162461bcd60e51b81526004016107b090612196565b600b9190915590565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112b65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107b0565b6112c38286868403611622565b506001949350505050565b6000336106fa818585611a93565b6008546000906001600160a01b031633146113095760405162461bcd60e51b81526004016107b090612196565b600e548360ff161061132d5760405162461bcd60e51b81526004016107b090612232565b81600e8460ff168154811061135257634e487b7160e01b600052603260045260246000fd5b90600052602060002001819055508260ff167f928b65ceafb94528671a69ce610f88fe966fb93882ae0baf969367d63440d48983604051610fe291815260200190565b6008546001600160a01b031633146113bf5760405162461bcd60e51b81526004016107b090612196565b600c54600160a01b900460ff161561142d5760405162461bcd60e51b815260206004820152602b60248201527f63616e6e6f7420736574206966206175746f2063616c63756c6174652074617860448201526a081a5cc8195b98589b195960aa1b60648201526084016107b0565b6107d081111561147f5760405162461bcd60e51b815260206004820152601a60248201527f74617820657175616c206f72206c657373207468616e2032302500000000000060448201526064016107b0565b600a55565b3360009081526006602052604090205460ff16806114ac57506008546001600160a01b031633145b6114c85760405162461bcd60e51b81526004016107b09061227c565b6001600160a01b0381166115295760405162461bcd60e51b815260206004820152602260248201527f6f7261636c6520616464726573732063616e6e6f742062652030206164647265604482015261737360f01b60648201526084016107b0565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146115755760405162461bcd60e51b81526004016107b0906121cd565b6001600160a01b0381166115da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b0565b610c5d81611e61565b6008546001600160a01b0316331461160d5760405162461bcd60e51b81526004016107b090612196565b600c805460ff60a01b1916600160a01b179055565b6001600160a01b0383166116845760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b0565b6001600160a01b0382166116e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b611752823383611eb3565b610c4f8282611d08565b6001600160a01b0382166117b25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107b0565b80600260008282546117c491906122c8565b90915550506001600160a01b038216600090815260208190526040812080548392906117f19084906122c8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600754604051633ddac95360e01b8152306004820152670de0b6b3a764000060248201526000916001600160a01b031690633ddac9539060440160206040518083038186803b15801561188d57600080fd5b505afa9250505080156118bd575060408051601f3d908101601f191682019092526118ba918101906120e2565b60015b61191e5760405162461bcd60e51b815260206004820152602c60248201527f31304d423a206661696c656420746f2066657463682031304d4220707269636560448201526b2066726f6d204f7261636c6560a01b60648201526084016107b0565b6001600160901b0316919050565b600c54600090600160a01b900460ff1615610ac557600061195a6001611951600d5490565b60ff1690611f3f565b90505b600d8160ff168154811061198157634e487b7160e01b600052603260045260246000fd5b90600052602060002001548310611a7d57612710600e8260ff16815481106119b957634e487b7160e01b600052603260045260246000fd5b906000526020600020015410611a115760405162461bcd60e51b815260206004820152601b60248201527f74617820657175616c206f722062696767657220746f2031303025000000000060448201526064016107b0565b600e8160ff1681548110611a3557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600a81905550600e8160ff1681548110611a6a57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154915050919050565b611a868161237e565b905061195d565b50919050565b6001600160a01b038316611af75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b0565b6001600160a01b038216611b595760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b0565b6001600160a01b03831660009081526020819052604090205481811015611bd15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107b0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611c089084906122c8565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c5491815260200190565b60405180910390a35b50505050565b600080611c87612710611c81600a5487611f8190919063ffffffff16565b90611f8d565b90506000611c958583611e4e565b90508315611cac57611ca78783611747565b611cc4565b600c54611cc49088906001600160a01b031684611a93565b611ccf878783611a93565b5060019695505050505050565b60008184841115611d005760405162461bcd60e51b81526004016107b09190612143565b505050900390565b6001600160a01b038216611d685760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107b0565b6001600160a01b03821660009081526020819052604090205481811015611ddc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107b0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611e0b908490612344565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161173a565b6000611e5a8284612344565b9392505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611c5d5781811015611f325760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107b0565b611c5d8484848403611622565b6000611e5a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f99565b6000611e5a8284612325565b6000611e5a8284612305565b60008360ff168360ff1611158290611fc45760405162461bcd60e51b81526004016107b09190612143565b506000611fd1848661235b565b95945050505050565b600060208284031215611feb578081fd5b8135611e5a816123e6565b60008060408385031215612008578081fd5b8235612013816123e6565b91506020830135612023816123e6565b809150509250929050565b600080600060608486031215612042578081fd5b833561204d816123e6565b9250602084013561205d816123e6565b929592945050506040919091013590565b60008060408385031215612080578182fd5b823561208b816123e6565b91506020830135612023816123fb565b600080604083850312156120ad578182fd5b82356120b8816123e6565b946020939093013593505050565b6000602082840312156120d7578081fd5b8151611e5a816123fb565b6000602082840312156120f3578081fd5b81516001600160901b0381168114611e5a578182fd5b60006020828403121561211a578081fd5b5035919050565b60008060408385031215612133578182fd5b823560ff811681146120b8578283fd5b6000602080835283518082850152825b8181101561216f57858101830151858201604001528201612153565b818111156121805783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601c908201527f43616c6c6572206973206e6f742074686520746178206f666669636500000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527521b0b63632b91034b9903737ba1037b832b930ba37b960511b604082015260600190565b6020808252602a908201527f496e6465782068617320746f206c6f776572207468616e20636f756e74206f666040820152692074617820746965727360b01b606082015260800190565b6020808252602c908201527f43616c6c6572206973206e6f7420746865206f70657261746f72206f7220746860408201526b6520746178206f666669636560a01b606082015260800190565b600082198211156122db576122db6123d0565b500190565b600060ff821660ff84168060ff038211156122fd576122fd6123d0565b019392505050565b60008261232057634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561233f5761233f6123d0565b500290565b600082821015612356576123566123d0565b500390565b600060ff821660ff841680821015612375576123756123d0565b90039392505050565b600060ff821680612391576123916123d0565b6000190192915050565b600181811c908216806123af57607f821691505b60208210811415611a8d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610c5d57600080fd5b8015158114610c5d57600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220259a25bbd1ca03725b403c9ef78dd4644174beedbd0375edf113d828da572f2764736f6c63430008040033

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

000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000091284bf5ac4ab6665e2b6cec7ff11861d606354d

-----Decoded View---------------
Arg [0] : _treasury (address): 0x562fe5786e0d16f9f84c53d8364d74a5a983fdb2
Arg [1] : _taxRate (uint256): 1000
Arg [2] : _taxCollectorAddress (address): 0x91284bf5ac4ab6665e2b6cec7ff11861d606354d

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000562fe5786e0d16f9f84c53d8364d74a5a983fdb2
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 00000000000000000000000091284bf5ac4ab6665e2b6cec7ff11861d606354d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.