ETH Price: $2,021.99 (+0.37%)

Token

Solaris Green Coin (SOGC)
 

Overview

Max Total Supply

50,000,000,000 SOGC

Holders

18

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 14 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./interfaces/IFeeHandler.sol";

/**
 * @title Solaris Green Coin (SOGC)
 * @notice ERC-20 token with configurable fees, burn mechanism, and anti-abuse controls
 * @dev This contract is NON-UPGRADEABLE (immutable) for maximum trust and decentralization
 * @dev Users can verify the code once and trust it forever
 * @dev Aligned with Solaris Green Coin Whitepaper v5.0
 
 */
contract Token is
    ERC20,
    AccessControl,
    Pausable,
    ReentrancyGuard
{
    // ============ ROLES ============
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
    bytes32 public constant TREASURY_MANAGER_ROLE = keccak256("TREASURY_MANAGER_ROLE");

    // ============ FEE CONFIGURATION ============
    uint256 public buyFeePercent; // Basis points (e.g., 475 = 4.75%)
    uint256 public sellFeePercent; // Basis points (e.g., 180 = 1.80%)
    
    // Hard-coded maximum fee limits (per Whitepaper v5.0) - IMMUTABLE
    uint256 public constant MAX_BUY_FEE_PERCENT = 490; // 4.9% maximum for buy fees
    uint256 public constant MAX_SELL_FEE_PERCENT = 190; // 1.9% maximum for sell fees

    // ============ FEE WALLETS (5 WALLETS PER WHITEPAPER) ============
    // Buy fee wallets
    address public treasuryWallet;      // Token 1-3 purchases, yield management
    address public marketingWallet;     // Marketing, CEX listings, community
    address public economicFeeWallet;   // Land, grid rights, environmental costs, pre-design
    
    // Sell fee wallets
    address public ecosystemWallet;     // Liquidity maintenance, market-making support
    address public buybackWallet;       // Buyback & burn

    // ============ BUY FEE DISTRIBUTION (per Whitepaper Section 13) ============
    // Buy Fee (4.75%): 50% Treasury, 25% Marketing, 25% Economic
    uint256 public buyTreasuryPercent;   // Default: 5000 (50%)
    uint256 public buyMarketingPercent;  // Default: 2500 (25%)
    uint256 public buyEconomicPercent;   // Default: 2500 (25%)

    // ============ SELL FEE DISTRIBUTION (per Whitepaper Section 13) ============
    // Sell Fee (1.80%): 50% Ecosystem, 50% Buyback
    uint256 public sellEcosystemPercent; // Default: 5000 (50%)
    uint256 public sellBuybackPercent;   // Default: 5000 (50%)

    // ============ EMERGENCY FEE CONTROL  ============
    bool public feesEnabled = true;

    // ============ ANTI-ABUSE CONTROLS (per Whitepaper Section 10) ============
    uint256 public maxTransactionAmount; // Max tokens per transaction (0 = disabled)
    uint256 public maxWalletAmount; // Max tokens per wallet (0 = disabled)
    
    // Max buy percent of total supply (per Parameter Document)
    uint256 public maxBuyPercent; // Basis points (50 = 0.5% of total supply)
    uint256 public constant MIN_MAX_BUY_PERCENT = 10;  // 0.1% minimum
    uint256 public constant MAX_MAX_BUY_PERCENT = 100; // 1.0% maximum
    uint256 public immutable INITIAL_TOTAL_SUPPLY; // Store initial supply for maxBuy calculation
    
    uint256 public cooldownPeriod; // Cooldown in seconds (0 = disabled)
    bool public cooldownEnabled;
    uint256 public cooldownEndTime; // Timestamp when cooldown period ends

    // Fee whitelist and blacklist
    mapping(address => bool) public isFeeWhitelisted;
    mapping(address => bool) public isBlacklisted;

    // Cooldown tracking
    mapping(address => uint256) public lastTransactionTime;

    // Fee handler (for DEX integration)
    IFeeHandler public feeHandler;

    // DEX addresses for buy/sell detection
    address public pairAddress; // Uniswap/PancakeSwap pair address
    address public routerAddress; // DEX router address
    mapping(address => bool) public isDEXAddress; // Additional DEX addresses

    // Burn tracking
    uint256 public totalBurned;
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // ============ EVENTS ( Added indexed parameters) ============
    event FeesUpdated(uint256 indexed buyFee, uint256 indexed sellFee, address indexed updater);
    event FeeWalletsUpdated(address indexed treasury, address indexed marketing, address buyback);
    event AllFeeWalletsUpdated(address treasury, address marketing, address economic, address ecosystem, address buyback);
    event FeeDistributionUpdated(uint256 treasury, uint256 marketing, uint256 buyback);
    event BuyFeeDistributionUpdated(uint256 treasury, uint256 marketing, uint256 economic);
    event SellFeeDistributionUpdated(uint256 ecosystem, uint256 buyback);
    event MaxTransactionAmountUpdated(uint256 amount);
    event MaxWalletAmountUpdated(uint256 amount);
    event MaxBuyPercentUpdated(uint256 indexed percent);
    event CooldownUpdated(uint256 period, bool enabled, uint256 endTime);
    event FeeWhitelistUpdated(address indexed account, bool indexed whitelisted);
    event BlacklistUpdated(address indexed account, bool indexed blacklisted);
    event TokensBurned(address indexed account, uint256 amount);
    event FeeHandlerUpdated(address indexed handler);
    event PairAddressUpdated(address indexed pair);
    event RouterAddressUpdated(address indexed router);
    event DEXAddressUpdated(address indexed dex, bool isDEX);
    //  - Emergency fee control events
    event FeesDisabled(address indexed admin);
    event FeesEnabled(address indexed admin);
    //  - Recovery events
    event ERC20Recovered(address indexed token, address indexed to, uint256 amount);
    event ETHRecovered(address indexed to, uint256 amount);

    // ============ CUSTOM ERRORS ============
    error ExceedsMaxTransaction(uint256 amount, uint256 max);
    error ExceedsMaxWallet(uint256 amount, uint256 max);
    error ExceedsMaxBuyPercent(uint256 amount, uint256 maxAllowed);
    error BlacklistedAddress(address account);
    error CooldownActive(address account, uint256 cooldownEnd);
    error InvalidFeePercent(uint256 fee);
    error InvalidFeeDistribution();
    error InvalidMaxBuyPercent(uint256 percent);
    error InvalidAddress();
    error CooldownNotActive();
    //  Constructor validation errors
    error InvalidTokenName();
    error InvalidTokenSymbol();
    error InvalidTotalSupply();
    // Recovery errors
    error CannotRecoverSOGC();
    error NoETHToRecover();

    /**
     * @notice NON-UPGRADEABLE: Constructor initializes the token contract
     * @dev This contract is immutable - code cannot be changed after deployment
     * @dev Aligned with Solaris Green Coin Whitepaper v5.0
     * @dev  Added comprehensive input validation
     * @param name Token name (Solaris Green Coin)
     * @param symbol Token symbol (SOGC)
     * @param totalSupply Total token supply (50 billion)
     * @param _treasuryWallet Treasury wallet (Token 1-3 purchases, yield management)
     * @param _marketingWallet Marketing wallet (promotion, CEX listings, community)
     * @param _economicFeeWallet Economic fee wallet (land, grid rights, environmental costs)
     * @param _ecosystemWallet Ecosystem wallet (liquidity maintenance)
     * @param _buybackWallet Buyback wallet (buyback & burn)
     * @param admin Admin address (should be Gnosis Safe 2-of-3 multisig per Whitepaper)
     */
    constructor(
        string memory name,
        string memory symbol,
        uint256 totalSupply,
        address _treasuryWallet,
        address _marketingWallet,
        address _economicFeeWallet,
        address _ecosystemWallet,
        address _buybackWallet,
        address admin
    ) ERC20(name, symbol) {
        //  Validate token details
        if (bytes(name).length == 0) {
            revert InvalidTokenName();
        }
        if (bytes(symbol).length == 0) {
            revert InvalidTokenSymbol();
        }
        if (totalSupply == 0 || totalSupply > 100_000_000_000 * 1e18) {
            revert InvalidTotalSupply();
        }

        // Validate all addresses
        if (_treasuryWallet == address(0) || _marketingWallet == address(0) || 
            _economicFeeWallet == address(0) || _ecosystemWallet == address(0) ||
            _buybackWallet == address(0) || admin == address(0)) {
            revert InvalidAddress();
        }

        _grantRole(DEFAULT_ADMIN_ROLE, admin);
        _grantRole(ADMIN_ROLE, admin);
        _grantRole(OPERATOR_ROLE, admin);
        _grantRole(TREASURY_MANAGER_ROLE, admin);

        // Set all 5 fee wallets (per Whitepaper Section 13)
        treasuryWallet = _treasuryWallet;
        marketingWallet = _marketingWallet;
        economicFeeWallet = _economicFeeWallet;
        ecosystemWallet = _ecosystemWallet;
        buybackWallet = _buybackWallet;

        // Store initial total supply for maxBuyPercent calculation
        INITIAL_TOTAL_SUPPLY = totalSupply;

        // ============ BUY FEE DISTRIBUTION (per Whitepaper Section 13) ============
        // Buy Fee (4.75%): 50% Treasury, 25% Marketing, 25% Economic
        buyTreasuryPercent = 5000;   // 50%
        buyMarketingPercent = 2500;  // 25%
        buyEconomicPercent = 2500;   // 25%

        // ============ SELL FEE DISTRIBUTION (per Whitepaper Section 13) ============
        // Sell Fee (1.80%): 50% Ecosystem, 50% Buyback
        sellEcosystemPercent = 5000; // 50%
        sellBuybackPercent = 5000;   // 50%

        // ============ DEFAULT FEES (per Whitepaper Section 2) ============
        // Buy Fee: 4.75% (475 basis points)
        // Sell Fee: 1.80% (180 basis points)
        buyFeePercent = 475;
        sellFeePercent = 180;

        // ============ ANTI-ABUSE: Max Buy Percent (per Parameter Document) ============
        // Default: 0.5% of total supply
        // Bounds: 0.1% min, 1.0% max
        maxBuyPercent = 50; // 0.5% in basis points

        _mint(admin, totalSupply);
    }

    /**
     * @notice Override transfer to apply fees and anti-abuse checks
     */
    function transfer(address to, uint256 amount) public override whenNotPaused nonReentrant returns (bool) {
        address from = msg.sender;
        bool isBuy = _determineBuySell(from, to);
        return _transferWithFees(from, to, amount, isBuy);
    }

    /**
     * @notice Override transferFrom to apply fees and anti-abuse checks
     */
    function transferFrom(address from, address to, uint256 amount) public override whenNotPaused nonReentrant returns (bool) {
        address spender = msg.sender;
        _spendAllowance(from, spender, amount);
        bool isBuy = _determineBuySell(from, to);
        return _transferWithFees(from, to, amount, isBuy);
    }

    /**
     * @notice Internal transfer function with fee handling
     * @dev Cooldown update moved BEFORE state changes
     * @param from Sender address
     * @param to Recipient address
     * @param amount Transfer amount
     * @param isBuy Whether this is a buy transaction (for fee calculation)
     */
    function _transferWithFees(address from, address to, uint256 amount, bool isBuy) internal returns (bool) {
        // Check blacklist
        if (isBlacklisted[from] || isBlacklisted[to]) {
            revert BlacklistedAddress(isBlacklisted[from] ? from : to);
        }

        //  Check AND update cooldown BEFORE any state changes
        if (cooldownEnabled && block.timestamp < cooldownEndTime && !isFeeWhitelisted[from]) {
            if (lastTransactionTime[from] != 0 && block.timestamp < lastTransactionTime[from] + cooldownPeriod) {
                revert CooldownActive(from, lastTransactionTime[from] + cooldownPeriod);
            }
            // Update cooldown IMMEDIATELY (before any other state changes)
            lastTransactionTime[from] = block.timestamp;
        }

        // Check max transaction
        if (maxTransactionAmount > 0 && amount > maxTransactionAmount) {
            revert ExceedsMaxTransaction(amount, maxTransactionAmount);
        }

        // ============ ANTI-ABUSE: Max Buy Percent Check (per Parameter Document) ============
        // Only applies to BUY transactions (tokens from DEX to user)
        // Based on INITIAL total supply, not circulating supply
        if (isBuy && maxBuyPercent > 0 && !isFeeWhitelisted[to]) {
            uint256 maxBuyAmount = (INITIAL_TOTAL_SUPPLY * maxBuyPercent) / 10000;
            if (amount > maxBuyAmount) {
                revert ExceedsMaxBuyPercent(amount, maxBuyAmount);
            }
        }

        // Check max wallet (only for non-whitelisted addresses)
        if (maxWalletAmount > 0 && !isFeeWhitelisted[to] && balanceOf(to) + amount > maxWalletAmount) {
            revert ExceedsMaxWallet(balanceOf(to) + amount, maxWalletAmount);
        }

        // Calculate fees ( Check feesEnabled flag)
        uint256 feeAmount = 0;
        bool fromWhitelisted = isFeeWhitelisted[from];
        bool toWhitelisted = isFeeWhitelisted[to];

        // Apply fees only if enabled AND neither party is whitelisted
        if (feesEnabled && !fromWhitelisted && !toWhitelisted) {
            uint256 feePercent = isBuy ? buyFeePercent : sellFeePercent;
            if (feePercent > 0) {
                feeAmount = (amount * feePercent) / 10000;
            }
        }

        uint256 transferAmount = amount - feeAmount;

        // Distribute fees (pass isBuy for separate distribution logic)
        if (feeAmount > 0) {
            _distributeFees(from, feeAmount, isBuy);
        }

        // Execute transfer
        _transfer(from, to, transferAmount);

        return true;
    }

    /**
     * @notice Determine if a transfer is a buy or sell based on DEX addresses
     * @param from Sender address
     * @param to Recipient address
     * @return isBuy True if this is a buy transaction (tokens from DEX to user)
     */
    function _determineBuySell(address from, address to) internal view returns (bool isBuy) {
        // If tokens are coming FROM a DEX address → it's a BUY
        if (from == pairAddress || from == routerAddress || isDEXAddress[from]) {
            return true;
        }
        // If tokens are going TO a DEX address → it's a SELL
        if (to == pairAddress || to == routerAddress || isDEXAddress[to]) {
            return false; // isSell
        }
        // Default: treat as sell for regular transfers (existing behavior)
        return false;
    }

    /**
     * @notice Distribute fees to designated wallets based on transaction type
     * @dev  Transfer to contract first to prevent reentrancy
     * @dev  Added zero-address checks before transfers
     * @dev Per Whitepaper Section 13:
     *      - Buy Fee: 50% Treasury, 25% Marketing, 25% Economic
     *      - Sell Fee: 50% Ecosystem, 50% Buyback
     * @param from Sender address
     * @param feeAmount Total fee amount to distribute
     * @param isBuy Whether this is a buy (true) or sell (false) transaction
     */
    function _distributeFees(address from, uint256 feeAmount, bool isBuy) internal {
        //  Transfer fees to contract first (prevents reentrancy)
        _transfer(from, address(this), feeAmount);

        if (isBuy) {
            // ============ BUY FEE DISTRIBUTION ============
            // 50% Treasury, 25% Marketing, 25% Economic
            uint256 treasuryAmount = (feeAmount * buyTreasuryPercent) / 10000;
            uint256 marketingAmount = (feeAmount * buyMarketingPercent) / 10000;
            uint256 economicAmount = feeAmount - treasuryAmount - marketingAmount; // Remainder to avoid rounding

            // Zero-address checks
            if (treasuryAmount > 0 && treasuryWallet != address(0)) {
                _transfer(address(this), treasuryWallet, treasuryAmount);
            }
            if (marketingAmount > 0 && marketingWallet != address(0)) {
                _transfer(address(this), marketingWallet, marketingAmount);
            }
            if (economicAmount > 0 && economicFeeWallet != address(0)) {
                _transfer(address(this), economicFeeWallet, economicAmount);
            }

            // Handle any undistributed fees (if a wallet is somehow zero)
            uint256 distributed = 0;
            if (treasuryWallet != address(0)) distributed += treasuryAmount;
            if (marketingWallet != address(0)) distributed += marketingAmount;
            if (economicFeeWallet != address(0)) distributed += economicAmount;
            
            if (distributed < feeAmount) {
                // Send undistributed to burn address
                _transfer(address(this), BURN_ADDRESS, feeAmount - distributed);
                totalBurned += feeAmount - distributed;
            }
        } else {
            // ============ SELL FEE DISTRIBUTION ============
            // 50% Ecosystem, 50% Buyback
            uint256 ecosystemAmount = (feeAmount * sellEcosystemPercent) / 10000;
            uint256 buybackAmount = feeAmount - ecosystemAmount; // Remainder to avoid rounding

            //  Zero-address checks
            if (ecosystemAmount > 0 && ecosystemWallet != address(0)) {
                _transfer(address(this), ecosystemWallet, ecosystemAmount);
            }
            if (buybackAmount > 0 && buybackWallet != address(0)) {
                _transfer(address(this), buybackWallet, buybackAmount);
            }

            // Handle any undistributed fees
            uint256 distributed = 0;
            if (ecosystemWallet != address(0)) distributed += ecosystemAmount;
            if (buybackWallet != address(0)) distributed += buybackAmount;
            
            if (distributed < feeAmount) {
                // Send undistributed to burn address
                _transfer(address(this), BURN_ADDRESS, feeAmount - distributed);
                totalBurned += feeAmount - distributed;
            }
        }
    }

    // ============ BURN FUNCTIONS ============

    /**
     * @notice Burn tokens
     * @param amount Amount to burn
     */
    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
        totalBurned += amount;
        emit TokensBurned(msg.sender, amount);
    }

    /**
     * @notice Burn tokens from an address
     * @param account Address to burn from
     * @param amount Amount to burn
     */
    function burnFrom(address account, uint256 amount) external {
        _spendAllowance(account, msg.sender, amount);
        _burn(account, amount);
        totalBurned += amount;
        emit TokensBurned(account, amount);
    }

    // ============ FEE CONFIGURATION FUNCTIONS ============

    /**
     * @notice Set buy and sell fees
     * @dev Hard-coded maximum limits cannot be exceeded (4.9% buy, 1.9% sell)
     * @param _buyFee Buy fee in basis points (max 490 = 4.9%)
     * @param _sellFee Sell fee in basis points (max 190 = 1.9%)
     */
    function setFees(uint256 _buyFee, uint256 _sellFee) external onlyRole(ADMIN_ROLE) {
        if (_buyFee > MAX_BUY_FEE_PERCENT) {
            revert InvalidFeePercent(_buyFee);
        }
        if (_sellFee > MAX_SELL_FEE_PERCENT) {
            revert InvalidFeePercent(_sellFee);
        }
        buyFeePercent = _buyFee;
        sellFeePercent = _sellFee;
        emit FeesUpdated(_buyFee, _sellFee, msg.sender);
    }

    /**
     * @notice Set fee wallet addresses
     */
    function setFeeWallets(
        address _treasuryWallet,
        address _marketingWallet,
        address _buybackWallet
    ) external onlyRole(ADMIN_ROLE) {
        if (_treasuryWallet == address(0) || _marketingWallet == address(0) || _buybackWallet == address(0)) {
            revert InvalidAddress();
        }
        treasuryWallet = _treasuryWallet;
        marketingWallet = _marketingWallet;
        buybackWallet = _buybackWallet;
        emit FeeWalletsUpdated(_treasuryWallet, _marketingWallet, _buybackWallet);
    }

    /**
     * @notice Set all 5 fee wallets (per Whitepaper Section 13)
     * @param _treasuryWallet Treasury wallet (Token 1-3 purchases)
     * @param _marketingWallet Marketing wallet (promotion, CEX)
     * @param _economicFeeWallet Economic fee wallet (land, grid rights)
     * @param _ecosystemWallet Ecosystem wallet (liquidity)
     * @param _buybackWallet Buyback wallet (buyback & burn)
     */
    function setAllFeeWallets(
        address _treasuryWallet,
        address _marketingWallet,
        address _economicFeeWallet,
        address _ecosystemWallet,
        address _buybackWallet
    ) external onlyRole(ADMIN_ROLE) {
        if (_treasuryWallet == address(0) || _marketingWallet == address(0) || 
            _economicFeeWallet == address(0) || _ecosystemWallet == address(0) ||
            _buybackWallet == address(0)) {
            revert InvalidAddress();
        }
        treasuryWallet = _treasuryWallet;
        marketingWallet = _marketingWallet;
        economicFeeWallet = _economicFeeWallet;
        ecosystemWallet = _ecosystemWallet;
        buybackWallet = _buybackWallet;
        emit AllFeeWalletsUpdated(_treasuryWallet, _marketingWallet, _economicFeeWallet, _ecosystemWallet, _buybackWallet);
    }

    /**
     * @notice Set buy fee distribution (per Whitepaper Section 13)
     * @dev Buy Fee: 50% Treasury, 25% Marketing, 25% Economic
     * @param _treasury Treasury percentage in basis points
     * @param _marketing Marketing percentage in basis points
     * @param _economic Economic fee percentage in basis points
     */
    function setBuyFeeDistribution(
        uint256 _treasury,
        uint256 _marketing,
        uint256 _economic
    ) external onlyRole(ADMIN_ROLE) {
        if (_treasury + _marketing + _economic != 10000) {
            revert InvalidFeeDistribution();
        }
        buyTreasuryPercent = _treasury;
        buyMarketingPercent = _marketing;
        buyEconomicPercent = _economic;
        emit BuyFeeDistributionUpdated(_treasury, _marketing, _economic);
    }

    /**
     * @notice Set sell fee distribution (per Whitepaper Section 13)
     * @dev Sell Fee: 50% Ecosystem, 50% Buyback
     * @param _ecosystem Ecosystem percentage in basis points
     * @param _buyback Buyback percentage in basis points
     */
    function setSellFeeDistribution(
        uint256 _ecosystem,
        uint256 _buyback
    ) external onlyRole(ADMIN_ROLE) {
        if (_ecosystem + _buyback != 10000) {
            revert InvalidFeeDistribution();
        }
        sellEcosystemPercent = _ecosystem;
        sellBuybackPercent = _buyback;
        emit SellFeeDistributionUpdated(_ecosystem, _buyback);
    }

    // ============ EMERGENCY FEE CONTROL  ============

    /**
     * @notice Disable all fee collection (emergency use)
     * @dev Allows transfers to continue but without fee collection
     * @dev Use when there's a bug in fee distribution logic
     */
    function disableFees() external onlyRole(ADMIN_ROLE) {
        feesEnabled = false;
        emit FeesDisabled(msg.sender);
    }

    /**
     * @notice Re-enable fee collection
     */
    function enableFees() external onlyRole(ADMIN_ROLE) {
        feesEnabled = true;
        emit FeesEnabled(msg.sender);
    }

    // ============ ANTI-ABUSE CONFIGURATION ============

    /**
     * @notice Set max transaction amount
     */
    function setMaxTransactionAmount(uint256 amount) external onlyRole(ADMIN_ROLE) {
        maxTransactionAmount = amount;
        emit MaxTransactionAmountUpdated(amount);
    }

    /**
     * @notice Set max wallet amount
     */
    function setMaxWalletAmount(uint256 amount) external onlyRole(ADMIN_ROLE) {
        maxWalletAmount = amount;
        emit MaxWalletAmountUpdated(amount);
    }

    /**
     * @notice Set max buy percent of total supply (per Parameter Document)
     * @dev Anti-abuse mechanism for early DEX trading phase
     * @dev Bounds: 0.1% (10 basis points) to 1.0% (100 basis points)
     * @dev Set to 0 to disable after market matures
     * @param _percent Max buy percent in basis points (50 = 0.5%)
     */
    function setMaxBuyPercent(uint256 _percent) external onlyRole(ADMIN_ROLE) {
        // Allow 0 to disable, or within bounds
        if (_percent != 0 && (_percent < MIN_MAX_BUY_PERCENT || _percent > MAX_MAX_BUY_PERCENT)) {
            revert InvalidMaxBuyPercent(_percent);
        }
        maxBuyPercent = _percent;
        emit MaxBuyPercentUpdated(_percent);
    }

    /**
     * @notice Set cooldown period
     * @param period Cooldown period in seconds
     * @param duration Duration in seconds for cooldown to be active (0 = indefinite)
     */
    function setCooldown(uint256 period, uint256 duration) external onlyRole(ADMIN_ROLE) {
        cooldownPeriod = period;
        cooldownEnabled = period > 0;
        if (duration > 0) {
            cooldownEndTime = block.timestamp + duration;
        } else {
            cooldownEndTime = 0;
        }
        emit CooldownUpdated(period, cooldownEnabled, cooldownEndTime);
    }

    // ============ WHITELIST / BLACKLIST ============

    /**
     * @notice Add or remove address from fee whitelist
     */
    function setFeeWhitelist(address account, bool whitelisted) external onlyRole(ADMIN_ROLE) {
        isFeeWhitelisted[account] = whitelisted;
        emit FeeWhitelistUpdated(account, whitelisted);
    }

    /**
     * @notice Batch update fee whitelist
     * @dev Gas optimized with cached array length
     */
    function batchSetFeeWhitelist(address[] calldata accounts, bool whitelisted) external onlyRole(ADMIN_ROLE) {
        uint256 length = accounts.length;
        for (uint256 i = 0; i < length; i++) {
            isFeeWhitelisted[accounts[i]] = whitelisted;
            emit FeeWhitelistUpdated(accounts[i], whitelisted);
        }
    }

    /**
     * @notice Add or remove address from blacklist
     */
    function setBlacklist(address account, bool blacklisted) external onlyRole(ADMIN_ROLE) {
        isBlacklisted[account] = blacklisted;
        emit BlacklistUpdated(account, blacklisted);
    }

    /**
     * @notice Batch update blacklist
     * @dev Gas optimized with cached array length
     */
    function batchSetBlacklist(address[] calldata accounts, bool blacklisted) external onlyRole(ADMIN_ROLE) {
        uint256 length = accounts.length;
        for (uint256 i = 0; i < length; i++) {
            isBlacklisted[accounts[i]] = blacklisted;
            emit BlacklistUpdated(accounts[i], blacklisted);
        }
    }

    // ============ DEX CONFIGURATION ============

    /**
     * @notice Set fee handler contract
     */
    function setFeeHandler(address handler) external onlyRole(ADMIN_ROLE) {
        feeHandler = IFeeHandler(handler);
        emit FeeHandlerUpdated(handler);
    }

    /**
     * @notice Set Uniswap/PancakeSwap pair address for buy/sell detection
     * @param _pairAddress The pair address (e.g., UniswapV2Pair)
     */
    function setPairAddress(address _pairAddress) external onlyRole(ADMIN_ROLE) {
        pairAddress = _pairAddress;
        emit PairAddressUpdated(_pairAddress);
    }

    /**
     * @notice Set DEX router address for buy/sell detection
     * @param _routerAddress The router address (e.g., UniswapV2Router02)
     */
    function setRouterAddress(address _routerAddress) external onlyRole(ADMIN_ROLE) {
        routerAddress = _routerAddress;
        emit RouterAddressUpdated(_routerAddress);
    }

    /**
     * @notice Add or remove a DEX address for buy/sell detection
     * @param _dexAddress The DEX address to add/remove
     * @param _isDEX Whether this address is a DEX (true) or not (false)
     */
    function setDEXAddress(address _dexAddress, bool _isDEX) external onlyRole(ADMIN_ROLE) {
        if (_dexAddress == address(0)) {
            revert InvalidAddress();
        }
        isDEXAddress[_dexAddress] = _isDEX;
        emit DEXAddressUpdated(_dexAddress, _isDEX);
    }

    /**
     * @notice Batch update DEX addresses
     * @param _dexAddresses Array of DEX addresses
     * @param _isDEX Whether these addresses are DEX addresses
     */
    function batchSetDEXAddresses(address[] calldata _dexAddresses, bool _isDEX) external onlyRole(ADMIN_ROLE) {
        uint256 length = _dexAddresses.length;
        for (uint256 i = 0; i < length; i++) {
            if (_dexAddresses[i] != address(0)) {
                isDEXAddress[_dexAddresses[i]] = _isDEX;
                emit DEXAddressUpdated(_dexAddresses[i], _isDEX);
            }
        }
    }

    // ============ EMERGENCY FUNCTIONS ============

    /**
     * @notice Pause contract
     */
    function pause() external onlyRole(ADMIN_ROLE) {
        _pause();
    }

    /**
     * @notice Unpause contract
     */
    function unpause() external onlyRole(ADMIN_ROLE) {
        _unpause();
    }

    // ============ RECOVERY FUNCTIONS  ============

    /**
     * @notice Recover accidentally sent ERC20 tokens (NOT SOGC)
     * @dev Prevents permanent loss of tokens accidentally sent to contract
     * @param token Token address to recover
     * @param to Recipient address
     * @param amount Amount to recover
     */
    function recoverERC20(address token, address to, uint256 amount) external onlyRole(ADMIN_ROLE) {
        if (token == address(this)) {
            revert CannotRecoverSOGC();
        }
        if (to == address(0)) {
            revert InvalidAddress();
        }
        IERC20(token).transfer(to, amount);
        emit ERC20Recovered(token, to, amount);
    }

    /**
     * @notice Recover accidentally sent ETH
     * @param to Recipient address
     */
    function recoverETH(address payable to) external onlyRole(ADMIN_ROLE) {
        if (to == address(0)) {
            revert InvalidAddress();
        }
        uint256 balance = address(this).balance;
        if (balance == 0) {
            revert NoETHToRecover();
        }
        (bool success,) = to.call{value: balance}("");
        require(success, "ETH transfer failed");
        emit ETHRecovered(to, balance);
    }

    // ============ VIEW FUNCTIONS  ============

    /**
     * @notice Calculate buy fee for a given amount
     * @param amount Transaction amount
     * @return feeAmount Total fee
     * @return treasuryAmount Amount to treasury
     * @return marketingAmount Amount to marketing
     * @return economicAmount Amount to economic wallet
     */
    function calculateBuyFee(uint256 amount) external view returns (
        uint256 feeAmount,
        uint256 treasuryAmount,
        uint256 marketingAmount,
        uint256 economicAmount
    ) {
        feeAmount = (amount * buyFeePercent) / 10000;
        treasuryAmount = (feeAmount * buyTreasuryPercent) / 10000;
        marketingAmount = (feeAmount * buyMarketingPercent) / 10000;
        economicAmount = feeAmount - treasuryAmount - marketingAmount;
    }

    /**
     * @notice Calculate sell fee for a given amount
     * @param amount Transaction amount
     * @return feeAmount Total fee
     * @return ecosystemAmount Amount to ecosystem wallet
     * @return buybackAmount Amount to buyback wallet
     */
    function calculateSellFee(uint256 amount) external view returns (
        uint256 feeAmount,
        uint256 ecosystemAmount,
        uint256 buybackAmount
    ) {
        feeAmount = (amount * sellFeePercent) / 10000;
        ecosystemAmount = (feeAmount * sellEcosystemPercent) / 10000;
        buybackAmount = feeAmount - ecosystemAmount;
    }


      /**
     * @notice Get circulating supply (total supply - tokens in burn address)
     * @dev Tokens burned via _burn() are already removed from totalSupply
     * @dev Tokens transferred to BURN_ADDRESS are still in totalSupply but not circulating
     * @return Circulating supply (tokens available for trading)
     */
    function circulatingSupply() external view returns (uint256) {
        return totalSupply() - balanceOf(BURN_ADDRESS);
    }

    /**
     * @notice Get the current contract version
     * @dev This contract is immutable (non-upgradeable) for maximum trust
     */
    function version() external pure returns (string memory) {
        return "1.1.0-audit-fixes";
    }

    /**
     * @notice Allow contract to receive ETH (for recovery)
     */
    receive() external payable {}
}

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

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

    /// @inheritdoc IERC20
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

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

pragma solidity >=0.4.16;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

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

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

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

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

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

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

        _revokeRole(role, callerConfirmation);
    }

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

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant REENTRANCY_GUARD_STORAGE =
        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;

    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    /**
     * @dev A `view` only version of {nonReentrant}. Use to block view functions
     * from being called, preventing reading from inconsistent contract state.
     *
     * CAUTION: This is a "view" modifier and does not change the reentrancy
     * status. Use it only on view functions. For payable or non-payable functions,
     * use the standard {nonReentrant} modifier instead.
     */
    modifier nonReentrantView() {
        _nonReentrantBeforeView();
        _;
    }

    function _nonReentrantBeforeView() private view {
        if (_reentrancyGuardEntered()) {
            revert ReentrancyGuardReentrantCall();
        }
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        _nonReentrantBeforeView();

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;
    }

    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
        return REENTRANCY_GUARD_STORAGE;
    }
}

File 7 of 14 : IFeeHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

/**
 * @title IFeeHandler
 * @notice Interface for fee distribution handler
 */
interface IFeeHandler {
    function handleFees(
        address from,
        address to,
        uint256 amount,
        bool isBuy
    ) external returns (uint256);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

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

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)

pragma solidity >=0.8.4;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)

pragma solidity >=0.8.4;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted to signal this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
    "@forge-std/=lib/forge-std/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": true
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_marketingWallet","type":"address"},{"internalType":"address","name":"_economicFeeWallet","type":"address"},{"internalType":"address","name":"_ecosystemWallet","type":"address"},{"internalType":"address","name":"_buybackWallet","type":"address"},{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"BlacklistedAddress","type":"error"},{"inputs":[],"name":"CannotRecoverSOGC","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"cooldownEnd","type":"uint256"}],"name":"CooldownActive","type":"error"},{"inputs":[],"name":"CooldownNotActive","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAllowed","type":"uint256"}],"name":"ExceedsMaxBuyPercent","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ExceedsMaxTransaction","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ExceedsMaxWallet","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidFeeDistribution","type":"error"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"InvalidFeePercent","type":"error"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"InvalidMaxBuyPercent","type":"error"},{"inputs":[],"name":"InvalidTokenName","type":"error"},{"inputs":[],"name":"InvalidTokenSymbol","type":"error"},{"inputs":[],"name":"InvalidTotalSupply","type":"error"},{"inputs":[],"name":"NoETHToRecover","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"address","name":"marketing","type":"address"},{"indexed":false,"internalType":"address","name":"economic","type":"address"},{"indexed":false,"internalType":"address","name":"ecosystem","type":"address"},{"indexed":false,"internalType":"address","name":"buyback","type":"address"}],"name":"AllFeeWalletsUpdated","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":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"BlacklistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"treasury","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marketing","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"economic","type":"uint256"}],"name":"BuyFeeDistributionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"CooldownUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dex","type":"address"},{"indexed":false,"internalType":"bool","name":"isDEX","type":"bool"}],"name":"DEXAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"treasury","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marketing","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyback","type":"uint256"}],"name":"FeeDistributionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"handler","type":"address"}],"name":"FeeHandlerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"},{"indexed":true,"internalType":"address","name":"marketing","type":"address"},{"indexed":false,"internalType":"address","name":"buyback","type":"address"}],"name":"FeeWalletsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"FeeWhitelistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"}],"name":"FeesDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"}],"name":"FeesEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"buyFee","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"sellFee","type":"uint256"},{"indexed":true,"internalType":"address","name":"updater","type":"address"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"MaxBuyPercentUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxTransactionAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxWalletAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"}],"name":"PairAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"RouterAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ecosystem","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyback","type":"uint256"}],"name":"SellFeeDistributionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensBurned","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BUY_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MAX_BUY_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SELL_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_MAX_BUY_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_MANAGER_ROLE","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"batchSetBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_dexAddresses","type":"address[]"},{"internalType":"bool","name":"_isDEX","type":"bool"}],"name":"batchSetDEXAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"batchSetFeeWhitelist","outputs":[],"stateMutability":"nonpayable","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":"buyEconomicPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTreasuryPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateBuyFee","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"uint256","name":"treasuryAmount","type":"uint256"},{"internalType":"uint256","name":"marketingAmount","type":"uint256"},{"internalType":"uint256","name":"economicAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateSellFee","outputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"uint256","name":"ecosystemAmount","type":"uint256"},{"internalType":"uint256","name":"buybackAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"economicFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ecosystemWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeHandler","outputs":[{"internalType":"contract IFeeHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDEXAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFeeWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastTransactionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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 payable","name":"to","type":"address"}],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellBuybackPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellEcosystemPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_marketingWallet","type":"address"},{"internalType":"address","name":"_economicFeeWallet","type":"address"},{"internalType":"address","name":"_ecosystemWallet","type":"address"},{"internalType":"address","name":"_buybackWallet","type":"address"}],"name":"setAllFeeWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"setBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasury","type":"uint256"},{"internalType":"uint256","name":"_marketing","type":"uint256"},{"internalType":"uint256","name":"_economic","type":"uint256"}],"name":"setBuyFeeDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dexAddress","type":"address"},{"internalType":"bool","name":"_isDEX","type":"bool"}],"name":"setDEXAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handler","type":"address"}],"name":"setFeeHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_marketingWallet","type":"address"},{"internalType":"address","name":"_buybackWallet","type":"address"}],"name":"setFeeWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setFeeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFee","type":"uint256"},{"internalType":"uint256","name":"_sellFee","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setMaxBuyPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTransactionAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pairAddress","type":"address"}],"name":"setPairAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_routerAddress","type":"address"}],"name":"setRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ecosystem","type":"uint256"},{"internalType":"uint256","name":"_buyback","type":"uint256"}],"name":"setSellFeeDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"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":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"stateMutability":"payable","type":"receive"}]

604060a08152346200061f57620034b1803803806200001e8162000623565b928339810190610120818303126200061f5780516001600160401b0381116200061f57826200004f91830162000649565b602082015190926001600160401b0382116200061f576200007291830162000649565b9183820151926200008660608401620006b9565b926200009560808201620006b9565b91620000a460a08301620006b9565b620000b260c08401620006b9565b91620000d0610100620000c860e08701620006b9565b9501620006b9565b86519096906001600160401b0381116200050957600354600181811c9116801562000614575b6020821014620004ea57601f8111620005b0575b50806020601f821160011462000529575f916200051d575b508160011b915f199060031b1c1916176003555b81516001600160401b0381116200050957600454600181811c91168015620004fe575b6020821014620004ea57601f811162000486575b50806020601f8211600114620003fe575f91620003f2575b508160011b915f199060031b1c1916176004555b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055600160ff1960135416176013555115620003e1575115620003d05786158015620003b9575b620003a8576001600160a01b0395861693841580156200039d575b801562000392575b801562000387575b80156200037c575b801562000371575b6200036057918680949392818094620002368a620006ce565b50620002428a6200073e565b506200024e8a620007df565b506200025a8a6200087a565b5060018060a01b0319988960095416176009551687600a541617600a551685600b541617600b551683600c541617600c551690600d541617600d558260805261138880600e556109c480600f55601055806011556012556101db60075560b4600855603260165516908115620003495760025490808201809211620003355760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef915f936002558484528382528584208181540190558551908152a351612b5b908162000916823960805181818161099201526126930152f35b634e487b7160e01b5f52601160045260245ffd5b825163ec442f0560e01b81525f6004820152602490fd5b885163e6c4247b60e01b8152600490fd5b50868616156200021d565b508684161562000215565b50868316156200020d565b508682161562000205565b5086811615620001fd565b87516334bbd58560e01b8152600490fd5b506c01431e0fae6d7217caa00000008711620001e2565b875163220839c960e01b8152600490fd5b88516316c31e7760e21b8152600490fd5b90508301515f62000185565b60045f90815292507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b905b601f19831684106200046d576001935082601f1981161062000454575b5050811b0160045562000199565b8501515f1960f88460031b161c191690555f8062000446565b8581015182556020938401936001909201910162000429565b60045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f830160051c810160208410620004e2575b601f830160051c82018110620004d65750506200016d565b5f8155600101620004be565b5080620004be565b634e487b7160e01b5f52602260045260245ffd5b90607f169062000159565b634e487b7160e01b5f52604160045260245ffd5b90508201515f62000122565b60035f9081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9250601f198416905b81811062000597575090836001949392106200057e575b5050811b0160035562000136565b8401515f1960f88460031b161c191690555f8062000570565b9192602060018192868901518155019401920162000559565b60035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f830160051c8101602084106200060c575b601f830160051c82018110620006005750506200010a565b5f8155600101620005e8565b5080620005e8565b90607f1690620000f6565b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176200050957604052565b919080601f840112156200061f5782516001600160401b03811162000509576020906200067f601f8201601f1916830162000623565b928184528282870101116200061f575f5b818110620006a55750825f9394955001015290565b858101830151848201840152820162000690565b51906001600160a01b03821682036200061f57565b6001600160a01b03165f8181525f8051602062003491833981519152602052604090205460ff1662000739575f8181525f805160206200349183398151915260205260408120805460ff191660011790553391905f80516020620034718339815191528180a4600190565b505f90565b6001600160a01b03165f8181527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b660205260409020547fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775919060ff16620007d957815f52600560205260405f20815f5260205260405f20600160ff1982541617905533915f80516020620034718339815191525f80a4600190565b50505f90565b6001600160a01b03165f8181527fe790de7705c8ebaa80068cd4fc0a095afd63ddb3e1cbffe9ca6f4baedbd7b73960205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929919060ff16620007d957815f52600560205260405f20815f5260205260405f20600160ff1982541617905533915f80516020620034718339815191525f80a4600190565b6001600160a01b03165f8181527f0d83d37fa5ff144438264271d4a0db60f04796f7ebfaabbf8027a0615c0e628760205260409020547fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c919060ff16620007d957815f52600560205260405f20815f5260205260405f20600160ff1982541617905533915f80516020620034718339815191525f80a460019056fe6080604090808252600480361015610021575b505050361561001f575f80fd5b005b5f3560e01c91826301ffc9a714611e2c5750816304646a4914611e0e57816306fdde0314611d1a578163095ea7b314611c725781630b78f9c014611be95781631171bda914611af65781631312030114611ad8578163134dfcd8146119be5781631411774f14611983578163153b0d1e1461190857816318160ddd146118ea5781631e293c101461189d5781631ebe28ef146117fd57816320308bd31461178d57816320689fe51461172d57816323b872dd146116ec578163248a9ca3146116c257816327a14fc2146116755781632f2ff15d1461164d578163313ce567146116325781633268cc561461160a5781633414d351146115ee57816336568abe146115aa578163368f5bd51461155e5781633c93adee146115365781633f3d931e146115185781633f4ba83a146114b157816341cb87fc1461144b57816342966c68146113f1578163435263ef146113c95781634626402b146113a157816348d462b1146112c857816354fd4d501461125c57816358406d97146112345781635c975abb14611211578163630ffad1146110d657816370a08231146110a0578163733140771461103a57816375b238fc1461100057816375f0a87414610fd857816379cc679014610f635781638456cb5914610f0a57816389aad45b14610eec5781638a977cee14610e6d57816391d1485414610e295781639358928b14610df657816395d89b4114610cf45781639757678614610c79578163a217fddf14610c5f578163a22d483214610bf9578163a50ed19b14610b68578163a64e4f8a14610b45578163a6edc87114610b2a578163a8b0898214610b02578163a9059cbb14610a91578163a985ceef14610a6e578163aa4bde2814610a50578163af9c53da146109b5578163c04fcad81461097b578163c8c8ebe41461095d578163cc3fdd4c1461093f578163ce404b23146108f6578163cee6a8df146108d8578163d547741f1461089e578163d802bf4614610808578163d832ae96146107ed578163d89135cd146107cf578163daea862314610793578163dd62ed3e1461074a578163ddaf4c98146106db57508063dded6efb146106bd578063deab8aea14610695578063e0d30d9b14610677578063e75b207314610640578063eaf696b614610622578063ebdf690f146105e8578063ee2fa249146105ca578063eff9e37614610510578063f31cd8a614610470578063f5b541a614610436578063fc07777c1461041b578063fccc2813146103ff5763fe575a87146103c0578080610012565b346103fb5760203660031901126103fb576020906001600160a01b036103e4611ec5565b165f52601b825260ff815f20541690519015158152f35b5f80fd5b50346103fb575f3660031901126103fb576020905161dead8152f35b50346103fb575f3660031901126103fb5760209051600a8152f35b50346103fb575f3660031901126103fb57602090517f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9298152f35b50346103fb5761047f36611f61565b909261048961206a565b5f5b84811061049457005b6001906001600160a01b03806104b36104ae848a8a612032565b612056565b165f52601a6020526104d385855f209060ff801983541691151516179055565b6104e16104ae838989612032565b16841515907f1edda118cbc893a00b312565b4e15205c24b89f3e2fe94825eeebb435318ed1c5f80a30161048b565b50346103fb5761051f36611f61565b929061052961206a565b5f5b81811061053457005b6001906001600160a01b038061054e6104ae84878a612032565b1661055b575b500161052b565b8061056a6104ae84878a612032565b165f527f5099a1039de6e0e1c9d2894ef5f982e2764e4d567c838bbc0a7c90696ae0d4546020918280526105ac89885f209060ff801983541691151516179055565b6105ba6104ae85888b612032565b169186518915158152a25f610554565b50346103fb575f3660031901126103fb576020906010549051908152f35b50346103fb575f3660031901126103fb57602090517fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c8152f35b50346103fb575f3660031901126103fb576020906011549051908152f35b50346103fb5760203660031901126103fb576020906001600160a01b03610665611ec5565b165f52601c8252805f20549051908152f35b50346103fb575f3660031901126103fb576020906008549051908152f35b50346103fb575f3660031901126103fb57600d5490516001600160a01b039091168152602090f35b50346103fb575f3660031901126103fb57602090600e549051908152f35b82346103fb5760203660031901126103fb576107036080926127109182916007549035612012565b049181610712600e5485612012565b0491610720600f5485612012565b0490610735826107308587612025565b612025565b92815194855260208501528301526060820152f35b82346103fb57806003193601126103fb57602090610766611ec5565b61076e611edb565b9060018060a01b038091165f5260018452825f2091165f528252805f20549051908152f35b82346103fb5760203660031901126103fb576020906001600160a01b036107b8611ec5565b165f52601a825260ff815f20541690519015158152f35b82346103fb575f3660031901126103fb576020906021549051908152f35b82346103fb575f3660031901126103fb576020905160648152f35b82346103fb57806003193601126103fb57610821611ec5565b9061082a611f52565b9161083361206a565b6001600160a01b031692831561089057507f5099a1039de6e0e1c9d2894ef5f982e2764e4d567c838bbc0a7c90696ae0d45491602091845f5282805261088782825f209060ff801983541691151516179055565b519015158152a2005b905163e6c4247b60e01b8152fd5b82346103fb57806003193601126103fb5761001f91356108d360016108c1611edb565b93835f5260056020525f2001546120e3565b612894565b82346103fb575f3660031901126103fb576020906012549051908152f35b346103fb575f3660031901126103fb5761090e61206a565b60ff1960135416601355337ffe7742d731ff84398bcd01702c0d2a06ed3e308f22d05ac44709c18d4d9d80625f80a2005b82346103fb575f3660031901126103fb576020906007549051908152f35b82346103fb575f3660031901126103fb576020906014549051908152f35b82346103fb575f3660031901126103fb57602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b82346103fb576109c436611f61565b90926109ce61206a565b5f5b8481106109d957005b6001906001600160a01b03806109f36104ae848a8a612032565b165f52601b602052610a1385855f209060ff801983541691151516179055565b610a216104ae838989612032565b16841515907f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac5f80a3016109d0565b82346103fb575f3660031901126103fb576020906015549051908152f35b82346103fb575f3660031901126103fb5760209060ff6018541690519015158152f35b82346103fb57806003193601126103fb57602090610ad5610ab0611ec5565b610ab8612105565b610ac0612123565b610aca8133612236565b9060243590336122d1565b9060017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055519015158152f35b82346103fb575f3660031901126103fb57601e5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb576020905160be8152f35b82346103fb575f3660031901126103fb5760209060ff6013541690519015158152f35b82346103fb5760607f3e7f8b96388210eba07fff801ce4d482f05a513c701721172fb517a321c4a55b91610b9b36611f07565b610ba692919261206a565b8260175560ff196018541660ff84151516176018558015155f14610bef57610bce9042611ff1565b6019555b60ff601854169060195491815193845215156020840152820152a1005b505f601955610bd2565b346103fb5760203660031901126103fb57610c12611ec5565b610c1a61206a565b601e80546001600160a01b0319166001600160a01b039290921691821790557f4e3030e9edccd17d8523d7758504e05107219cb7c6a736b63a8260722b3cebde5f80a2005b82346103fb575f3660031901126103fb57602090515f8152f35b82346103fb57806003193601126103fb57610c92611ec5565b610ccb610c9d611f52565b8092610ca761206a565b60018060a01b031693845f52601a6020525f209060ff801983541691151516179055565b1515907f1edda118cbc893a00b312565b4e15205c24b89f3e2fe94825eeebb435318ed1c5f80a3005b82346103fb575f3660031901126103fb578051905f9280549060018260011c9160018416938415610dec575b6020948585108114610dd957848852908115610db75750600114610d5e575b610d5a8686610d50828b0383611fbb565b5191829182611e7e565b0390f35b5f9081529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610da45750505082610d5a94610d50928201019486610d3f565b8054868501880152928601928101610d87565b60ff191687860152505050151560051b8301019250610d5082610d5a86610d3f565b602283634e487b7160e01b5f525260245ffd5b92607f1692610d20565b82346103fb575f3660031901126103fb57602090610e2260025461dead5f525f8452825f205490612025565b9051908152f35b82346103fb57806003193601126103fb57602091610e45611edb565b90355f5260058352815f209060018060a01b03165f52825260ff815f20541690519015158152f35b9050346103fb5760203660031901126103fb57803591610e8b61206a565b82151580610ed8575b610ec35782806016557f1edb859355ea8e1bd909ebf0f9b9f2ebdafef629581011191e64afe29c7505975f80a2005b9160249251916335f9c58560e21b8352820152fd5b50600a831080610e94575060648311610e94565b82346103fb575f3660031901126103fb576020906016549051908152f35b82346103fb575f3660031901126103fb5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610f4761206a565b610f4f612105565b600160ff19600654161760065551338152a1005b82346103fb57806003193601126103fb577ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb66020610f9f611ec5565b60243593610fae853384612165565b610fb88583612908565b610fc485602154611ff1565b602155519384526001600160a01b031692a2005b82346103fb575f3660031901126103fb57600a5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb57602090517fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758152f35b346103fb5760203660031901126103fb57611053611ec5565b61105b61206a565b601d80546001600160a01b0319166001600160a01b039290921691821790557fab9d6b7e6a08b170060612fe7982b02517c02c12c50e77db3efebf1f665d52e25f80a2005b82346103fb5760203660031901126103fb576020906001600160a01b036110c5611ec5565b165f525f8252805f20549051908152f35b82346103fb5760a03660031901126103fb576110f0611ec5565b906110f9611edb565b611101611ef1565b6064356001600160a01b038181169492918590036103fb57608435958187168097036103fb57819061113161206a565b169687158015611207575b80156111fd575b80156111f5575b80156111ed575b6111df577fbb779860fdbdcdc2af005a9a313e01857763f3f69144d58a9fffbffe4bd784ab60a0898989898989848a806bffffffffffffffffffffffff8a1b958987600954161760095516928386600a541617600a5516938481600b541617600b558581600c541617600c55600d541617600d558151958652602086015284015260608301526080820152a1005b835163e6c4247b60e01b8152fd5b508615611151565b50851561114a565b5081831615611143565b508185161561113c565b82346103fb575f3660031901126103fb5760209060ff6006541690519015158152f35b82346103fb575f3660031901126103fb57600b5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb5780519080820182811067ffffffffffffffff8211176112b557610d5a935081526011825270312e312e302d61756469742d666978657360781b60208301525191829182611e7e565b604184634e487b7160e01b5f525260245ffd5b9050346103fb5760603660031901126103fb576112e3611ec5565b916112ec611edb565b906112f5611ef1565b936112fe61206a565b6001600160a01b039081169384158015611397575b801561138d575b61137f575091602091837f7951679a4b3f334d5edfe6477eb4a90fe55ac6cb52fa198d4fdf144a78ac47a0946bffffffffffffffffffffffff60a01b938785600954161760095516968784600a541617600a55168092600d541617600d5551908152a3005b825163e6c4247b60e01b8152fd5b508186161561131a565b5081841615611313565b82346103fb575f3660031901126103fb5760095490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb57600c5490516001600160a01b039091168152602090f35b9050346103fb5760203660031901126103fb5735906114108233612908565b61141c82602154611ff1565b602155519081527ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb660203392a2005b346103fb5760203660031901126103fb57611464611ec5565b61146c61206a565b601f80546001600160a01b0319166001600160a01b039290921691821790557fafec26814d7c5e0716cdb68343bdf123509d8bae8a1a877de1c3869411985c555f80a2005b82346103fb575f3660031901126103fb576114ca61206a565b6006549160ff83161561150a577f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020838560ff191660065551338152a1005b9051638dfc202b60e01b8152fd5b82346103fb575f3660031901126103fb57602090600f549051908152f35b82346103fb575f3660031901126103fb57601d5490516001600160a01b039091168152602090f35b346103fb575f3660031901126103fb5761157661206a565b600160ff196013541617601355337fc4ed741be5dc8964a732b95a4e9ea542c2f28bbe576a5ca9e078f173c79f679d5f80a2005b82346103fb57806003193601126103fb576115c3611edb565b90336001600160a01b038316036115df575061001f9135612894565b5163334bd91960e11b81529050fd5b82346103fb575f3660031901126103fb57602090516101ea8152f35b82346103fb575f3660031901126103fb57601f5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb576020905160128152f35b82346103fb57806003193601126103fb5761001f913561167060016108c1611edb565b612816565b9050346103fb5760203660031901126103fb577f4b39c36d20c57d220f61fd25c4349d4435cc03ef6c2a680942f15333c3c3e0019160209135906116b761206a565b8160155551908152a1005b82346103fb5760203660031901126103fb57602091355f52600582526001815f2001549051908152f35b82346103fb57602090610ad561170136611f1d565b9061170a612105565b611712612123565b61171d823385612165565b6117278184612236565b926122d1565b9050346103fb5760203660031901126103fb57610d5a611757916127109283916008549035612012565b049161176560115484612012565b04926117718484612025565b9051938493846040919493926060820195825260208201520152565b82346103fb5761179c36611f07565b6117a461206a565b6127106117b18284611ff1565b036117ee577fbe30c7ebfbbebdd833584e2a6e187d78276935d84f877cbf1aac14cdaf1a6d069350816011558060125582519182526020820152a1005b50505163d138b13f60e01b8152fd5b82346103fb5760603660031901126103fb578135602435916044359361182161206a565b612710611837866118328787611ff1565b611ff1565b0361188f57507f3b654651fb61d8d6b85a769d8eba2857795e301a76d3dd555b909de1a748c6299361188a9183600e5584600f558160105551938493846040919493926060820195825260208201520152565b0390a1005b905163d138b13f60e01b8152fd5b9050346103fb5760203660031901126103fb577f7c1cb3702d8e1fa6d24b12dd90670ab69c6d66d58233103d37da8b07d6b850ac9160209135906118df61206a565b8160145551908152a1005b82346103fb575f3660031901126103fb576020906002549051908152f35b82346103fb57806003193601126103fb57611921611ec5565b61195a61192c611f52565b809261193661206a565b60018060a01b031693845f52601b6020525f209060ff801983541691151516179055565b1515907f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac5f80a3005b82346103fb5760203660031901126103fb576020906001600160a01b036119a8611ec5565b165f5281805260ff815f20541690519015158152f35b9050346103fb5760203660031901126103fb5780356001600160a01b03811692908390036103fb576119ee61206a565b8215611acb5747918215611abd575f80808086885af13d15611ab8573d67ffffffffffffffff8111611aa557835190611a31601f8201601f191660200183611fbb565b81525f60203d92013e5b15611a6d57507f05af21d7340bf49fde03a32c3bcc785015c94acd83531fc6dfbfb93a24c364ca9160209151908152a2005b6020606492519162461bcd60e51b83528201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152fd5b604183634e487b7160e01b5f525260245ffd5b611a3b565b905163de7fd0fb60e01b8152fd5b5163e6c4247b60e01b8152fd5b82346103fb575f3660031901126103fb576020906019549051908152f35b82346103fb57611b0536611f1d565b919290611b1061206a565b6001600160a01b0393841693308514611bd957811694851561137f57825163a9059cbb60e01b81526001600160a01b039092169082019081526020818101859052908290819060400103815f885af18015611bcf57611b97575b507faca8fb252cde442184e5f10e0f2e6e4029e8cd7717cae63559079610702436aa9160209151908152a3005b6020813d602011611bc7575b81611bb060209383611fbb565b810103126103fb5751801515036103fb5784611b6a565b3d9150611ba3565b82513d5f823e3d90fd5b8251634acafb5160e11b81528690fd5b9050346103fb57611bf936611f07565b919092611c0461206a565b6101ea8411611c5c5760be8311611c47575050816007558060085533917f660e7095066fd91b05cfad0851f3cefa62b4a62de319c3c13ef7db8982e785015f80a4005b916024925191634af3e06160e01b8352820152fd5b51634af3e06160e01b8152908101839052602490fd5b82346103fb57806003193601126103fb57611c8b611ec5565b602435903315611d04576001600160a01b0316908115611cee5760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b82346103fb575f3660031901126103fb578051905f9260035460018160011c91600181168015611e04575b6020948585108214611df15750838752908115611dd15750600114611d77575b505050610d5082610d5a940383611fbb565b60035f9081529295507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410611dbe5750505082610d5a94610d509282010194611d65565b8054868501880152928601928101611da2565b60ff1916868501525050151560051b8301019250610d5082610d5a611d65565b602290634e487b7160e01b5f525260245ffd5b92607f1692611d45565b82346103fb575f3660031901126103fb576020906017549051908152f35b90346103fb5760203660031901126103fb57359063ffffffff60e01b82168092036103fb57602091637965db0b60e01b8114908115611e6d575b5015158152f35b6301ffc9a760e01b14905083611e66565b602080825282518183018190529093925f5b828110611eb157505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501611e90565b600435906001600160a01b03821682036103fb57565b602435906001600160a01b03821682036103fb57565b604435906001600160a01b03821682036103fb57565b60409060031901126103fb576004359060243590565b60609060031901126103fb576001600160a01b039060043582811681036103fb579160243590811681036103fb579060443590565b6024359081151582036103fb57565b9060406003198301126103fb5760043567ffffffffffffffff928382116103fb57806023830112156103fb5781600401359384116103fb5760248460051b830101116103fb57602401919060243580151581036103fb5790565b90601f8019910116810190811067ffffffffffffffff821117611fdd57604052565b634e487b7160e01b5f52604160045260245ffd5b91908201809211611ffe57565b634e487b7160e01b5f52601160045260245ffd5b81810292918115918404141715611ffe57565b91908203918211611ffe57565b91908110156120425760051b0190565b634e487b7160e01b5f52603260045260245ffd5b356001600160a01b03811681036103fb5790565b335f9081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b660205260409020547fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217759060ff16156120c55750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b805f52600560205260405f20335f5260205260ff60405f205416156120c55750565b60ff6006541661211157565b60405163d93c066560e01b8152600490fd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0060028154146121535760029055565b604051633ee5aeb560e01b8152600490fd5b919060018060a01b0380931692835f526001602052604093845f2091831691825f52602052845f2054925f1984106121a0575b505050505050565b848410612202575080156121eb5781156121d4575f526001602052835f20905f5260205203905f20555f8080808080612198565b8451634a1406b160e11b81525f6004820152602490fd5b845163e602df0560e01b81525f6004820152602490fd5b8551637dc7a0d960e11b81526001600160a01b039190911660048201526024810184905260448101859052606490fd5b0390fd5b601e546001600160a01b03929083169183168083149081156122c3575b81156122ad575b506122a5578216908114918215612297575b508115612281575b5061227d575f90565b5f90565b90505f526020805260ff60405f2054165f612274565b601f5416811491505f61226c565b505050600190565b90505f526020805260ff60405f2054165f61225a565b601f54851681149150612253565b9392919360018060a01b0380821695865f52602090601b825260ff97604089815f2054168015612805575b6127d2578960185416806127c7575b806127b3575b612729575b60145480151580612720575b612703575087806126f8575b806126e2575b612688575b60155480151580612672575b80612655575b61262357506123a09899601a5f9586945f52528080835f20541692878a165f525f2054169060135416918261261a575b5081612611575b506125d6575b61239191612025565b94816123a5575b505050612a63565b600190565b6123b0823086612a63565b156124fe5761271091826123c6600e5484612012565b04926123d4600f5484612012565b04906123e4826107308686612025565b91841515806124f1575b6124dd575b801515806124d0575b6124bc575b821515806124af575b61249b575b5f948260095416612493575b5081600a5416612482575b50600b5416612471575b50808210612444575b50505b5f8080612398565b81816107306124596124679561245f95612025565b306129bf565b602154611ff1565b6021555f80612439565b61247b9192611ff1565b905f612430565b61248c9194611ff1565b925f612426565b94505f61241b565b6124aa8383600b541630612a63565b61240f565b5081600b5416151561240a565b6124cb8183600a541630612a63565b612401565b5081600a541615156123fc565b6124ec85836009541630612a63565b6123f3565b50816009541615156123ee565b61271061250d60115483612012565b04916125198383612025565b90831515806125c9575b6125b5575b811515806125a8575b612594575b5f9381600c541661258c575b50600d541661257b575b5080821061255c575b505061243c565b81816107306124596125719561245f95612025565b6021555f80612555565b6125859192611ff1565b905f61254c565b93505f612542565b6125a38282600d541630612a63565b612536565b5080600d54161515612531565b6125c48482600c541630612a63565b612528565b5080600c54161515612523565b508515612609576007545b806125ee575b5081612388565b8192506126016127109161239193612012565b0491906125e7565b6008546125e1565b9050155f612382565b1591505f61237b565b6044925061263c845f87898c16825252835f2054611ff1565b915191633a93861d60e01b835260048301526024820152fd5b508588165f525f85528061266c85845f2054611ff1565b1161234b565b508588165f52601a85528a825f20541615612345565b6127106126b76016547f0000000000000000000000000000000000000000000000000000000000000000612012565b048084116126c55750612339565b839060449251916311406cbf60e21b835260048301526024820152fd5b508487165f52601a845289815f20541615612334565b50601654151561232e565b8390604492519163c3516a7760e01b835260048301526024820152fd5b50808411612322565b815f52601c8452805f2054801515908161279d575b5061275457815f52601c845242815f2055612316565b85601c85845f525261223261276f835f205460175490611ff1565b92516361083b7f60e01b81526001600160a01b03909216600483015260248201929092529081906044820190565b6127ab915060175490611ff1565b42105f61273e565b50815f52601a845289815f20541615612311565b50601954421061230b565b8486888c6024955f52845f2054165f146127fd5750915b5163d33f19e760e01b815291166004820152fd5b9050916127e9565b508487165f5289815f2054166122fc565b90815f52600560205260405f209060018060a01b031690815f5260205260ff60405f205416155f1461288e57815f52600560205260405f20815f5260205260405f20600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b50505f90565b90815f52600560205260405f209060018060a01b031690815f5260205260ff60405f2054165f1461288e57815f52600560205260405f20815f5260205260405f2060ff19815416905533917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b91906001600160a01b0383169081156129a757815f525f60205260405f20549381851061297557506020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef925f95968587528684520360408620558060025403600255604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b6001600160a01b0381169081156129a757815f525f60205260405f205490838210612a3157508290825f525f6020520360405f20557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602061dead93845f5260405f20818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b916001600160a01b038084169283156129a75716928315612b0d57825f525f60205260405f205490828210612adb5750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092855f525f84520360405f2055845f5260405f20818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b60405163ec442f0560e01b81525f6004820152602490fdfea26469706673582212208c262f359098b3c209e5ef8a1f9262b0a12a397d9a94b66f7dc8206d01839ae264736f6c634300081800332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000a18f07d736b90be550000000000000000000000000000000adecc2e1d4e5a4493cc1d8611bfda4b63c4495b6000000000000000000000000b471b368dcbb683c5b21af43d1f2d4474b1c624f00000000000000000000000005249f91d99d7e32cca41072daba95604219a1070000000000000000000000008182a76917e337d14264449bc22150331a1525ed000000000000000000000000c1f390779ae8ba9eb31f34908d369972b99c25f1000000000000000000000000d218e080c544aae8c9f8e683dce44ba0d2a562a00000000000000000000000000000000000000000000000000000000000000012536f6c6172697320477265656e20436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004534f474300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604090808252600480361015610021575b505050361561001f575f80fd5b005b5f3560e01c91826301ffc9a714611e2c5750816304646a4914611e0e57816306fdde0314611d1a578163095ea7b314611c725781630b78f9c014611be95781631171bda914611af65781631312030114611ad8578163134dfcd8146119be5781631411774f14611983578163153b0d1e1461190857816318160ddd146118ea5781631e293c101461189d5781631ebe28ef146117fd57816320308bd31461178d57816320689fe51461172d57816323b872dd146116ec578163248a9ca3146116c257816327a14fc2146116755781632f2ff15d1461164d578163313ce567146116325781633268cc561461160a5781633414d351146115ee57816336568abe146115aa578163368f5bd51461155e5781633c93adee146115365781633f3d931e146115185781633f4ba83a146114b157816341cb87fc1461144b57816342966c68146113f1578163435263ef146113c95781634626402b146113a157816348d462b1146112c857816354fd4d501461125c57816358406d97146112345781635c975abb14611211578163630ffad1146110d657816370a08231146110a0578163733140771461103a57816375b238fc1461100057816375f0a87414610fd857816379cc679014610f635781638456cb5914610f0a57816389aad45b14610eec5781638a977cee14610e6d57816391d1485414610e295781639358928b14610df657816395d89b4114610cf45781639757678614610c79578163a217fddf14610c5f578163a22d483214610bf9578163a50ed19b14610b68578163a64e4f8a14610b45578163a6edc87114610b2a578163a8b0898214610b02578163a9059cbb14610a91578163a985ceef14610a6e578163aa4bde2814610a50578163af9c53da146109b5578163c04fcad81461097b578163c8c8ebe41461095d578163cc3fdd4c1461093f578163ce404b23146108f6578163cee6a8df146108d8578163d547741f1461089e578163d802bf4614610808578163d832ae96146107ed578163d89135cd146107cf578163daea862314610793578163dd62ed3e1461074a578163ddaf4c98146106db57508063dded6efb146106bd578063deab8aea14610695578063e0d30d9b14610677578063e75b207314610640578063eaf696b614610622578063ebdf690f146105e8578063ee2fa249146105ca578063eff9e37614610510578063f31cd8a614610470578063f5b541a614610436578063fc07777c1461041b578063fccc2813146103ff5763fe575a87146103c0578080610012565b346103fb5760203660031901126103fb576020906001600160a01b036103e4611ec5565b165f52601b825260ff815f20541690519015158152f35b5f80fd5b50346103fb575f3660031901126103fb576020905161dead8152f35b50346103fb575f3660031901126103fb5760209051600a8152f35b50346103fb575f3660031901126103fb57602090517f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9298152f35b50346103fb5761047f36611f61565b909261048961206a565b5f5b84811061049457005b6001906001600160a01b03806104b36104ae848a8a612032565b612056565b165f52601a6020526104d385855f209060ff801983541691151516179055565b6104e16104ae838989612032565b16841515907f1edda118cbc893a00b312565b4e15205c24b89f3e2fe94825eeebb435318ed1c5f80a30161048b565b50346103fb5761051f36611f61565b929061052961206a565b5f5b81811061053457005b6001906001600160a01b038061054e6104ae84878a612032565b1661055b575b500161052b565b8061056a6104ae84878a612032565b165f527f5099a1039de6e0e1c9d2894ef5f982e2764e4d567c838bbc0a7c90696ae0d4546020918280526105ac89885f209060ff801983541691151516179055565b6105ba6104ae85888b612032565b169186518915158152a25f610554565b50346103fb575f3660031901126103fb576020906010549051908152f35b50346103fb575f3660031901126103fb57602090517fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c8152f35b50346103fb575f3660031901126103fb576020906011549051908152f35b50346103fb5760203660031901126103fb576020906001600160a01b03610665611ec5565b165f52601c8252805f20549051908152f35b50346103fb575f3660031901126103fb576020906008549051908152f35b50346103fb575f3660031901126103fb57600d5490516001600160a01b039091168152602090f35b50346103fb575f3660031901126103fb57602090600e549051908152f35b82346103fb5760203660031901126103fb576107036080926127109182916007549035612012565b049181610712600e5485612012565b0491610720600f5485612012565b0490610735826107308587612025565b612025565b92815194855260208501528301526060820152f35b82346103fb57806003193601126103fb57602090610766611ec5565b61076e611edb565b9060018060a01b038091165f5260018452825f2091165f528252805f20549051908152f35b82346103fb5760203660031901126103fb576020906001600160a01b036107b8611ec5565b165f52601a825260ff815f20541690519015158152f35b82346103fb575f3660031901126103fb576020906021549051908152f35b82346103fb575f3660031901126103fb576020905160648152f35b82346103fb57806003193601126103fb57610821611ec5565b9061082a611f52565b9161083361206a565b6001600160a01b031692831561089057507f5099a1039de6e0e1c9d2894ef5f982e2764e4d567c838bbc0a7c90696ae0d45491602091845f5282805261088782825f209060ff801983541691151516179055565b519015158152a2005b905163e6c4247b60e01b8152fd5b82346103fb57806003193601126103fb5761001f91356108d360016108c1611edb565b93835f5260056020525f2001546120e3565b612894565b82346103fb575f3660031901126103fb576020906012549051908152f35b346103fb575f3660031901126103fb5761090e61206a565b60ff1960135416601355337ffe7742d731ff84398bcd01702c0d2a06ed3e308f22d05ac44709c18d4d9d80625f80a2005b82346103fb575f3660031901126103fb576020906007549051908152f35b82346103fb575f3660031901126103fb576020906014549051908152f35b82346103fb575f3660031901126103fb57602090517f0000000000000000000000000000000000000000a18f07d736b90be5500000008152f35b82346103fb576109c436611f61565b90926109ce61206a565b5f5b8481106109d957005b6001906001600160a01b03806109f36104ae848a8a612032565b165f52601b602052610a1385855f209060ff801983541691151516179055565b610a216104ae838989612032565b16841515907f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac5f80a3016109d0565b82346103fb575f3660031901126103fb576020906015549051908152f35b82346103fb575f3660031901126103fb5760209060ff6018541690519015158152f35b82346103fb57806003193601126103fb57602090610ad5610ab0611ec5565b610ab8612105565b610ac0612123565b610aca8133612236565b9060243590336122d1565b9060017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055519015158152f35b82346103fb575f3660031901126103fb57601e5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb576020905160be8152f35b82346103fb575f3660031901126103fb5760209060ff6013541690519015158152f35b82346103fb5760607f3e7f8b96388210eba07fff801ce4d482f05a513c701721172fb517a321c4a55b91610b9b36611f07565b610ba692919261206a565b8260175560ff196018541660ff84151516176018558015155f14610bef57610bce9042611ff1565b6019555b60ff601854169060195491815193845215156020840152820152a1005b505f601955610bd2565b346103fb5760203660031901126103fb57610c12611ec5565b610c1a61206a565b601e80546001600160a01b0319166001600160a01b039290921691821790557f4e3030e9edccd17d8523d7758504e05107219cb7c6a736b63a8260722b3cebde5f80a2005b82346103fb575f3660031901126103fb57602090515f8152f35b82346103fb57806003193601126103fb57610c92611ec5565b610ccb610c9d611f52565b8092610ca761206a565b60018060a01b031693845f52601a6020525f209060ff801983541691151516179055565b1515907f1edda118cbc893a00b312565b4e15205c24b89f3e2fe94825eeebb435318ed1c5f80a3005b82346103fb575f3660031901126103fb578051905f9280549060018260011c9160018416938415610dec575b6020948585108114610dd957848852908115610db75750600114610d5e575b610d5a8686610d50828b0383611fbb565b5191829182611e7e565b0390f35b5f9081529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610da45750505082610d5a94610d50928201019486610d3f565b8054868501880152928601928101610d87565b60ff191687860152505050151560051b8301019250610d5082610d5a86610d3f565b602283634e487b7160e01b5f525260245ffd5b92607f1692610d20565b82346103fb575f3660031901126103fb57602090610e2260025461dead5f525f8452825f205490612025565b9051908152f35b82346103fb57806003193601126103fb57602091610e45611edb565b90355f5260058352815f209060018060a01b03165f52825260ff815f20541690519015158152f35b9050346103fb5760203660031901126103fb57803591610e8b61206a565b82151580610ed8575b610ec35782806016557f1edb859355ea8e1bd909ebf0f9b9f2ebdafef629581011191e64afe29c7505975f80a2005b9160249251916335f9c58560e21b8352820152fd5b50600a831080610e94575060648311610e94565b82346103fb575f3660031901126103fb576020906016549051908152f35b82346103fb575f3660031901126103fb5760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25891610f4761206a565b610f4f612105565b600160ff19600654161760065551338152a1005b82346103fb57806003193601126103fb577ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb66020610f9f611ec5565b60243593610fae853384612165565b610fb88583612908565b610fc485602154611ff1565b602155519384526001600160a01b031692a2005b82346103fb575f3660031901126103fb57600a5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb57602090517fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758152f35b346103fb5760203660031901126103fb57611053611ec5565b61105b61206a565b601d80546001600160a01b0319166001600160a01b039290921691821790557fab9d6b7e6a08b170060612fe7982b02517c02c12c50e77db3efebf1f665d52e25f80a2005b82346103fb5760203660031901126103fb576020906001600160a01b036110c5611ec5565b165f525f8252805f20549051908152f35b82346103fb5760a03660031901126103fb576110f0611ec5565b906110f9611edb565b611101611ef1565b6064356001600160a01b038181169492918590036103fb57608435958187168097036103fb57819061113161206a565b169687158015611207575b80156111fd575b80156111f5575b80156111ed575b6111df577fbb779860fdbdcdc2af005a9a313e01857763f3f69144d58a9fffbffe4bd784ab60a0898989898989848a806bffffffffffffffffffffffff8a1b958987600954161760095516928386600a541617600a5516938481600b541617600b558581600c541617600c55600d541617600d558151958652602086015284015260608301526080820152a1005b835163e6c4247b60e01b8152fd5b508615611151565b50851561114a565b5081831615611143565b508185161561113c565b82346103fb575f3660031901126103fb5760209060ff6006541690519015158152f35b82346103fb575f3660031901126103fb57600b5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb5780519080820182811067ffffffffffffffff8211176112b557610d5a935081526011825270312e312e302d61756469742d666978657360781b60208301525191829182611e7e565b604184634e487b7160e01b5f525260245ffd5b9050346103fb5760603660031901126103fb576112e3611ec5565b916112ec611edb565b906112f5611ef1565b936112fe61206a565b6001600160a01b039081169384158015611397575b801561138d575b61137f575091602091837f7951679a4b3f334d5edfe6477eb4a90fe55ac6cb52fa198d4fdf144a78ac47a0946bffffffffffffffffffffffff60a01b938785600954161760095516968784600a541617600a55168092600d541617600d5551908152a3005b825163e6c4247b60e01b8152fd5b508186161561131a565b5081841615611313565b82346103fb575f3660031901126103fb5760095490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb57600c5490516001600160a01b039091168152602090f35b9050346103fb5760203660031901126103fb5735906114108233612908565b61141c82602154611ff1565b602155519081527ffd38818f5291bf0bb3a2a48aadc06ba8757865d1dabd804585338aab3009dcb660203392a2005b346103fb5760203660031901126103fb57611464611ec5565b61146c61206a565b601f80546001600160a01b0319166001600160a01b039290921691821790557fafec26814d7c5e0716cdb68343bdf123509d8bae8a1a877de1c3869411985c555f80a2005b82346103fb575f3660031901126103fb576114ca61206a565b6006549160ff83161561150a577f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020838560ff191660065551338152a1005b9051638dfc202b60e01b8152fd5b82346103fb575f3660031901126103fb57602090600f549051908152f35b82346103fb575f3660031901126103fb57601d5490516001600160a01b039091168152602090f35b346103fb575f3660031901126103fb5761157661206a565b600160ff196013541617601355337fc4ed741be5dc8964a732b95a4e9ea542c2f28bbe576a5ca9e078f173c79f679d5f80a2005b82346103fb57806003193601126103fb576115c3611edb565b90336001600160a01b038316036115df575061001f9135612894565b5163334bd91960e11b81529050fd5b82346103fb575f3660031901126103fb57602090516101ea8152f35b82346103fb575f3660031901126103fb57601f5490516001600160a01b039091168152602090f35b82346103fb575f3660031901126103fb576020905160128152f35b82346103fb57806003193601126103fb5761001f913561167060016108c1611edb565b612816565b9050346103fb5760203660031901126103fb577f4b39c36d20c57d220f61fd25c4349d4435cc03ef6c2a680942f15333c3c3e0019160209135906116b761206a565b8160155551908152a1005b82346103fb5760203660031901126103fb57602091355f52600582526001815f2001549051908152f35b82346103fb57602090610ad561170136611f1d565b9061170a612105565b611712612123565b61171d823385612165565b6117278184612236565b926122d1565b9050346103fb5760203660031901126103fb57610d5a611757916127109283916008549035612012565b049161176560115484612012565b04926117718484612025565b9051938493846040919493926060820195825260208201520152565b82346103fb5761179c36611f07565b6117a461206a565b6127106117b18284611ff1565b036117ee577fbe30c7ebfbbebdd833584e2a6e187d78276935d84f877cbf1aac14cdaf1a6d069350816011558060125582519182526020820152a1005b50505163d138b13f60e01b8152fd5b82346103fb5760603660031901126103fb578135602435916044359361182161206a565b612710611837866118328787611ff1565b611ff1565b0361188f57507f3b654651fb61d8d6b85a769d8eba2857795e301a76d3dd555b909de1a748c6299361188a9183600e5584600f558160105551938493846040919493926060820195825260208201520152565b0390a1005b905163d138b13f60e01b8152fd5b9050346103fb5760203660031901126103fb577f7c1cb3702d8e1fa6d24b12dd90670ab69c6d66d58233103d37da8b07d6b850ac9160209135906118df61206a565b8160145551908152a1005b82346103fb575f3660031901126103fb576020906002549051908152f35b82346103fb57806003193601126103fb57611921611ec5565b61195a61192c611f52565b809261193661206a565b60018060a01b031693845f52601b6020525f209060ff801983541691151516179055565b1515907f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac5f80a3005b82346103fb5760203660031901126103fb576020906001600160a01b036119a8611ec5565b165f5281805260ff815f20541690519015158152f35b9050346103fb5760203660031901126103fb5780356001600160a01b03811692908390036103fb576119ee61206a565b8215611acb5747918215611abd575f80808086885af13d15611ab8573d67ffffffffffffffff8111611aa557835190611a31601f8201601f191660200183611fbb565b81525f60203d92013e5b15611a6d57507f05af21d7340bf49fde03a32c3bcc785015c94acd83531fc6dfbfb93a24c364ca9160209151908152a2005b6020606492519162461bcd60e51b83528201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152fd5b604183634e487b7160e01b5f525260245ffd5b611a3b565b905163de7fd0fb60e01b8152fd5b5163e6c4247b60e01b8152fd5b82346103fb575f3660031901126103fb576020906019549051908152f35b82346103fb57611b0536611f1d565b919290611b1061206a565b6001600160a01b0393841693308514611bd957811694851561137f57825163a9059cbb60e01b81526001600160a01b039092169082019081526020818101859052908290819060400103815f885af18015611bcf57611b97575b507faca8fb252cde442184e5f10e0f2e6e4029e8cd7717cae63559079610702436aa9160209151908152a3005b6020813d602011611bc7575b81611bb060209383611fbb565b810103126103fb5751801515036103fb5784611b6a565b3d9150611ba3565b82513d5f823e3d90fd5b8251634acafb5160e11b81528690fd5b9050346103fb57611bf936611f07565b919092611c0461206a565b6101ea8411611c5c5760be8311611c47575050816007558060085533917f660e7095066fd91b05cfad0851f3cefa62b4a62de319c3c13ef7db8982e785015f80a4005b916024925191634af3e06160e01b8352820152fd5b51634af3e06160e01b8152908101839052602490fd5b82346103fb57806003193601126103fb57611c8b611ec5565b602435903315611d04576001600160a01b0316908115611cee5760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b82346103fb575f3660031901126103fb578051905f9260035460018160011c91600181168015611e04575b6020948585108214611df15750838752908115611dd15750600114611d77575b505050610d5082610d5a940383611fbb565b60035f9081529295507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410611dbe5750505082610d5a94610d509282010194611d65565b8054868501880152928601928101611da2565b60ff1916868501525050151560051b8301019250610d5082610d5a611d65565b602290634e487b7160e01b5f525260245ffd5b92607f1692611d45565b82346103fb575f3660031901126103fb576020906017549051908152f35b90346103fb5760203660031901126103fb57359063ffffffff60e01b82168092036103fb57602091637965db0b60e01b8114908115611e6d575b5015158152f35b6301ffc9a760e01b14905083611e66565b602080825282518183018190529093925f5b828110611eb157505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501611e90565b600435906001600160a01b03821682036103fb57565b602435906001600160a01b03821682036103fb57565b604435906001600160a01b03821682036103fb57565b60409060031901126103fb576004359060243590565b60609060031901126103fb576001600160a01b039060043582811681036103fb579160243590811681036103fb579060443590565b6024359081151582036103fb57565b9060406003198301126103fb5760043567ffffffffffffffff928382116103fb57806023830112156103fb5781600401359384116103fb5760248460051b830101116103fb57602401919060243580151581036103fb5790565b90601f8019910116810190811067ffffffffffffffff821117611fdd57604052565b634e487b7160e01b5f52604160045260245ffd5b91908201809211611ffe57565b634e487b7160e01b5f52601160045260245ffd5b81810292918115918404141715611ffe57565b91908203918211611ffe57565b91908110156120425760051b0190565b634e487b7160e01b5f52603260045260245ffd5b356001600160a01b03811681036103fb5790565b335f9081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b660205260409020547fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217759060ff16156120c55750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b805f52600560205260405f20335f5260205260ff60405f205416156120c55750565b60ff6006541661211157565b60405163d93c066560e01b8152600490fd5b7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0060028154146121535760029055565b604051633ee5aeb560e01b8152600490fd5b919060018060a01b0380931692835f526001602052604093845f2091831691825f52602052845f2054925f1984106121a0575b505050505050565b848410612202575080156121eb5781156121d4575f526001602052835f20905f5260205203905f20555f8080808080612198565b8451634a1406b160e11b81525f6004820152602490fd5b845163e602df0560e01b81525f6004820152602490fd5b8551637dc7a0d960e11b81526001600160a01b039190911660048201526024810184905260448101859052606490fd5b0390fd5b601e546001600160a01b03929083169183168083149081156122c3575b81156122ad575b506122a5578216908114918215612297575b508115612281575b5061227d575f90565b5f90565b90505f526020805260ff60405f2054165f612274565b601f5416811491505f61226c565b505050600190565b90505f526020805260ff60405f2054165f61225a565b601f54851681149150612253565b9392919360018060a01b0380821695865f52602090601b825260ff97604089815f2054168015612805575b6127d2578960185416806127c7575b806127b3575b612729575b60145480151580612720575b612703575087806126f8575b806126e2575b612688575b60155480151580612672575b80612655575b61262357506123a09899601a5f9586945f52528080835f20541692878a165f525f2054169060135416918261261a575b5081612611575b506125d6575b61239191612025565b94816123a5575b505050612a63565b600190565b6123b0823086612a63565b156124fe5761271091826123c6600e5484612012565b04926123d4600f5484612012565b04906123e4826107308686612025565b91841515806124f1575b6124dd575b801515806124d0575b6124bc575b821515806124af575b61249b575b5f948260095416612493575b5081600a5416612482575b50600b5416612471575b50808210612444575b50505b5f8080612398565b81816107306124596124679561245f95612025565b306129bf565b602154611ff1565b6021555f80612439565b61247b9192611ff1565b905f612430565b61248c9194611ff1565b925f612426565b94505f61241b565b6124aa8383600b541630612a63565b61240f565b5081600b5416151561240a565b6124cb8183600a541630612a63565b612401565b5081600a541615156123fc565b6124ec85836009541630612a63565b6123f3565b50816009541615156123ee565b61271061250d60115483612012565b04916125198383612025565b90831515806125c9575b6125b5575b811515806125a8575b612594575b5f9381600c541661258c575b50600d541661257b575b5080821061255c575b505061243c565b81816107306124596125719561245f95612025565b6021555f80612555565b6125859192611ff1565b905f61254c565b93505f612542565b6125a38282600d541630612a63565b612536565b5080600d54161515612531565b6125c48482600c541630612a63565b612528565b5080600c54161515612523565b508515612609576007545b806125ee575b5081612388565b8192506126016127109161239193612012565b0491906125e7565b6008546125e1565b9050155f612382565b1591505f61237b565b6044925061263c845f87898c16825252835f2054611ff1565b915191633a93861d60e01b835260048301526024820152fd5b508588165f525f85528061266c85845f2054611ff1565b1161234b565b508588165f52601a85528a825f20541615612345565b6127106126b76016547f0000000000000000000000000000000000000000a18f07d736b90be550000000612012565b048084116126c55750612339565b839060449251916311406cbf60e21b835260048301526024820152fd5b508487165f52601a845289815f20541615612334565b50601654151561232e565b8390604492519163c3516a7760e01b835260048301526024820152fd5b50808411612322565b815f52601c8452805f2054801515908161279d575b5061275457815f52601c845242815f2055612316565b85601c85845f525261223261276f835f205460175490611ff1565b92516361083b7f60e01b81526001600160a01b03909216600483015260248201929092529081906044820190565b6127ab915060175490611ff1565b42105f61273e565b50815f52601a845289815f20541615612311565b50601954421061230b565b8486888c6024955f52845f2054165f146127fd5750915b5163d33f19e760e01b815291166004820152fd5b9050916127e9565b508487165f5289815f2054166122fc565b90815f52600560205260405f209060018060a01b031690815f5260205260ff60405f205416155f1461288e57815f52600560205260405f20815f5260205260405f20600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b50505f90565b90815f52600560205260405f209060018060a01b031690815f5260205260ff60405f2054165f1461288e57815f52600560205260405f20815f5260205260405f2060ff19815416905533917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b91906001600160a01b0383169081156129a757815f525f60205260405f20549381851061297557506020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef925f95968587528684520360408620558060025403600255604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b6001600160a01b0381169081156129a757815f525f60205260405f205490838210612a3157508290825f525f6020520360405f20557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602061dead93845f5260405f20818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b916001600160a01b038084169283156129a75716928315612b0d57825f525f60205260405f205490828210612adb5750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092855f525f84520360405f2055845f5260405f20818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b60405163ec442f0560e01b81525f6004820152602490fdfea26469706673582212208c262f359098b3c209e5ef8a1f9262b0a12a397d9a94b66f7dc8206d01839ae264736f6c63430008180033

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

000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000a18f07d736b90be550000000000000000000000000000000adecc2e1d4e5a4493cc1d8611bfda4b63c4495b6000000000000000000000000b471b368dcbb683c5b21af43d1f2d4474b1c624f00000000000000000000000005249f91d99d7e32cca41072daba95604219a1070000000000000000000000008182a76917e337d14264449bc22150331a1525ed000000000000000000000000c1f390779ae8ba9eb31f34908d369972b99c25f1000000000000000000000000d218e080c544aae8c9f8e683dce44ba0d2a562a00000000000000000000000000000000000000000000000000000000000000012536f6c6172697320477265656e20436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004534f474300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Solaris Green Coin
Arg [1] : symbol (string): SOGC
Arg [2] : totalSupply (uint256): 50000000000000000000000000000
Arg [3] : _treasuryWallet (address): 0xAdECC2e1D4e5a4493cc1D8611BfdA4b63C4495B6
Arg [4] : _marketingWallet (address): 0xb471b368Dcbb683c5B21AF43D1F2D4474B1c624F
Arg [5] : _economicFeeWallet (address): 0x05249F91d99D7E32ccA41072dabA95604219A107
Arg [6] : _ecosystemWallet (address): 0x8182A76917E337D14264449bc22150331A1525ed
Arg [7] : _buybackWallet (address): 0xc1F390779aE8bA9eb31F34908D369972B99C25F1
Arg [8] : admin (address): 0xD218e080C544AaE8c9F8e683DcE44BA0d2a562a0

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000a18f07d736b90be550000000
Arg [3] : 000000000000000000000000adecc2e1d4e5a4493cc1d8611bfda4b63c4495b6
Arg [4] : 000000000000000000000000b471b368dcbb683c5b21af43d1f2d4474b1c624f
Arg [5] : 00000000000000000000000005249f91d99d7e32cca41072daba95604219a107
Arg [6] : 0000000000000000000000008182a76917e337d14264449bc22150331a1525ed
Arg [7] : 000000000000000000000000c1f390779ae8ba9eb31f34908d369972b99c25f1
Arg [8] : 000000000000000000000000d218e080c544aae8c9f8e683dce44ba0d2a562a0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [10] : 536f6c6172697320477265656e20436f696e0000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 534f474300000000000000000000000000000000000000000000000000000000


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

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