ETH Price: $3,847.46 (-1.29%)

Contract

0x516D339afA72f6959b8E06a31FBc32Da3E49348B
 

Overview

ETH Balance

0.003150000000000026 ETH

Eth Value

$12.12 (@ $3,847.46/ETH)

Token Holdings

More Info

Private Name Tags

TokenTracker

Connect (CNCT) (@$0.0315)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve214033432024-12-14 21:09:1151 mins ago1734210551IN
BIG Ecosystem: CNCT Token
0 ETH0.0006409213.84875786
Transfer214031552024-12-14 20:31:351 hr ago1734208295IN
BIG Ecosystem: CNCT Token
0 ETH0.001298397.45392912
Approve214030472024-12-14 20:09:591 hr ago1734206999IN
BIG Ecosystem: CNCT Token
0 ETH0.000404058.69693244
Approve214012082024-12-14 13:59:238 hrs ago1734184763IN
BIG Ecosystem: CNCT Token
0 ETH0.0005199111.1760791
Approve213996402024-12-14 8:44:4713 hrs ago1734165887IN
BIG Ecosystem: CNCT Token
0 ETH0.000440529.48173066
Approve213982492024-12-14 4:04:4717 hrs ago1734149087IN
BIG Ecosystem: CNCT Token
0 ETH0.000442089.51540445
Approve213975762024-12-14 1:49:3520 hrs ago1734140975IN
BIG Ecosystem: CNCT Token
0 ETH0.0005290411.45212327
Approve213973712024-12-14 1:08:3520 hrs ago1734138515IN
BIG Ecosystem: CNCT Token
0 ETH0.0005974712.93690728
Approve213959422024-12-13 20:20:4725 hrs ago1734121247IN
BIG Ecosystem: CNCT Token
0 ETH0.0007339215.77648035
Approve213959352024-12-13 20:19:2325 hrs ago1734121163IN
BIG Ecosystem: CNCT Token
0 ETH0.0007073215.22438333
Approve213956852024-12-13 19:29:1126 hrs ago1734118151IN
BIG Ecosystem: CNCT Token
0 ETH0.000732215.858157
Transfer213955632024-12-13 19:04:4726 hrs ago1734116687IN
BIG Ecosystem: CNCT Token
0 ETH0.0032710720.21014266
Transfer213954392024-12-13 18:39:4727 hrs ago1734115187IN
BIG Ecosystem: CNCT Token
0 ETH0.0033399719.17443907
Approve213954012024-12-13 18:32:1127 hrs ago1734114731IN
BIG Ecosystem: CNCT Token
0 ETH0.0011387824.51102094
Approve213936632024-12-13 12:42:5933 hrs ago1734093779IN
BIG Ecosystem: CNCT Token
0 ETH0.0007014815.09864611
Approve213926222024-12-13 9:13:4736 hrs ago1734081227IN
BIG Ecosystem: CNCT Token
0 ETH0.0007667716.50389319
Approve213921332024-12-13 7:35:3538 hrs ago1734075335IN
BIG Ecosystem: CNCT Token
0 ETH0.0005298411.40430524
Transfer213921062024-12-13 7:30:1138 hrs ago1734075011IN
BIG Ecosystem: CNCT Token
0 ETH0.0004172311.58992919
Transfer213920672024-12-13 7:22:1138 hrs ago1734074531IN
BIG Ecosystem: CNCT Token
0 ETH0.0004275411.87615497
Transfer213920472024-12-13 7:18:1138 hrs ago1734074291IN
BIG Ecosystem: CNCT Token
0 ETH0.0004178111.60608794
Transfer213920342024-12-13 7:15:3538 hrs ago1734074135IN
BIG Ecosystem: CNCT Token
0 ETH0.0004666911.66728838
Transfer213920272024-12-13 7:14:1138 hrs ago1734074051IN
BIG Ecosystem: CNCT Token
0 ETH0.0004515212.54232785
Approve213900882024-12-13 0:44:2345 hrs ago1734050663IN
BIG Ecosystem: CNCT Token
0 ETH0.0006596214.19761549
Approve213895232024-12-12 22:50:3547 hrs ago1734043835IN
BIG Ecosystem: CNCT Token
0 ETH0.0007194215.48474246
Transfer213890442024-12-12 21:14:112 days ago1734038051IN
BIG Ecosystem: CNCT Token
0 ETH0.003692420.62921272
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214033432024-12-14 21:09:1151 mins ago1734210551
BIG Ecosystem: CNCT Token
6 wei
214033432024-12-14 21:09:1151 mins ago1734210551
BIG Ecosystem: CNCT Token
117 wei
214032322024-12-14 20:46:591 hr ago1734209219
BIG Ecosystem: CNCT Token
39 wei
214032322024-12-14 20:46:591 hr ago1734209219
BIG Ecosystem: CNCT Token
710 wei
214031552024-12-14 20:31:351 hr ago1734208295
BIG Ecosystem: CNCT Token
236 wei
214031552024-12-14 20:31:351 hr ago1734208295
BIG Ecosystem: CNCT Token
0 ETH
214031342024-12-14 20:27:231 hr ago1734208043
BIG Ecosystem: CNCT Token
0 ETH
214031342024-12-14 20:27:231 hr ago1734208043
BIG Ecosystem: CNCT Token
0 ETH
214030602024-12-14 20:12:351 hr ago1734207155
BIG Ecosystem: CNCT Token
0 ETH
214030602024-12-14 20:12:351 hr ago1734207155
BIG Ecosystem: CNCT Token
0 ETH
214028942024-12-14 19:39:112 hrs ago1734205151
BIG Ecosystem: CNCT Token
0 ETH
214028942024-12-14 19:39:112 hrs ago1734205151
BIG Ecosystem: CNCT Token
0 ETH
214012082024-12-14 13:59:238 hrs ago1734184763
BIG Ecosystem: CNCT Token
0 ETH
214012082024-12-14 13:59:238 hrs ago1734184763
BIG Ecosystem: CNCT Token
0 ETH
214012082024-12-14 13:59:238 hrs ago1734184763
BIG Ecosystem: CNCT Token
0 ETH
214012082024-12-14 13:59:238 hrs ago1734184763
BIG Ecosystem: CNCT Token
0 ETH
213996402024-12-14 8:44:4713 hrs ago1734165887
BIG Ecosystem: CNCT Token
0 ETH
213996402024-12-14 8:44:4713 hrs ago1734165887
BIG Ecosystem: CNCT Token
0 ETH
213995552024-12-14 8:27:3513 hrs ago1734164855
BIG Ecosystem: CNCT Token
0 ETH
213995552024-12-14 8:27:3513 hrs ago1734164855
BIG Ecosystem: CNCT Token
0 ETH
213991052024-12-14 6:56:5915 hrs ago1734159419
BIG Ecosystem: CNCT Token
0 ETH
213991052024-12-14 6:56:5915 hrs ago1734159419
BIG Ecosystem: CNCT Token
0 ETH
213988502024-12-14 6:05:4715 hrs ago1734156347
BIG Ecosystem: CNCT Token
0 ETH
213988502024-12-14 6:05:4715 hrs ago1734156347
BIG Ecosystem: CNCT Token
0.00000004 ETH
213984682024-12-14 4:48:5917 hrs ago1734151739
BIG Ecosystem: CNCT Token
0.00000001 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BIGECOSYSTEM_CONNECT_ERC20

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion, MIT license
File 1 of 13 : BIGECOSYSTEM_CONNECT_ERC20.sol
/*

  CONNECT by BIG Ecosystem

  BigEcosystem addresses the current fragmentation in the cryptocurrency market by creating a unified platform that merges premier technologies and services. This cohesive approach significantly eases the management of crypto assets and improves the user experience by offering a streamlined and user-friendly interface. 
  
  Web: https://bigecosystem.com/
  X: https://x.com/BigEcosystem
  Telegram: https://t.me/BigEcosystemOfficial

*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";
import "./CF_ERC20.sol";
import "./CF_Recoverable.sol";
import "./CF_Burnable.sol";
import "./CF_Whitelist.sol";
import "./CF_MaxBalance.sol";
import "./CF_Taxable.sol";
import "./CF_DEXRouterV2.sol";

contract BIGECOSYSTEM_CONNECT_ERC20 is CF_Common, CF_Ownable, CF_ERC20, CF_Recoverable, CF_Burnable, CF_Whitelist, CF_MaxBalance, CF_Taxable, CF_DEXRouterV2 {
  constructor() {
    _name = unicode"Connect";
    _symbol = unicode"CNCT";
    _decimals = 18;
    _totalSupply = 100000000000000000000000000; // 100,000,000 CNCT
    _transferOwnership(0x165Af5744f60b1124eF0554B5006A23Ba29CFb83);
    _transferInitialSupply(0xf641a8d39E09bCa90d0fAcd4D66A6E470AEBf0c4, 60000); // 60%
    _transferInitialSupply(0xf06197d4eb3b549Fd3B2A9Ff403317Ef9902E863, 20000); // 20%
    _transferInitialSupply(0xE6533F8BC543Fb9B943e5C33E42249C39aF1D891, 20000); // 20%
    _setDEXRouterV2(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    _setEarlyPenaltyTime(600); // 10min
    _setTaxToken(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    _autoSwapEnabled = true;
    _setAutoSwapPercent(50, 250); // 0.05% -> 0.25% of total supply
    _setAutoAddLiquidityPercent(100, 100000); // 0.1% -> 100% of total supply
    _setTaxBeneficiary(0, 0x8881d9869aC7C7840971cAac043D7f4D144Abd10, [ uint24(0), uint24(0), uint24(0) ], [ uint24(0), uint24(4600), uint24(4600) ]); // ChainFactory Anti-Sniper revenue (10%)
    _setTaxBeneficiary(1, 0x0fA44D1E1cD8E4fc3A9267Bfc9048321A052BB60, [ uint24(0), uint24(4000), uint24(4000) ], [ uint24(0), uint24(37000), uint24(37000) ]); // TTAX
    _setTaxBeneficiary(2, 0xF2C8872a76cF030b58174231e97259Ba1BB8F242, [ uint24(0), uint24(1000), uint24(1000) ], [ uint24(0), uint24(9000), uint24(9000) ]); // DTAX
    _initialWhitelist([ 0x165Af5744f60b1124eF0554B5006A23Ba29CFb83, 0xE6533F8BC543Fb9B943e5C33E42249C39aF1D891, 0xf06197d4eb3b549Fd3B2A9Ff403317Ef9902E863, 0xf641a8d39E09bCa90d0fAcd4D66A6E470AEBf0c4, 0x87DB399583eA6dcb8b902e2f353cf7309bDfA991 ]);
    _setMaxBalancePercent(1000); // 1% of total supply
    _domainSeparator = keccak256(abi.encode(keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(_name)), keccak256(bytes("1")), block.chainid, address(this)));

    _initialized = true;
  }

  function _transfer(address from, address to, uint256 amount) internal virtual override {
    if (to == address(0xdEaD)) {
      _burn(from, amount);

      return;
    }

    if (!_distributing && !_swapping && (from != _dex.pair && from != _dex.router)) {
      _autoSwap(false);
      _autoTaxDistribute();
    }

    if (amount > 0 && !_whitelisted[from] && !_whitelisted[to] && from != address(this) && to != address(this) && to != _dex.router) {
      require((from != _dex.pair && to != _dex.pair) || ((from == _dex.pair || to == _dex.pair) && _tradingEnabled > 0), "Trading disabled");

      unchecked {
        require(to == address(this) || (to == _dex.pair || to == _dex.router) || _balance[to] + amount <= _maxBalanceAmount, "Exceeds maxBalance");

        if (!_suspendTaxes && !_distributing && !_swapping) {
          uint256 appliedTax;
          uint8 taxType;

          if (from == _dex.pair || to == _dex.pair) { taxType = from == _dex.pair ? 1 : 2; }

          address _account = taxType == 1 ? to : from;

          if (_tradingEnabled + _earlyPenaltyTime >= _timestamp() && !_holder[_account].penalty) { _holder[_account].penalty = true; }

          for (uint8 i; i < 6; i++) {
            uint256 percent = uint256(taxType > 0 ? (taxType == 1 ? (_holder[_account].penalty ? _taxBeneficiary[i].penalty[1] : _taxBeneficiary[i].percent[1]) : (_holder[_account].penalty ? _taxBeneficiary[i].penalty[2] : _taxBeneficiary[i].percent[2])) : (_holder[_account].penalty ? _taxBeneficiary[i].penalty[0] : _taxBeneficiary[i].percent[0]));

            if (percent == 0) { continue; }

            uint256 taxAmount = _percentage(amount, percent);

            super._transfer(from, address(this), taxAmount);

            if (_taxBeneficiary[i].account == _dex.pair) {
              _amountForLiquidity += taxAmount;
            } else if (_taxBeneficiary[i].account == address(0xdEaD)) {
              _burn(address(this), taxAmount);
            } else {
              _taxBeneficiary[i].unclaimed += taxAmount;
              _amountForTaxDistribution += taxAmount;
              _totalTaxUnclaimed += taxAmount;
            }

            appliedTax += taxAmount;
          }

          if (appliedTax > 0) {
            _totalTaxCollected += appliedTax;

            amount -= appliedTax;
          }
        }
      }
    }

    super._transfer(from, to, amount);
  }

  function _burn(address account, uint256 amount) internal virtual override {
    super._burn(account, amount);

    _setMaxBalancePercent(_maxBalancePercent);
    _setAutoSwapPercent(_minAutoSwapPercent, _maxAutoSwapPercent);
    _setAutoAddLiquidityPercent(_minAutoAddLiquidityPercent, _maxAutoAddLiquidityPercent);
  }

  function _transferInitialSupply(address account, uint24 percent) private {
    require(!_initialized);

    uint256 amount = _percentage(_totalSupply, uint256(percent));

    _balance[account] = amount;

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

  /// @notice Returns a list specifying the renounce status of each feature
  function renounced() external view returns (bool Whitelist, bool MaxBalance, bool DEXRouterV2, bool Taxable) {
    return (_renounced.Whitelist, _renounced.MaxBalance, _renounced.DEXRouterV2, _renounced.Taxable);
  }

  /// @notice Returns basic information about this Smart-Contract
  function info() external view returns (string memory name, string memory symbol, uint8 decimals, address owner, uint256 totalSupply, string memory version) {
    return (_name, _symbol, _decimals, _owner, _totalSupply, _version);
  }

  receive() external payable { }
  fallback() external payable { }
}

File 2 of 13 : IDEXV2.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

interface IDEXRouterV2 {
  function factory() external pure returns (address);
  function WETH() external pure returns (address);
  function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
  function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external;
  function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external;
}

interface IDEXFactoryV2 {
  function createPair(address tokenA, address tokenB) external returns (address pair);
  function getPair(address tokenA, address tokenB) external returns (address pair);
}

File 3 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

interface IERC20 {
  function balanceOf(address account) external view returns (uint256);
  function transfer(address to, uint256 amount) external returns (bool);
  function approve(address spender, uint256 amount) external returns (bool);
}

File 4 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

interface IERC721 {
  function safeTransferFrom(address from, address to, uint256 tokenId) external returns (bool);
}

File 5 of 13 : CF_ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";

abstract contract CF_ERC20 is CF_Common {
  string internal _name;
  string internal _symbol;
  bytes32 internal _domainSeparator;
  bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
  mapping(address => uint256) private _nonces;

  event Transfer(address indexed from, address indexed to, uint256 value);
  event Approval(address indexed owner, address indexed spender, uint256 value);

  function name() external view returns (string memory) {
    return _name;
  }

  function symbol() external view returns (string memory) {
    return _symbol;
  }

  function decimals() external view returns (uint8) {
    return _decimals;
  }

  function totalSupply() external view returns (uint256) {
    return _totalSupply;
  }

  function balanceOf(address account) external view returns (uint256) {
    return _balance[account];
  }

  function allowance(address owner, address spender) public view returns (uint256) {
    return _allowance[owner][spender];
  }

  function approve(address spender, uint256 amount) external returns (bool) {
    _approve(msg.sender, spender, amount);

    return true;
  }

  function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external {
    require(deadline >= block.timestamp, "Expired signature");

    unchecked {
      bytes32 digest = keccak256(abi.encodePacked(hex"1901", _domainSeparator, keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _nonces[owner]++, deadline))));
      address recoveredAddress = ecrecover(digest, v, r, s);

      require(recoveredAddress != address(0) && recoveredAddress == owner, "Invalid signature");
    }

    _approve(owner, spender, value);
  }

  function nonces(address owner) external view returns (uint256) {
    return _nonces[owner];
  }

  function DOMAIN_SEPARATOR() external view returns (bytes32) {
    return _domainSeparator;
  }

  function transfer(address to, uint256 amount) external returns (bool) {
    _transfer(msg.sender, to, amount);

    return true;
  }

  function transferFrom(address from, address to, uint256 amount) external returns (bool) {
    _spendAllowance(from, msg.sender, amount);
    _transfer(from, to, amount);

    return true;
  }

  function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
    unchecked {
      _approve(msg.sender, spender, allowance(msg.sender, spender) + addedValue);
    }

    return true;
  }

  function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
    uint256 currentAllowance = allowance(msg.sender, spender);

    require(currentAllowance >= subtractedValue, "Negative allowance");

    unchecked {
      _approve(msg.sender, spender, currentAllowance - subtractedValue);
    }

    return true;
  }

  function _approve(address owner, address spender, uint256 amount) internal {
    _allowance[owner][spender] = amount;

    emit Approval(owner, spender, amount);
  }

  function _spendAllowance(address owner, address spender, uint256 amount) internal {
    uint256 currentAllowance = allowance(owner, spender);

    require(currentAllowance >= amount, "Insufficient allowance");

    unchecked {
      _approve(owner, spender, currentAllowance - amount);
    }
  }

  function _transfer(address from, address to, uint256 amount) internal virtual {
    require(from != address(0) && to != address(0), "Transfer from/to zero address");
    require(_balance[from] >= amount, "Exceeds balance");

    if (amount > 0) {
      unchecked {
        _balance[from] -= amount;
        _balance[to] += amount;
      }
    }

    emit Transfer(from, to, amount);
  }
}

File 6 of 13 : CF_Common.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./IDEXV2.sol";
import "./IERC20.sol";
import "./IERC721.sol";

abstract contract CF_Common {
  string internal constant _version = "1.0.3";

  mapping(address => uint256) internal _balance;
  mapping(address => mapping(address => uint256)) internal _allowance;
  mapping(address => bool) internal _whitelisted;
  mapping(address => holderAccount) internal _holder;
  mapping(uint8 => taxBeneficiary) internal _taxBeneficiary;
  mapping(address => uint256) internal _tokensForTaxDistribution;

  address[] internal _holders;

  bool internal _autoSwapEnabled;
  bool internal _swapping;
  bool internal _suspendTaxes;
  bool internal _distributing;
  bool internal immutable _initialized;

  uint8 internal immutable _decimals;
  uint24 internal constant _denominator = 1000;
  uint24 internal _maxBalancePercent;
  uint24 internal _totalTxTax;
  uint24 internal _totalBuyTax;
  uint24 internal _totalSellTax;
  uint24 internal _totalPenaltyTxTax;
  uint24 internal _totalPenaltyBuyTax;
  uint24 internal _totalPenaltySellTax;
  uint24 internal _minAutoSwapPercent;
  uint24 internal _maxAutoSwapPercent;
  uint24 internal _minAutoAddLiquidityPercent;
  uint24 internal _maxAutoAddLiquidityPercent;
  uint32 internal _lastTaxDistribution;
  uint32 internal _tradingEnabled;
  uint32 internal _lastSwap;
  uint32 internal _earlyPenaltyTime;
  uint256 internal _totalSupply;
  uint256 internal _totalBurned;
  uint256 internal _maxBalanceAmount;
  uint256 internal _minAutoSwapAmount;
  uint256 internal _maxAutoSwapAmount;
  uint256 internal _minAutoAddLiquidityAmount;
  uint256 internal _maxAutoAddLiquidityAmount;
  uint256 internal _amountForLiquidity;
  uint256 internal _ethForLiquidity;
  uint256 internal _totalTaxCollected;
  uint256 internal _totalTaxUnclaimed;
  uint256 internal _amountForTaxDistribution;
  uint256 internal _amountSwappedForTaxDistribution;
  uint256 internal _ethForTaxDistribution;

  struct Renounced {
    bool Whitelist;
    bool MaxBalance;
    bool Taxable;
    bool DEXRouterV2;
  }

  struct holderAccount {
    bool exists;
    bool penalty;
  }

  struct taxBeneficiary {
    bool exists;
    address account;
    uint24[3] percent; // 0: tx, 1: buy, 2: sell
    uint24[3] penalty;
    uint256 unclaimed;
  }

  struct DEXRouterV2 {
    address router;
    address pair;
    address token0;
    address WETH;
    address receiver;
  }

  Renounced internal _renounced;
  IERC20 internal _taxToken;
  DEXRouterV2 internal _dex;

  function _percentage(uint256 amount, uint256 bps) internal pure returns (uint256) {
    unchecked {
      return (amount * bps) / (100 * uint256(_denominator));
    }
  }

  function _timestamp() internal view returns (uint32) {
    unchecked {
      return uint32(block.timestamp % 2**32);
    }
  }

  function denominator() external pure returns (uint24) {
    return _denominator;
  }

  function version() external pure returns (string memory) {
    return _version;
  }
}

File 7 of 13 : CF_Ownable.sol
// SPDX-License-Identifier: MIT

import "./CF_Common.sol";

pragma solidity 0.8.25;

abstract contract CF_Ownable is CF_Common {
  address internal _owner;

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

  modifier onlyOwner() {
    require(_owner == msg.sender, "Unauthorized");

    _;
  }

  function owner() external view returns (address) {
    return _owner;
  }

  function renounceOwnership() external onlyOwner {
    _renounced.Whitelist = true;
    _renounced.MaxBalance = true;
    _renounced.Taxable = true;
    _renounced.DEXRouterV2 = true;

    _transferOwnership(address(0));
  }

  function transferOwnership(address newOwner) external onlyOwner {
    require(newOwner != address(0));

    _transferOwnership(newOwner);
  }

  function _transferOwnership(address newOwner) internal {
    address oldOwner = _owner;
    _owner = newOwner;

    emit OwnershipTransferred(oldOwner, newOwner);
  }
}

File 8 of 13 : CF_Taxable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";
import "./CF_ERC20.sol";

abstract contract CF_Taxable is CF_Common, CF_Ownable, CF_ERC20 {
  event SetTaxBeneficiary(uint8 slot, address account, uint24[3] percent, uint24[3] penalty);
  event SetEarlyPenaltyTime(uint32 time);
  event TaxDistributed(uint256 amount);
  event RenouncedTaxable();

  struct taxBeneficiaryView {
    address account;
    uint24[3] percent;
    uint24[3] penalty;
    uint256 unclaimed;
  }

  modifier lockDistributing {
    _distributing = true;
    _;
    _distributing = false;
  }

  /// @notice Permanently renounce and prevent the owner from being able to update the tax features
  /// @dev Existing settings will continue to be effective
  function renounceTaxable() external onlyOwner {
    _renounced.Taxable = true;

    emit RenouncedTaxable();
  }

  /// @notice Total amount of taxes collected so far
  function totalTaxCollected() external view returns (uint256) {
    return _totalTaxCollected;
  }
  /// @notice Tax applied per transfer
  /// @dev Taking in consideration your wallet address
  function txTax() external view returns (uint24) {
    return txTax(msg.sender);
  }

  /// @notice Tax applied per transfer
  /// @param from Sender address
  function txTax(address from) public view returns (uint24) {
    unchecked {
      return from == address(this) || _whitelisted[from] || from == _dex.pair ? 0 : (_holder[from].penalty || _tradingEnabled + _earlyPenaltyTime >= _timestamp() ? _totalPenaltyTxTax : _totalTxTax);
    }
  }

  /// @notice Tax applied for buying
  /// @dev Taking in consideration your wallet address
  function buyTax() external view returns (uint24) {
    return buyTax(msg.sender);
  }

  /// @notice Tax applied for buying
  /// @param from Buyer's address
  function buyTax(address from) public view returns (uint24) {
    if (_suspendTaxes) { return 0; }

    unchecked {
      return from == address(this) || _whitelisted[from] || from == _dex.pair ? 0 : (_holder[from].penalty || _tradingEnabled + _earlyPenaltyTime >= _timestamp() ? _totalPenaltyBuyTax : _totalBuyTax);
    }
  }
  /// @notice Tax applied for selling
  /// @dev Taking in consideration your wallet address
  function sellTax() external view returns (uint24) {
    return sellTax(msg.sender);
  }

  /// @notice Tax applied for selling
  /// @param to Seller's address
  function sellTax(address to) public view returns (uint24) {
    if (_suspendTaxes) { return 0; }

    unchecked {
      return to == address(this) || _whitelisted[to] || to == _dex.pair || to == _dex.router ? 0 : (_holder[to].penalty || _tradingEnabled + _earlyPenaltyTime >= _timestamp() ? _totalPenaltySellTax : _totalSellTax);
    }
  }

  /// @notice List of all tax beneficiaries and their assigned percentage, according to type of transfer
  /// @custom:return `list[].account` Beneficiary address
  /// @custom:return `list[].percent[3]` Index 0 is for tx tax, 1 is for buy tax, 2 is for sell tax, multiplied by denominator
  /// @custom:return `list[].penalty[3]` Index 0 is for tx penalty, 1 is for buy penalty, 2 is for sell penalty, multiplied by denominator
  function listTaxBeneficiaries() external view returns (taxBeneficiaryView[] memory list) {
    list = new taxBeneficiaryView[](6);

    unchecked {
      for (uint8 i; i < 6; i++) { list[i] = taxBeneficiaryView(_taxBeneficiary[i].account, _taxBeneficiary[i].percent, _taxBeneficiary[i].penalty, _taxBeneficiary[i].unclaimed); }
    }
  }

  /// @notice Sets a tax beneficiary
  /// @dev Maximum of 5 wallets can be assigned
  /// @dev Slot 0 is reserved for ChainFactory revenue
  /// @param slot Slot number (1 to 5)
  /// @param account Beneficiary address
  /// @param percent[3] Index 0 is for tx tax, 1 is for buy tax, 2 is for sell tax, multiplied by denominator
  /// @param penalty[3] Index 0 is for tx penalty, 1 is for buy penalty, 2 is for sell penalty, multiplied by denominator
  function setTaxBeneficiary(uint8 slot, address account, uint24[3] memory percent, uint24[3] memory penalty) external onlyOwner {
    require(!_renounced.Taxable);
    require(slot >= 1 && slot <= 5, "Reserved");

    _setTaxBeneficiary(slot, account, percent, penalty);
  }

  function _setTaxBeneficiary(uint8 slot, address account, uint24[3] memory percent, uint24[3] memory penalty) internal {
    require(slot <= 5);
    require(account != address(this) && account != address(0));

    taxBeneficiary storage taxBeneficiarySlot = _taxBeneficiary[slot];

    if (slot > 0 && account == address(0xdEaD) && taxBeneficiarySlot.unclaimed > 0) { revert("Unclaimed taxes"); }

    unchecked {
      _totalTxTax += percent[0] - taxBeneficiarySlot.percent[0];
      _totalBuyTax += percent[1] - taxBeneficiarySlot.percent[1];
      _totalSellTax += percent[2] - taxBeneficiarySlot.percent[2];
      _totalPenaltyTxTax += penalty[0] - taxBeneficiarySlot.penalty[0];
      _totalPenaltyBuyTax += penalty[1] - taxBeneficiarySlot.penalty[1];
      _totalPenaltySellTax += penalty[2] - taxBeneficiarySlot.penalty[2];

      require(_totalTxTax <= 25 * _denominator && ((_totalBuyTax <= 25 * _denominator && _totalSellTax <= 25 * _denominator) && (_totalBuyTax + _totalSellTax <= 25 * _denominator)), "High Tax");
      require(_totalPenaltyTxTax <= 90 * _denominator && _totalPenaltyBuyTax <= 90 * _denominator && _totalPenaltySellTax <= 90 * _denominator, "Invalid Penalty");

      taxBeneficiarySlot.account = account;
      taxBeneficiarySlot.percent = percent;

      if (_initialized && slot > 0) { _setTaxBeneficiary(0, _taxBeneficiary[0].account, [ uint24(0), uint24(0), uint24(0) ], [ _taxBeneficiary[0].penalty[0] + uint24((penalty[0] * 10 / 100) - (taxBeneficiarySlot.penalty[0] * 10 / 100)), _taxBeneficiary[0].penalty[1] + uint24((penalty[1] * 10 / 100) - (taxBeneficiarySlot.penalty[1] * 10 / 100)), _taxBeneficiary[0].penalty[2] + uint24((penalty[2] * 10 / 100) - (taxBeneficiarySlot.penalty[2] * 10 / 100)) ]); }

      taxBeneficiarySlot.penalty = penalty;
    }

    if (!taxBeneficiarySlot.exists) { taxBeneficiarySlot.exists = true; }

    emit SetTaxBeneficiary(slot, account, percent, penalty);
  }

  /// @notice Triggers the tax distribution
  /// @dev Will only be executed if there is no ongoing swap or tax distribution
  function autoTaxDistribute() external {
    require(msg.sender == _owner || _whitelisted[msg.sender], "Unauthorized");
    require(!_swapping && !_distributing);

    _autoTaxDistribute();
  }

  function _autoTaxDistribute() internal lockDistributing {
    if (_totalTaxUnclaimed == 0) { return; }

    unchecked {
      uint256 distributedTaxes;

      for (uint8 i; i < 6; i++) {
        taxBeneficiary storage taxBeneficiarySlot = _taxBeneficiary[i];
        address account = taxBeneficiarySlot.account;

        if (taxBeneficiarySlot.unclaimed == 0 || account == address(0xdEaD) || account == _dex.pair) { continue; }

        uint256 unclaimed = _percentage(address(_taxToken) == address(this) ? _amountForTaxDistribution : _amountSwappedForTaxDistribution, (100 * uint256(_denominator) * taxBeneficiarySlot.unclaimed) / _totalTaxUnclaimed);
        uint256 _distributedTaxes = _distribute(account, unclaimed);

        if (_distributedTaxes > 0) {
          taxBeneficiarySlot.unclaimed -= _distributedTaxes;
          distributedTaxes += _distributedTaxes;
        }
      }

      _lastTaxDistribution = _timestamp();

      if (distributedTaxes > 0) {
        _totalTaxUnclaimed -= distributedTaxes;

        emit TaxDistributed(distributedTaxes);
      }
    }
  }

  function _distribute(address account, uint256 unclaimed) private returns (uint256) {
    if (unclaimed == 0) { return 0; }

    unchecked {
      if (address(_taxToken) == address(this)) {
        if (_balance[account] + unclaimed > _maxBalanceAmount && !_whitelisted[account]) {
          unclaimed = _maxBalanceAmount > _balance[account] ? _maxBalanceAmount - _balance[account] : 0;

          if (unclaimed == 0) { return 0; }
        }

        super._transfer(address(this), account, unclaimed);

        _amountForTaxDistribution -= unclaimed;
      } else {
        uint256 percent = (100 * uint256(_denominator) * unclaimed) / _amountSwappedForTaxDistribution;
        uint256 amount;

        if (address(_taxToken) == _dex.WETH) {
          amount = _percentage(_ethForTaxDistribution, percent);

          (bool success, ) = payable(account).call{ value: amount, gas: 30000 }("");

          if (!success) { return 0; }

          _ethForTaxDistribution -= amount;
        } else {
          amount = _percentage(_tokensForTaxDistribution[address(_taxToken)], percent);

          try _taxToken.transfer(account, amount) { _tokensForTaxDistribution[address(_taxToken)] -= amount; } catch { return 0; }
        }

        _amountSwappedForTaxDistribution -= unclaimed;
      }
    }

    return unclaimed;
  }

  /// @notice Suspend or reinstate tax collection
  /// @dev Also applies to early penalties
  /// @param status True to suspend, False to reinstate existent taxes
  function suspendTaxes(bool status) external onlyOwner {
    require(!_renounced.Taxable);

    _suspendTaxes = status;
  }

  /// @notice Checks if tax collection is currently suspended
  function taxesSuspended() external view returns (bool) {
    return _suspendTaxes;
  }

  /// @notice Removes the penalty status of a wallet
  /// @param account Address to depenalize
  function removePenalty(address account) external onlyOwner {
    require(!_renounced.Taxable);

    _holder[account].penalty = false;
  }

  /// @notice Check if a wallet is penalized due to an early transaction
  /// @param account Address to check
  function isPenalized(address account) external view returns (bool) {
    return _holder[account].penalty;
  }

  /// @notice Returns the period of time during which early buyers will be penalized from the time trading was enabled
  function getEarlyPenaltyTime() external view returns (uint32) {
    return _earlyPenaltyTime;
  }

  /// @notice Defines the period of time during which early buyers will be penalized from the time trading was enabled
  /// @dev Must be less or equal to 1 hour
  /// @param time Time, in seconds
  function setEarlyPenaltyTime(uint32 time) external onlyOwner {
    require(!_renounced.Taxable);
    require(time <= 600);

    _setEarlyPenaltyTime(time);
  }

  function _setEarlyPenaltyTime(uint32 time) internal {
    _earlyPenaltyTime = time;

    emit SetEarlyPenaltyTime(time);
  }
}

File 9 of 13 : CF_Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_ERC20.sol";

abstract contract CF_Burnable is CF_Common, CF_ERC20 {
  /// @notice Total amount of tokens burned so far
  function totalBurned() external view returns (uint256) {
    return _totalBurned;
  }

  function burn(uint256 amount) external {
    _burn(msg.sender, amount);
  }

  function burnFrom(address account, uint256 amount) external {
    _spendAllowance(account, msg.sender, amount);
    _burn(account, amount);
  }

  function _burn(address account, uint256 amount) internal virtual {
    require(_balance[account] >= amount, "Exceeds balance");

    unchecked {
      _balance[account] -= amount;
      _totalSupply -= amount;
      _totalBurned += amount;
    }

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

File 10 of 13 : CF_Whitelist.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";

abstract contract CF_Whitelist is CF_Common, CF_Ownable {
  event Whitelisted(address indexed account, bool status);
  event RenouncedWhitelist();

  /// @notice Permanently renounce and prevent the owner from being able to update the whitelist
  /// @dev Existing entries will continue to be effective
  function renounceWhitelist() external onlyOwner {
    _renounced.Whitelist = true;

    emit RenouncedWhitelist();
  }

  /// @notice Check if an address is whitelisted
  /// @param account Address to check
  function isWhitelisted(address account) external view returns (bool) {
    return _whitelisted[account];
  }

  /// @notice Add or remove an address from the whitelist
  /// @param status True for adding, False for removing
  function whitelist(address account, bool status) public onlyOwner {
    _whitelist(account, status);
  }

  function _whitelist(address account, bool status) internal {
    require(!_renounced.Whitelist);
    require(account != address(0) && account != address(0xdEaD));
    require(account != _dex.router && account != _dex.pair, "DEX router and pair are privileged");


    _whitelisted[account] = status;

    emit Whitelisted(account, status);
  }

  /// @notice Add or remove multiple addresses from the whitelist
  /// @param status True for adding, False for removing
  function whitelist(address[] calldata accounts, bool status) external onlyOwner {
    unchecked {
      uint256 cnt = accounts.length;

      for (uint256 i; i < cnt; i++) { _whitelist(accounts[i], status); }
    }
  }

  function _initialWhitelist(address[5] memory accounts) internal {
    require(!_initialized);

    unchecked {
      for (uint256 i; i < 5; i++) { _whitelist(accounts[i], true); }
    }
  }
}

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

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";

abstract contract CF_MaxBalance is CF_Common, CF_Ownable {
  event SetMaxBalancePercent(uint24 percent);
  event RenouncedMaxBalance();

  /// @notice Permanently renounce and prevent the owner from being able to update the max. balance
  /// @dev Existing settings will continue to be effective
  function renounceMaxBalance() external onlyOwner {
    _renounced.MaxBalance = true;

    emit RenouncedMaxBalance();
  }

  /// @notice Percentage of the max. balance per wallet, depending on total supply
  function getMaxBalancePercent() external view returns (uint24) {
    return _maxBalancePercent;
  }

  /// @notice Set the max. percentage of a wallet balance, depending on total supply
  /// @param percent Desired percentage, multiplied by denominator (min. 0.1% of total supply)
  function setMaxBalancePercent(uint24 percent) external onlyOwner {
    require(!_renounced.MaxBalance);

    _setMaxBalancePercent(percent);

    emit SetMaxBalancePercent(percent);
  }

  function _setMaxBalancePercent(uint24 percent) internal {
    unchecked {
      require(percent >= 100 && percent <= 100 * _denominator);
    }

    _maxBalancePercent = percent;
    _maxBalanceAmount = _percentage(_totalSupply, uint256(percent));

    if (!_initialized) { emit SetMaxBalancePercent(percent); }
  }
}

File 12 of 13 : CF_DEXRouterV2.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";
import "./CF_ERC20.sol";

abstract contract CF_DEXRouterV2 is CF_Common, CF_Ownable, CF_ERC20 {
  event AddedLiquidity(uint256 tokenAmount, uint256 ethAmount, uint256 liquidity);
  event SwappedTokensForTokens(address token, uint256 token0Amount, uint256 token1Amount);
  event SwappedTokensForNative(uint256 tokenAmount, uint256 ethAmount);
  event SetDEXRouterV2(address indexed router, address indexed pair);
  event TradingEnabled();
  event RenouncedDEXRouterV2();

  modifier lockSwapping {
    _swapping = true;
    _;
    _swapping = false;
  }

  /// @notice Permanently renounce and prevent the owner from being able to update the DEX features
  /// @dev Existing settings will continue to be effective
  function renounceDEXRouterV2() external onlyOwner {
    _renounced.DEXRouterV2 = true;

    emit RenouncedDEXRouterV2();
  }

  function _setDEXRouterV2(address router, address token0) internal {
    IDEXRouterV2 _router = IDEXRouterV2(router);
    IDEXFactoryV2 factory = IDEXFactoryV2(_router.factory());
    address pair = factory.createPair(address(this), token0);

    _dex = DEXRouterV2(router, pair, token0, _router.WETH(), address(0));

    emit SetDEXRouterV2(router, _dex.pair);
  }

  /// @notice Returns the DEX router currently in use
  function getDEXRouterV2() external view returns (address) {
    return _dex.router;
  }

  /// @notice Returns the trading pair
  function getDEXPairV2() external view returns (address) {
    return _dex.pair;
  }

  /// @notice Checks whether the token can be traded through the assigned DEX
  function isTradingEnabled() external view returns (bool) {
    return _tradingEnabled > 0;
  }

  /// @notice Returns address of the LP tokens receiver
  /// @dev Used for automated liquidity injection through taxes
  function getDEXLPTokenReceiver() external view returns (address) {
    return _dex.receiver;
  }

  /// @notice Set the address of the LP tokens receiver
  /// @dev Used for automated liquidity injection through taxes
  function setDEXLPTokenReceiver(address receiver) external onlyOwner {
    _setDEXLPTokenReceiver(receiver);
  }

  function _setDEXLPTokenReceiver(address receiver) internal {
    _dex.receiver = receiver;
  }

  /// @notice Checks the status of the auto-swapping feature
  function isAutoSwapEnabled() external view returns (bool) {
    return _autoSwapEnabled;
  }

  /// @notice Returns the percentage range of the total supply over which the auto-swap will operate when accumulating taxes in the contract balance
  function getAutoSwapPercent() external view returns (uint24 min, uint24 max) {
    return (_minAutoSwapPercent, _maxAutoSwapPercent);
  }

  /// @notice Sets the percentage range of the total supply over which the auto-swap will operate when accumulating taxes in the contract balance
  /// @param min Desired min. percentage to trigger the auto-swap, multiplied by denominator (0.001% to 1% of total supply)
  /// @param max Desired max. percentage to limit the auto-swap, multiplied by denominator (0.001% to 1% of total supply)
  function setAutoSwapPercent(uint24 min, uint24 max) external onlyOwner {
    require(!_renounced.DEXRouterV2);
    require(min >= 1 && min <= 1000, "0.001% to 1%");
    require(max >= min && max <= 1000, "0.001% to 1%");

    _setAutoSwapPercent(min, max);
  }

  function _setAutoSwapPercent(uint24 min, uint24 max) internal {
    _minAutoSwapPercent = min;
    _maxAutoSwapPercent = max;
    _minAutoSwapAmount = _percentage(_totalSupply, uint256(min));
    _maxAutoSwapAmount = _percentage(_totalSupply, uint256(max));
  }

  /// @notice Enables or disables the auto-swap function
  /// @param status True to enable, False to disable
  function enableAutoSwap(bool status) external onlyOwner {
    require(!_renounced.DEXRouterV2);
    require(!status || _dex.router != address(0), "No DEX");

    _autoSwapEnabled = status;
  }

  /// @notice Swaps the assigned amount to inject liquidity and prepare collected taxes for its distribution
  /// @dev Will only be executed if there is no ongoing swap or tax distribution and the min. threshold has been reached
  function autoSwap() external {
    require(_autoSwapEnabled && !_swapping && !_distributing);

    _autoSwap(false);
  }

  /// @notice Swaps the assigned amount to inject liquidity and prepare collected taxes for its distribution
  /// @dev Will only be executed if there is no ongoing swap or tax distribution and the min. threshold has been reached unless forced
  /// @param force Ignore the min. and max. threshold amount
  function autoSwap(bool force) external {
    require(msg.sender == _owner || _whitelisted[msg.sender], "Unauthorized");
    require((force || _autoSwapEnabled) && !_swapping && !_distributing);

    _autoSwap(force);
  }

  function _autoSwap(bool force) internal lockSwapping {
    if (!force && !_autoSwapEnabled) { return; }

    unchecked {
      uint256 amountForLiquidityToSwap = _amountForLiquidity > 0 ? _amountForLiquidity / 2 : 0;
      uint256 amountForTaxDistributionToSwap = (address(_taxToken) == _dex.WETH ? _amountForTaxDistribution : 0);
      uint256 amountToSwap = amountForTaxDistributionToSwap + amountForLiquidityToSwap;

      if (!force && amountToSwap > _maxAutoSwapAmount) {
        amountForLiquidityToSwap = amountForLiquidityToSwap > 0 ? _percentage(_maxAutoSwapAmount, (100 * uint256(_denominator) * amountForLiquidityToSwap) / amountToSwap) : 0;
        amountForTaxDistributionToSwap = amountForTaxDistributionToSwap > 0 ? _percentage(_maxAutoSwapAmount, (100 * uint256(_denominator) * amountForTaxDistributionToSwap) / amountToSwap) : 0;
        amountToSwap = amountForTaxDistributionToSwap + amountForLiquidityToSwap;
      }

      if ((force || amountToSwap >= _minAutoSwapAmount) && _balance[address(this)] >= amountToSwap + amountForLiquidityToSwap) {
        uint256 ethBalance = address(this).balance;
        address[] memory pathToSwapExactTokensForNative = new address[](2);
        pathToSwapExactTokensForNative[0] = address(this);
        pathToSwapExactTokensForNative[1] = _dex.WETH;

        _approve(address(this), _dex.router, amountToSwap);

        try IDEXRouterV2(_dex.router).swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap, 0, pathToSwapExactTokensForNative, address(this), block.timestamp) {
          if (_amountForLiquidity > 0) { _amountForLiquidity -= amountForLiquidityToSwap; }

          uint256 ethAmount = address(this).balance - ethBalance;

          emit SwappedTokensForNative(amountToSwap, ethAmount);

          if (ethAmount > 0) {
            _ethForLiquidity += _percentage(ethAmount, (100 * uint256(_denominator) * amountForLiquidityToSwap) / amountToSwap);

            if (address(_taxToken) == _dex.WETH) {
              _ethForTaxDistribution += _percentage(ethAmount, (100 * uint256(_denominator) * amountForTaxDistributionToSwap) / amountToSwap);
              _amountSwappedForTaxDistribution += amountForTaxDistributionToSwap;
              _amountForTaxDistribution -= amountForTaxDistributionToSwap;
            }
          }
        } catch {
          _approve(address(this), _dex.router, 0);
        }
      }

      if (address(_taxToken) != address(this) && address(_taxToken) != _dex.WETH) {
        amountForTaxDistributionToSwap = _amountForTaxDistribution;

        if (!force && amountForTaxDistributionToSwap > _maxAutoSwapAmount) { amountForTaxDistributionToSwap = _maxAutoSwapAmount; }

        if ((force || amountForTaxDistributionToSwap >= _minAutoSwapAmount) && _balance[address(this)] >= amountForTaxDistributionToSwap) {
          uint256 tokenAmount = _swapTokensForTokens(_taxToken, amountForTaxDistributionToSwap);

          if (tokenAmount > 0) {
            _tokensForTaxDistribution[address(_taxToken)] += tokenAmount;
            _amountSwappedForTaxDistribution += amountForTaxDistributionToSwap;
            _amountForTaxDistribution -= amountForTaxDistributionToSwap;
          }
        }
      }
    }

    _addLiquidity(force);
    _lastSwap = _timestamp();
  }

  function _swapTokensForTokens(IERC20 token, uint256 amount) private returns (uint256 tokenAmount) {
    uint256 tokenBalance = token.balanceOf(address(this));
    address[] memory pathToSwapExactTokensForTokens = new address[](3);
    pathToSwapExactTokensForTokens[0] = address(this);
    pathToSwapExactTokensForTokens[1] = _dex.WETH;
    pathToSwapExactTokensForTokens[2] = address(token);

    _approve(address(this), _dex.router, amount);

    try IDEXRouterV2(_dex.router).swapExactTokensForTokensSupportingFeeOnTransferTokens(amount, 0, pathToSwapExactTokensForTokens, address(this), block.timestamp) {
      tokenAmount = token.balanceOf(address(this)) - tokenBalance;

      emit SwappedTokensForTokens(address(token), amount, tokenAmount);
    } catch {
      _approve(address(this), _dex.router, 0);
    }
  }

  function _addLiquidity(bool force) private {
    if (!force && (_amountForLiquidity < _minAutoAddLiquidityAmount || _ethForLiquidity == 0)) { return; }

    unchecked {
      uint256 amountForLiquidityToAdd = !force && _amountForLiquidity > _maxAutoAddLiquidityAmount ? _maxAutoAddLiquidityAmount : _amountForLiquidity;
      uint256 ethForLiquidityToAdd = !force && _amountForLiquidity > _maxAutoAddLiquidityAmount ? _percentage(_ethForLiquidity, 100 * uint256(_denominator) * (_maxAutoAddLiquidityAmount / _amountForLiquidity)) : _ethForLiquidity;

      _approve(address(this), _dex.router, amountForLiquidityToAdd);

      try IDEXRouterV2(_dex.router).addLiquidityETH{ value: ethForLiquidityToAdd }(address(this), amountForLiquidityToAdd, 0, 0, _dex.receiver, block.timestamp) returns (uint256 tokenAmount, uint256 ethAmount, uint256 liquidity) {
        emit AddedLiquidity(tokenAmount, ethAmount, liquidity);

        _amountForLiquidity -= amountForLiquidityToAdd;
        _ethForLiquidity -= ethForLiquidityToAdd;
      } catch {
        _approve(address(this), _dex.router, 0);
      }
    }
  }

  /// @notice Returns the percentage range of the total supply over which the auto add liquidity will operate when accumulating taxes in the contract balance
  /// @dev Applies only if a Tax Beneficiary is the liquidity pool
  function getAutoAddLiquidityPercent() external view returns (uint24 min, uint24 max) {
    return (_minAutoAddLiquidityPercent, _maxAutoAddLiquidityPercent);
  }

  /// @notice Sets the percentage range of the total supply over which the auto add liquidity will operate when accumulating taxes in the contract balance
  /// @param min Desired min. percentage to trigger the auto add liquidity, multiplied by denominator (0.01% to 100% of total supply)
  /// @param max Desired max. percentage to limit the auto add liquidity, multiplied by denominator (0.01% to 100% of total supply)
  function setAutoAddLiquidityPercent(uint24 min, uint24 max) external onlyOwner {
    require(!_renounced.DEXRouterV2);
    require(min >= 10 && min <= 100 * _denominator, "0.01% to 100%");
    require(max >= min && max <= 100 * _denominator, "0.01% to 100%");

    _setAutoAddLiquidityPercent(min, max);
  }

  function _setAutoAddLiquidityPercent(uint24 min, uint24 max) internal {
    _minAutoAddLiquidityPercent = min;
    _maxAutoAddLiquidityPercent = max;
    _minAutoAddLiquidityAmount = _percentage(_totalSupply, uint256(min));
    _maxAutoAddLiquidityAmount = _percentage(_totalSupply, uint256(max));
  }

  /// @notice Returns the token for tax distribution
  function getTaxToken() external view returns (address) {
    return address(_taxToken);
  }

  function _setTaxToken(address token) internal {
    require((!_initialized && token == address(0)) || token == address(this) || token == _dex.WETH || IDEXFactoryV2(IDEXRouterV2(_dex.router).factory()).getPair(_dex.WETH, token) != address(0), "No Pair");

    _taxToken = IERC20(token == address(0) ? address(this) : token);
  }

  /// @notice Enables the trading capability via the DEX set up
  /// @dev Once enabled, it cannot be reverted
  function enableTrading() external onlyOwner {
    require(!_renounced.DEXRouterV2);
    require(_tradingEnabled == 0, "Already enabled");

    _tradingEnabled = _timestamp();

    emit TradingEnabled();
  }
}

File 13 of 13 : CF_Recoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.25;

import "./CF_Common.sol";
import "./CF_Ownable.sol";

abstract contract CF_Recoverable is CF_Common, CF_Ownable {
  /// @notice Recovers a misplaced amount of an ERC-20 token sitting in the contract balance
  /// @dev Beware of scam tokens!
  /// @dev Note that if the token of this contract is specified, amounts allocated for tax distribution and liquidity are reserved
  /// @param token Address of the ERC-20 token
  /// @param to Recipient
  /// @param amount Amount to be transferred
  function recoverERC20(address token, address to, uint256 amount) external onlyOwner {
    unchecked {
      uint256 balance = IERC20(token).balanceOf(address(this));
      uint256 allocated = token == address(this) ? _amountForTaxDistribution + _amountForLiquidity : (address(_taxToken) == token ? _tokensForTaxDistribution[address(_taxToken)] : 0);

      require(balance - (allocated >= balance ? balance : allocated) >= amount, "Exceeds balance");
    }

    IERC20(token).transfer(to, amount);
  }

  /// @notice Recovers a misplaced ERC-721 (NFT) sitting in the contract
  /// @dev Beware of scam tokens!
  /// @param token Address of the ERC-721 token
  /// @param to Recipient
  /// @param tokenId Unique identifier of the NFT
  function recoverERC721(address token, address to, uint256 tokenId) external onlyOwner {
    IERC721(token).safeTransferFrom(address(this), to, tokenId);
  }

  /// @notice Recovers a misplaced amount of native tokens sitting in the contract balance
  /// @dev Note that if the reflection token is the wrapped native, amounts allocated for tax distribution and/or liquidity are reserved
  /// @param to Recipient
  /// @param amount Amount of native tokens to be transferred
  function recoverNative(address payable to, uint256 amount) external onlyOwner {
    unchecked {
      uint256 balance = address(this).balance;
      uint256 allocated = address(_taxToken) == _dex.WETH ? _ethForTaxDistribution : 0;

      require(balance - (allocated >= balance ? balance : allocated) >= amount, "Exceeds balance");
    }

    (bool success, ) = to.call{ value: amount }("");

    require(success);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"AddedLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"RenouncedDEXRouterV2","type":"event"},{"anonymous":false,"inputs":[],"name":"RenouncedMaxBalance","type":"event"},{"anonymous":false,"inputs":[],"name":"RenouncedTaxable","type":"event"},{"anonymous":false,"inputs":[],"name":"RenouncedWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"SetDEXRouterV2","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"time","type":"uint32"}],"name":"SetEarlyPenaltyTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint24","name":"percent","type":"uint24"}],"name":"SetMaxBalancePercent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"slot","type":"uint8"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint24[3]","name":"percent","type":"uint24[3]"},{"indexed":false,"internalType":"uint24[3]","name":"penalty","type":"uint24[3]"}],"name":"SetTaxBeneficiary","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"SwappedTokensForNative","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"token0Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"token1Amount","type":"uint256"}],"name":"SwappedTokensForTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TaxDistributed","type":"event"},{"anonymous":false,"inputs":[],"name":"TradingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"Whitelisted","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"autoSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"force","type":"bool"}],"name":"autoSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoTaxDistribute","outputs":[],"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"buyTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"denominator","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"enableAutoSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAutoAddLiquidityPercent","outputs":[{"internalType":"uint24","name":"min","type":"uint24"},{"internalType":"uint24","name":"max","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAutoSwapPercent","outputs":[{"internalType":"uint24","name":"min","type":"uint24"},{"internalType":"uint24","name":"max","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDEXLPTokenReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDEXPairV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDEXRouterV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEarlyPenaltyTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxBalancePercent","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"info","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"string","name":"version","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAutoSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPenalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listTaxBeneficiaries","outputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint24[3]","name":"percent","type":"uint24[3]"},{"internalType":"uint24[3]","name":"penalty","type":"uint24[3]"},{"internalType":"uint256","name":"unclaimed","type":"uint256"}],"internalType":"struct CF_Taxable.taxBeneficiaryView[]","name":"list","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removePenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceDEXRouterV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceMaxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceTaxable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounced","outputs":[{"internalType":"bool","name":"Whitelist","type":"bool"},{"internalType":"bool","name":"MaxBalance","type":"bool"},{"internalType":"bool","name":"DEXRouterV2","type":"bool"},{"internalType":"bool","name":"Taxable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"sellTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"min","type":"uint24"},{"internalType":"uint24","name":"max","type":"uint24"}],"name":"setAutoAddLiquidityPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"min","type":"uint24"},{"internalType":"uint24","name":"max","type":"uint24"}],"name":"setAutoSwapPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setDEXLPTokenReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"time","type":"uint32"}],"name":"setEarlyPenaltyTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"percent","type":"uint24"}],"name":"setMaxBalancePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"slot","type":"uint8"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint24[3]","name":"percent","type":"uint24[3]"},{"internalType":"uint24[3]","name":"penalty","type":"uint24[3]"}],"name":"setTaxBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"suspendTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxesSuspended","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTaxCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"txTax","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"status","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561000f575f80fd5b5060408051808201909152600781526610dbdb9b9958dd60ca1b6020820152601f9061003b90826111f0565b506040518060400160405280600481526020016310d390d560e21b8152506020908161006791906111f0565b50601260a0526a52b7d2dcc80cd2e400000060095561009973165af5744f60b1124ef0554b5006a23ba29cfb83610437565b6100b973f641a8d39e09bca90d0facd4d66a6e470aebf0c461ea60610488565b6100d973f06197d4eb3b549fd3b2a9ff403317ef9902e863614e20610488565b6100f973e6533f8bc543fb9b943e5c33e42249c39af1d891614e20610488565b61012b737a250d5630b4cf539739df2c5dacb4c659f2488d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2610502565b610136610258610728565b61015373c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2610783565b6007805460ff65ffffffffffff60c81b0119167cfa00003200000000000000000000000000000000000000000000000001179055600954620186a060328202819004600c5560fa90910204600d556008805465ffffffffffff1916650186a0000064179055600954620186a060648202819004600e5590810204600f5560408051606080820183525f8083526020808401829052838501829052845192830185528183526111f8908301819052938201939093526102279291738881d9869ac7c7840971caac043d7f4d144abd109161092b565b60408051606080820183525f808352610fa0602080850182905284860191909152845192830185529082526190889082018190529281019290925261028491600191730fa44d1e1cd8e4fc3a9267bfc9048321a052bb609161092b565b60408051606080820183525f8083526103e860208085018290528486019190915284519283018552908252612328908201819052928101929092526102e19160029173f2c8872a76cf030b58174231e97259ba1bb8f2429161092b565b6040805160a08101825273165af5744f60b1124ef0554b5006a23ba29cfb83815273e6533f8bc543fb9b943e5c33e42249c39af1d891602082015273f06197d4eb3b549fd3b2a9ff403317ef9902e8639181019190915273f641a8d39e09bca90d0facd4d66a6e470aebf0c460608201527387db399583ea6dcb8b902e2f353cf7309bdfa991608082015261037590610eae565b6103806103e8610ef2565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f601f6040516103b091906112af565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f19818403018152919052805160209091012060215560016080526113e0565b601e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60805115610494575f80fd5b5f6104ac6009548362ffffff16610f8760201b60201c565b6001600160a01b0384165f8181526020818152604080832085905551848152939450919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b5f8290505f816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610543573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105679190611321565b6040516364e329cb60e11b81523060048201526001600160a01b0385811660248301529192505f9183169063c9c65396906044016020604051808303815f875af11580156105b7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105db9190611321565b90506040518060a00160405280866001600160a01b03168152602001826001600160a01b03168152602001856001600160a01b03168152602001846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610651573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106759190611321565b6001600160a01b0390811682525f60209283018190528351601980549184166001600160a01b031992831617905592840151601a805491841691851682179055604080860151601b80549186169187169190911790556060860151601c8054918616918716919091179055608090950151601d8054918516919095161790935592519192908816917f068ccb581b10310dd98c3f0999214bce7660c126ffa63a399df0287144582d579190a35050505050565b6008805463ffffffff60901b1916600160901b63ffffffff8416908102919091179091556040519081527f703cced883e2faf6a2d5c676ef2f9dd7cfafa0acecee468ece9314ecf462ba91906020015b60405180910390a150565b60805115801561079a57506001600160a01b038116155b806107ad57506001600160a01b03811630145b806107c55750601c546001600160a01b038281169116145b806108b657506019546040805163c45a015560e01b815290515f926001600160a01b03169163c45a01559160048083019260209291908290030181865afa158015610812573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108369190611321565b601c5460405163e6a4390560e01b81526001600160a01b039182166004820152848216602482015291169063e6a43905906044016020604051808303815f875af1158015610886573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108aa9190611321565b6001600160a01b031614155b6108f15760405162461bcd60e51b81526020600482015260076024820152662737902830b4b960c91b60448201526064015b60405180910390fd5b6001600160a01b038116156109065780610908565b305b601880546001600160a01b0319166001600160a01b039290921691909117905550565b60058460ff16111561093b575f80fd5b6001600160a01b038316301480159061095c57506001600160a01b03831615155b610964575f80fd5b60ff84165f818152600460205260409020901580159061098e57506001600160a01b03841661dead145b801561099d57505f8160030154115b156109dc5760405162461bcd60e51b815260206004820152600f60248201526e556e636c61696d656420746178657360881b60448201526064016108e8565b60018101805484516007805462ffffff60381b19811662ffffff9485169093036701000000000000008083048616919091018516810293841780845586546020808c015162ffffff60501b1990971665ffffffffffff60381b199095169490941763010000009182900488169096036a01000000000000000000009283900488160187169091029490941780845595546040808b015162ffffff60681b1989166601000000000000938490048916909103600160681b808b048a169190910189160290811780875560028b0180548d5162ffffff60801b1990941665ffffffffffff60681b19909c169b909b179a8a16909203600160801b918290048a1601891602989098178086558854948b015162ffffff60981b198216979095048816909403600160981b8086048916919091018816029586178086559754908a0151600160b01b988990048816929091048716900301851690950262ffffff60b01b1990931665ffffffffffff60981b199091161791909117908190556161a89290041611801590610bd557506007546161a86a010000000000000000000090910462ffffff1611801590610b9f57506007546161a8600160681b90910462ffffff1611155b8015610bd557506007546161a86a0100000000000000000000820462ffffff908116600160681b90930481169290920190911611155b610c0c5760405162461bcd60e51b8152602060048201526008602482015267090d2ced040a8c2f60c31b60448201526064016108e8565b60075462015f90600160801b90910462ffffff1611801590610c40575060075462015f90600160981b90910462ffffff1611155b8015610c5e575060075462015f90600160b01b90910462ffffff1611155b610c9c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c69642050656e616c747960881b60448201526064016108e8565b8054610100600160a81b0319166101006001600160a01b03861602178155610cc9600182018460036110ac565b506080518015610cdb57505f8560ff16115b15610e45575f808052600460209081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec54604080516060808201835285825293810185905280820185905281519384019091526002850154610e4594936101009093046001600160a01b031692908190606490600a62ffffff9182160216046064895f6020020151600a0262ffffff1681610d7957610d79611362565b5f808052600460208181525f80516020615c378339815191525462ffffff8082169690950496909603949094018316865260028c01548d850151928052908452630100000094859004831660649582048416600a9081028516879004938102851687900493909303018316938601939093526040808d01519501946601000000000000909304821681028216849004939202165f805260046020525f80516020615c378339815191525462ffffff6601000000000000909104811692909104929092030116905261092b565b610e54600282018360036110ac565b50805460ff16610e6a57805460ff191660011781555b7f30034b3ad500b0a06492ddcfbb1eedee788dff84a77d76d5c3658ab517cec51a85858585604051610e9f94939291906113a3565b60405180910390a15050505050565b60805115610eba575f80fd5b5f5b6005811015610eee57610ee6828260058110610eda57610eda61134e565b60200201516001610f91565b600101610ebc565b5050565b60648162ffffff1610158015610f105750620186a062ffffff821611155b610f18575f80fd5b6007805462ffffff60201b191664010000000062ffffff841690810291909117909155600954620186a0910204600b55608051610f845760405162ffffff821681527fd03edfeea801807308f0e9302e347c8a12ad32508cae5bce26e9e2a3654158c990602001610778565b50565b620186a091020490565b60175460ff1615610fa0575f80fd5b6001600160a01b03821615801590610fc357506001600160a01b03821661dead14155b610fcb575f80fd5b6019546001600160a01b03838116911614801590610ff75750601a546001600160a01b03838116911614155b61104e5760405162461bcd60e51b815260206004820152602260248201527f44455820726f7574657220616e642070616972206172652070726976696c6567604482015261195960f21b60648201526084016108e8565b6001600160a01b0382165f81815260026020908152604091829020805460ff191685151590811790915591519182527fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440910160405180910390a25050565b600183019183908215611134579160200282015f5b8382111561110357835183826101000a81548162ffffff021916908362ffffff16021790555092602001926003016020816002010492830192600103026110c1565b80156111325782816101000a81549062ffffff0219169055600301602081600201049283019260010302611103565b505b50611140929150611144565b5090565b5b80821115611140575f8155600101611145565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061118057607f821691505b60208210810361119e57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156111eb57805f5260205f20601f840160051c810160208510156111c95750805b601f840160051c820191505b818110156111e8575f81556001016111d5565b50505b505050565b81516001600160401b0381111561120957611209611158565b61121d81611217845461116c565b846111a4565b602080601f831160018114611250575f84156112395750858301515b5f19600386901b1c1916600185901b1785556112a7565b5f85815260208120601f198616915b8281101561127e5788860151825594840194600190910190840161125f565b508582101561129b57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f8083546112bc8161116c565b600182811680156112d457600181146112e957611315565b60ff1984168752821515830287019450611315565b875f526020805f205f5b8581101561130c5781548a8201529084019082016112f3565b50505082870194505b50929695505050505050565b5f60208284031215611331575f80fd5b81516001600160a01b0381168114611347575f80fd5b9392505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601260045260245ffd5b805f5b600381101561139d57815162ffffff16845260209384019390910190600101611379565b50505050565b60ff851681526001600160a01b038416602082015261010081016113ca6040830185611376565b6113d760a0830184611376565b95945050505050565b60805160a05161482861140f5f395f818161055b015261113d01525f81816127c101526130d001526148285ff3fe6080604052600436106103b7575f3560e01c806377004851116101ef578063be5e49b21161010b578063d8454a82116100a4578063f2cda82e11610076578063f2cda82e14610ba5578063f2fde38b14610bc4578063f3dc4f4814610be3578063f59c370814610c1f578063f7de0e5714610c3e57005b8063d8454a8214610b3f578063d89135cd14610b53578063dd62ed3e14610b67578063edd286cf14610b8657005b8063cc1776d3116100dd578063cc1776d314610a9a578063d232c22014610aae578063d505accf14610b01578063d6a018eb14610b2057005b8063be5e49b214610a36578063c292158314610a55578063c77e006d14610a72578063c78fe0d414610a8657005b806395101f90116101885780639c5ef8d71161015a5780639c5ef8d7146109a6578063a457c2d7146109ba578063a4d8971a146109d9578063a5596b4f146109f8578063a9059cbb14610a1757005b806395101f901461093b57806395d89b411461095a57806396ce07951461096e57806397a26b9e1461098257005b80638a8c523c116101c15780638a8c523c146108d75780638bf1acff146108eb5780638d8350ca146108ff5780638da5cb5b1461091e57005b8063770048511461085c57806379cc6790146108705780637ecebe001461088f5780638324c3b9146108c357005b806339137f8b116102de5780634f7041a5116102775780635f641758116102495780635f641758146107b35780636f05be97146107d257806370a08231146107f3578063715018a61461082757806375de14961461083b57005b80634f7041a51461071057806354fd4d50146107385780635a0d4f88146107655780635b90fe661461078257005b80633ed8a169116102b05780633ed8a1691461069c57806342966c68146106bb57806344b691ff146106da5780634b7d9db4146106f957005b806339137f8b1461060157806339509351146106155780633af32abf146106345780633b7854de1461066b57005b806323b872dd11610350578063313ce56711610322578063313ce5671461054857806332acf3de146105855780633644e515146105c7578063370158ea146105db57005b806323b872dd146104cc5780632623e975146104eb5780632984207a1461050a5780632cdf2c351461052957005b8063095ea7b311610389578063095ea7b3146104515780631171bda91461047057806318160ddd1461048f578063186488a8146104ad57005b806301b38af5146103c0578063064a59d0146103df57806306fdde031461041357806307e9652c1461043457005b366103be57005b005b3480156103cb575f80fd5b506103be6103da36600461412b565b610c5b565b3480156103ea575f80fd5b50600854600160501b900463ffffffff1615155b60405190151581526020015b60405180910390f35b34801561041e575f80fd5b50610427610cd8565b60405161040a91906141d8565b34801561043f575f80fd5b5060075462010000900460ff166103fe565b34801561045c575f80fd5b506103fe61046b366004614205565b610d68565b34801561047b575f80fd5b506103be61048a36600461422f565b610d7e565b34801561049a575f80fd5b506009545b60405190815260200161040a565b3480156104b8575f80fd5b506103be6104c7366004614312565b610f11565b3480156104d7575f80fd5b506103fe6104e636600461422f565b610fab565b3480156104f6575f80fd5b506103be610505366004614368565b610fcc565b348015610515575f80fd5b506103be610524366004614383565b61106b565b348015610534575f80fd5b506103be61054336600461422f565b6110ca565b348015610553575f80fd5b5060405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161040a565b348015610590575f80fd5b5060075462ffffff600160c81b8204811691600160e01b9004165b6040805162ffffff93841681529290911660208301520161040a565b3480156105d2575f80fd5b5060215461049f565b3480156105e6575f80fd5b506105ef61112f565b60405161040a969594939291906143a6565b34801561060c575f80fd5b506103be6112ba565b348015610620575f80fd5b506103fe61062f366004614205565b61131b565b34801561063f575f80fd5b506103fe61064e36600461440a565b6001600160a01b03165f9081526002602052604090205460ff1690565b348015610676575f80fd5b50601d546001600160a01b03165b6040516001600160a01b03909116815260200161040a565b3480156106a7575f80fd5b506103be6106b6366004614425565b611332565b3480156106c6575f80fd5b506103be6106d536600461443e565b6113b5565b3480156106e5575f80fd5b506103be6106f4366004614455565b6113bf565b348015610704575f80fd5b5060075460ff166103fe565b34801561071b575f80fd5b506107246114c1565b60405162ffffff909116815260200161040a565b348015610743575f80fd5b50604080518082019091526005815264312e302e3360d81b6020820152610427565b348015610770575f80fd5b506018546001600160a01b0316610684565b34801561078d575f80fd5b50600854600160901b900463ffffffff1660405163ffffffff909116815260200161040a565b3480156107be575f80fd5b506107246107cd36600461440a565b6114d0565b3480156107dd575f80fd5b506107e66115cb565b60405161040a91906144ad565b3480156107fe575f80fd5b5061049f61080d36600461440a565b6001600160a01b03165f9081526020819052604090205490565b348015610832575f80fd5b506103be61175c565b348015610846575f80fd5b50600754640100000000900462ffffff16610724565b348015610867575f80fd5b506103be6117a4565b34801561087b575f80fd5b506103be61088a366004614205565b6117e5565b34801561089a575f80fd5b5061049f6108a936600461440a565b6001600160a01b03165f9081526022602052604090205490565b3480156108ce575f80fd5b506103be6117fa565b3480156108e2575f80fd5b506103be61185f565b3480156108f6575f80fd5b50610724611936565b34801561090a575f80fd5b5061072461091936600461440a565b61193c565b348015610929575f80fd5b50601e546001600160a01b0316610684565b348015610946575f80fd5b5061072461095536600461440a565b6119ff565b348015610965575f80fd5b50610427611adb565b348015610979575f80fd5b506103e8610724565b34801561098d575f80fd5b5060085462ffffff8082169163010000009004166105ab565b3480156109b1575f80fd5b506103be611aea565b3480156109c5575f80fd5b506103fe6109d4366004614205565b611b5f565b3480156109e4575f80fd5b506103be6109f3366004614368565b611bbf565b348015610a03575f80fd5b506103be610a12366004614368565b611c4b565b348015610a22575f80fd5b506103fe610a31366004614205565b611ca6565b348015610a41575f80fd5b506103be610a5036600461440a565b611cb2565b348015610a60575f80fd5b50601a546001600160a01b0316610684565b348015610a7d575f80fd5b506103be611d12565b348015610a91575f80fd5b506103be611d75565b348015610aa5575f80fd5b50610724611ddc565b348015610ab9575f80fd5b506017546040805160ff80841615158252610100840481161515602083015263010000008404811615159282019290925262010000909204161515606082015260800161040a565b348015610b0c575f80fd5b506103be610b1b36600461452c565b611de6565b348015610b2b575f80fd5b506103be610b3a366004614455565b611fce565b348015610b4a575f80fd5b5060125461049f565b348015610b5e575f80fd5b50600a5461049f565b348015610b72575f80fd5b5061049f610b81366004614595565b6120ec565b348015610b91575f80fd5b506103be610ba036600461440a565b612116565b348015610bb0575f80fd5b506103be610bbf366004614205565b61215e565b348015610bcf575f80fd5b506103be610bde36600461440a565b612243565b348015610bee575f80fd5b506103fe610bfd36600461440a565b6001600160a01b03165f90815260036020526040902054610100900460ff1690565b348015610c2a575f80fd5b506103be610c393660046145cc565b612288565b348015610c49575f80fd5b506019546001600160a01b0316610684565b601e546001600160a01b03163314610c8e5760405162461bcd60e51b8152600401610c85906145f8565b60405180910390fd5b815f5b81811015610cd157610cc9858583818110610cae57610cae61461e565b9050602002016020810190610cc3919061440a565b846122b8565b600101610c91565b5050505050565b6060601f8054610ce790614632565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1390614632565b8015610d5e5780601f10610d3557610100808354040283529160200191610d5e565b820191905f5260205f20905b815481529060010190602001808311610d4157829003601f168201915b5050505050905090565b5f610d743384846123d3565b5060015b92915050565b601e546001600160a01b03163314610da85760405162461bcd60e51b8152600401610c85906145f8565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa158015610dec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e109190614664565b90505f6001600160a01b0385163014610e5d576018546001600160a01b03868116911614610e3e575f610e65565b6018546001600160a01b03165f90815260056020526040902054610e65565b601054601454015b90508282821015610e765781610e78565b825b83031015610e985760405162461bcd60e51b8152600401610c859061467b565b505060405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044015b6020604051808303815f875af1158015610ee7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f0b91906146a4565b50505050565b601e546001600160a01b03163314610f3b5760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615610f50575f80fd5b60018460ff1610158015610f68575060058460ff1611155b610f9f5760405162461bcd60e51b815260206004820152600860248201526714995cd95c9d995960c21b6044820152606401610c85565b610f0b84848484612434565b5f610fb78433846129e1565b610fc2848484612a44565b5060019392505050565b601e546001600160a01b03163314610ff65760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561100c575f80fd5b80158061102357506019546001600160a01b031615155b6110585760405162461bcd60e51b815260206004820152600660248201526509cde40888ab60d31b6044820152606401610c85565b6007805460ff1916911515919091179055565b601e546001600160a01b031633146110955760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff16156110aa575f80fd5b6102588163ffffffff1611156110be575f80fd5b6110c781613023565b50565b601e546001600160a01b031633146110f45760405162461bcd60e51b8152600401610c85906145f8565b604051632142170760e11b81523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401610ecb565b6060805f805f6060601f60207f0000000000000000000000000000000000000000000000000000000000000000601e5f9054906101000a90046001600160a01b031660095460405180604001604052806005815260200164312e302e3360d81b81525085805461119e90614632565b80601f01602080910402602001604051908101604052809291908181526020018280546111ca90614632565b80156112155780601f106111ec57610100808354040283529160200191611215565b820191905f5260205f20905b8154815290600101906020018083116111f857829003601f168201915b5050505050955084805461122890614632565b80601f016020809104026020016040519081016040528092919081815260200182805461125490614632565b801561129f5780601f106112765761010080835404028352916020019161129f565b820191905f5260205f20905b81548152906001019060200180831161128257829003601f168201915b50505050509450955095509550955095509550909192939495565b601e546001600160a01b031633146112e45760405162461bcd60e51b8152600401610c85906145f8565b6017805460ff191660011790556040517f951371dba26ef6174e32c5005af266bb9a0405124df206f136f85716d9c96093905f90a1565b5f610d7433848461132c33886120ec565b016123d3565b601e546001600160a01b0316331461135c5760405162461bcd60e51b8152600401610c85906145f8565b601754610100900460ff1615611370575f80fd5b61137981613077565b60405162ffffff821681527fd03edfeea801807308f0e9302e347c8a12ad32508cae5bce26e9e2a3654158c9906020015b60405180910390a150565b6110c73382613128565b601e546001600160a01b031633146113e95760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff16156113ff575f80fd5b60018262ffffff161015801561141c57506103e88262ffffff1611155b6114575760405162461bcd60e51b815260206004820152600c60248201526b302e3030312520746f20312560a01b6044820152606401610c85565b8162ffffff168162ffffff161015801561147857506103e88162ffffff1611155b6114b35760405162461bcd60e51b815260206004820152600c60248201526b302e3030312520746f20312560a01b6044820152606401610c85565b6114bd8282613189565b5050565b5f6114cb336119ff565b905090565b6007545f9062010000900460ff16156114ea57505f919050565b6001600160a01b03821630148061151857506001600160a01b0382165f9081526002602052604090205460ff165b806115305750601a546001600160a01b038381169116145b8061154857506019546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff1680611598575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b6115b057600754600160681b900462ffffff16610d78565b600754600160b01b900462ffffff16610d78565b5f92915050565b60408051600680825260e08201909252606091816020015b6115eb61401d565b8152602001906001900390816115e35790505090505f5b60068160ff161015611758576040805160808101825260ff83165f81815260046020818152858320805461010090046001600160a01b03168652938352908152845160608101958690529394908501939260010191600391908390855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161165f579050505050918352505060ff83165f9081526004602090815260409182902082516060810190935292019160020160038282826020028201915f905b82829054906101000a900462ffffff1662ffffff16815260200190600301906020826002010492830192600103820291508084116116d35750505092845250505060ff83165f81815260046020908152604090912060030154920191909152835184919081106117455761174561461e565b6020908102919091010152600101611602565b5090565b601e546001600160a01b031633146117865760405162461bcd60e51b8152600401610c85906145f8565b6017805463ffffffff191663010101011790556117a25f6131de565b565b60075460ff1680156117be5750600754610100900460ff16155b80156117d457506007546301000000900460ff16155b6117dc575f80fd5b6117a25f61322f565b6117f08233836129e1565b6114bd8282613128565b601e546001600160a01b031633146118245760405162461bcd60e51b8152600401610c85906145f8565b6017805462ff00001916620100001790556040517fb18b29d65a3b95dc80df0b9528f12b8592bd02395ca19228958e8b7cdf3ddd2b905f90a1565b601e546001600160a01b031633146118895760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561189f575f80fd5b600854600160501b900463ffffffff16156118ee5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195b98589b1959608a1b6044820152606401610c85565b6008805463ffffffff60501b1916600160501b63ffffffff4216021790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c7905f90a1565b5f6114cb335b5f6001600160a01b03821630148061196b57506001600160a01b0382165f9081526002602052604090205460ff165b806119835750601a546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff16806119d3575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b6119eb57600754600160381b900462ffffff16610d78565b600754600160801b900462ffffff16610d78565b6007545f9062010000900460ff1615611a1957505f919050565b6001600160a01b038216301480611a4757506001600160a01b0382165f9081526002602052604090205460ff165b80611a5f5750601a546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff1680611aaf575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b611ac757600754600160501b900462ffffff16610d78565b600754600160981b900462ffffff16610d78565b606060208054610ce790614632565b601e546001600160a01b0316331480611b115750335f9081526002602052604090205460ff165b611b2d5760405162461bcd60e51b8152600401610c85906145f8565b600754610100900460ff16158015611b4f57506007546301000000900460ff16155b611b57575f80fd5b6117a2613629565b5f80611b6b33856120ec565b905082811015611bb25760405162461bcd60e51b81526020600482015260126024820152714e6567617469766520616c6c6f77616e636560701b6044820152606401610c85565b610fc233858584036123d3565b601e546001600160a01b0316331480611be65750335f9081526002602052604090205460ff165b611c025760405162461bcd60e51b8152600401610c85906145f8565b8080611c10575060075460ff165b8015611c245750600754610100900460ff16155b8015611c3a57506007546301000000900460ff16155b611c42575f80fd5b6110c78161322f565b601e546001600160a01b03163314611c755760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615611c8a575f80fd5b60078054911515620100000262ff000019909216919091179055565b5f610d74338484612a44565b601e546001600160a01b03163314611cdc5760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615611cf1575f80fd5b6001600160a01b03165f908152600360205260409020805461ff0019169055565b601e546001600160a01b03163314611d3c5760405162461bcd60e51b8152600401610c85906145f8565b6017805461ff0019166101001790556040517f6754c879eecdc6d0fbd95c51f8e377373a9f6be654462f792774fe3740e317ee905f90a1565b601e546001600160a01b03163314611d9f5760405162461bcd60e51b8152600401610c85906145f8565b6017805463ff000000191663010000001790556040517ff7f7205ed48f7a35df9b5857667bdee0189d5d7cd80588f217a82641c3b4d08c905f90a1565b5f6114cb336114d0565b42841015611e2a5760405162461bcd60e51b815260206004820152601160248201527045787069726564207369676e617475726560781b6044820152606401610c85565b6021546001600160a01b038881165f8181526022602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa158015611f42573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590611f785750886001600160a01b0316816001600160a01b0316145b611fb85760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610c85565b5050611fc58787876123d3565b50505050505050565b601e546001600160a01b03163314611ff85760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561200e575f80fd5b600a8262ffffff161015801561203a575061202c6103e860646146d3565b62ffffff168262ffffff1611155b6120765760405162461bcd60e51b815260206004820152600d60248201526c302e30312520746f203130302560981b6044820152606401610c85565b8162ffffff168162ffffff16101580156120a657506120986103e860646146d3565b62ffffff168162ffffff1611155b6120e25760405162461bcd60e51b815260206004820152600d60248201526c302e30312520746f203130302560981b6044820152606401610c85565b6114bd828261379b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b601e546001600160a01b031633146121405760405162461bcd60e51b8152600401610c85906145f8565b601d80546001600160a01b0319166001600160a01b03831617905550565b601e546001600160a01b031633146121885760405162461bcd60e51b8152600401610c85906145f8565b601c5460185447915f916001600160a01b039081169116146121aa575f6121ae565b6016545b905082828210156121bf57816121c1565b825b830310156121e15760405162461bcd60e51b8152600401610c859061467b565b50505f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461222c576040519150601f19603f3d011682016040523d82523d5f602084013e612231565b606091505b505090508061223e575f80fd5b505050565b601e546001600160a01b0316331461226d5760405162461bcd60e51b8152600401610c85906145f8565b6001600160a01b03811661227f575f80fd5b6110c7816131de565b601e546001600160a01b031633146122b25760405162461bcd60e51b8152600401610c85906145f8565b6114bd82825b60175460ff16156122c7575f80fd5b6001600160a01b038216158015906122ea57506001600160a01b03821661dead14155b6122f2575f80fd5b6019546001600160a01b0383811691161480159061231e5750601a546001600160a01b03838116911614155b6123755760405162461bcd60e51b815260206004820152602260248201527f44455820726f7574657220616e642070616972206172652070726976696c6567604482015261195960f21b6064820152608401610c85565b6001600160a01b0382165f81815260026020908152604091829020805460ff191685151590811790915591519182527fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440910160405180910390a25050565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60058460ff161115612444575f80fd5b6001600160a01b038316301480159061246557506001600160a01b03831615155b61246d575f80fd5b60ff84165f818152600460205260409020901580159061249757506001600160a01b03841661dead145b80156124a657505f8160030154115b156124e55760405162461bcd60e51b815260206004820152600f60248201526e556e636c61696d656420746178657360881b6044820152606401610c85565b60018101805484516007805469ffffff0000000000000019811662ffffff948516909303600160381b8083048616919091018516810293841780845586546020808c015162ffffff60501b199097166cffffffffffff0000000000000019909516949094176301000000918290048816909603600160501b9283900488160187169091029490941780845595546040808b015162ffffff60681b198916600160301b938490048916909103600160681b808b048a169190910189160290811780875560028b0180548d5162ffffff60801b1990941665ffffffffffff60681b19909c169b909b179a8a16909203600160801b918290048a1601891602989098178086558854948b015162ffffff60981b198216979095048816909403600160981b8086048916919091018816029586178086559754908a0151600160b01b988990048816929091048716900301851690950262ffffff60b01b1990931665ffffffffffff60981b199091161791909117908190556161a892900416118015906126ca57506007546161a8600160501b90910462ffffff161180159061269b57506007546161a8600160681b90910462ffffff1611155b80156126ca57506007546161a8600160501b820462ffffff908116600160681b90930481169290920190911611155b6127015760405162461bcd60e51b8152602060048201526008602482015267090d2ced040a8c2f60c31b6044820152606401610c85565b60075462015f90600160801b90910462ffffff1611801590612735575060075462015f90600160981b90910462ffffff1611155b8015612753575060075462015f90600160b01b90910462ffffff1611155b6127915760405162461bcd60e51b815260206004820152600f60248201526e496e76616c69642050656e616c747960881b6044820152606401610c85565b8054610100600160a81b0319166101006001600160a01b038616021781556127be60018201846003614058565b507f000000000000000000000000000000000000000000000000000000000000000080156127ee57505f8560ff16115b15612978575f808052600460209081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec5460408051606080820183528582529381018590528082018590528151938401909152600285015461297894936101009093046001600160a01b031692908190606490600a62ffffff9182160216046064895f6020020151600a0262ffffff168161288c5761288c6146f2565b5f808052600460208181527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee5462ffffff8082169690950496909603949094018316865260028c01548d850151928052908452630100000094859004831660649582048416600a9081028516879004938102851687900493909303018316938601939093526040808d0151950194600160301b909304821681028216849004939202165f805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee5462ffffff600160301b9091048116929091049290920301169052612434565b61298760028201836003614058565b50805460ff1661299d57805460ff191660011781555b7f30034b3ad500b0a06492ddcfbb1eedee788dff84a77d76d5c3658ab517cec51a858585856040516129d29493929190614706565b60405180910390a15050505050565b5f6129ec84846120ec565b905081811015612a375760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610c85565b610f0b84848484036123d3565b61deac196001600160a01b03831601612a615761223e8382613128565b6007546301000000900460ff16158015612a835750600754610100900460ff16155b8015612ab65750601a546001600160a01b03848116911614801590612ab657506019546001600160a01b03848116911614155b15612acc57612ac45f61322f565b612acc613629565b5f81118015612af357506001600160a01b0383165f9081526002602052604090205460ff16155b8015612b1757506001600160a01b0382165f9081526002602052604090205460ff16155b8015612b2c57506001600160a01b0383163014155b8015612b4157506001600160a01b0382163014155b8015612b5b57506019546001600160a01b03838116911614155b1561301857601a546001600160a01b03848116911614801590612b8c5750601a546001600160a01b03838116911614155b80612bd55750601a546001600160a01b0384811691161480612bbb5750601a546001600160a01b038381169116145b8015612bd55750600854600160501b900463ffffffff1615155b612c145760405162461bcd60e51b815260206004820152601060248201526f151c98591a5b99c8191a5cd8589b195960821b6044820152606401610c85565b6001600160a01b038216301480612c4f5750601a546001600160a01b0383811691161480612c4f57506019546001600160a01b038381169116145b80612c755750600b546001600160a01b0383165f90815260208190526040902054820111155b612cb65760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617842616c616e636560701b6044820152606401610c85565b60075462010000900460ff16158015612cd957506007546301000000900460ff16155b8015612ced5750600754610100900460ff16155b1561301857601a545f9081906001600160a01b0386811691161480612d1f5750601a546001600160a01b038581169116145b15612d4657601a546001600160a01b03868116911614612d40576002612d43565b60015b90505b5f8160ff16600114612d585785612d5a565b845b60085490915063ffffffff428116600160901b83048216600160501b9093048216929092011610801590612dab57506001600160a01b0381165f90815260036020526040902054610100900460ff16155b15612dd5576001600160a01b0381165f908152600360205260409020805461ff0019166101001790555b5f5b60068160ff161015612fff575f808460ff1611612e62576001600160a01b0383165f90815260036020526040902054610100900460ff16612e485760ff82165f908152600460205260408120600101905b600a91828204019190066003029054906101000a900462ffffff16612f2a565b60ff82165f90815260046020526040812060020190612e28565b8360ff16600114612ec8576001600160a01b0383165f90815260036020526040902054610100900460ff16612eac5760ff82165f9081526004602052604090206001016002612e28565b60ff82165f908152600460205260409020600290810190612e28565b6001600160a01b0383165f90815260036020526040902054610100900460ff16612f085760ff82165f908152600460205260409020600190810190612e28565b60ff82165f908152600460205260409020600201546301000000900462ffffff165b62ffffff169050805f03612f3e5750612ff7565b620186a086820204612f518930836137d9565b601a5460ff84165f908152600460205260409020546001600160a01b0391821661010090910490911603612f8c576010805482019055612ff0565b60ff83165f9081526004602052604090205461deac196101009091046001600160a01b031601612fc557612fc03082613128565b612ff0565b60ff83165f908152600460205260409020600301805482019055601480548201905560138054820190555b9490940193505b600101612dd7565b50821561301457601280548401905592829003925b5050505b61223e8383836137d9565b6008805463ffffffff60901b1916600160901b63ffffffff8416908102919091179091556040519081527f703cced883e2faf6a2d5c676ef2f9dd7cfafa0acecee468ece9314ecf462ba91906020016113aa565b60648162ffffff16101580156130955750620186a062ffffff821611155b61309d575f80fd5b6007805466ffffff00000000191664010000000062ffffff841690810291909117909155600954620186a0910204600b557f00000000000000000000000000000000000000000000000000000000000000006110c75760405162ffffff821681527fd03edfeea801807308f0e9302e347c8a12ad32508cae5bce26e9e2a3654158c9906020016113aa565b61313282826138f4565b60075461314b90640100000000900462ffffff16613077565b60075461316d9062ffffff600160c81b8204811691600160e01b900416613189565b6008546114bd9062ffffff80821691630100000090041661379b565b6007805465ffffffffffff60c81b1916600160c81b62ffffff94851690810262ffffff60e01b191691909117600160e01b93909416928302939093179055600954620186a0928102839004600c550204600d55565b601e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6007805461ff0019166101001790558015801561324f575060075460ff16155b61361b575f8060105411613263575f613277565b600260105481613275576132756146f2565b045b601c546018549192505f916001600160a01b0390811691161461329a575f61329e565b6014545b9050818101831580156132b25750600d5481115b1561331b575f83116132c4575f6132ea565b600d546132ea9082620186a08602816132df576132df6146f2565b04620186a091020490565b92505f82116132f9575f613314565b600d546133149082620186a08502816132df576132df6146f2565b9150508181015b83806133295750600c548110155b80156133455750305f9081526020819052604090205481840111155b156135205760408051600280825260608201835247925f92919060208301908036833701905050905030815f815181106133815761338161461e565b6001600160a01b039283166020918202929092010152601c548251911690829060019081106133b2576133b261461e565b6001600160a01b0392831660209182029290920101526019546133d891309116856123d3565b60195460405163791ac94760e01b81526001600160a01b039091169063791ac947906134109086905f90869030904290600401614743565b5f604051808303815f87803b158015613427575f80fd5b505af1925050508015613438575060015b613459576019546134549030906001600160a01b03165f6123d3565b61351d565b6010541561346b576010805486900390555b604080518481524784900360208201819052917f9029ea20319a59447bd88162928acbbbe0955dead46655370929b794e46e8d96910160405180910390a1801561351b576134c78185620186a08902816132df576132df6146f2565b601180549091019055601c546018546001600160a01b0391821691160361351b576135008185620186a08802816132df576132df6146f2565b60168054909101905560158054860190556014805486900390555b505b50505b6018546001600160a01b0316301480159061354c5750601c546018546001600160a01b03908116911614155b156135f0576014549150831580156135655750600d5482115b1561357057600d5491505b838061357e5750600c548210155b80156135985750305f908152602081905260409020548211155b156135f0576018545f906135b5906001600160a01b031684613995565b905080156135ee576018546001600160a01b03165f90815260056020526040902080548201905560158054840190556014805484900390555b505b5050506135fc81613c0c565b6008805463ffffffff60701b19164263ffffffff16600160701b021790555b506007805461ff0019169055565b6007805463ff000000191663010000001790556013541561378c575f805b60068160ff1610156137255760ff81165f908152600460205260409020805460038201546101009091046001600160a01b031690158061369157506001600160a01b03811661dead145b806136a95750601a546001600160a01b038281169116145b156136b557505061371d565b6018545f906136f3906001600160a01b031630146136d5576015546136d9565b6014545b6013546003860154620186a002816132df576132df6146f2565b90505f6137008383613db8565b90508015613718576003840180548290039055948501945b505050505b600101613647565b506008805469ffffffff0000000000001916600160301b63ffffffff421602179055801561378a576013805482900390556040518181527fbb245b3c380b63918dc25ab2cc2e4b6939c4d58ffd95ea052b685a031e1ad2979060200160405180910390a15b505b6007805463ff00000019169055565b6008805462ffffff9283166301000000810265ffffffffffff1990921694909316938417179055600954620186a0928102839004600e550204600f55565b6001600160a01b038316158015906137f957506001600160a01b03821615155b6138455760405162461bcd60e51b815260206004820152601d60248201527f5472616e736665722066726f6d2f746f207a65726f20616464726573730000006044820152606401610c85565b6001600160a01b0383165f9081526020819052604090205481111561387c5760405162461bcd60e51b8152600401610c859061467b565b80156138af576001600160a01b038084165f90815260208190526040808220805485900390559184168152208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161242791815260200190565b6001600160a01b0382165f9081526020819052604090205481111561392b5760405162461bcd60e51b8152600401610c859061467b565b6001600160a01b0382165f818152602081815260409182902080548590039055600980548590039055600a805485019055905183815261dead92917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b038516906370a0823190602401602060405180830381865afa1580156139db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139ff9190614664565b604080516003808252608082019092529192505f91906020820160608036833701905050905030815f81518110613a3857613a3861461e565b6001600160a01b039283166020918202929092010152601c54825191169082906001908110613a6957613a6961461e565b60200260200101906001600160a01b031690816001600160a01b0316815250508481600281518110613a9d57613a9d61461e565b6001600160a01b039283166020918202929092010152601954613ac391309116866123d3565b601954604051635c11d79560e01b81526001600160a01b0390911690635c11d79590613afb9087905f90869030904290600401614743565b5f604051808303815f87803b158015613b12575f80fd5b505af1925050508015613b23575060015b613b4457601954613b3f9030906001600160a01b03165f6123d3565b613c04565b6040516370a0823160e01b815230600482015282906001600160a01b038716906370a0823190602401602060405180830381865afa158015613b88573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613bac9190614664565b613bb691906147b4565b604080516001600160a01b0388168152602081018790529081018290529093507fa82a03c1e8613c6192a82386fbb3690070528b0dd8bcae8a5c82d9ef937d7f769060600160405180910390a15b505092915050565b80158015613c275750600e546010541080613c275750601154155b15613c2f5750565b5f81158015613c415750600f54601054115b613c4d57601054613c51565b600f545b90505f82158015613c655750600f54601054115b613c7157601154613c9a565b613c9a601154601054600f5481613c8a57613c8a6146f2565b04620186a002620186a091020490565b601954909150613cb59030906001600160a01b0316846123d3565b601954601d5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af193505050508015613d41575060408051601f3d908101601f19168201909252613d3e918101906147c7565b60015b613d5d5760195461223e9030906001600160a01b03165f6123d3565b60408051848152602081018490529081018290527f947eb7d5785b0534dc368370fd3574434082455556a747116a88abea1ec6ceba9060600160405180910390a1505060108054849003905550601180548290039055505050565b5f815f03613dc757505f610d78565b601854306001600160a01b0390911603613e8e57600b546001600160a01b0384165f908152602081905260409020548301118015613e1d57506001600160a01b0383165f9081526002602052604090205460ff16155b15613e75576001600160a01b0383165f90815260208190526040902054600b5411613e48575f613e65565b6001600160a01b0383165f90815260208190526040902054600b54035b9150815f03613e7557505f610d78565b613e803084846137d9565b601480548390039055614017565b6015545f90620186a0840281613ea657613ea66146f2565b601c546018549290910492505f916001600160a01b03918216911603613f4957601654620186a09083020490505f856001600160a01b031682617530906040515f60405180830381858888f193505050503d805f8114613f21576040519150601f19603f3d011682016040523d82523d5f602084013e613f26565b606091505b5050905080613f3a575f9350505050610d78565b5060168054829003905561400b565b6018546001600160a01b03165f90815260056020526040902054620186a09083020460185460405163a9059cbb60e01b81526001600160a01b0388811660048301526024820184905292935091169063a9059cbb906044016020604051808303815f875af1925050508015613fdb575060408051601f3d908101601f19168201909252613fd8918101906146a4565b60015b613fe9575f92505050610d78565b506018546001600160a01b03165f908152600560205260409020805482900390555b50506015805483900390555b50919050565b60405180608001604052805f6001600160a01b0316815260200161403f6140ec565b815260200161404c6140ec565b81526020015f81525090565b6001830191839082156140e0579160200282015f5b838211156140af57835183826101000a81548162ffffff021916908362ffffff160217905550926020019260030160208160020104928301926001030261406d565b80156140de5782816101000a81549062ffffff02191690556003016020816002010492830192600103026140af565b505b5061175892915061410a565b60405180606001604052806003906020820280368337509192915050565b5b80821115611758575f815560010161410b565b80151581146110c7575f80fd5b5f805f6040848603121561413d575f80fd5b833567ffffffffffffffff80821115614154575f80fd5b818601915086601f830112614167575f80fd5b813581811115614175575f80fd5b8760208260051b8501011115614189575f80fd5b6020928301955093505084013561419f8161411e565b809150509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6141ea60208301846141aa565b9392505050565b6001600160a01b03811681146110c7575f80fd5b5f8060408385031215614216575f80fd5b8235614221816141f1565b946020939093013593505050565b5f805f60608486031215614241575f80fd5b833561424c816141f1565b9250602084013561425c816141f1565b929592945050506040919091013590565b803560ff8116811461427d575f80fd5b919050565b803562ffffff8116811461427d575f80fd5b5f82601f8301126142a3575f80fd5b6040516060810181811067ffffffffffffffff821117156142d257634e487b7160e01b5f52604160045260245ffd5b6040528060608401858111156142e6575f80fd5b845b81811015614307576142f981614282565b8352602092830192016142e8565b509195945050505050565b5f805f806101008587031215614326575f80fd5b61432f8561426d565b9350602085013561433f816141f1565b925061434e8660408701614294565b915061435d8660a08701614294565b905092959194509250565b5f60208284031215614378575f80fd5b81356141ea8161411e565b5f60208284031215614393575f80fd5b813563ffffffff811681146141ea575f80fd5b60c081525f6143b860c08301896141aa565b82810360208401526143ca81896141aa565b60ff881660408501526001600160a01b03871660608501526080840186905283810360a085015290506143fd81856141aa565b9998505050505050505050565b5f6020828403121561441a575f80fd5b81356141ea816141f1565b5f60208284031215614435575f80fd5b6141ea82614282565b5f6020828403121561444e575f80fd5b5035919050565b5f8060408385031215614466575f80fd5b61446f83614282565b915061447d60208401614282565b90509250929050565b805f5b6003811015610f0b57815162ffffff16845260209384019390910190600101614489565b602080825282518282018190525f919060409081850190868401855b8281101561451f57815180516001600160a01b03168552868101516144f088870182614486565b50858101516145026080870182614486565b506060015160e085015261010090930192908501906001016144c9565b5091979650505050505050565b5f805f805f805f60e0888a031215614542575f80fd5b873561454d816141f1565b9650602088013561455d816141f1565b955060408801359450606088013593506145796080890161426d565b925060a0880135915060c0880135905092959891949750929550565b5f80604083850312156145a6575f80fd5b82356145b1816141f1565b915060208301356145c1816141f1565b809150509250929050565b5f80604083850312156145dd575f80fd5b82356145e8816141f1565b915060208301356145c18161411e565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b600181811c9082168061464657607f821691505b60208210810361401757634e487b7160e01b5f52602260045260245ffd5b5f60208284031215614674575f80fd5b5051919050565b6020808252600f908201526e457863656564732062616c616e636560881b604082015260600190565b5f602082840312156146b4575f80fd5b81516141ea8161411e565b634e487b7160e01b5f52601160045260245ffd5b62ffffff818116838216028082169190828114613c0457613c046146bf565b634e487b7160e01b5f52601260045260245ffd5b60ff851681526001600160a01b0384166020820152610100810161472d6040830185614486565b61473a60a0830184614486565b95945050505050565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156147935784516001600160a01b03168352938301939183019160010161476e565b50506001600160a01b03969096166060850152505050608001529392505050565b81810381811115610d7857610d786146bf565b5f805f606084860312156147d9575f80fd5b835192506020840151915060408401519050925092509256fea26469706673582212200cbb76a5d7ea8609979226305630cf4e070f43410a297487e589e7da9a05ed6d64736f6c6343000819003317ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee

Deployed Bytecode

0x6080604052600436106103b7575f3560e01c806377004851116101ef578063be5e49b21161010b578063d8454a82116100a4578063f2cda82e11610076578063f2cda82e14610ba5578063f2fde38b14610bc4578063f3dc4f4814610be3578063f59c370814610c1f578063f7de0e5714610c3e57005b8063d8454a8214610b3f578063d89135cd14610b53578063dd62ed3e14610b67578063edd286cf14610b8657005b8063cc1776d3116100dd578063cc1776d314610a9a578063d232c22014610aae578063d505accf14610b01578063d6a018eb14610b2057005b8063be5e49b214610a36578063c292158314610a55578063c77e006d14610a72578063c78fe0d414610a8657005b806395101f90116101885780639c5ef8d71161015a5780639c5ef8d7146109a6578063a457c2d7146109ba578063a4d8971a146109d9578063a5596b4f146109f8578063a9059cbb14610a1757005b806395101f901461093b57806395d89b411461095a57806396ce07951461096e57806397a26b9e1461098257005b80638a8c523c116101c15780638a8c523c146108d75780638bf1acff146108eb5780638d8350ca146108ff5780638da5cb5b1461091e57005b8063770048511461085c57806379cc6790146108705780637ecebe001461088f5780638324c3b9146108c357005b806339137f8b116102de5780634f7041a5116102775780635f641758116102495780635f641758146107b35780636f05be97146107d257806370a08231146107f3578063715018a61461082757806375de14961461083b57005b80634f7041a51461071057806354fd4d50146107385780635a0d4f88146107655780635b90fe661461078257005b80633ed8a169116102b05780633ed8a1691461069c57806342966c68146106bb57806344b691ff146106da5780634b7d9db4146106f957005b806339137f8b1461060157806339509351146106155780633af32abf146106345780633b7854de1461066b57005b806323b872dd11610350578063313ce56711610322578063313ce5671461054857806332acf3de146105855780633644e515146105c7578063370158ea146105db57005b806323b872dd146104cc5780632623e975146104eb5780632984207a1461050a5780632cdf2c351461052957005b8063095ea7b311610389578063095ea7b3146104515780631171bda91461047057806318160ddd1461048f578063186488a8146104ad57005b806301b38af5146103c0578063064a59d0146103df57806306fdde031461041357806307e9652c1461043457005b366103be57005b005b3480156103cb575f80fd5b506103be6103da36600461412b565b610c5b565b3480156103ea575f80fd5b50600854600160501b900463ffffffff1615155b60405190151581526020015b60405180910390f35b34801561041e575f80fd5b50610427610cd8565b60405161040a91906141d8565b34801561043f575f80fd5b5060075462010000900460ff166103fe565b34801561045c575f80fd5b506103fe61046b366004614205565b610d68565b34801561047b575f80fd5b506103be61048a36600461422f565b610d7e565b34801561049a575f80fd5b506009545b60405190815260200161040a565b3480156104b8575f80fd5b506103be6104c7366004614312565b610f11565b3480156104d7575f80fd5b506103fe6104e636600461422f565b610fab565b3480156104f6575f80fd5b506103be610505366004614368565b610fcc565b348015610515575f80fd5b506103be610524366004614383565b61106b565b348015610534575f80fd5b506103be61054336600461422f565b6110ca565b348015610553575f80fd5b5060405160ff7f000000000000000000000000000000000000000000000000000000000000001216815260200161040a565b348015610590575f80fd5b5060075462ffffff600160c81b8204811691600160e01b9004165b6040805162ffffff93841681529290911660208301520161040a565b3480156105d2575f80fd5b5060215461049f565b3480156105e6575f80fd5b506105ef61112f565b60405161040a969594939291906143a6565b34801561060c575f80fd5b506103be6112ba565b348015610620575f80fd5b506103fe61062f366004614205565b61131b565b34801561063f575f80fd5b506103fe61064e36600461440a565b6001600160a01b03165f9081526002602052604090205460ff1690565b348015610676575f80fd5b50601d546001600160a01b03165b6040516001600160a01b03909116815260200161040a565b3480156106a7575f80fd5b506103be6106b6366004614425565b611332565b3480156106c6575f80fd5b506103be6106d536600461443e565b6113b5565b3480156106e5575f80fd5b506103be6106f4366004614455565b6113bf565b348015610704575f80fd5b5060075460ff166103fe565b34801561071b575f80fd5b506107246114c1565b60405162ffffff909116815260200161040a565b348015610743575f80fd5b50604080518082019091526005815264312e302e3360d81b6020820152610427565b348015610770575f80fd5b506018546001600160a01b0316610684565b34801561078d575f80fd5b50600854600160901b900463ffffffff1660405163ffffffff909116815260200161040a565b3480156107be575f80fd5b506107246107cd36600461440a565b6114d0565b3480156107dd575f80fd5b506107e66115cb565b60405161040a91906144ad565b3480156107fe575f80fd5b5061049f61080d36600461440a565b6001600160a01b03165f9081526020819052604090205490565b348015610832575f80fd5b506103be61175c565b348015610846575f80fd5b50600754640100000000900462ffffff16610724565b348015610867575f80fd5b506103be6117a4565b34801561087b575f80fd5b506103be61088a366004614205565b6117e5565b34801561089a575f80fd5b5061049f6108a936600461440a565b6001600160a01b03165f9081526022602052604090205490565b3480156108ce575f80fd5b506103be6117fa565b3480156108e2575f80fd5b506103be61185f565b3480156108f6575f80fd5b50610724611936565b34801561090a575f80fd5b5061072461091936600461440a565b61193c565b348015610929575f80fd5b50601e546001600160a01b0316610684565b348015610946575f80fd5b5061072461095536600461440a565b6119ff565b348015610965575f80fd5b50610427611adb565b348015610979575f80fd5b506103e8610724565b34801561098d575f80fd5b5060085462ffffff8082169163010000009004166105ab565b3480156109b1575f80fd5b506103be611aea565b3480156109c5575f80fd5b506103fe6109d4366004614205565b611b5f565b3480156109e4575f80fd5b506103be6109f3366004614368565b611bbf565b348015610a03575f80fd5b506103be610a12366004614368565b611c4b565b348015610a22575f80fd5b506103fe610a31366004614205565b611ca6565b348015610a41575f80fd5b506103be610a5036600461440a565b611cb2565b348015610a60575f80fd5b50601a546001600160a01b0316610684565b348015610a7d575f80fd5b506103be611d12565b348015610a91575f80fd5b506103be611d75565b348015610aa5575f80fd5b50610724611ddc565b348015610ab9575f80fd5b506017546040805160ff80841615158252610100840481161515602083015263010000008404811615159282019290925262010000909204161515606082015260800161040a565b348015610b0c575f80fd5b506103be610b1b36600461452c565b611de6565b348015610b2b575f80fd5b506103be610b3a366004614455565b611fce565b348015610b4a575f80fd5b5060125461049f565b348015610b5e575f80fd5b50600a5461049f565b348015610b72575f80fd5b5061049f610b81366004614595565b6120ec565b348015610b91575f80fd5b506103be610ba036600461440a565b612116565b348015610bb0575f80fd5b506103be610bbf366004614205565b61215e565b348015610bcf575f80fd5b506103be610bde36600461440a565b612243565b348015610bee575f80fd5b506103fe610bfd36600461440a565b6001600160a01b03165f90815260036020526040902054610100900460ff1690565b348015610c2a575f80fd5b506103be610c393660046145cc565b612288565b348015610c49575f80fd5b506019546001600160a01b0316610684565b601e546001600160a01b03163314610c8e5760405162461bcd60e51b8152600401610c85906145f8565b60405180910390fd5b815f5b81811015610cd157610cc9858583818110610cae57610cae61461e565b9050602002016020810190610cc3919061440a565b846122b8565b600101610c91565b5050505050565b6060601f8054610ce790614632565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1390614632565b8015610d5e5780601f10610d3557610100808354040283529160200191610d5e565b820191905f5260205f20905b815481529060010190602001808311610d4157829003601f168201915b5050505050905090565b5f610d743384846123d3565b5060015b92915050565b601e546001600160a01b03163314610da85760405162461bcd60e51b8152600401610c85906145f8565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa158015610dec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e109190614664565b90505f6001600160a01b0385163014610e5d576018546001600160a01b03868116911614610e3e575f610e65565b6018546001600160a01b03165f90815260056020526040902054610e65565b601054601454015b90508282821015610e765781610e78565b825b83031015610e985760405162461bcd60e51b8152600401610c859061467b565b505060405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044015b6020604051808303815f875af1158015610ee7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f0b91906146a4565b50505050565b601e546001600160a01b03163314610f3b5760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615610f50575f80fd5b60018460ff1610158015610f68575060058460ff1611155b610f9f5760405162461bcd60e51b815260206004820152600860248201526714995cd95c9d995960c21b6044820152606401610c85565b610f0b84848484612434565b5f610fb78433846129e1565b610fc2848484612a44565b5060019392505050565b601e546001600160a01b03163314610ff65760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561100c575f80fd5b80158061102357506019546001600160a01b031615155b6110585760405162461bcd60e51b815260206004820152600660248201526509cde40888ab60d31b6044820152606401610c85565b6007805460ff1916911515919091179055565b601e546001600160a01b031633146110955760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff16156110aa575f80fd5b6102588163ffffffff1611156110be575f80fd5b6110c781613023565b50565b601e546001600160a01b031633146110f45760405162461bcd60e51b8152600401610c85906145f8565b604051632142170760e11b81523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401610ecb565b6060805f805f6060601f60207f0000000000000000000000000000000000000000000000000000000000000012601e5f9054906101000a90046001600160a01b031660095460405180604001604052806005815260200164312e302e3360d81b81525085805461119e90614632565b80601f01602080910402602001604051908101604052809291908181526020018280546111ca90614632565b80156112155780601f106111ec57610100808354040283529160200191611215565b820191905f5260205f20905b8154815290600101906020018083116111f857829003601f168201915b5050505050955084805461122890614632565b80601f016020809104026020016040519081016040528092919081815260200182805461125490614632565b801561129f5780601f106112765761010080835404028352916020019161129f565b820191905f5260205f20905b81548152906001019060200180831161128257829003601f168201915b50505050509450955095509550955095509550909192939495565b601e546001600160a01b031633146112e45760405162461bcd60e51b8152600401610c85906145f8565b6017805460ff191660011790556040517f951371dba26ef6174e32c5005af266bb9a0405124df206f136f85716d9c96093905f90a1565b5f610d7433848461132c33886120ec565b016123d3565b601e546001600160a01b0316331461135c5760405162461bcd60e51b8152600401610c85906145f8565b601754610100900460ff1615611370575f80fd5b61137981613077565b60405162ffffff821681527fd03edfeea801807308f0e9302e347c8a12ad32508cae5bce26e9e2a3654158c9906020015b60405180910390a150565b6110c73382613128565b601e546001600160a01b031633146113e95760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff16156113ff575f80fd5b60018262ffffff161015801561141c57506103e88262ffffff1611155b6114575760405162461bcd60e51b815260206004820152600c60248201526b302e3030312520746f20312560a01b6044820152606401610c85565b8162ffffff168162ffffff161015801561147857506103e88162ffffff1611155b6114b35760405162461bcd60e51b815260206004820152600c60248201526b302e3030312520746f20312560a01b6044820152606401610c85565b6114bd8282613189565b5050565b5f6114cb336119ff565b905090565b6007545f9062010000900460ff16156114ea57505f919050565b6001600160a01b03821630148061151857506001600160a01b0382165f9081526002602052604090205460ff165b806115305750601a546001600160a01b038381169116145b8061154857506019546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff1680611598575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b6115b057600754600160681b900462ffffff16610d78565b600754600160b01b900462ffffff16610d78565b5f92915050565b60408051600680825260e08201909252606091816020015b6115eb61401d565b8152602001906001900390816115e35790505090505f5b60068160ff161015611758576040805160808101825260ff83165f81815260046020818152858320805461010090046001600160a01b03168652938352908152845160608101958690529394908501939260010191600391908390855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161165f579050505050918352505060ff83165f9081526004602090815260409182902082516060810190935292019160020160038282826020028201915f905b82829054906101000a900462ffffff1662ffffff16815260200190600301906020826002010492830192600103820291508084116116d35750505092845250505060ff83165f81815260046020908152604090912060030154920191909152835184919081106117455761174561461e565b6020908102919091010152600101611602565b5090565b601e546001600160a01b031633146117865760405162461bcd60e51b8152600401610c85906145f8565b6017805463ffffffff191663010101011790556117a25f6131de565b565b60075460ff1680156117be5750600754610100900460ff16155b80156117d457506007546301000000900460ff16155b6117dc575f80fd5b6117a25f61322f565b6117f08233836129e1565b6114bd8282613128565b601e546001600160a01b031633146118245760405162461bcd60e51b8152600401610c85906145f8565b6017805462ff00001916620100001790556040517fb18b29d65a3b95dc80df0b9528f12b8592bd02395ca19228958e8b7cdf3ddd2b905f90a1565b601e546001600160a01b031633146118895760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561189f575f80fd5b600854600160501b900463ffffffff16156118ee5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195b98589b1959608a1b6044820152606401610c85565b6008805463ffffffff60501b1916600160501b63ffffffff4216021790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c7905f90a1565b5f6114cb335b5f6001600160a01b03821630148061196b57506001600160a01b0382165f9081526002602052604090205460ff165b806119835750601a546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff16806119d3575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b6119eb57600754600160381b900462ffffff16610d78565b600754600160801b900462ffffff16610d78565b6007545f9062010000900460ff1615611a1957505f919050565b6001600160a01b038216301480611a4757506001600160a01b0382165f9081526002602052604090205460ff165b80611a5f5750601a546001600160a01b038381169116145b6115c4576001600160a01b0382165f90815260036020526040902054610100900460ff1680611aaf575060085463ffffffff428116600160901b83048216600160501b9093048216929092011610155b611ac757600754600160501b900462ffffff16610d78565b600754600160981b900462ffffff16610d78565b606060208054610ce790614632565b601e546001600160a01b0316331480611b115750335f9081526002602052604090205460ff165b611b2d5760405162461bcd60e51b8152600401610c85906145f8565b600754610100900460ff16158015611b4f57506007546301000000900460ff16155b611b57575f80fd5b6117a2613629565b5f80611b6b33856120ec565b905082811015611bb25760405162461bcd60e51b81526020600482015260126024820152714e6567617469766520616c6c6f77616e636560701b6044820152606401610c85565b610fc233858584036123d3565b601e546001600160a01b0316331480611be65750335f9081526002602052604090205460ff165b611c025760405162461bcd60e51b8152600401610c85906145f8565b8080611c10575060075460ff165b8015611c245750600754610100900460ff16155b8015611c3a57506007546301000000900460ff16155b611c42575f80fd5b6110c78161322f565b601e546001600160a01b03163314611c755760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615611c8a575f80fd5b60078054911515620100000262ff000019909216919091179055565b5f610d74338484612a44565b601e546001600160a01b03163314611cdc5760405162461bcd60e51b8152600401610c85906145f8565b60175462010000900460ff1615611cf1575f80fd5b6001600160a01b03165f908152600360205260409020805461ff0019169055565b601e546001600160a01b03163314611d3c5760405162461bcd60e51b8152600401610c85906145f8565b6017805461ff0019166101001790556040517f6754c879eecdc6d0fbd95c51f8e377373a9f6be654462f792774fe3740e317ee905f90a1565b601e546001600160a01b03163314611d9f5760405162461bcd60e51b8152600401610c85906145f8565b6017805463ff000000191663010000001790556040517ff7f7205ed48f7a35df9b5857667bdee0189d5d7cd80588f217a82641c3b4d08c905f90a1565b5f6114cb336114d0565b42841015611e2a5760405162461bcd60e51b815260206004820152601160248201527045787069726564207369676e617475726560781b6044820152606401610c85565b6021546001600160a01b038881165f8181526022602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e280820193601f1981019281900390910190855afa158015611f42573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590611f785750886001600160a01b0316816001600160a01b0316145b611fb85760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610c85565b5050611fc58787876123d3565b50505050505050565b601e546001600160a01b03163314611ff85760405162461bcd60e51b8152600401610c85906145f8565b6017546301000000900460ff161561200e575f80fd5b600a8262ffffff161015801561203a575061202c6103e860646146d3565b62ffffff168262ffffff1611155b6120765760405162461bcd60e51b815260206004820152600d60248201526c302e30312520746f203130302560981b6044820152606401610c85565b8162ffffff168162ffffff16101580156120a657506120986103e860646146d3565b62ffffff168162ffffff1611155b6120e25760405162461bcd60e51b815260206004820152600d60248201526c302e30312520746f203130302560981b6044820152606401610c85565b6114bd828261379b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b601e546001600160a01b031633146121405760405162461bcd60e51b8152600401610c85906145f8565b601d80546001600160a01b0319166001600160a01b03831617905550565b601e546001600160a01b031633146121885760405162461bcd60e51b8152600401610c85906145f8565b601c5460185447915f916001600160a01b039081169116146121aa575f6121ae565b6016545b905082828210156121bf57816121c1565b825b830310156121e15760405162461bcd60e51b8152600401610c859061467b565b50505f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461222c576040519150601f19603f3d011682016040523d82523d5f602084013e612231565b606091505b505090508061223e575f80fd5b505050565b601e546001600160a01b0316331461226d5760405162461bcd60e51b8152600401610c85906145f8565b6001600160a01b03811661227f575f80fd5b6110c7816131de565b601e546001600160a01b031633146122b25760405162461bcd60e51b8152600401610c85906145f8565b6114bd82825b60175460ff16156122c7575f80fd5b6001600160a01b038216158015906122ea57506001600160a01b03821661dead14155b6122f2575f80fd5b6019546001600160a01b0383811691161480159061231e5750601a546001600160a01b03838116911614155b6123755760405162461bcd60e51b815260206004820152602260248201527f44455820726f7574657220616e642070616972206172652070726976696c6567604482015261195960f21b6064820152608401610c85565b6001600160a01b0382165f81815260026020908152604091829020805460ff191685151590811790915591519182527fa54714518c5d275fdcd3d2a461e4858e4e8cb04fb93cd0bca9d6d34115f26440910160405180910390a25050565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60058460ff161115612444575f80fd5b6001600160a01b038316301480159061246557506001600160a01b03831615155b61246d575f80fd5b60ff84165f818152600460205260409020901580159061249757506001600160a01b03841661dead145b80156124a657505f8160030154115b156124e55760405162461bcd60e51b815260206004820152600f60248201526e556e636c61696d656420746178657360881b6044820152606401610c85565b60018101805484516007805469ffffff0000000000000019811662ffffff948516909303600160381b8083048616919091018516810293841780845586546020808c015162ffffff60501b199097166cffffffffffff0000000000000019909516949094176301000000918290048816909603600160501b9283900488160187169091029490941780845595546040808b015162ffffff60681b198916600160301b938490048916909103600160681b808b048a169190910189160290811780875560028b0180548d5162ffffff60801b1990941665ffffffffffff60681b19909c169b909b179a8a16909203600160801b918290048a1601891602989098178086558854948b015162ffffff60981b198216979095048816909403600160981b8086048916919091018816029586178086559754908a0151600160b01b988990048816929091048716900301851690950262ffffff60b01b1990931665ffffffffffff60981b199091161791909117908190556161a892900416118015906126ca57506007546161a8600160501b90910462ffffff161180159061269b57506007546161a8600160681b90910462ffffff1611155b80156126ca57506007546161a8600160501b820462ffffff908116600160681b90930481169290920190911611155b6127015760405162461bcd60e51b8152602060048201526008602482015267090d2ced040a8c2f60c31b6044820152606401610c85565b60075462015f90600160801b90910462ffffff1611801590612735575060075462015f90600160981b90910462ffffff1611155b8015612753575060075462015f90600160b01b90910462ffffff1611155b6127915760405162461bcd60e51b815260206004820152600f60248201526e496e76616c69642050656e616c747960881b6044820152606401610c85565b8054610100600160a81b0319166101006001600160a01b038616021781556127be60018201846003614058565b507f000000000000000000000000000000000000000000000000000000000000000180156127ee57505f8560ff16115b15612978575f808052600460209081527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec5460408051606080820183528582529381018590528082018590528151938401909152600285015461297894936101009093046001600160a01b031692908190606490600a62ffffff9182160216046064895f6020020151600a0262ffffff168161288c5761288c6146f2565b5f808052600460208181527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee5462ffffff8082169690950496909603949094018316865260028c01548d850151928052908452630100000094859004831660649582048416600a9081028516879004938102851687900493909303018316938601939093526040808d0151950194600160301b909304821681028216849004939202165f805260046020527f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ee5462ffffff600160301b9091048116929091049290920301169052612434565b61298760028201836003614058565b50805460ff1661299d57805460ff191660011781555b7f30034b3ad500b0a06492ddcfbb1eedee788dff84a77d76d5c3658ab517cec51a858585856040516129d29493929190614706565b60405180910390a15050505050565b5f6129ec84846120ec565b905081811015612a375760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610c85565b610f0b84848484036123d3565b61deac196001600160a01b03831601612a615761223e8382613128565b6007546301000000900460ff16158015612a835750600754610100900460ff16155b8015612ab65750601a546001600160a01b03848116911614801590612ab657506019546001600160a01b03848116911614155b15612acc57612ac45f61322f565b612acc613629565b5f81118015612af357506001600160a01b0383165f9081526002602052604090205460ff16155b8015612b1757506001600160a01b0382165f9081526002602052604090205460ff16155b8015612b2c57506001600160a01b0383163014155b8015612b4157506001600160a01b0382163014155b8015612b5b57506019546001600160a01b03838116911614155b1561301857601a546001600160a01b03848116911614801590612b8c5750601a546001600160a01b03838116911614155b80612bd55750601a546001600160a01b0384811691161480612bbb5750601a546001600160a01b038381169116145b8015612bd55750600854600160501b900463ffffffff1615155b612c145760405162461bcd60e51b815260206004820152601060248201526f151c98591a5b99c8191a5cd8589b195960821b6044820152606401610c85565b6001600160a01b038216301480612c4f5750601a546001600160a01b0383811691161480612c4f57506019546001600160a01b038381169116145b80612c755750600b546001600160a01b0383165f90815260208190526040902054820111155b612cb65760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617842616c616e636560701b6044820152606401610c85565b60075462010000900460ff16158015612cd957506007546301000000900460ff16155b8015612ced5750600754610100900460ff16155b1561301857601a545f9081906001600160a01b0386811691161480612d1f5750601a546001600160a01b038581169116145b15612d4657601a546001600160a01b03868116911614612d40576002612d43565b60015b90505b5f8160ff16600114612d585785612d5a565b845b60085490915063ffffffff428116600160901b83048216600160501b9093048216929092011610801590612dab57506001600160a01b0381165f90815260036020526040902054610100900460ff16155b15612dd5576001600160a01b0381165f908152600360205260409020805461ff0019166101001790555b5f5b60068160ff161015612fff575f808460ff1611612e62576001600160a01b0383165f90815260036020526040902054610100900460ff16612e485760ff82165f908152600460205260408120600101905b600a91828204019190066003029054906101000a900462ffffff16612f2a565b60ff82165f90815260046020526040812060020190612e28565b8360ff16600114612ec8576001600160a01b0383165f90815260036020526040902054610100900460ff16612eac5760ff82165f9081526004602052604090206001016002612e28565b60ff82165f908152600460205260409020600290810190612e28565b6001600160a01b0383165f90815260036020526040902054610100900460ff16612f085760ff82165f908152600460205260409020600190810190612e28565b60ff82165f908152600460205260409020600201546301000000900462ffffff165b62ffffff169050805f03612f3e5750612ff7565b620186a086820204612f518930836137d9565b601a5460ff84165f908152600460205260409020546001600160a01b0391821661010090910490911603612f8c576010805482019055612ff0565b60ff83165f9081526004602052604090205461deac196101009091046001600160a01b031601612fc557612fc03082613128565b612ff0565b60ff83165f908152600460205260409020600301805482019055601480548201905560138054820190555b9490940193505b600101612dd7565b50821561301457601280548401905592829003925b5050505b61223e8383836137d9565b6008805463ffffffff60901b1916600160901b63ffffffff8416908102919091179091556040519081527f703cced883e2faf6a2d5c676ef2f9dd7cfafa0acecee468ece9314ecf462ba91906020016113aa565b60648162ffffff16101580156130955750620186a062ffffff821611155b61309d575f80fd5b6007805466ffffff00000000191664010000000062ffffff841690810291909117909155600954620186a0910204600b557f00000000000000000000000000000000000000000000000000000000000000016110c75760405162ffffff821681527fd03edfeea801807308f0e9302e347c8a12ad32508cae5bce26e9e2a3654158c9906020016113aa565b61313282826138f4565b60075461314b90640100000000900462ffffff16613077565b60075461316d9062ffffff600160c81b8204811691600160e01b900416613189565b6008546114bd9062ffffff80821691630100000090041661379b565b6007805465ffffffffffff60c81b1916600160c81b62ffffff94851690810262ffffff60e01b191691909117600160e01b93909416928302939093179055600954620186a0928102839004600c550204600d55565b601e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6007805461ff0019166101001790558015801561324f575060075460ff16155b61361b575f8060105411613263575f613277565b600260105481613275576132756146f2565b045b601c546018549192505f916001600160a01b0390811691161461329a575f61329e565b6014545b9050818101831580156132b25750600d5481115b1561331b575f83116132c4575f6132ea565b600d546132ea9082620186a08602816132df576132df6146f2565b04620186a091020490565b92505f82116132f9575f613314565b600d546133149082620186a08502816132df576132df6146f2565b9150508181015b83806133295750600c548110155b80156133455750305f9081526020819052604090205481840111155b156135205760408051600280825260608201835247925f92919060208301908036833701905050905030815f815181106133815761338161461e565b6001600160a01b039283166020918202929092010152601c548251911690829060019081106133b2576133b261461e565b6001600160a01b0392831660209182029290920101526019546133d891309116856123d3565b60195460405163791ac94760e01b81526001600160a01b039091169063791ac947906134109086905f90869030904290600401614743565b5f604051808303815f87803b158015613427575f80fd5b505af1925050508015613438575060015b613459576019546134549030906001600160a01b03165f6123d3565b61351d565b6010541561346b576010805486900390555b604080518481524784900360208201819052917f9029ea20319a59447bd88162928acbbbe0955dead46655370929b794e46e8d96910160405180910390a1801561351b576134c78185620186a08902816132df576132df6146f2565b601180549091019055601c546018546001600160a01b0391821691160361351b576135008185620186a08802816132df576132df6146f2565b60168054909101905560158054860190556014805486900390555b505b50505b6018546001600160a01b0316301480159061354c5750601c546018546001600160a01b03908116911614155b156135f0576014549150831580156135655750600d5482115b1561357057600d5491505b838061357e5750600c548210155b80156135985750305f908152602081905260409020548211155b156135f0576018545f906135b5906001600160a01b031684613995565b905080156135ee576018546001600160a01b03165f90815260056020526040902080548201905560158054840190556014805484900390555b505b5050506135fc81613c0c565b6008805463ffffffff60701b19164263ffffffff16600160701b021790555b506007805461ff0019169055565b6007805463ff000000191663010000001790556013541561378c575f805b60068160ff1610156137255760ff81165f908152600460205260409020805460038201546101009091046001600160a01b031690158061369157506001600160a01b03811661dead145b806136a95750601a546001600160a01b038281169116145b156136b557505061371d565b6018545f906136f3906001600160a01b031630146136d5576015546136d9565b6014545b6013546003860154620186a002816132df576132df6146f2565b90505f6137008383613db8565b90508015613718576003840180548290039055948501945b505050505b600101613647565b506008805469ffffffff0000000000001916600160301b63ffffffff421602179055801561378a576013805482900390556040518181527fbb245b3c380b63918dc25ab2cc2e4b6939c4d58ffd95ea052b685a031e1ad2979060200160405180910390a15b505b6007805463ff00000019169055565b6008805462ffffff9283166301000000810265ffffffffffff1990921694909316938417179055600954620186a0928102839004600e550204600f55565b6001600160a01b038316158015906137f957506001600160a01b03821615155b6138455760405162461bcd60e51b815260206004820152601d60248201527f5472616e736665722066726f6d2f746f207a65726f20616464726573730000006044820152606401610c85565b6001600160a01b0383165f9081526020819052604090205481111561387c5760405162461bcd60e51b8152600401610c859061467b565b80156138af576001600160a01b038084165f90815260208190526040808220805485900390559184168152208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161242791815260200190565b6001600160a01b0382165f9081526020819052604090205481111561392b5760405162461bcd60e51b8152600401610c859061467b565b6001600160a01b0382165f818152602081815260409182902080548590039055600980548590039055600a805485019055905183815261dead92917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b038516906370a0823190602401602060405180830381865afa1580156139db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139ff9190614664565b604080516003808252608082019092529192505f91906020820160608036833701905050905030815f81518110613a3857613a3861461e565b6001600160a01b039283166020918202929092010152601c54825191169082906001908110613a6957613a6961461e565b60200260200101906001600160a01b031690816001600160a01b0316815250508481600281518110613a9d57613a9d61461e565b6001600160a01b039283166020918202929092010152601954613ac391309116866123d3565b601954604051635c11d79560e01b81526001600160a01b0390911690635c11d79590613afb9087905f90869030904290600401614743565b5f604051808303815f87803b158015613b12575f80fd5b505af1925050508015613b23575060015b613b4457601954613b3f9030906001600160a01b03165f6123d3565b613c04565b6040516370a0823160e01b815230600482015282906001600160a01b038716906370a0823190602401602060405180830381865afa158015613b88573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613bac9190614664565b613bb691906147b4565b604080516001600160a01b0388168152602081018790529081018290529093507fa82a03c1e8613c6192a82386fbb3690070528b0dd8bcae8a5c82d9ef937d7f769060600160405180910390a15b505092915050565b80158015613c275750600e546010541080613c275750601154155b15613c2f5750565b5f81158015613c415750600f54601054115b613c4d57601054613c51565b600f545b90505f82158015613c655750600f54601054115b613c7157601154613c9a565b613c9a601154601054600f5481613c8a57613c8a6146f2565b04620186a002620186a091020490565b601954909150613cb59030906001600160a01b0316846123d3565b601954601d5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af193505050508015613d41575060408051601f3d908101601f19168201909252613d3e918101906147c7565b60015b613d5d5760195461223e9030906001600160a01b03165f6123d3565b60408051848152602081018490529081018290527f947eb7d5785b0534dc368370fd3574434082455556a747116a88abea1ec6ceba9060600160405180910390a1505060108054849003905550601180548290039055505050565b5f815f03613dc757505f610d78565b601854306001600160a01b0390911603613e8e57600b546001600160a01b0384165f908152602081905260409020548301118015613e1d57506001600160a01b0383165f9081526002602052604090205460ff16155b15613e75576001600160a01b0383165f90815260208190526040902054600b5411613e48575f613e65565b6001600160a01b0383165f90815260208190526040902054600b54035b9150815f03613e7557505f610d78565b613e803084846137d9565b601480548390039055614017565b6015545f90620186a0840281613ea657613ea66146f2565b601c546018549290910492505f916001600160a01b03918216911603613f4957601654620186a09083020490505f856001600160a01b031682617530906040515f60405180830381858888f193505050503d805f8114613f21576040519150601f19603f3d011682016040523d82523d5f602084013e613f26565b606091505b5050905080613f3a575f9350505050610d78565b5060168054829003905561400b565b6018546001600160a01b03165f90815260056020526040902054620186a09083020460185460405163a9059cbb60e01b81526001600160a01b0388811660048301526024820184905292935091169063a9059cbb906044016020604051808303815f875af1925050508015613fdb575060408051601f3d908101601f19168201909252613fd8918101906146a4565b60015b613fe9575f92505050610d78565b506018546001600160a01b03165f908152600560205260409020805482900390555b50506015805483900390555b50919050565b60405180608001604052805f6001600160a01b0316815260200161403f6140ec565b815260200161404c6140ec565b81526020015f81525090565b6001830191839082156140e0579160200282015f5b838211156140af57835183826101000a81548162ffffff021916908362ffffff160217905550926020019260030160208160020104928301926001030261406d565b80156140de5782816101000a81549062ffffff02191690556003016020816002010492830192600103026140af565b505b5061175892915061410a565b60405180606001604052806003906020820280368337509192915050565b5b80821115611758575f815560010161410b565b80151581146110c7575f80fd5b5f805f6040848603121561413d575f80fd5b833567ffffffffffffffff80821115614154575f80fd5b818601915086601f830112614167575f80fd5b813581811115614175575f80fd5b8760208260051b8501011115614189575f80fd5b6020928301955093505084013561419f8161411e565b809150509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6141ea60208301846141aa565b9392505050565b6001600160a01b03811681146110c7575f80fd5b5f8060408385031215614216575f80fd5b8235614221816141f1565b946020939093013593505050565b5f805f60608486031215614241575f80fd5b833561424c816141f1565b9250602084013561425c816141f1565b929592945050506040919091013590565b803560ff8116811461427d575f80fd5b919050565b803562ffffff8116811461427d575f80fd5b5f82601f8301126142a3575f80fd5b6040516060810181811067ffffffffffffffff821117156142d257634e487b7160e01b5f52604160045260245ffd5b6040528060608401858111156142e6575f80fd5b845b81811015614307576142f981614282565b8352602092830192016142e8565b509195945050505050565b5f805f806101008587031215614326575f80fd5b61432f8561426d565b9350602085013561433f816141f1565b925061434e8660408701614294565b915061435d8660a08701614294565b905092959194509250565b5f60208284031215614378575f80fd5b81356141ea8161411e565b5f60208284031215614393575f80fd5b813563ffffffff811681146141ea575f80fd5b60c081525f6143b860c08301896141aa565b82810360208401526143ca81896141aa565b60ff881660408501526001600160a01b03871660608501526080840186905283810360a085015290506143fd81856141aa565b9998505050505050505050565b5f6020828403121561441a575f80fd5b81356141ea816141f1565b5f60208284031215614435575f80fd5b6141ea82614282565b5f6020828403121561444e575f80fd5b5035919050565b5f8060408385031215614466575f80fd5b61446f83614282565b915061447d60208401614282565b90509250929050565b805f5b6003811015610f0b57815162ffffff16845260209384019390910190600101614489565b602080825282518282018190525f919060409081850190868401855b8281101561451f57815180516001600160a01b03168552868101516144f088870182614486565b50858101516145026080870182614486565b506060015160e085015261010090930192908501906001016144c9565b5091979650505050505050565b5f805f805f805f60e0888a031215614542575f80fd5b873561454d816141f1565b9650602088013561455d816141f1565b955060408801359450606088013593506145796080890161426d565b925060a0880135915060c0880135905092959891949750929550565b5f80604083850312156145a6575f80fd5b82356145b1816141f1565b915060208301356145c1816141f1565b809150509250929050565b5f80604083850312156145dd575f80fd5b82356145e8816141f1565b915060208301356145c18161411e565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b600181811c9082168061464657607f821691505b60208210810361401757634e487b7160e01b5f52602260045260245ffd5b5f60208284031215614674575f80fd5b5051919050565b6020808252600f908201526e457863656564732062616c616e636560881b604082015260600190565b5f602082840312156146b4575f80fd5b81516141ea8161411e565b634e487b7160e01b5f52601160045260245ffd5b62ffffff818116838216028082169190828114613c0457613c046146bf565b634e487b7160e01b5f52601260045260245ffd5b60ff851681526001600160a01b0384166020820152610100810161472d6040830185614486565b61473a60a0830184614486565b95945050505050565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156147935784516001600160a01b03168352938301939183019160010161476e565b50506001600160a01b03969096166060850152505050608001529392505050565b81810381811115610d7857610d786146bf565b5f805f606084860312156147d9575f80fd5b835192506020840151915060408401519050925092509256fea26469706673582212200cbb76a5d7ea8609979226305630cf4e070f43410a297487e589e7da9a05ed6d64736f6c63430008190033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The Big Ecosystem is an innovative and powerful platform designed for cutting-edge crypto tools and community-driven innovation. We empower users with advanced trading signals and much more.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.