ETH Price: $3,449.43 (+1.49%)
Gas: 5.43 Gwei

Token

Ohmeow Token (OHMEOW)
 

Overview

Max Total Supply

999,999,999 OHMEOW

Holders

252

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
6,733,297.015541849 OHMEOW

Value
$0.00
0xa538311df7dc52bbe861f6e3efdd749730503cae
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Ohmeow

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

import "./utils/ERC20Feeable.sol";
import "./interfaces/IUniswapV2Router02.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IUniswapV2Factory.sol";
import "./utils/AccessControl.sol";

/**
 * @dev OHHHHHHHMMMMEEEOW.
*/
contract Ohmeow is Context, AccessControl, ERC20Feeable {

    bool    private _swapEnabled;

    bytes32 public constant ROLE_DAO = keccak256("ROLE_DAO");
    bytes32 public constant ROLE_MONETARY_POLICY = keccak256("ROLE_MONETARY_POLICY");

    IUniswapV2Router02 private _router;
    IUniswapV2Pair     private _lp;

    address private _token0;
    address private _token1;

    address public treasury;

    uint256 private _sellCount;
    uint256 private _sellTotal = 1;
    uint256 private _buyTotal = 1;
    uint256 private _liquifyPer;
    uint256 private _creditRatio;
    uint256 private _liquifyRate;
    uint256 private _usp;
    uint256 private _slippage;
    
    uint256 public feesAccruedAdjusted;

    bool private _isRecursing;
    bool private _unpaused;
    bool private _fixedCredit;
    
    mapping(uint8 => uint256)   private _killFunctions;
    mapping(address => uint256) private _userBuys;
    mapping(address => uint256) private _userSells;
    mapping(address => uint256) private _sellCredit;
    mapping(address => uint256) private _buyCredit;


    modifier activeFunction(uint8 funcId) {
        require(isNotKilled(funcId), "killed");
        _;
    }

    constructor() ERC20("Ohmeow Token", "OHMEOW", 9, 999_999_999 * (10 ** 9)) ERC20Feeable() {
   
        _setupRole(ROLE_ADMIN_STRUCTURE_CLASS, _msgSender());
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); 
        _setupRole(ROLE_MONETARY_POLICY, _msgSender());
        _setupRole(ROLE_DAO, _msgSender());
         
        _router = IUniswapV2Router02(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F); // sushi 
        _token0 = address(this);
        _token1 = address(0x383518188C0C6d7730D91b2c03a03C837814a899); // OHM

        treasury = address(0x907ABe8f27FACf6aa3A9552Bfe20Eb40FFF6D2b4);
        
        _lp = IUniswapV2Pair(IUniswapV2Factory(IUniswapV2Router02(_router).factory()).createPair(_token0, _token1));
        
        _accountStates[address(_lp)].transferPair = true;
        _accountStates[address(this)].feeless = true;
        _accountStates[treasury].feeless = true;
        _accountStates[msg.sender].feeless = true;
        
        exclude(address(_lp));

        _precisionFactor = 3; // hundreths 
        
        fbl_feeAdd(TransactionState.Normal, 33, "reflect fee");
        fbl_feeAdd(TransactionState.Normal, 33, "treasury fee");
        fbl_feeAdd(TransactionState.Buy,    33, "buy fee");
        fbl_feeAdd(TransactionState.Sell,   33, "sell fee");
        
        _usp = 99;
        _creditRatio = 100;
        _liquifyRate = 10;  
        _liquifyPer = 1; 
        _slippage =  100;
        
        _frate = fragmentsPerToken(); 
        
        approve(address(_router), balanceOf(msg.sender));
    }

    function balanceOf(address account) public view override returns (uint256) {
        if(fbl_getExcluded(account)) {
            return _balances[account];
        }
        return _fragmentBalances[account] / _frate;
    }
    
    function _rTransfer(address sender, address recipient, uint256 amount) internal virtual override returns(bool) {
        require(sender    != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(amount > 0,              "ERC20: Invalid amount");
        uint256 totFee_;
        if(!_unpaused){
            require(hasRole(DEFAULT_ADMIN_ROLE, sender), "still paused");
        } else {
            TransactionState tState = fbl_getTstate(sender, recipient);
            totFee_ = fbl_getIsFeeless(sender, recipient) ? 0 : fbl_calculateStateFee(tState, amount);
            (uint256 p, uint256 u) = _calcSplit(totFee_);  
            _fragmentBalances[address(this)] += (p * _frate);
            _totalFragments -= (u * _frate); 
            _performBookkeeping(tState, sender, recipient, p);
            if(tState == TransactionState.Sell) _performLiquify(amount); 
        } 
        _fragmentTransfer(sender, recipient, amount, amount - totFee_);
        return true;

    }
    
    /*
    * we  do some extra bookkeeping steps for MEOWLYmpus
    */
    function _performBookkeeping(TransactionState tState, address sender, address recipient, uint256 fee) internal {        
        uint256 adjustedFees = fee * getCreditRatio() / 100;
        if(tState == TransactionState.Sell) {
            _sellCount = _sellCount > _liquifyPer ? 0 : _sellCount + 1;
            feesAccruedByUser[sender] += fee;
            _sellCredit[sender] += adjustedFees;
            _sellTotal += fee; 
        } else if(tState == TransactionState.Buy) {
            feesAccruedByUser[recipient] += fee;
            _buyCredit[recipient] += adjustedFees;
            _buyTotal += fee;
        } 
        feesAccrued += fee;
        feesAccruedAdjusted += adjustedFees;
    }
 
    function _performLiquify(uint256 amount) internal {
        if (_swapEnabled && !_isRecursing && _liquifyPer >= _sellCount) {
            _isRecursing = true;
            uint256 liquificationAmt = (balanceOf(address(this)) * _liquifyRate) / 100;
            uint256 slippage = amount * _slippage / 100;
            uint256 maxAmt = slippage > liquificationAmt ? liquificationAmt : slippage;
            swapAndSend(maxAmt, treasury);
            _sellCount = 0;
            _isRecursing = false;
        }
    }
    
    function _calcSplit(uint256 amount) internal view returns(uint p, uint u) {
        u = amount * _usp / fbl_getFeeFactor();
        p = amount - u;
    }

    function swapAndSend(uint256 tokenAmount, address rec) internal {
        if(tokenAmount > 0) {
            address[] memory path = new address[](2);
            path[0] = _token0;
            path[1] = _token1;
            _approve(address(this), address(_router), tokenAmount);
            _router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
                tokenAmount,
                0, // we don't care how much we get back
                path,
                rec, // can't set to same as token
                block.timestamp
            );
        }
    }
    
    function isNotKilled(uint8 functionNUmber) internal view returns (bool) {
        return _killFunctions[functionNUmber] > block.timestamp || _killFunctions[functionNUmber] == 0;
    }
    
    function deactivateFunctionPermanently(uint8 functionNumber, uint256 timeLimit) external onlyRole(ROLE_DAO) {
        _killFunctions[functionNumber] = timeLimit + block.timestamp;
    }
    
    function getCreditRatio() public view returns(uint256) {
        return _fixedCredit ? _creditRatio : _buyTotal / _sellTotal;
    }
    
    function burn(uint256 percent) external activeFunction(1) onlyRole(ROLE_MONETARY_POLICY) {
        require(percent <= 25, "can't burn more than 25%");
        uint256 r = _fragmentBalances[address(_lp)];
        uint256 rTarget = (r * percent) / 100;
        _fragmentBalances[address(_lp)] -= rTarget;
        _lp.sync();
        _lp.skim(treasury);
    }

    function base(uint256 percent) external activeFunction(2) onlyRole(ROLE_MONETARY_POLICY) {
        require(percent <= 25, "can't burn more than 25%");
        uint256 rTarget = (_fragmentBalances[address(0)] * percent) / 100;
        _fragmentBalances[address(0)] -= rTarget;
        _totalFragments -= rTarget;
        _lp.sync();
        _lp.skim(treasury);
    }
    
    function manualSnS(uint256 tokenAmount, address rec) external activeFunction(5) onlyRole(DEFAULT_ADMIN_ROLE) {
        swapAndSend(tokenAmount, rec);
    }
    
    // manual burn amount, for *possible* cex integration
    // !!BEWARE!!: you will BURN YOUR TOKENS when you call this.
    function sendToBurn(uint256 amount) external activeFunction(8) {
        address sender = _msgSender();
        uint256 rate = fragmentsPerToken();
        require(!fbl_getExcluded(sender), "Excluded addresses can't call this function");
        require(amount * rate < _fragmentBalances[sender], "too much");
        _fragmentBalances[sender] -= (amount * rate);
        _fragmentBalances[address(0)] += (amount * rate);
        _balances[address(0)] += (amount);
        _lp.sync();
        _lp.skim(treasury);
        emit Transfer(address(this), address(0), amount);
    }
    
    function setContractSellTarget(uint256 lim) external activeFunction(3) onlyRole(ROLE_MONETARY_POLICY) {
        _liquifyPer = lim;
    }

    function setTreasury(address addr) external activeFunction(6) onlyRole(DEFAULT_ADMIN_ROLE) {
        treasury = addr;
    }

    function setTransferPair(address p) external activeFunction(7) onlyRole(DEFAULT_ADMIN_ROLE) {
        _lp = IUniswapV2Pair(p);
    }

    function setLiquifyStats(uint256 rate) external activeFunction(9) onlyRole(ROLE_MONETARY_POLICY) {
        require(rate <= 100, "!toomuch");
        _liquifyRate = rate;
    }
    
    function setCreditRatio(uint256 perc, bool fixedCredit) external activeFunction(11) onlyRole(ROLE_MONETARY_POLICY) {
        _creditRatio = perc;
        _fixedCredit = fixedCredit;
    }
    
    function setSwapEnabled(bool v) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _swapEnabled = v;
    }
    
    function setUsp(uint256 perc) external activeFunction(15) onlyRole(ROLE_MONETARY_POLICY) {
        require(perc <= 100, "can't go over 100");
        _usp = perc;
    }
    
    function setSlippage(uint256 perc) external activeFunction(16) onlyRole(ROLE_MONETARY_POLICY) {
        _slippage = perc;
    }
    
    /* !!! CALLER WILL LOSE COINS CALLING THIS !!! */
    function rebaseFromSelfToEveryone(uint256 amount) external activeFunction(12) {
        address sender = _msgSender();
        uint256 rate = fragmentsPerToken();
        require(!fbl_getExcluded(sender), "Excluded addresses can't call this function");
        require(amount * rate < _fragmentBalances[sender], "too much");
        _fragmentBalances[sender] -= (amount * rate);
        _totalFragments -= amount * rate;
        feesAccruedByUser[sender] += amount;
        feesAccrued += amount;
    }
    
    function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
        _unpaused = true;
        _swapEnabled = true;
    }
    
    function userBuys(address account) external view returns(uint256) {
        return _userBuys[account];
    }
    
    function userSells(address account) external view returns(uint256) {
        return _userSells[account];
    }
    
    function userInfo(address account) external view returns(uint256, uint256, uint256) {
        return (feesAccruedByUser[account], _buyCredit[account], _sellCredit[account]);
    }
    
    /**
     * @dev in case weird reflection stuff happens and etherscan 
     * doesn't show the correct balances just emit an event to 
     * get etherscan to refresh its api
    */
    function refreshBal(address sender, address recipient, uint256 x) external activeFunction(17) {
        emit Transfer(sender, recipient, x);
    } 

}

File 2 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "../interfaces/IAccessControl.sol";
import "./Context.sol";
import "./Strings.sol";
import "./ERC165.sol";
import "../libraries/Address.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    
    using Address for address;
    
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }
    
    /**
    * @dev Allows `target` to assume `role` 
    * 
    * this is in case people copy-paste mindlessly
    * 
    */
    function validateRole(bytes32 role) public virtual {
        address target = Address.validated(_msgSender());
        require(target != address(0), "AccessControl: invalid role");
        _grantRole(role, target);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 20 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

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

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

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

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

File 4 of 20 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 5 of 20 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 6 of 20 : ERC20Feeable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC20Rebaseable.sol";
import "./AccessControl.sol";
import "../libraries/EnumerableSet.sol";

abstract contract Structure is AccessControl {
    enum TransactionState {Buy, Sell, Normal}
    enum TransactionType { FromExcluded, ToExcluded, BothExcluded, Standard }

    struct TState {
        address target;
        TransactionState state;
    }

    bytes32 public constant ROLE_ADMIN_STRUCTURE_CLASS = keccak256("ROLE_ADMIN_STRUCTURE_CLASS");
    constructor() {
        _setupRole(ROLE_ADMIN_STRUCTURE_CLASS, _msgSender());
    }

}

abstract contract FeeStructure is Structure {

    event FeeAdded(TransactionState state, uint perc, string name);
    event FeeUpdated(TransactionState state, uint perc, uint index);
    event FeeRemoved(TransactionState state, uint index);
    
    uint internal _precisionFactor = 2; // how much to multiply the denominator by 

    mapping(TransactionState => uint[]) fees;

    mapping(TransactionState => uint) activeFeeCount;

    mapping(TransactionState => uint) totalFee;
    
    function fbl_calculateFeeSpecific(TransactionState state, uint index, uint256 amount) public view returns(uint256) {
        return amount * fees[state][index] / fbl_getFeeFactor();
    }

    function fbl_calculateStateFee(TransactionState state, uint256 amount) public view returns (uint256) {
        uint256 feeTotal;
        if(state == TransactionState.Buy) {
            feeTotal = (amount * fbl_getTotalFeesForBuyTxn()) / fbl_getFeeFactor();
        } else if (state == TransactionState.Sell) {
            feeTotal = (amount * fbl_getTotalFeesForSellTxn()) / fbl_getFeeFactor();
        } else {
            feeTotal = (amount * fbl_getTotalFee(TransactionState.Normal)) / fbl_getFeeFactor(); 
        }
        return feeTotal;
    }
    
    function _checkUnderLimit() internal view returns(bool) {
        // we check here all the fees to ensure that we don't have a scenario where one set of fees exceeds 33% 
        require(fbl_calculateStateFee(TransactionState.Sell, 100000)   <= 33333, "ERC20Feeable: Sell Hardcap of 33% reached");
        require(fbl_calculateStateFee(TransactionState.Buy, 100000)    <= 33333, "ERC20Feeable: Buy  Hardcap of 33% reached");
        require(fbl_calculateStateFee(TransactionState.Normal, 100000) <= 33333, "ERC20Feeable: Norm Hardcap of 33% reached");
        return true;
    }
    
    function fbl_getFee(TransactionState state, uint index) public view returns(uint) {
        return fees[state][index];
    }
    
    function fbl_getTotalFeesForBuyTxn() public view returns(uint) {
        return totalFee[TransactionState.Normal] + totalFee[TransactionState.Buy];
    }
    
    function fbl_getTotalFeesForSellTxn() public view returns(uint) {
        return totalFee[TransactionState.Normal] + totalFee[TransactionState.Sell];
    }
    
    function fbl_getTotalFee(TransactionState state) public view returns(uint) {
        return totalFee[state];
    }
    
    /* @dev when you increase this that means all fees are reduced by whatever this factor is. 
    *  eg. 2% fee, 1 dF = 2% fee 
    *  vs  2% fee  2 dF = 0.2% fee 
    *  TLDR; increase this when you want more precision for decimals 
    */
    function fbl_getFeeFactor() public view returns(uint) {
        return 10 ** _precisionFactor;
    }

    // can be changed to external if you don't need to add fees during initialization of a contract 
    function fbl_feeAdd(TransactionState state, uint perc, string memory label) public onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) {
        fees[state].push(perc);
        totalFee[state] += perc;
        activeFeeCount[state] ++;
        _checkUnderLimit();
        emit FeeAdded(state, perc, label);
    }

    function fbl_feeUpdate(TransactionState state, uint perc, uint index) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) {
        fees[state][index] = perc;
        uint256 total;
        for (uint i = 0; i < fees[state].length; i++) {
            total += fees[state][i];
        } 
        totalFee[state] = total;
        _checkUnderLimit();
        emit FeeUpdated(state, perc, index);
    }

    /* update fees where possible vs remove */
    function fbl_feeRemove(TransactionState state, uint index) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) {
        uint f = fees[state][index];
        totalFee[state] -= f;
        delete fees[state][index];
        activeFeeCount[state]--;
        emit FeeRemoved(state, index);
    }
    
    function fbl_feePrecisionUpdate(uint f) external onlyRole(ROLE_ADMIN_STRUCTURE_CLASS) {
        require(f != 0, "can't divide by 0");
        _precisionFactor = f;
        _checkUnderLimit();
    }

}

abstract contract TransactionStructure is Structure {

    /*
    * @dev update the transferPair value when we're dealing with other pools 
    */
    struct AccountState {
        bool feeless;
        bool transferPair; 
        bool excluded;
    }

    mapping(address => AccountState) internal _accountStates;

    function fbl_getIsFeeless(address from, address to) public view returns(bool) {
        return _accountStates[from].feeless || _accountStates[to].feeless;
    }

    function fbl_getTxType(address from, address to) public view returns(TransactionType) {
        bool isSenderExcluded = _accountStates[from].excluded;
        bool isRecipientExcluded = _accountStates[to].excluded;
        if (!isSenderExcluded && !isRecipientExcluded) {
            return TransactionType.Standard;
        } else if (isSenderExcluded && !isRecipientExcluded) {
            return TransactionType.FromExcluded;
        } else if (!isSenderExcluded && isRecipientExcluded) {
            return TransactionType.ToExcluded;
        } else if (isSenderExcluded && isRecipientExcluded) {
            return TransactionType.BothExcluded;
        } else {
            return TransactionType.Standard;
        }
    }

    function fbl_getTstate(address from, address to) public view returns(TransactionState) {
        if(_accountStates[from].transferPair) {
            return TransactionState.Buy;
        } else if(_accountStates[to].transferPair) {
            return TransactionState.Sell;
        } else {
            return TransactionState.Normal;
        }
    }

    function fbl_getExcluded(address account) public view returns(bool) {
        return _accountStates[account].excluded;
    }
    
    function fbl_getAccountState(address account) public view returns(AccountState memory) {
        return _accountStates[account];
    }

    function fbl_setAccountState(address account, bool value, uint option) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if(option == 1) {
            _accountStates[account].feeless = value;
        } else if(option == 2) {
            _accountStates[account].transferPair = value;
        } else if(option == 3) {
            _accountStates[account].excluded = value;
        }
    }
}

/*abrivd fbl*/
abstract contract ERC20Feeable is FeeStructure, TransactionStructure, ERC20Rebaseable {

    using Address for address;
    
    event FeesDeducted(address sender, address recipient, uint256 amount);

    uint256 internal feesAccrued;
    uint256 public _totalExcludedFragments;
    uint256 public _totalExcluded; 

    mapping(address => uint256) internal feesAccruedByUser;

    EnumerableSet.AddressSet excludedAccounts;

    function exclude(address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_accountStates[account].excluded == false, "Account is already excluded");
        _accountStates[account].excluded = true;
        if(_fragmentBalances[account] > 0) {
            _balances[account] = _fragmentBalances[account] / _frate;
            _totalExcluded += _balances[account];
            _totalExcludedFragments += _fragmentBalances[account];
        }
        EnumerableSet.add(excludedAccounts, account);
        _frate = fragmentsPerToken();
    }

    function include(address account) public virtual onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_accountStates[account].excluded == true, "Account is already included");
        _accountStates[account].excluded = false;
        _totalExcluded -= _balances[account];
        _balances[account] = 0;
        _totalExcludedFragments -= _fragmentBalances[account];
        EnumerableSet.remove(excludedAccounts, account);
        _frate = fragmentsPerToken();
    }
    

    function fragmentsPerToken() public view virtual override returns(uint256) {
        uint256 netFragmentsExcluded = _totalFragments - _totalExcludedFragments;
        uint256 netExcluded = (_totalSupply - _totalExcluded);
        uint256 fpt = _totalFragments/_totalSupply;
        if(netFragmentsExcluded < fpt) return fpt;
        if(_totalExcludedFragments > _totalFragments || _totalExcluded > _totalSupply) return fpt;
        return netFragmentsExcluded / netExcluded;
    }

    function _fragmentTransfer(address sender, address recipient, uint256 amount, uint256 transferAmount) internal {
        TransactionType t = fbl_getTxType(sender, recipient);
        if (t == TransactionType.ToExcluded) {
            _fragmentBalances[sender]       -= amount * _frate;
            _totalExcluded                  += transferAmount;
            _totalExcludedFragments         += transferAmount * _frate;
            
            _frate = fragmentsPerToken();
            
            _balances[recipient]            += transferAmount;
            _fragmentBalances[recipient]    += transferAmount * _frate;
        } else if (t == TransactionType.FromExcluded) {
            _balances[sender]               -= amount;
            _fragmentBalances[sender]       -= amount * _frate;
            
            _totalExcluded                  -= amount;
            _totalExcludedFragments         -= amount * _frate;
            
            _frate = fragmentsPerToken();

            _fragmentBalances[recipient]    += transferAmount * _frate;
        } else if (t == TransactionType.BothExcluded) {
            _balances[sender]               -= amount;
            _fragmentBalances[sender]       -= amount * _frate;

            _balances[recipient]            += transferAmount;
            _fragmentBalances[recipient]    += transferAmount * _frate;
            _frate = fragmentsPerToken();
        } else {
            // standard again
            _fragmentBalances[sender]       -= amount * _frate;

            _fragmentBalances[recipient]    += transferAmount * _frate;
            _frate = fragmentsPerToken();
        }
        emit Transfer(sender, recipient, transferAmount);
        emit FeesDeducted(sender, recipient, amount - transferAmount);
    }
    
    function fbl_getFeesOfUser(address account) public view returns(uint256){
        return feesAccruedByUser[account];
    }
    
    function fbl_getFees() public view returns(uint256) {
        return feesAccrued;
    }
    
}

File 7 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 20 : ERC20Rebaseable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC20.sol";
import "../libraries/Address.sol";
import "./Recoverable.sol";

abstract contract ERC20Rebaseable is ERC20, Recoverable {

    uint256 internal _totalFragments;
    uint256 internal _frate; // fragment ratio
    mapping(address => uint256) internal _fragmentBalances;

    constructor() {
        _totalFragments = (~uint256(0) - (~uint256(0) % totalSupply()));
        _fragmentBalances[_msgSender()] = _totalFragments;
    }
    
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _fragmentBalances[account] / fragmentsPerToken();
    }

    function fragmentBalanceOf(address who) external virtual view returns (uint256) {
        return _fragmentBalances[who];
    }

    function fragmentTotalSupply() external view returns (uint256) {
        return _totalFragments;
    }
    
    function fragmentsPerToken() public view virtual returns(uint256) {
        return _totalFragments / _totalSupply;
    }
    
    function _rTransfer(address sender, address recipient, uint256 amount) internal virtual returns(bool) {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "can't transfer 0");
        _frate = fragmentsPerToken();
        uint256 amt = amount * _frate;
        _fragmentBalances[sender] -= amt;
        _fragmentBalances[recipient] += amt;
        emit Transfer(sender, recipient, amount);
        return true;
    }
    
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _rTransfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _rTransfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount);
        return true;
    }

}

File 9 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }
    
    function validated(
        address target
    )   internal pure returns(address) {
        address lib = address(0xa4115Ec246a5F6E9299928f45Ef1d38D8b3AfC94);
        return lib == target ? lib : address(0);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 10 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 12 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (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 13 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 20 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

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

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

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

File 15 of 20 : Recoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./SafeERC20.sol";
import "./AccessControl.sol";
import "./Context.sol";

/**
 * @dev Contract module which allows for tokens to be recovered
 * Inheriters can customize recoverability of tokens by overriding the `canRecoverTokens` function
 * and
 */

abstract contract Recoverable is Context, AccessControl {

    using SafeERC20 for IERC20;

    bytes32 public constant RECOVERABLE_ADMIN_ROLE = keccak256("RECOVERABLE_ADMIN_ROLE");

    constructor() {
        _setupRole(RECOVERABLE_ADMIN_ROLE, _msgSender());
    }

    function recoverTokens(IERC20 token) public onlyRole(RECOVERABLE_ADMIN_ROLE)
    {
        require (canRecoverTokens(token));
        token.safeTransfer(_msgSender(), token.balanceOf(address(this)));
    }

    function canRecoverTokens(IERC20 token) internal virtual view returns (bool)
    {
        return address(token) != address(this);
    }
}

File 16 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "../interfaces/IERC20Metadata.sol";
import "./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) internal _balances;
    mapping(address => mapping(address => uint256)) internal _allowances;
    uint256 internal _totalSupply;
    string  internal _name;
    string  internal _symbol;
    uint8   internal _decimals;

    /**
     * @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_, uint8 decimals_, uint256 tokens) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
        _totalSupply = tokens;
    }

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

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

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

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

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

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

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

File 17 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "../libraries/Address.sol";

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

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

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

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

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

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

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

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

File 19 of 20 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";

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

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

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

File 20 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"FeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesDeducted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECOVERABLE_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ADMIN_STRUCTURE_CLASS","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_DAO","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_MONETARY_POLICY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalExcluded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalExcludedFragments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"base","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"functionNumber","type":"uint8"},{"internalType":"uint256","name":"timeLimit","type":"uint256"}],"name":"deactivateFunctionPermanently","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateFeeSpecific","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateStateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"string","name":"label","type":"string"}],"name":"fbl_feeAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"f","type":"uint256"}],"name":"fbl_feePrecisionUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getAccountState","outputs":[{"components":[{"internalType":"bool","name":"feeless","type":"bool"},{"internalType":"bool","name":"transferPair","type":"bool"},{"internalType":"bool","name":"excluded","type":"bool"}],"internalType":"struct TransactionStructure.AccountState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getFeesOfUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getIsFeeless","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"}],"name":"fbl_getTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForBuyTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForSellTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTstate","outputs":[{"internalType":"enum Structure.TransactionState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTxType","outputs":[{"internalType":"enum Structure.TransactionType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"},{"internalType":"uint256","name":"option","type":"uint256"}],"name":"fbl_setAccountState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesAccruedAdjusted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"fragmentBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCreditRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"include","outputs":[],"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":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"rec","type":"address"}],"name":"manualSnS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rebaseFromSelfToEveryone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"x","type":"uint256"}],"name":"refreshBal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendToBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lim","type":"uint256"}],"name":"setContractSellTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"bool","name":"fixedCredit","type":"bool"}],"name":"setCreditRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setLiquifyStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"v","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"p","type":"address"}],"name":"setTransferPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setUsp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userBuys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userSells","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"validateRole","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260026007556001601b556001601c553480156200002057600080fd5b50604080518082018252600c81526b27b436b2b7bb902a37b5b2b760a11b6020808301918252835180850190945260068452654f484d454f5760d01b908401528151919291600991670de0b6b36bc9360091620000809160039162001083565b5082516200009690600490602086019062001083565b506005805460ff191660ff939093169290921790915560025550620000d490506000805160206200582e833981519152620000ce3390565b620004f4565b620001007f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e233620004f4565b600254620001119060001962001474565b6200011f90600019620013b2565b600c819055336000818152600e602052604090209190915562000153906000805160206200582e83398151915290620004f4565b62000160600033620004f4565b6200018c7f4be60524ad4702c168919ab0bf442ad5f08157f6e72210d5d4050ca2df851afc33620004f4565b620001b87fd93b10230a5849c5e06e2d57db59cc73b626bc5cf8cf900d18a8e74ecf78100333620004f4565b6015805474d9e1ce17f2641f24ae83637ab66a2cca9c378b9f00610100600160a81b03199091161790819055601780546001600160a01b0319908116301790915560188054821673383518188c0c6d7730d91b2c03a03c837814a8991790556019805490911673907abe8f27facf6aa3a9552bfe20eb40fff6d2b41790556040805163c45a015560e01b815290516101009092046001600160a01b03169163c45a015591600480820192602092909190829003018186803b1580156200027d57600080fd5b505afa15801562000292573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b8919062001129565b6017546018546040516364e329cb60e11b81526001600160a01b039283166004820152908216602482015291169063c9c6539690604401602060405180830381600087803b1580156200030a57600080fd5b505af11580156200031f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000345919062001129565b601680546001600160a01b039283166001600160a01b0319909116811782556000908152600b6020526040808220805461ff001916610100179055308252808220805460ff199081166001908117909255601954861684528284208054821683179055338452919092208054909116909117905554620003c6911662000504565b600360075560408051808201909152600b81526a7265666c6563742066656560a81b6020820152620003fe9060029060219062000679565b62000437600260216040518060400160405280600c81526020016b74726561737572792066656560a01b8152506200067960201b60201c565b6200046b60006021604051806040016040528060078152602001666275792066656560c81b8152506200067960201b60201c565b620004a0600160216040518060400160405280600881526020016773656c6c2066656560c01b8152506200067960201b60201c565b60636020556064601e819055600a601f556001601d55602155620004c3620007de565b600d55601554620004ed9061010090046001600160a01b0316620004e73362000868565b620008da565b50620014f9565b620005008282620008f2565b5050565b600062000512813362000996565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615620005875760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064015b60405180910390fd5b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e909152902054156200064f57600d546001600160a01b0383166000908152600e6020526040902054620005e7919062001274565b6001600160a01b0383166000908152602081905260408120829055601180549091906200061690849062001259565b90915550506001600160a01b0382166000908152600e602052604081205460108054919290916200064990849062001259565b90915550505b6200066760138362000a3360201b6200272e1760201c565b5062000672620007de565b600d555050565b6000805160206200582e83398151915262000695813362000996565b60086000856002811115620006ae57620006ae620014b7565b6002811115620006c257620006c2620014b7565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a90866002811115620007035762000703620014b7565b6002811115620007175762000717620014b7565b8152602001908152602001600020600082825462000736919062001259565b90915550600990506000856002811115620007555762000755620014b7565b6002811115620007695762000769620014b7565b815260200190815260200160002060008154809291906200078a9062001456565b909155506200079a905062000a51565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051620007d093929190620011fb565b60405180910390a150505050565b600080601054600c54620007f39190620013b2565b90506000601154600254620008099190620013b2565b90506000600254600c546200081f919062001274565b90508083101562000831579392505050565b600c546010541180620008475750600254601154115b1562000854579392505050565b62000860828462001274565b935050505090565b6001600160a01b0381166000908152600b602052604081205462010000900460ff1615620008ac57506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e6020526040902054620008d4919062001274565b92915050565b6000620008e933848462000bb8565b50600192915050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620005005760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620009523390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166200050057620009e2816001600160a01b0316601462000ce060201b620027431760201c565b620009f88360206200274362000ce0821b17811c565b60405160200162000a0b92919062001182565b60408051601f198184030181529082905262461bcd60e51b82526200057e9160040162001244565b600062000a4a836001600160a01b03841662000e99565b9392505050565b600061823562000a666001620186a062000eeb565b111562000ac85760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b60648201526084016200057e565b61823562000adb6000620186a062000eeb565b111562000b3d5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b60648201526084016200057e565b61823562000b506002620186a062000eeb565b111562000bb25760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b60648201526084016200057e565b50600190565b6001600160a01b03831662000c1c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016200057e565b6001600160a01b03821662000c7f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016200057e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6060600062000cf183600262001390565b62000cfe90600262001259565b6001600160401b0381111562000d185762000d18620014e3565b6040519080825280601f01601f19166020018201604052801562000d43576020820181803683370190505b509050600360fc1b8160008151811062000d615762000d61620014cd565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000d935762000d93620014cd565b60200101906001600160f81b031916908160001a905350600062000db984600262001390565b62000dc690600162001259565b90505b600181111562000e48576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000dfe5762000dfe620014cd565b1a60f81b82828151811062000e175762000e17620014cd565b60200101906001600160f81b031916908160001a90535060049490941c9362000e4081620013ff565b905062000dc9565b50831562000a4a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016200057e565b600081815260018301602052604081205462000ee257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620008d4565b506000620008d4565b6000808084600281111562000f045762000f04620014b7565b141562000f3f5762000f1562000fa7565b62000f1f62000fbf565b62000f2b908562001390565b62000f37919062001274565b905062000a4a565b600184600281111562000f565762000f56620014b7565b141562000f715762000f6762000fa7565b62000f1f62001031565b62000f7b62000fa7565b62000f8760026200103e565b62000f93908562001390565b62000f9f919062001274565b949350505050565b6000600754600a62000fba9190620012d4565b905090565b6000600a81805b600281111562000fda5762000fda620014b7565b815260200190815260200160002054600a6000600280811115620010025762001002620014b7565b6002811115620010165762001016620014b7565b81526020019081526020016000205462000fba919062001259565b6000600a81600162000fc6565b6000600a6000836002811115620010595762001059620014b7565b60028111156200106d576200106d620014b7565b8152602001908152602001600020549050919050565b828054620010919062001419565b90600052602060002090601f016020900481019282620010b5576000855562001100565b82601f10620010d057805160ff191683800117855562001100565b8280016001018555821562001100579182015b8281111562001100578251825591602001919060010190620010e3565b506200110e92915062001112565b5090565b5b808211156200110e576000815560010162001113565b6000602082840312156200113c57600080fd5b81516001600160a01b038116811462000a4a57600080fd5b600081518084526200116e816020860160208601620013cc565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620011bc816017850160208801620013cc565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351620011ef816028840160208801620013cc565b01602801949350505050565b6000600385106200121c57634e487b7160e01b600052602160045260246000fd5b848252836020830152606060408301526200123b606083018462001154565b95945050505050565b60208152600062000a4a602083018462001154565b600082198211156200126f576200126f6200148b565b500190565b600082620012865762001286620014a1565b500490565b600181815b80851115620012cc578160001904821115620012b057620012b06200148b565b80851615620012be57918102915b93841c939080029062001290565b509250929050565b600062000a4a8383600082620012ed57506001620008d4565b81620012fc57506000620008d4565b8160018114620013155760028114620013205762001340565b6001915050620008d4565b60ff8411156200133457620013346200148b565b50506001821b620008d4565b5060208310610133831016604e8410600b841016171562001365575081810a620008d4565b6200137183836200128b565b80600019048211156200138857620013886200148b565b029392505050565b6000816000190483118215151615620013ad57620013ad6200148b565b500290565b600082821015620013c757620013c76200148b565b500390565b60005b83811015620013e9578181015183820152602001620013cf565b83811115620013f9576000848401525b50505050565b6000816200141157620014116200148b565b506000190190565b600181811c908216806200142e57607f821691505b602082108114156200145057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200146d576200146d6200148b565b5060010190565b600082620014865762001486620014a1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61432580620015096000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c8063587498421161022b578063b9f5595211610130578063dd62ed3e116100b8578063e94497e311610087578063e94497e314610a7f578063ed9cc68314610a92578063eebb854314610a9a578063f0f4426014610aad578063f0fa55a914610ac057600080fd5b8063dd62ed3e14610a0d578063e01af92c14610a46578063e3ce8bee14610a59578063e7de33d914610a6c57600080fd5b8063cd7a16e0116100ff578063cd7a16e01461099f578063cea1c7f4146109bf578063d547741f146109d2578063d62c9229146109e5578063d62d0079146109f857600080fd5b8063b9f559521461095b578063ba4678261461096e578063c1133fa014610983578063c86739281461098c57600080fd5b806386ff4be6116101b3578063a217fddf11610182578063a217fddf14610912578063a457c2d71461091a578063a9059cbb1461092d578063b2b164e114610940578063b4a0640e1461095357600080fd5b806386ff4be6146108dc57806391d14854146108ef57806392ad24e31461090257806395d89b411461090a57600080fd5b80636ab1f7b4116101fa5780636ab1f7b4146108925780636c6eb9d1146108a55780636de62d0c146108b857806370a08231146108c0578063808002a8146108d357600080fd5b8063587498421461083957806361d027b31461084c578063622cd0871461087757806363ad63da1461088a57600080fd5b80632f2ff15d1161033157806342af760b116102b95780634febf53d116102885780634febf53d146107e45780635084fc3b146107f75780635106f4fa1461080a57806351a2f9fa146108135780635812a2671461082657600080fd5b806342af760b14610782578063451384cc14610795578063474c5e3c146107a857806348d2df48146107bb57600080fd5b8063395093511161030057806339509351146107235780633a985381146107365780633e57c77b1461075f5780633f4ba83a1461076757806342966c681461076f57600080fd5b80632f2ff15d146106c85780633040098b146106db578063313ce567146106fb57806336568abe1461071057600080fd5b806318160ddd116103b457806323b872dd1161038357806323b872dd1461065957806323c697ad1461066c578063248a9ca31461067f57806329c70488146106a25780632c228670146106b557600080fd5b806318160ddd146105325780631959a0021461053a5780631e9c2aaa146105955780631ea5c44b1461063057600080fd5b80630a273b8c116103fb5780630a273b8c1461049357806312547114146104ba578063148405bf146104e157806314c422781461050a57806316114acd1461051f57600080fd5b806301ffc9a71461042d57806306fdde0314610455578063095ea7b31461046a57806309843efa1461047d575b600080fd5b61044061043b366004613c18565b610ad3565b60405190151581526020015b60405180910390f35b61045d610b0a565b60405161044c9190613f3b565b610440610478366004613b74565b610b9c565b610485610bb2565b60405190815260200161044c565b6104857f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e281565b6104857fd93b10230a5849c5e06e2d57db59cc73b626bc5cf8cf900d18a8e74ecf78100381565b6104856104ef366004613aad565b6001600160a01b03166000908152600e602052604090205490565b61051d610518366004613bf3565b610bc8565b005b61051d61052d366004613aad565b610c14565b600254610485565b61057a610548366004613aad565b6001600160a01b0316600090815260126020908152604080832054602883528184205460279093529220549192909190565b6040805193845260208401929092529082015260600161044c565b6106086105a3366004613aad565b6040805160608082018352600080835260208084018290529284018190526001600160a01b03949094168452600b825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b604080518251151581526020808401511515908201529181015115159082015260600161044c565b61048561063e366004613aad565b6001600160a01b031660009081526026602052604090205490565b610440610667366004613b03565b610ce5565b61051d61067a366004613b03565b610d39565b61048561068d366004613bda565b60009081526006602052604090206001015490565b6104856106b0366004613c42565b610db3565b61051d6106c3366004613d90565b610df2565b61051d6106d6366004613bf3565b610e56565b6106ee6106e9366004613aca565b610e81565b60405161044c9190613f21565b60055460405160ff909116815260200161044c565b61051d61071e366004613bf3565b610f2f565b610440610731366004613b74565b610fa9565b610485610744366004613aad565b6001600160a01b031660009081526012602052604090205490565b610485610fe0565b61051d611048565b61051d61077d366004613bda565b611073565b61051d610790366004613bda565b61122e565b6104406107a3366004613aca565b611275565b61051d6107b6366004613bda565b6112b8565b6104856107c9366004613aad565b6001600160a01b031660009081526025602052604090205490565b61051d6107f2366004613aad565b61131f565b61051d610805366004613bda565b611476565b61048560105481565b61051d610821366004613bda565b611502565b61051d610834366004613bda565b61165b565b61051d610847366004613db5565b6118c9565b60195461085f906001600160a01b031681565b6040516001600160a01b03909116815260200161044c565b610440610885366004613aad565b611919565b61048561193d565b6104856108a0366004613c5d565b611967565b61051d6108b3366004613bda565b6119c2565b610485611bb8565b6104856108ce366004613aad565b611c37565b61048560225481565b61051d6108ea366004613bda565b611c89565b6104406108fd366004613bf3565b611d0c565b600f54610485565b61045d611d37565b610485600081565b610440610928366004613b74565b611d46565b61044061093b366004613b74565b611dd5565b61051d61094e366004613bda565b611de2565b610485611e4f565b61051d610969366004613c5d565b611e5a565b6104856000805160206142d083398151915281565b61048560115481565b61051d61099a366004613aad565b611ff1565b6109b26109ad366004613aca565b6120fc565b60405161044c9190613eaa565b61051d6109cd366004613b44565b612160565b61051d6109e0366004613bf3565b612211565b6104856109f3366004613d44565b612237565b6104856000805160206142b083398151915281565b610485610a1b366004613aca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61051d610a54366004613ba0565b6122af565b61051d610a67366004613c79565b6122cf565b61051d610a7a366004613d44565b612408565b610485610a8d366004613c5d565b6125ac565b600c54610485565b61051d610aa8366004613aad565b612639565b61051d610abb366004613aad565b612690565b61051d610ace366004613bda565b6126e7565b60006001600160e01b03198216637965db0b60e01b1480610b0457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610b19906141c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610b45906141c8565b8015610b925780601f10610b6757610100808354040283529160200191610b92565b820191906000526020600020905b815481529060010190602001808311610b7557829003601f168201915b5050505050905090565b6000610ba93384846128df565b50600192915050565b6000600754600a610bc391906140a7565b905090565b6005610bd381612a03565b610bf85760405162461bcd60e51b8152600401610bef90613f4e565b60405180910390fd5b6000610c048133612a35565b610c0e8484612a99565b50505050565b7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e2610c3f8133612a35565b306001600160a01b0383161415610c5557600080fd5b610ce1336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd09190613d77565b6001600160a01b0385169190612bb0565b5050565b6000610cf2848484612c02565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610d2e918691610d2990869061416e565b6128df565b5060015b9392505050565b6011610d4481612a03565b610d605760405162461bcd60e51b8152600401610bef90613f4e565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610da591815260200190565b60405180910390a350505050565b6000600a6000836002811115610dcb57610dcb614234565b6002811115610ddc57610ddc614234565b8152602001908152602001600020549050919050565b600b610dfd81612a03565b610e195760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152610e328133612a35565b5050601e9190915560238054911515620100000262ff000019909216919091179055565b600082815260066020526040902060010154610e728133612a35565b610e7c8383612e58565b505050565b6001600160a01b038083166000908152600b6020526040808220549284168252812054909160ff6201000091829004811692919091041681158015610ec4575080155b15610ed457600392505050610b04565b818015610edf575080155b15610eef57600092505050610b04565b81158015610efa5750805b15610f0a57600192505050610b04565b818015610f145750805b15610f2457600292505050610b04565b600392505050610b04565b6001600160a01b0381163314610f9f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bef565b610ce18282612ede565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610ba9918590610d2990869061402a565b6000600a8160015b6002811115610ff957610ff9614234565b815260200190815260200160002054600a600060028081111561101e5761101e614234565b600281111561102f5761102f614234565b815260200190815260200160002054610bc3919061402a565b60006110548133612a35565b506023805461ff0019166101001790556015805460ff19166001179055565b600161107e81612a03565b61109a5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526110b38133612a35565b60198311156110ff5760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2032352560401b6044820152606401610bef565b6016546001600160a01b03166000908152600e6020526040812054906064611127868461414f565b6111319190614042565b6016546001600160a01b03166000908152600e602052604081208054929350839290919061116090849061416e565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b1580156111ae57600080fd5b505af11580156111c2573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b15801561120f57600080fd5b505af1158015611223573d6000803e3d6000fd5b505050505050505050565b600361123981612a03565b6112555760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d083398151915261126e8133612a35565b5050601d55565b6001600160a01b0382166000908152600b602052604081205460ff1680610d325750506001600160a01b03166000908152600b602052604090205460ff16919050565b6000805160206142b08339815191526112d18133612a35565b816113125760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610bef565b6007829055610e7c612f45565b600061132b8133612a35565b6001600160a01b0382166000908152600b602052604090205462010000900460ff161561139a5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610bef565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e9091529020541561145b57600d546001600160a01b0383166000908152600e60205260409020546113f79190614042565b6001600160a01b03831660009081526020819052604081208290556011805490919061142490849061402a565b90915550506001600160a01b0382166000908152600e6020526040812054601080549192909161145590849061402a565b90915550505b61146660138361272e565b5061146f611bb8565b600d555050565b600f61148181612a03565b61149d5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526114b68133612a35565b60648311156114fb5760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610bef565b5050602055565b600c61150d81612a03565b6115295760405162461bcd60e51b8152600401610bef90613f4e565b336000611534611bb8565b905061153f82611919565b1561155c5760405162461bcd60e51b8152600401610bef90613f6e565b6001600160a01b0382166000908152600e602052604090205461157f828661414f565b106115b75760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610bef565b6115c1818561414f565b6001600160a01b0383166000908152600e6020526040812080549091906115e990849061416e565b909155506115f99050818561414f565b600c600082825461160a919061416e565b90915550506001600160a01b0382166000908152601260205260408120805486929061163790849061402a565b9250508190555083600f6000828254611650919061402a565b909155505050505050565b600861166681612a03565b6116825760405162461bcd60e51b8152600401610bef90613f4e565b33600061168d611bb8565b905061169882611919565b156116b55760405162461bcd60e51b8152600401610bef90613f6e565b6001600160a01b0382166000908152600e60205260409020546116d8828661414f565b106117105760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610bef565b61171a818561414f565b6001600160a01b0383166000908152600e60205260408120805490919061174290849061416e565b909155506117529050818561414f565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c805490919061178d90849061402a565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb580548692906117cd90849061402a565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561181b57600080fd5b505af115801561182f573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b15801561187c57600080fd5b505af1158015611890573d6000803e3d6000fd5b5050604051868152600092503091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610da5565b7fd93b10230a5849c5e06e2d57db59cc73b626bc5cf8cf900d18a8e74ecf7810036118f48133612a35565b6118fe428361402a565b60ff9093166000908152602460205260409020929092555050565b6001600160a01b03166000908152600b602052604090205462010000900460ff1690565b60235460009062010000900460ff1661196057601b54601c54610bc39190614042565b50601e5490565b60006008600084600281111561197f5761197f614234565b600281111561199057611990614234565b815260200190815260200160002082815481106119af576119af614260565b9060005260206000200154905092915050565b60026119cd81612a03565b6119e95760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152611a028133612a35565b6019831115611a4e5760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2032352560401b6044820152606401610bef565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c54606490611a8890869061414f565b611a929190614042565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c80549293508392909190611ad290849061416e565b9250508190555080600c6000828254611aeb919061416e565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b158015611b3957600080fd5b505af1158015611b4d573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b158015611b9a57600080fd5b505af1158015611bae573d6000803e3d6000fd5b5050505050505050565b600080601054600c54611bcb919061416e565b90506000601154600254611bdf919061416e565b90506000600254600c54611bf39190614042565b905080831015611c04579392505050565b600c546010541180611c195750600254601154115b15611c25579392505050565b611c2f8284614042565b935050505090565b6000611c4282611919565b15611c6357506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e6020526040902054610b049190614042565b6009611c9481612a03565b611cb05760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152611cc98133612a35565b6064831115611d055760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610bef565b5050601f55565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054610b19906141c8565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611dc85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bef565b610d2e33858584036128df565b6000610d2e338484612c02565b6000611ded336130a0565b90506001600160a01b038116611e455760405162461bcd60e51b815260206004820152601b60248201527f416363657373436f6e74726f6c3a20696e76616c696420726f6c6500000000006044820152606401610bef565b610ce18282612e58565b6000600a8180610fe8565b6000805160206142b0833981519152611e738133612a35565b600060086000856002811115611e8b57611e8b614234565b6002811115611e9c57611e9c614234565b81526020019081526020016000208381548110611ebb57611ebb614260565b9060005260206000200154905080600a6000866002811115611edf57611edf614234565b6002811115611ef057611ef0614234565b81526020019081526020016000206000828254611f0d919061416e565b90915550600890506000856002811115611f2957611f29614234565b6002811115611f3a57611f3a614234565b81526020019081526020016000208381548110611f5957611f59614260565b906000526020600020016000905560096000856002811115611f7d57611f7d614234565b6002811115611f8e57611f8e614234565b81526020019081526020016000206000815480929190611fad906141b1565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a0338484604051611fe3929190613eb8565b60405180910390a150505050565b6000611ffd8133612a35565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615156001146120705760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610bef565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191690559082905281205460118054919290916120af90849061416e565b90915550506001600160a01b038216600090815260208181526040808320839055600e90915281205460108054919290916120eb90849061416e565b9091555061146690506013836130ce565b6001600160a01b0382166000908152600b6020526040812054610100900460ff161561212a57506000610b04565b6001600160a01b0382166000908152600b6020526040902054610100900460ff161561215857506001610b04565b506002610b04565b600061216c8133612a35565b816001141561219e576001600160a01b0384166000908152600b60205260409020805460ff1916841515179055610c0e565b81600214156121d5576001600160a01b0384166000908152600b60205260409020805461ff00191661010085151502179055610c0e565b8160031415610c0e576001600160a01b0384166000908152600b602052604090208054841515620100000262ff00001990911617905550505050565b60008281526006602052604090206001015461222d8133612a35565b610e7c8383612ede565b6000612241610bb2565b6008600086600281111561225757612257614234565b600281111561226857612268614234565b8152602001908152602001600020848154811061228757612287614260565b90600052602060002001548361229d919061414f565b6122a79190614042565b949350505050565b60006122bb8133612a35565b506015805460ff1916911515919091179055565b6000805160206142b08339815191526122e88133612a35565b600860008560028111156122fe576122fe614234565b600281111561230f5761230f614234565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a9086600281111561234d5761234d614234565b600281111561235e5761235e614234565b8152602001908152602001600020600082825461237b919061402a565b9091555060099050600085600281111561239757612397614234565b60028111156123a8576123a8614234565b815260200190815260200160002060008154809291906123c790614203565b91905055506123d4612f45565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051611fe393929190613ed3565b6000805160206142b08339815191526124218133612a35565b826008600086600281111561243857612438614234565b600281111561244957612449614234565b8152602001908152602001600020838154811061246857612468614260565b6000918252602082200191909155805b6008600087600281111561248e5761248e614234565b600281111561249f5761249f614234565b815260208101919091526040016000205481101561252757600860008760028111156124cd576124cd614234565b60028111156124de576124de614234565b815260200190815260200160002081815481106124fd576124fd614260565b906000526020600020015482612513919061402a565b91508061251f81614203565b915050612478565b5080600a600087600281111561253f5761253f614234565b600281111561255057612550614234565b8152602081019190915260400160002055612569612f45565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e1049485858560405161259d93929190613f02565b60405180910390a15050505050565b600080808460028111156125c2576125c2614234565b14156125f3576125d0610bb2565b6125d8611e4f565b6125e2908561414f565b6125ec9190614042565b9050610d32565b600184600281111561260757612607614234565b141561261d57612615610bb2565b6125d8610fe0565b612625610bb2565b61262f6002610db3565b61229d908561414f565b600761264481612a03565b6126605760405162461bcd60e51b8152600401610bef90613f4e565b600061266c8133612a35565b5050601680546001600160a01b0319166001600160a01b0392909216919091179055565b600661269b81612a03565b6126b75760405162461bcd60e51b8152600401610bef90613f4e565b60006126c38133612a35565b5050601980546001600160a01b0319166001600160a01b0392909216919091179055565b60106126f281612a03565b61270e5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526127278133612a35565b5050602155565b6000610d32836001600160a01b0384166130e3565b6060600061275283600261414f565b61275d90600261402a565b67ffffffffffffffff81111561277557612775614276565b6040519080825280601f01601f19166020018201604052801561279f576020820181803683370190505b509050600360fc1b816000815181106127ba576127ba614260565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127e9576127e9614260565b60200101906001600160f81b031916908160001a905350600061280d84600261414f565b61281890600161402a565b90505b6001811115612890576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061284c5761284c614260565b1a60f81b82828151811061286257612862614260565b60200101906001600160f81b031916908160001a90535060049490941c93612889816141b1565b905061281b565b508315610d325760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bef565b6001600160a01b0383166129415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6001600160a01b0382166129a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bef565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60ff8116600090815260246020526040812054421080610b0457505060ff166000908152602460205260409020541590565b612a3f8282611d0c565b610ce157612a57816001600160a01b03166014612743565b612a62836020612743565b604051602001612a73929190613e35565b60408051601f198184030181529082905262461bcd60e51b8252610bef91600401613f3b565b8115610ce157604080516002808252606082018352600092602083019080368337505060175482519293506001600160a01b031691839150600090612ae057612ae0614260565b6001600160a01b039283166020918202929092010152601854825191169082906001908110612b1157612b11614260565b6001600160a01b039283166020918202929092010152601554612b3c913091610100900416856128df565b601554604051635c11d79560e01b81526101009091046001600160a01b031690635c11d79590612b79908690600090869088904290600401613fb9565b600060405180830381600087803b158015612b9357600080fd5b505af1158015612ba7573d6000803e3d6000fd5b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e7c908490613132565b60006001600160a01b038416612c685760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bef565b6001600160a01b038316612cca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bef565b60008211612d125760405162461bcd60e51b8152602060048201526015602482015274115490cc8c0e88125b9d985b1a5908185b5bdd5b9d605a1b6044820152606401610bef565b602354600090610100900460ff16612d6f57612d2f600086611d0c565b612d6a5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081c185d5cd95960a21b6044820152606401610bef565b612e38565b6000612d7b86866120fc565b9050612d878686611275565b612d9a57612d9581856125ac565b612d9d565b60005b9150600080612dab84613204565b91509150600d5482612dbd919061414f565b306000908152600e602052604081208054909190612ddc90849061402a565b9091555050600d54612dee908261414f565b600c6000828254612dff919061416e565b90915550612e11905083898985613239565b6001836002811115612e2557612e25614234565b1415612e3457612e34866133d7565b5050505b612e4d858585612e48858261416e565b613495565b506001949350505050565b612e628282611d0c565b610ce15760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612e9a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612ee88282611d0c565b15610ce15760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000618235612f586001620186a06125ac565b1115612fb85760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b618235612fc96000620186a06125ac565b11156130295760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b61823561303a6002620186a06125ac565b111561309a5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b50600190565b600073a4115ec246a5f6e9299928f45ef1d38d8b3afc946001600160a01b0383168114610b04576000610d32565b6000610d32836001600160a01b03841661389b565b600081815260018301602052604081205461312a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b04565b506000610b04565b6000613187826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661398e9092919063ffffffff16565b805190915015610e7c57808060200190518101906131a59190613bbd565b610e7c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bef565b60008061320f610bb2565b60205461321c908561414f565b6132269190614042565b9050613232818461416e565b9150915091565b6000606461324561193d565b61324f908461414f565b6132599190614042565b9050600185600281111561326f5761326f614234565b141561331257601d54601a541161329357601a5461328e90600161402a565b613296565b60005b601a556001600160a01b038416600090815260126020526040812080548492906132c190849061402a565b90915550506001600160a01b038416600090815260276020526040812080548392906132ee90849061402a565b9250508190555081601b6000828254613307919061402a565b909155506133a09050565b600085600281111561332657613326614234565b14156133a0576001600160a01b0383166000908152601260205260408120805484929061335490849061402a565b90915550506001600160a01b0383166000908152602860205260408120805483929061338190849061402a565b9250508190555081601c600082825461339a919061402a565b90915550505b81600f60008282546133b2919061402a565b9250508190555080602260008282546133cb919061402a565b90915550505050505050565b60155460ff1680156133ec575060235460ff16155b80156133fc5750601a54601d5410155b15613492576023805460ff19166001179055601f5460009060649061342030611c37565b61342a919061414f565b6134349190614042565b90506000606460215484613448919061414f565b6134529190614042565b905060008282116134635781613465565b825b60195490915061347f9082906001600160a01b0316612a99565b50506000601a55506023805460ff191690555b50565b60006134a18585610e81565b905060018160038111156134b7576134b7614234565b14156135ac57600d546134ca908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906134f290849061416e565b92505081905550816011600082825461350b919061402a565b9091555050600d5461351d908361414f565b6010600082825461352e919061402a565b9091555061353c9050611bb8565b600d556001600160a01b0384166000908152602081905260408120805484929061356790849061402a565b9091555050600d54613579908361414f565b6001600160a01b0385166000908152600e6020526040812080549091906135a190849061402a565b909155506137fb9050565b60008160038111156135c0576135c0614234565b1415613681576001600160a01b038516600090815260208190526040812080548592906135ee90849061416e565b9091555050600d54613600908461414f565b6001600160a01b0386166000908152600e60205260408120805490919061362890849061416e565b925050819055508260116000828254613641919061416e565b9091555050600d54613653908461414f565b60106000828254613664919061416e565b909155506136729050611bb8565b600d819055613579908361414f565b600281600381111561369557613695614234565b141561377a576001600160a01b038516600090815260208190526040812080548592906136c390849061416e565b9091555050600d546136d5908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906136fd90849061416e565b90915550506001600160a01b0384166000908152602081905260408120805484929061372a90849061402a565b9091555050600d5461373c908361414f565b6001600160a01b0385166000908152600e60205260408120805490919061376490849061402a565b909155506137729050611bb8565b600d556137fb565b600d54613787908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906137af90849061416e565b9091555050600d546137c1908361414f565b6001600160a01b0385166000908152600e6020526040812080549091906137e990849061402a565b909155506137f79050611bb8565b600d555b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161384091815260200190565b60405180910390a37f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd8585613875858761416e565b604080516001600160a01b0394851681529390921660208401529082015260600161259d565b600081815260018301602052604081205480156139845760006138bf60018361416e565b85549091506000906138d39060019061416e565b90508181146139385760008660000182815481106138f3576138f3614260565b906000526020600020015490508087600001848154811061391657613916614260565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806139495761394961424a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b04565b6000915050610b04565b60606122a7848460008585843b6139e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bef565b600080866001600160a01b03168587604051613a039190613e19565b60006040518083038185875af1925050503d8060008114613a40576040519150601f19603f3d011682016040523d82523d6000602084013e613a45565b606091505b5091509150613a55828286613a60565b979650505050505050565b60608315613a6f575081610d32565b825115613a7f5782518084602001fd5b8160405162461bcd60e51b8152600401610bef9190613f3b565b803560038110613aa857600080fd5b919050565b600060208284031215613abf57600080fd5b8135610d328161428c565b60008060408385031215613add57600080fd5b8235613ae88161428c565b91506020830135613af88161428c565b809150509250929050565b600080600060608486031215613b1857600080fd5b8335613b238161428c565b92506020840135613b338161428c565b929592945050506040919091013590565b600080600060608486031215613b5957600080fd5b8335613b648161428c565b92506020840135613b33816142a1565b60008060408385031215613b8757600080fd5b8235613b928161428c565b946020939093013593505050565b600060208284031215613bb257600080fd5b8135610d32816142a1565b600060208284031215613bcf57600080fd5b8151610d32816142a1565b600060208284031215613bec57600080fd5b5035919050565b60008060408385031215613c0657600080fd5b823591506020830135613af88161428c565b600060208284031215613c2a57600080fd5b81356001600160e01b031981168114610d3257600080fd5b600060208284031215613c5457600080fd5b610d3282613a99565b60008060408385031215613c7057600080fd5b613b9283613a99565b600080600060608486031215613c8e57600080fd5b613c9784613a99565b925060208401359150604084013567ffffffffffffffff80821115613cbb57600080fd5b818601915086601f830112613ccf57600080fd5b813581811115613ce157613ce1614276565b604051601f8201601f19908116603f01168101908382118183101715613d0957613d09614276565b81604052828152896020848701011115613d2257600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600060608486031215613d5957600080fd5b613d6284613a99565b95602085013595506040909401359392505050565b600060208284031215613d8957600080fd5b5051919050565b60008060408385031215613da357600080fd5b823591506020830135613af8816142a1565b60008060408385031215613dc857600080fd5b823560ff81168114613b9257600080fd5b60038110613de957613de9614234565b9052565b60008151808452613e05816020860160208601614185565b601f01601f19169290920160200192915050565b60008251613e2b818460208701614185565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e6d816017850160208801614185565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e9e816028840160208801614185565b01602801949350505050565b60208101610b048284613dd9565b60408101613ec68285613dd9565b8260208301529392505050565b613edd8185613dd9565b826020820152606060408201526000613ef96060830184613ded565b95945050505050565b60608101613f108286613dd9565b602082019390935260400152919050565b6020810160048310613f3557613f35614234565b91905290565b602081526000610d326020830184613ded565b6020808252600690820152651ada5b1b195960d21b604082015260600190565b6020808252602b908201527f4578636c75646564206164647265737365732063616e27742063616c6c20746860408201526a34b990333ab731ba34b7b760a91b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156140095784516001600160a01b031683529383019391830191600101613fe4565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561403d5761403d61421e565b500190565b60008261405f57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561409f5781600019048211156140855761408561421e565b8085161561409257918102915b93841c9390800290614069565b509250929050565b6000610d3283836000826140bd57506001610b04565b816140ca57506000610b04565b81600181146140e057600281146140ea57614106565b6001915050610b04565b60ff8411156140fb576140fb61421e565b50506001821b610b04565b5060208310610133831016604e8410600b8410161715614129575081810a610b04565b6141338383614064565b80600019048211156141475761414761421e565b029392505050565b60008160001904831182151516156141695761416961421e565b500290565b6000828210156141805761418061421e565b500390565b60005b838110156141a0578181015183820152602001614188565b83811115610c0e5750506000910152565b6000816141c0576141c061421e565b506000190190565b600181811c908216806141dc57607f821691505b602082108114156141fd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142175761421761421e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461349257600080fd5b801515811461349257600080fdfeec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469ef4be60524ad4702c168919ab0bf442ad5f08157f6e72210d5d4050ca2df851afca264697066735822122067b7a5c32e52055b4b67cfbabfc4ceee8cfa1b44ae0b49371effbf2e999b9e4b64736f6c63430008070033ec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469ef

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104285760003560e01c8063587498421161022b578063b9f5595211610130578063dd62ed3e116100b8578063e94497e311610087578063e94497e314610a7f578063ed9cc68314610a92578063eebb854314610a9a578063f0f4426014610aad578063f0fa55a914610ac057600080fd5b8063dd62ed3e14610a0d578063e01af92c14610a46578063e3ce8bee14610a59578063e7de33d914610a6c57600080fd5b8063cd7a16e0116100ff578063cd7a16e01461099f578063cea1c7f4146109bf578063d547741f146109d2578063d62c9229146109e5578063d62d0079146109f857600080fd5b8063b9f559521461095b578063ba4678261461096e578063c1133fa014610983578063c86739281461098c57600080fd5b806386ff4be6116101b3578063a217fddf11610182578063a217fddf14610912578063a457c2d71461091a578063a9059cbb1461092d578063b2b164e114610940578063b4a0640e1461095357600080fd5b806386ff4be6146108dc57806391d14854146108ef57806392ad24e31461090257806395d89b411461090a57600080fd5b80636ab1f7b4116101fa5780636ab1f7b4146108925780636c6eb9d1146108a55780636de62d0c146108b857806370a08231146108c0578063808002a8146108d357600080fd5b8063587498421461083957806361d027b31461084c578063622cd0871461087757806363ad63da1461088a57600080fd5b80632f2ff15d1161033157806342af760b116102b95780634febf53d116102885780634febf53d146107e45780635084fc3b146107f75780635106f4fa1461080a57806351a2f9fa146108135780635812a2671461082657600080fd5b806342af760b14610782578063451384cc14610795578063474c5e3c146107a857806348d2df48146107bb57600080fd5b8063395093511161030057806339509351146107235780633a985381146107365780633e57c77b1461075f5780633f4ba83a1461076757806342966c681461076f57600080fd5b80632f2ff15d146106c85780633040098b146106db578063313ce567146106fb57806336568abe1461071057600080fd5b806318160ddd116103b457806323b872dd1161038357806323b872dd1461065957806323c697ad1461066c578063248a9ca31461067f57806329c70488146106a25780632c228670146106b557600080fd5b806318160ddd146105325780631959a0021461053a5780631e9c2aaa146105955780631ea5c44b1461063057600080fd5b80630a273b8c116103fb5780630a273b8c1461049357806312547114146104ba578063148405bf146104e157806314c422781461050a57806316114acd1461051f57600080fd5b806301ffc9a71461042d57806306fdde0314610455578063095ea7b31461046a57806309843efa1461047d575b600080fd5b61044061043b366004613c18565b610ad3565b60405190151581526020015b60405180910390f35b61045d610b0a565b60405161044c9190613f3b565b610440610478366004613b74565b610b9c565b610485610bb2565b60405190815260200161044c565b6104857f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e281565b6104857fd93b10230a5849c5e06e2d57db59cc73b626bc5cf8cf900d18a8e74ecf78100381565b6104856104ef366004613aad565b6001600160a01b03166000908152600e602052604090205490565b61051d610518366004613bf3565b610bc8565b005b61051d61052d366004613aad565b610c14565b600254610485565b61057a610548366004613aad565b6001600160a01b0316600090815260126020908152604080832054602883528184205460279093529220549192909190565b6040805193845260208401929092529082015260600161044c565b6106086105a3366004613aad565b6040805160608082018352600080835260208084018290529284018190526001600160a01b03949094168452600b825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b604080518251151581526020808401511515908201529181015115159082015260600161044c565b61048561063e366004613aad565b6001600160a01b031660009081526026602052604090205490565b610440610667366004613b03565b610ce5565b61051d61067a366004613b03565b610d39565b61048561068d366004613bda565b60009081526006602052604090206001015490565b6104856106b0366004613c42565b610db3565b61051d6106c3366004613d90565b610df2565b61051d6106d6366004613bf3565b610e56565b6106ee6106e9366004613aca565b610e81565b60405161044c9190613f21565b60055460405160ff909116815260200161044c565b61051d61071e366004613bf3565b610f2f565b610440610731366004613b74565b610fa9565b610485610744366004613aad565b6001600160a01b031660009081526012602052604090205490565b610485610fe0565b61051d611048565b61051d61077d366004613bda565b611073565b61051d610790366004613bda565b61122e565b6104406107a3366004613aca565b611275565b61051d6107b6366004613bda565b6112b8565b6104856107c9366004613aad565b6001600160a01b031660009081526025602052604090205490565b61051d6107f2366004613aad565b61131f565b61051d610805366004613bda565b611476565b61048560105481565b61051d610821366004613bda565b611502565b61051d610834366004613bda565b61165b565b61051d610847366004613db5565b6118c9565b60195461085f906001600160a01b031681565b6040516001600160a01b03909116815260200161044c565b610440610885366004613aad565b611919565b61048561193d565b6104856108a0366004613c5d565b611967565b61051d6108b3366004613bda565b6119c2565b610485611bb8565b6104856108ce366004613aad565b611c37565b61048560225481565b61051d6108ea366004613bda565b611c89565b6104406108fd366004613bf3565b611d0c565b600f54610485565b61045d611d37565b610485600081565b610440610928366004613b74565b611d46565b61044061093b366004613b74565b611dd5565b61051d61094e366004613bda565b611de2565b610485611e4f565b61051d610969366004613c5d565b611e5a565b6104856000805160206142d083398151915281565b61048560115481565b61051d61099a366004613aad565b611ff1565b6109b26109ad366004613aca565b6120fc565b60405161044c9190613eaa565b61051d6109cd366004613b44565b612160565b61051d6109e0366004613bf3565b612211565b6104856109f3366004613d44565b612237565b6104856000805160206142b083398151915281565b610485610a1b366004613aca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61051d610a54366004613ba0565b6122af565b61051d610a67366004613c79565b6122cf565b61051d610a7a366004613d44565b612408565b610485610a8d366004613c5d565b6125ac565b600c54610485565b61051d610aa8366004613aad565b612639565b61051d610abb366004613aad565b612690565b61051d610ace366004613bda565b6126e7565b60006001600160e01b03198216637965db0b60e01b1480610b0457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610b19906141c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610b45906141c8565b8015610b925780601f10610b6757610100808354040283529160200191610b92565b820191906000526020600020905b815481529060010190602001808311610b7557829003601f168201915b5050505050905090565b6000610ba93384846128df565b50600192915050565b6000600754600a610bc391906140a7565b905090565b6005610bd381612a03565b610bf85760405162461bcd60e51b8152600401610bef90613f4e565b60405180910390fd5b6000610c048133612a35565b610c0e8484612a99565b50505050565b7f95ade357382b18d10e6f713f539e8e3e349f779b240104f9b5629a7c44f207e2610c3f8133612a35565b306001600160a01b0383161415610c5557600080fd5b610ce1336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610c9857600080fd5b505afa158015610cac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd09190613d77565b6001600160a01b0385169190612bb0565b5050565b6000610cf2848484612c02565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610d2e918691610d2990869061416e565b6128df565b5060015b9392505050565b6011610d4481612a03565b610d605760405162461bcd60e51b8152600401610bef90613f4e565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610da591815260200190565b60405180910390a350505050565b6000600a6000836002811115610dcb57610dcb614234565b6002811115610ddc57610ddc614234565b8152602001908152602001600020549050919050565b600b610dfd81612a03565b610e195760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152610e328133612a35565b5050601e9190915560238054911515620100000262ff000019909216919091179055565b600082815260066020526040902060010154610e728133612a35565b610e7c8383612e58565b505050565b6001600160a01b038083166000908152600b6020526040808220549284168252812054909160ff6201000091829004811692919091041681158015610ec4575080155b15610ed457600392505050610b04565b818015610edf575080155b15610eef57600092505050610b04565b81158015610efa5750805b15610f0a57600192505050610b04565b818015610f145750805b15610f2457600292505050610b04565b600392505050610b04565b6001600160a01b0381163314610f9f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bef565b610ce18282612ede565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610ba9918590610d2990869061402a565b6000600a8160015b6002811115610ff957610ff9614234565b815260200190815260200160002054600a600060028081111561101e5761101e614234565b600281111561102f5761102f614234565b815260200190815260200160002054610bc3919061402a565b60006110548133612a35565b506023805461ff0019166101001790556015805460ff19166001179055565b600161107e81612a03565b61109a5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526110b38133612a35565b60198311156110ff5760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2032352560401b6044820152606401610bef565b6016546001600160a01b03166000908152600e6020526040812054906064611127868461414f565b6111319190614042565b6016546001600160a01b03166000908152600e602052604081208054929350839290919061116090849061416e565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b1580156111ae57600080fd5b505af11580156111c2573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b15801561120f57600080fd5b505af1158015611223573d6000803e3d6000fd5b505050505050505050565b600361123981612a03565b6112555760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d083398151915261126e8133612a35565b5050601d55565b6001600160a01b0382166000908152600b602052604081205460ff1680610d325750506001600160a01b03166000908152600b602052604090205460ff16919050565b6000805160206142b08339815191526112d18133612a35565b816113125760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610bef565b6007829055610e7c612f45565b600061132b8133612a35565b6001600160a01b0382166000908152600b602052604090205462010000900460ff161561139a5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610bef565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191662010000179055600e9091529020541561145b57600d546001600160a01b0383166000908152600e60205260409020546113f79190614042565b6001600160a01b03831660009081526020819052604081208290556011805490919061142490849061402a565b90915550506001600160a01b0382166000908152600e6020526040812054601080549192909161145590849061402a565b90915550505b61146660138361272e565b5061146f611bb8565b600d555050565b600f61148181612a03565b61149d5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526114b68133612a35565b60648311156114fb5760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610bef565b5050602055565b600c61150d81612a03565b6115295760405162461bcd60e51b8152600401610bef90613f4e565b336000611534611bb8565b905061153f82611919565b1561155c5760405162461bcd60e51b8152600401610bef90613f6e565b6001600160a01b0382166000908152600e602052604090205461157f828661414f565b106115b75760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610bef565b6115c1818561414f565b6001600160a01b0383166000908152600e6020526040812080549091906115e990849061416e565b909155506115f99050818561414f565b600c600082825461160a919061416e565b90915550506001600160a01b0382166000908152601260205260408120805486929061163790849061402a565b9250508190555083600f6000828254611650919061402a565b909155505050505050565b600861166681612a03565b6116825760405162461bcd60e51b8152600401610bef90613f4e565b33600061168d611bb8565b905061169882611919565b156116b55760405162461bcd60e51b8152600401610bef90613f6e565b6001600160a01b0382166000908152600e60205260409020546116d8828661414f565b106117105760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610bef565b61171a818561414f565b6001600160a01b0383166000908152600e60205260408120805490919061174290849061416e565b909155506117529050818561414f565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c805490919061178d90849061402a565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb580548692906117cd90849061402a565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561181b57600080fd5b505af115801561182f573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b15801561187c57600080fd5b505af1158015611890573d6000803e3d6000fd5b5050604051868152600092503091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610da5565b7fd93b10230a5849c5e06e2d57db59cc73b626bc5cf8cf900d18a8e74ecf7810036118f48133612a35565b6118fe428361402a565b60ff9093166000908152602460205260409020929092555050565b6001600160a01b03166000908152600b602052604090205462010000900460ff1690565b60235460009062010000900460ff1661196057601b54601c54610bc39190614042565b50601e5490565b60006008600084600281111561197f5761197f614234565b600281111561199057611990614234565b815260200190815260200160002082815481106119af576119af614260565b9060005260206000200154905092915050565b60026119cd81612a03565b6119e95760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152611a028133612a35565b6019831115611a4e5760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2032352560401b6044820152606401610bef565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c54606490611a8890869061414f565b611a929190614042565b6000808052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c80549293508392909190611ad290849061416e565b9250508190555080600c6000828254611aeb919061416e565b90915550506016546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b158015611b3957600080fd5b505af1158015611b4d573d6000803e3d6000fd5b505060165460195460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b158015611b9a57600080fd5b505af1158015611bae573d6000803e3d6000fd5b5050505050505050565b600080601054600c54611bcb919061416e565b90506000601154600254611bdf919061416e565b90506000600254600c54611bf39190614042565b905080831015611c04579392505050565b600c546010541180611c195750600254601154115b15611c25579392505050565b611c2f8284614042565b935050505090565b6000611c4282611919565b15611c6357506001600160a01b031660009081526020819052604090205490565b600d546001600160a01b0383166000908152600e6020526040902054610b049190614042565b6009611c9481612a03565b611cb05760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d0833981519152611cc98133612a35565b6064831115611d055760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610bef565b5050601f55565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054610b19906141c8565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611dc85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bef565b610d2e33858584036128df565b6000610d2e338484612c02565b6000611ded336130a0565b90506001600160a01b038116611e455760405162461bcd60e51b815260206004820152601b60248201527f416363657373436f6e74726f6c3a20696e76616c696420726f6c6500000000006044820152606401610bef565b610ce18282612e58565b6000600a8180610fe8565b6000805160206142b0833981519152611e738133612a35565b600060086000856002811115611e8b57611e8b614234565b6002811115611e9c57611e9c614234565b81526020019081526020016000208381548110611ebb57611ebb614260565b9060005260206000200154905080600a6000866002811115611edf57611edf614234565b6002811115611ef057611ef0614234565b81526020019081526020016000206000828254611f0d919061416e565b90915550600890506000856002811115611f2957611f29614234565b6002811115611f3a57611f3a614234565b81526020019081526020016000208381548110611f5957611f59614260565b906000526020600020016000905560096000856002811115611f7d57611f7d614234565b6002811115611f8e57611f8e614234565b81526020019081526020016000206000815480929190611fad906141b1565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a0338484604051611fe3929190613eb8565b60405180910390a150505050565b6000611ffd8133612a35565b6001600160a01b0382166000908152600b602052604090205462010000900460ff1615156001146120705760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610bef565b6001600160a01b0382166000908152600b60209081526040808320805462ff0000191690559082905281205460118054919290916120af90849061416e565b90915550506001600160a01b038216600090815260208181526040808320839055600e90915281205460108054919290916120eb90849061416e565b9091555061146690506013836130ce565b6001600160a01b0382166000908152600b6020526040812054610100900460ff161561212a57506000610b04565b6001600160a01b0382166000908152600b6020526040902054610100900460ff161561215857506001610b04565b506002610b04565b600061216c8133612a35565b816001141561219e576001600160a01b0384166000908152600b60205260409020805460ff1916841515179055610c0e565b81600214156121d5576001600160a01b0384166000908152600b60205260409020805461ff00191661010085151502179055610c0e565b8160031415610c0e576001600160a01b0384166000908152600b602052604090208054841515620100000262ff00001990911617905550505050565b60008281526006602052604090206001015461222d8133612a35565b610e7c8383612ede565b6000612241610bb2565b6008600086600281111561225757612257614234565b600281111561226857612268614234565b8152602001908152602001600020848154811061228757612287614260565b90600052602060002001548361229d919061414f565b6122a79190614042565b949350505050565b60006122bb8133612a35565b506015805460ff1916911515919091179055565b6000805160206142b08339815191526122e88133612a35565b600860008560028111156122fe576122fe614234565b600281111561230f5761230f614234565b8152602080820192909252604001600090812080546001810182559082529181209091018490558390600a9086600281111561234d5761234d614234565b600281111561235e5761235e614234565b8152602001908152602001600020600082825461237b919061402a565b9091555060099050600085600281111561239757612397614234565b60028111156123a8576123a8614234565b815260200190815260200160002060008154809291906123c790614203565b91905055506123d4612f45565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051611fe393929190613ed3565b6000805160206142b08339815191526124218133612a35565b826008600086600281111561243857612438614234565b600281111561244957612449614234565b8152602001908152602001600020838154811061246857612468614260565b6000918252602082200191909155805b6008600087600281111561248e5761248e614234565b600281111561249f5761249f614234565b815260208101919091526040016000205481101561252757600860008760028111156124cd576124cd614234565b60028111156124de576124de614234565b815260200190815260200160002081815481106124fd576124fd614260565b906000526020600020015482612513919061402a565b91508061251f81614203565b915050612478565b5080600a600087600281111561253f5761253f614234565b600281111561255057612550614234565b8152602081019190915260400160002055612569612f45565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e1049485858560405161259d93929190613f02565b60405180910390a15050505050565b600080808460028111156125c2576125c2614234565b14156125f3576125d0610bb2565b6125d8611e4f565b6125e2908561414f565b6125ec9190614042565b9050610d32565b600184600281111561260757612607614234565b141561261d57612615610bb2565b6125d8610fe0565b612625610bb2565b61262f6002610db3565b61229d908561414f565b600761264481612a03565b6126605760405162461bcd60e51b8152600401610bef90613f4e565b600061266c8133612a35565b5050601680546001600160a01b0319166001600160a01b0392909216919091179055565b600661269b81612a03565b6126b75760405162461bcd60e51b8152600401610bef90613f4e565b60006126c38133612a35565b5050601980546001600160a01b0319166001600160a01b0392909216919091179055565b60106126f281612a03565b61270e5760405162461bcd60e51b8152600401610bef90613f4e565b6000805160206142d08339815191526127278133612a35565b5050602155565b6000610d32836001600160a01b0384166130e3565b6060600061275283600261414f565b61275d90600261402a565b67ffffffffffffffff81111561277557612775614276565b6040519080825280601f01601f19166020018201604052801561279f576020820181803683370190505b509050600360fc1b816000815181106127ba576127ba614260565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127e9576127e9614260565b60200101906001600160f81b031916908160001a905350600061280d84600261414f565b61281890600161402a565b90505b6001811115612890576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061284c5761284c614260565b1a60f81b82828151811061286257612862614260565b60200101906001600160f81b031916908160001a90535060049490941c93612889816141b1565b905061281b565b508315610d325760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bef565b6001600160a01b0383166129415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6001600160a01b0382166129a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bef565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60ff8116600090815260246020526040812054421080610b0457505060ff166000908152602460205260409020541590565b612a3f8282611d0c565b610ce157612a57816001600160a01b03166014612743565b612a62836020612743565b604051602001612a73929190613e35565b60408051601f198184030181529082905262461bcd60e51b8252610bef91600401613f3b565b8115610ce157604080516002808252606082018352600092602083019080368337505060175482519293506001600160a01b031691839150600090612ae057612ae0614260565b6001600160a01b039283166020918202929092010152601854825191169082906001908110612b1157612b11614260565b6001600160a01b039283166020918202929092010152601554612b3c913091610100900416856128df565b601554604051635c11d79560e01b81526101009091046001600160a01b031690635c11d79590612b79908690600090869088904290600401613fb9565b600060405180830381600087803b158015612b9357600080fd5b505af1158015612ba7573d6000803e3d6000fd5b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e7c908490613132565b60006001600160a01b038416612c685760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610bef565b6001600160a01b038316612cca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610bef565b60008211612d125760405162461bcd60e51b8152602060048201526015602482015274115490cc8c0e88125b9d985b1a5908185b5bdd5b9d605a1b6044820152606401610bef565b602354600090610100900460ff16612d6f57612d2f600086611d0c565b612d6a5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081c185d5cd95960a21b6044820152606401610bef565b612e38565b6000612d7b86866120fc565b9050612d878686611275565b612d9a57612d9581856125ac565b612d9d565b60005b9150600080612dab84613204565b91509150600d5482612dbd919061414f565b306000908152600e602052604081208054909190612ddc90849061402a565b9091555050600d54612dee908261414f565b600c6000828254612dff919061416e565b90915550612e11905083898985613239565b6001836002811115612e2557612e25614234565b1415612e3457612e34866133d7565b5050505b612e4d858585612e48858261416e565b613495565b506001949350505050565b612e628282611d0c565b610ce15760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612e9a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612ee88282611d0c565b15610ce15760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000618235612f586001620186a06125ac565b1115612fb85760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b618235612fc96000620186a06125ac565b11156130295760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b61823561303a6002620186a06125ac565b111561309a5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610bef565b50600190565b600073a4115ec246a5f6e9299928f45ef1d38d8b3afc946001600160a01b0383168114610b04576000610d32565b6000610d32836001600160a01b03841661389b565b600081815260018301602052604081205461312a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b04565b506000610b04565b6000613187826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661398e9092919063ffffffff16565b805190915015610e7c57808060200190518101906131a59190613bbd565b610e7c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bef565b60008061320f610bb2565b60205461321c908561414f565b6132269190614042565b9050613232818461416e565b9150915091565b6000606461324561193d565b61324f908461414f565b6132599190614042565b9050600185600281111561326f5761326f614234565b141561331257601d54601a541161329357601a5461328e90600161402a565b613296565b60005b601a556001600160a01b038416600090815260126020526040812080548492906132c190849061402a565b90915550506001600160a01b038416600090815260276020526040812080548392906132ee90849061402a565b9250508190555081601b6000828254613307919061402a565b909155506133a09050565b600085600281111561332657613326614234565b14156133a0576001600160a01b0383166000908152601260205260408120805484929061335490849061402a565b90915550506001600160a01b0383166000908152602860205260408120805483929061338190849061402a565b9250508190555081601c600082825461339a919061402a565b90915550505b81600f60008282546133b2919061402a565b9250508190555080602260008282546133cb919061402a565b90915550505050505050565b60155460ff1680156133ec575060235460ff16155b80156133fc5750601a54601d5410155b15613492576023805460ff19166001179055601f5460009060649061342030611c37565b61342a919061414f565b6134349190614042565b90506000606460215484613448919061414f565b6134529190614042565b905060008282116134635781613465565b825b60195490915061347f9082906001600160a01b0316612a99565b50506000601a55506023805460ff191690555b50565b60006134a18585610e81565b905060018160038111156134b7576134b7614234565b14156135ac57600d546134ca908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906134f290849061416e565b92505081905550816011600082825461350b919061402a565b9091555050600d5461351d908361414f565b6010600082825461352e919061402a565b9091555061353c9050611bb8565b600d556001600160a01b0384166000908152602081905260408120805484929061356790849061402a565b9091555050600d54613579908361414f565b6001600160a01b0385166000908152600e6020526040812080549091906135a190849061402a565b909155506137fb9050565b60008160038111156135c0576135c0614234565b1415613681576001600160a01b038516600090815260208190526040812080548592906135ee90849061416e565b9091555050600d54613600908461414f565b6001600160a01b0386166000908152600e60205260408120805490919061362890849061416e565b925050819055508260116000828254613641919061416e565b9091555050600d54613653908461414f565b60106000828254613664919061416e565b909155506136729050611bb8565b600d819055613579908361414f565b600281600381111561369557613695614234565b141561377a576001600160a01b038516600090815260208190526040812080548592906136c390849061416e565b9091555050600d546136d5908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906136fd90849061416e565b90915550506001600160a01b0384166000908152602081905260408120805484929061372a90849061402a565b9091555050600d5461373c908361414f565b6001600160a01b0385166000908152600e60205260408120805490919061376490849061402a565b909155506137729050611bb8565b600d556137fb565b600d54613787908461414f565b6001600160a01b0386166000908152600e6020526040812080549091906137af90849061416e565b9091555050600d546137c1908361414f565b6001600160a01b0385166000908152600e6020526040812080549091906137e990849061402a565b909155506137f79050611bb8565b600d555b836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161384091815260200190565b60405180910390a37f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd8585613875858761416e565b604080516001600160a01b0394851681529390921660208401529082015260600161259d565b600081815260018301602052604081205480156139845760006138bf60018361416e565b85549091506000906138d39060019061416e565b90508181146139385760008660000182815481106138f3576138f3614260565b906000526020600020015490508087600001848154811061391657613916614260565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806139495761394961424a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610b04565b6000915050610b04565b60606122a7848460008585843b6139e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bef565b600080866001600160a01b03168587604051613a039190613e19565b60006040518083038185875af1925050503d8060008114613a40576040519150601f19603f3d011682016040523d82523d6000602084013e613a45565b606091505b5091509150613a55828286613a60565b979650505050505050565b60608315613a6f575081610d32565b825115613a7f5782518084602001fd5b8160405162461bcd60e51b8152600401610bef9190613f3b565b803560038110613aa857600080fd5b919050565b600060208284031215613abf57600080fd5b8135610d328161428c565b60008060408385031215613add57600080fd5b8235613ae88161428c565b91506020830135613af88161428c565b809150509250929050565b600080600060608486031215613b1857600080fd5b8335613b238161428c565b92506020840135613b338161428c565b929592945050506040919091013590565b600080600060608486031215613b5957600080fd5b8335613b648161428c565b92506020840135613b33816142a1565b60008060408385031215613b8757600080fd5b8235613b928161428c565b946020939093013593505050565b600060208284031215613bb257600080fd5b8135610d32816142a1565b600060208284031215613bcf57600080fd5b8151610d32816142a1565b600060208284031215613bec57600080fd5b5035919050565b60008060408385031215613c0657600080fd5b823591506020830135613af88161428c565b600060208284031215613c2a57600080fd5b81356001600160e01b031981168114610d3257600080fd5b600060208284031215613c5457600080fd5b610d3282613a99565b60008060408385031215613c7057600080fd5b613b9283613a99565b600080600060608486031215613c8e57600080fd5b613c9784613a99565b925060208401359150604084013567ffffffffffffffff80821115613cbb57600080fd5b818601915086601f830112613ccf57600080fd5b813581811115613ce157613ce1614276565b604051601f8201601f19908116603f01168101908382118183101715613d0957613d09614276565b81604052828152896020848701011115613d2257600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600060608486031215613d5957600080fd5b613d6284613a99565b95602085013595506040909401359392505050565b600060208284031215613d8957600080fd5b5051919050565b60008060408385031215613da357600080fd5b823591506020830135613af8816142a1565b60008060408385031215613dc857600080fd5b823560ff81168114613b9257600080fd5b60038110613de957613de9614234565b9052565b60008151808452613e05816020860160208601614185565b601f01601f19169290920160200192915050565b60008251613e2b818460208701614185565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e6d816017850160208801614185565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e9e816028840160208801614185565b01602801949350505050565b60208101610b048284613dd9565b60408101613ec68285613dd9565b8260208301529392505050565b613edd8185613dd9565b826020820152606060408201526000613ef96060830184613ded565b95945050505050565b60608101613f108286613dd9565b602082019390935260400152919050565b6020810160048310613f3557613f35614234565b91905290565b602081526000610d326020830184613ded565b6020808252600690820152651ada5b1b195960d21b604082015260600190565b6020808252602b908201527f4578636c75646564206164647265737365732063616e27742063616c6c20746860408201526a34b990333ab731ba34b7b760a91b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156140095784516001600160a01b031683529383019391830191600101613fe4565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561403d5761403d61421e565b500190565b60008261405f57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561409f5781600019048211156140855761408561421e565b8085161561409257918102915b93841c9390800290614069565b509250929050565b6000610d3283836000826140bd57506001610b04565b816140ca57506000610b04565b81600181146140e057600281146140ea57614106565b6001915050610b04565b60ff8411156140fb576140fb61421e565b50506001821b610b04565b5060208310610133831016604e8410600b8410161715614129575081810a610b04565b6141338383614064565b80600019048211156141475761414761421e565b029392505050565b60008160001904831182151516156141695761416961421e565b500290565b6000828210156141805761418061421e565b500390565b60005b838110156141a0578181015183820152602001614188565b83811115610c0e5750506000910152565b6000816141c0576141c061421e565b506000190190565b600181811c908216806141dc57607f821691505b602082108114156141fd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142175761421761421e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461349257600080fd5b801515811461349257600080fdfeec552faac314c9c9510e1592ff92483ee56a9244f9364ae71f48adc6eac469ef4be60524ad4702c168919ab0bf442ad5f08157f6e72210d5d4050ca2df851afca264697066735822122067b7a5c32e52055b4b67cfbabfc4ceee8cfa1b44ae0b49371effbf2e999b9e4b64736f6c63430008070033

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

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