ETH Price: $3,333.06 (-1.51%)
Gas: 11 Gwei

Token

From the River to the Sea (FTRTTS)
 

Overview

Max Total Supply

8,100,000,000 FTRTTS

Holders

29

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 FTRTTS

Value
$0.00
0xa29d512065abf973239595f562fe1ec90b9b734b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
paris EvmVersion
File 1 of 22 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/access/Ownable.sol";
import "./DividendPayingToken.sol";
import "./libraries/IterableMapping.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IUniswapV2Router.sol";
import "./interfaces/IUniswapV2Factory.sol";
import "./interfaces/ITracker.sol";
import "./TokenTracker.sol";

/**
 * Social media :
 * Website: https://www.frogs4gaza.com/
 * Telegram: https://t.me/+SKBv_yfNj2kwZjBh
 * Twitter: https://twitter.com/ftrttstokeneth
 * Instagram: https://www.instagram.com/ftrttstokeneth/
 */

contract Token is TokenTracker {
    using SafeERC20 for ERC20;

    uint256 constant BASE = 1 ether;
    uint256 constant REWARDS_FEE = 75;
    uint256 constant DEV_FEE = 25;
    uint256 constant FUND_FEE = 50;
    uint256 constant MILLE = 1000;
    uint256 constant TOTAL_FEES = REWARDS_FEE + DEV_FEE + FUND_FEE;
    address constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    IUniswapV2Router02 constant uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    uint256 public constant maxSupply = 9_000_000_000 * BASE; // Initial supply

    uint256 buyLimitTimestamp; // buy limit for the first 5 minutes
    uint256 liquidateTokensAtAmount = 900_000 * BASE; // minimum held in token contract to process fees
    uint256 public yearlyUnlock;

    address uniswapV2Pair;
    address public devAddress;
    address public fundAddress;

    bool liquidating;
    bool isBuysTaxable;
    bool public tradingEnabled; // whether the token can already be traded

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event DevWalletUpdated(address indexed newDevWallet, address indexed oldDevWallet);

    event ExcludeFromFees(address indexed account, bool exclude);

    constructor(address _devAddress, address _fundAddress)
        DividendToken("From the River to the Sea", "FTRTTS")
        Ownable(msg.sender)
    {
        // exclude from paying fees or having max transaction amount
        _excludeFromFees(msg.sender, true);
        _excludeFromFees(_devAddress, true);
        _excludeFromFees(address(this), true);
        // excludeFromFees(_fundAddress, true);
        _excludeFromDividends(address(uniswapV2Router), true);
        _excludeFromDividends(msg.sender, true);
        _excludeFromDividends(address(this), true);
        // update the dev address
        devAddress = _devAddress;
        fundAddress = _fundAddress;
        // enable owner wallet to send tokens before presales are over.
        users[address(0)].canTransferBeforeTradingIsEnabled = true;
        users[msg.sender].canTransferBeforeTradingIsEnabled = true;

        uint256 _supply = maxSupply; // Initial supply
        _supply -= maxSupply * 10 / 100; // 10% burn
        _mint(msg.sender, _supply);

        //  Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), WETH);
        uniswapV2Pair = _uniswapV2Pair;
        _setAutomatedMarketMakerPair(uniswapV2Pair, true);
        _approve(address(this), address(uniswapV2Router), type(uint256).max);

        isBuysTaxable = true;
        yearlyUnlock = block.timestamp + 365 days;
    }

    /// @dev Distributes dividends whenever ether is paid to this contract.
    receive() external payable {
        if (msg.sender == address(uniswapV2Router)) {
            uint256 dividends = msg.value;
            uint256 devTokens = dividends * DEV_FEE / TOTAL_FEES;
            sendEth(devAddress, devTokens);
            uint256 fundTokens = dividends * FUND_FEE / TOTAL_FEES;
            sendEth(fundAddress, fundTokens);
            uint256 rewardTokens = dividends - (devTokens + fundTokens);
            _distributeDividends(rewardTokens);
        } else {
            sendEth(fundAddress, msg.value);
        }
    }

    // owner restricted
    function activate() public onlyOwner {
        require(!tradingEnabled, "Trading is already enabled");
        tradingEnabled = true;
        buyLimitTimestamp = block.timestamp + 3600;
    }

    function addTransferBeforeTrading(address account) external onlyOwner {
        users[account].canTransferBeforeTradingIsEnabled = true;
    }

    function blackList(address _user, bool value) external onlyOwner {
        require(users[_user].isBlacklisted != value, "blacklist set");
        users[_user].isBlacklisted = value;
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "Immutbale Pair");
        _setAutomatedMarketMakerPair(pair, value);
    }

    function updateDevWallet(address newDevWallet) external onlyOwner {
        require(newDevWallet != devAddress, "dev wallet set!");
        _excludeFromFees(newDevWallet, true);
        emit DevWalletUpdated(newDevWallet, devAddress);
        devAddress = newDevWallet;
    }

    function recoverERC20(address token) external onlyOwner {
        require(token != address(this), "invalid token");
        ERC20(token).safeTransfer(owner(), ERC20(token).balanceOf(address(this)));
    }

    // any unclaimed rewards will yearly be distributed 33% to dev wallet and 66% to relief fund
    function unlockUnclaimedYearly() external onlyOwner {
        require(block.timestamp > yearlyUnlock, "invalid unlock");
        yearlyUnlock = block.timestamp + 365 days;
        sendEth(devAddress, address(this).balance / 3);
        sendEth(fundAddress, address(this).balance);
    }

    function updateAmountToLiquidateAt(uint256 liquidateAmount) external onlyOwner {
        require(liquidateAmount != liquidateTokensAtAmount, "liquidate amount set!");
        liquidateTokensAtAmount = liquidateAmount;
    }

    function switchBuyTaxable(bool enabled) external onlyOwner {
        require(enabled != isBuysTaxable, "buys tax set!");
        isBuysTaxable = enabled;
    }

    function _excludeFromFees(address account, bool exclude) internal {
        require(users[account].isExcludedFromFees != exclude, "exclude fees set!");
        users[account].isExcludedFromFees = exclude;
        emit ExcludeFromFees(account, exclude);
    }

    function excludeFromFees(address account, bool enabled) external onlyOwner {
        _excludeFromFees(account, enabled);
    }

    // public functions
    function isExcludedFromFees(address account) public view returns (bool) {
        return users[account].isExcludedFromFees;
    }

    function hasDividends(address account) external view returns (bool) {
        (, int256 index,,,,,,) = _getAccount(account);
        return (index > -1);
    }

    function claimAccount(address user) public {
        uint256 amount = processAccount(payable(user));
        require(amount > 0, "0ETH");
    }

    function claim() external {
        claimAccount(msg.sender);
    }

    // private functions
    function sendEth(address account, uint256 amount) private {
        (bool success,) = account.call{value: amount}("");
        require(success, "failed ETH");
    }

    function swap(uint256 tokens) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WETH;

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokens,
            0, // accept any amount of eth
            path,
            address(this),
            block.timestamp
        );
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(users[pair].automatedMarketMakerPairs != value, "AMM pair set!");
        users[pair].automatedMarketMakerPairs = value;
        if (value) _excludeFromDividends(pair, value);
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function _update(address from, address to, uint256 amount) internal override {
        // blacklisting check
        require(!users[from].isBlacklisted && !users[to].isBlacklisted, "from or to is blacklisted");

        if (amount == 0) {
            super._update(from, to, 0);
            return;
        }

        bool tradingIsEnabled = tradingEnabled;
        bool areMeet = !liquidating && tradingIsEnabled;
        bool hasContracts = users[from].automatedMarketMakerPairs || users[to].automatedMarketMakerPairs;
        // only whitelisted addresses can make transfers before trading start.
        if (!tradingIsEnabled) {
            //turn transfer on to allow for whitelist form/mutlisend presale
            require(users[from].canTransferBeforeTradingIsEnabled, "Trading is not enabled");
        }

        if (hasContracts) {
            // excluded from fees
            bool exclusionConditions =
            (
                (users[from].isExcludedFromFees || users[to].isExcludedFromFees)
                // liquidity removing
                || (users[from].automatedMarketMakerPairs && to == address(uniswapV2Router))
                // buys
                || (!isBuysTaxable && users[from].automatedMarketMakerPairs)
            );

            bool takeFee = tradingIsEnabled && !liquidating && !exclusionConditions;
            if (takeFee) {
                uint256 fees = amount * TOTAL_FEES / MILLE;
                amount = amount - fees;

                super._update(from, address(this), fees);
            }

            if (areMeet) {
                uint256 contractTokenBalance = balanceOf(address(this));

                bool canSwap = contractTokenBalance >= liquidateTokensAtAmount;

                if (canSwap && !users[from].automatedMarketMakerPairs) {
                    liquidating = true;

                    swap(contractTokenBalance);

                    liquidating = false;
                }
            }
        }

        super._update(from, to, amount);

        uint256 fromBalance = balanceOf(from);
        uint256 toBalance = balanceOf(to);

        setBalance(from, fromBalance);
        setBalance(to, toBalance);
    }
}

File 2 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

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

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 3 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 4 of 22 : DividendPayingToken.sol
// // SPDX-License-Identifier: MIT

// pragma solidity ^0.8.0;

// import "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
// import "openzeppelin-contracts/contracts/access/Ownable.sol";
// import "./libraries/SafeMath.sol";
// import "./libraries/SafeMathUint.sol";
// import "./libraries/SafeMathInt.sol";
// import "./interfaces/IDividendPayingToken.sol";
// import "./interfaces/IDividendPayingTokenOptional.sol";

// /// @title Dividend-Paying Token
// /// @author Roger Wu (https://github.com/roger-wu)
// /// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
// ///  to token holders as dividends and allows token holders to withdraw their dividends.
// ///  Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
// abstract contract DividendPayingToken is ERC20, IDividendPayingToken, IDividendPayingTokenOptional, Ownable {
//   using SafeMath for uint256;
//   using SafeMathUint for uint256;
//   using SafeMathInt for int256;

//   // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
//   // For more discussion about choosing the value of `magnitude`,
//   //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
//   uint256 constant internal magnitude = 2**128;
//   uint256 internal magnifiedDividendPerShare;
//   uint256 internal lastAmount;
//   uint256 public totalDividendsDistributed;
//   // About dividendCorrection:
//   // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
//   //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
//   // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
//   //   `dividendOf(_user)` should not be changed,
//   //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
//   // To keep the `dividendOf(_user)` unchanged, we add a correction term:
//   //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
//   //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
//   //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
//   // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
//   mapping(address => int256) internal magnifiedDividendCorrections;
//   mapping(address => uint256) internal withdrawnDividends;

  

//   constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol){
//   }

//   /// @dev Distributes dividends whenever ether is paid to this contract.
//   receive() external payable {
//     distributeDividends();
//   }

//   /// @notice Distributes ether to token holders as dividends.
//   /// @dev It reverts if the total supply of tokens is 0.
//   /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
//   /// About undistributed ether:
//   ///   In each distribution, there is a small amount of ether not distributed,
//   ///     the magnified amount of which is
//   ///     `(msg.value * magnitude) % totalSupply()`.
//   ///   With a well-chosen `magnitude`, the amount of undistributed ether
//   ///     (de-magnified) in a distribution can be less than 1 wei.
//   ///   We can actually keep track of the undistributed ether in a distribution
//   ///     and try to distribute it in the next distribution,
//   ///     but keeping track of such data on-chain costs much more than
//   ///     the saved ether, so we don't do that.
//   function distributeDividends() public override payable {
//     require(totalSupply() > 0,"dividened totalsupply error");
//     if (msg.value > 0) {
//        uint256 _magnifiedShare = magnifiedDividendPerShare.add(
//         (msg.value).mul(magnitude) / totalSupply());
//       magnifiedDividendPerShare = _magnifiedShare;
//       emit DividendsDistributed(msg.sender, msg.value);
//       uint256 _totalDistributed = totalDividendsDistributed.add(msg.value);
//       totalDividendsDistributed = _totalDistributed;
//     }
//   }

//   /// @notice Withdraws the ether distributed to the sender.
//   /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
//   function withdrawDividend() public virtual override {
//     _withdrawDividendOfUser(payable(msg.sender));
//   }

//   /// @notice Withdraws the ether distributed to the sender.
//   /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
//   function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
//     uint256 _withdrawableDividend = withdrawableDividendOf(user);
//     if (_withdrawableDividend > 0) {
//       uint256 _withdrawnAmount = withdrawnDividends[user].add(_withdrawableDividend);
//       (bool success,) = user.call{value: _withdrawableDividend, gas:3000}("");
//       if(!success) {
//         return 0;
//       }
//       withdrawnDividends[user] = _withdrawnAmount;
//       return _withdrawableDividend;
//     }
//     return 0;
//   }
  
//   /// @notice View the amount of dividend in wei that an address can withdraw.
//   /// @param _owner The address of a token holder.
//   /// @return The amount of dividend in wei that `_owner` can withdraw.
//   function dividendOf(address _owner) public view override returns(uint256) {
//     uint256 _dividend = withdrawableDividendOf(_owner);
//     return _dividend;
//   }

//   /// @notice View the amount of dividend in wei that an address can withdraw.
//   /// @param _owner The address of a token holder.
//   /// @return The amount of dividend in wei that `_owner` can withdraw.
//   function withdrawableDividendOf(address _owner) public view override returns(uint256) {
//     uint256 _withdrawable = accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
//     return _withdrawable;
//   }

//   /// @notice View the amount of dividend in wei that an address has withdrawn.
//   /// @param _owner The address of a token holder.
//   /// @return The amount of dividend in wei that `_owner` has withdrawn.
//   function withdrawnDividendOf(address _owner) public view override returns(uint256) {
//     uint256 _withdrawn = withdrawnDividends[_owner];
//     return _withdrawn;
//   }

//   /// @notice View the amount of dividend in wei that an address has earned in total.
//   /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
//   /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
//   /// @param _owner The address of a token holder.
//   /// @return The amount of dividend in wei that `_owner` has earned in total.
//   function accumulativeDividendOf(address _owner) public view override returns(uint256) {
//     uint256 _accumulative = magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
//       .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
//     return _accumulative;
//   }

//   /// @dev Internal function that transfer tokens from one address to another.
//   /// Update magnifiedDividendCorrections to keep dividends unchanged.
//   function _update(address from, address to, uint256 value) internal virtual override {
//     if(from == address(0)) {
//         _processMint(to, value);
//     } else if(to == address(0)) {
//         _processBurn(from, value);
//     } else {
//         require(false,"transfer inallowed");
//     }
//   }

//   /// @dev Internal function that mints tokens to an account.
//   /// Update magnifiedDividendCorrections to keep dividends unchanged.
//   /// @param account The account that will receive the created tokens.
//   /// @param value The amount that will be created.
//   function _processMint(address account, uint256 value) internal {
//     int256 _correction = magnifiedDividendCorrections[account]
//       .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
//     magnifiedDividendCorrections[account] = _correction;
//   }

//   /// @dev Internal function that burns an amount of the token of a given account.
//   /// Update magnifiedDividendCorrections to keep dividends unchanged.
//   /// @param account The account whose tokens will be burnt.
//   /// @param value The amount that will be burnt.
//   function _processBurn(address account, uint256 value) internal {
//     int256 _correction = magnifiedDividendCorrections[account]
//       .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
//     magnifiedDividendCorrections[account] = _correction;
//   }

// //   function burn(uint256) external virtual override{
// //     require(false,"burning unallowed");  
// //   }

//   /// @dev Internal function that adjusts an address dividends shares according to the new token balance. 
//   /// @param account The account whose tokens will be proccessed .
//   /// @param newBalance The new address balance.
//   function _setBalance(address account, uint256 newBalance) internal {
//     uint256 currentBalance = balanceOf(account);
//     if(newBalance > currentBalance) {
//       uint256 mintAmount = newBalance.sub(currentBalance);
//       _mint(account, mintAmount);
//     } else if(newBalance < currentBalance) {
//       uint256 burnAmount = currentBalance.sub(newBalance);
//       _burn(account, burnAmount);
//     }
//   }
// }

File 5 of 22 : IterableMapping.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library IterableMapping {
    // Iterable mapping from address to uint;
    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(Map storage map, address key) public view returns (uint) {
        return map.values[key];
    }

    function getIndexOfKey(Map storage map, address key) public view returns (int) {
        if(!map.inserted[key]) {
            return -1;
        }
        return int(map.indexOf[key]);
    }

    function getKeyAtIndex(Map storage map, uint index) public view returns (address) {
        return map.keys[index];
    }

    function size(Map storage map) public view returns (uint) {
        return map.keys.length;
    }

    function set(Map storage map, address key, uint val) public {
        if (map.inserted[key]) {
            map.values[key] = val;
        } else {
            map.inserted[key] = true;
            map.values[key] = val;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

    function remove(Map storage map, address key) public {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[key];

        uint index = map.indexOf[key];
        uint lastIndex = map.keys.length - 1;
        address lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

        map.keys[index] = lastKey;
        map.keys.pop();
    }
}

File 6 of 22 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 7 of 22 : IUniswapV2Router.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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



// pragma solidity >=0.6.2;

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 22 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 22 : ITracker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
interface ITracker{
    // view functions
    function claimWait() external view returns(uint256);
    function owner() external view returns (address);
    function isExcludedFromDividends(address account) external view returns(bool);
    function totalDividendsDistributed() external view returns(uint256);
    function withdrawableDividendOf(address account) external view returns(uint256);
    function getLastProcessedIndex() external view returns(uint256);
    function getNumberOfTokenHolders() external view returns(uint256);
    function getAccount(address _account)
        external view returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable);
    function getAccountAtIndex(uint256 _index)
        external view returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable);
    // state functions
    function excludeFromDividends(address account, bool exclude) external;
    function updateClaimWait(uint256 newClaimWait) external;
    function setBalance(address payable account, uint256 newBalance) external;
    function process(uint256 gas) external returns (uint256, uint256, uint256);
    function processAccount(address payable account) external;
}

File 10 of 22 : TokenTracker.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./DividendToken.sol";
import "./libraries/IterableMapping.sol";

abstract contract TokenTracker is DividendToken {
    using SafeMathInt for int256;
    using IterableMapping for IterableMapping.Map;

    struct User {
        bool isExcludedFromDividends;
        bool isExcludedFromFees;
        bool canTransferBeforeTradingIsEnabled;
        bool automatedMarketMakerPairs;
        bool isBlacklisted;
        uint64 lastClaimTimes;
    }

    // minimum tokens to be eligibile for dividends
    uint256 public constant minimumTokenBalanceForDividends = 9_000_000 ether;
    IterableMapping.Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;
    uint256 public claimWait = 3600;

    mapping(address => User) internal users;

    event ExcludeFromDividends(address indexed account, bool exclude);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);
    event Claim(address indexed account, uint256 amount);

    // internal functions
    function _dividendShare(address _account) internal view override returns (uint256 _share) {
        _share = tokenHoldersMap.get(_account);
    }
    
    function _getAccount(address _account)
        internal
        view
        returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable
        )
    {
        account = _account;

        index = tokenHoldersMap.getIndexOfKey(account);

        iterationsUntilProcessed = -1;

        if (index >= 0) {
            if (uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index - int256(lastProcessedIndex);
            } else {
                uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex
                    ? tokenHoldersMap.keys.length - lastProcessedIndex
                    : 0;

                iterationsUntilProcessed = index + int256(processesUntilEndOfArray);
            }
        }

        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);

        lastClaimTime = users[account].lastClaimTimes;

        nextClaimTime = lastClaimTime > 0 ? lastClaimTime + claimWait : 0;

        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime - block.timestamp : 0;
    }

    function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
        if (lastClaimTime > block.timestamp) {
            return false;
        }

        return block.timestamp - lastClaimTime >= claimWait;
    }

    function _excludeFromDividends(address account, bool exclude) internal {
        require(users[account].isExcludedFromDividends != exclude, "already has been set!");
        users[account].isExcludedFromDividends = exclude;
        uint256 bal = balanceOf(account);
        if (exclude) {
            _setBalance(account, 0);
            tokenHoldersMap.remove(account);
        } else {
            _setBalance(account, bal);
            tokenHoldersMap.set(account, bal);
        }

        emit ExcludeFromDividends(account, exclude);
    }

    function setBalance(address account, uint256 newBalance) internal {
        if (users[account].isExcludedFromDividends) {
            return;
        }
        if (newBalance >= minimumTokenBalanceForDividends) {
            _setBalance(account, newBalance);
            tokenHoldersMap.set(account, newBalance);
        } else {
            _setBalance(account, 0);
            tokenHoldersMap.remove(account);
        }

        _processAccount(payable(account));
    }

    function processAccount(address payable account) internal returns (uint256 amount) {
        amount = _withdrawDividendOfUser(account);
        emit Claim(account, amount);
    }

    function _processAccount(address payable account) private returns (bool) {
        uint256 amount = _withdrawDividendOfUser(account);

        if (amount > 0) {
            // safe casting
            users[account].lastClaimTimes = uint64(block.timestamp);
            return true;
        }

        return false;
    }

    // owner restricted
    function excludeFromDividends(address account, bool exclude) external onlyOwner {
        _excludeFromDividends(account, exclude);
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 1800 && newClaimWait <= 86400, "must be updated 1 to 24 hours");
        require(newClaimWait != claimWait, "same claimWait value");
        emit ClaimWaitUpdated(newClaimWait, claimWait);
        claimWait = newClaimWait;
    }

    // public functions
    function getLastProcessedIndex() external view returns (uint256) {
        return lastProcessedIndex;
    }

    function getNumberOfTokenHolders() external view returns (uint256) {
        return tokenHoldersMap.keys.length;
    }

    function getAccount(address account)
        external
        view
        returns (address, int256, int256, uint256, uint256, uint256, uint256, uint256)
    {
        return _getAccount(account);
    }

    function getAccountAtIndex(uint256 index)
        public
        view
        returns (address, int256, int256, uint256, uint256, uint256, uint256, uint256)
    {
        if (index >= tokenHoldersMap.size()) {
            return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
        }

        address account = tokenHoldersMap.getKeyAtIndex(index);

        return _getAccount(account);
    }

    function process(uint256 gas) public returns (uint256, uint256, uint256) {
        uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

        if (numberOfTokenHolders == 0) {
            return (0, 0, lastProcessedIndex);
        }

        uint256 _lastProcessedIndex = lastProcessedIndex;

        uint256 gasUsed = 0;

        uint256 gasLeft = gasleft();

        uint256 iterations = 0;
        uint256 claims = 0;

        while (gasUsed < gas && iterations < numberOfTokenHolders) {
            _lastProcessedIndex++;

            if (_lastProcessedIndex >= tokenHoldersMap.keys.length) {
                _lastProcessedIndex = 0;
            }

            address account = tokenHoldersMap.keys[_lastProcessedIndex];

            if (canAutoClaim(users[account].lastClaimTimes)) {
                if (_processAccount(payable(account))) {
                    claims++;
                }
            }

            iterations++;

            uint256 newGasLeft = gasleft();

            if (gasLeft > newGasLeft) {
                gasUsed = gasUsed + (gasLeft - newGasLeft);
            }

            gasLeft = newGasLeft;
        }

        lastProcessedIndex = _lastProcessedIndex;

        return (iterations, claims, lastProcessedIndex);
    }
}

File 11 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

File 12 of 22 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 13 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 14 of 22 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (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;
    }
}

File 15 of 22 : DividendToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-contracts/contracts/access/Ownable.sol";
import "./libraries/SafeMathUint.sol";
import "./libraries/SafeMathInt.sol";
import "./interfaces/IDividendPayingToken.sol";
import "./interfaces/IDividendPayingTokenOptional.sol";

/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
///  to token holders as dividends and allows token holders to withdraw their dividends.
///  Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
abstract contract DividendToken is ERC20, IDividendPayingToken, IDividendPayingTokenOptional, Ownable {
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
    // For more discussion about choosing the value of `magnitude`,
    //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
    uint256 internal constant magnitude = 10 ** 38;
    uint256 internal magnifiedDividendPerShare;
    uint256 internal lastAmount;
    uint256 public totalDividendsDistributed;
    uint256 public totalDividendsShares;
    // About dividendCorrection:
    // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
    // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
    //   `dividendOf(_user)` should not be changed,
    //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
    // To keep the `dividendOf(_user)` unchanged, we add a correction term:
    //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
    //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
    //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
    // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
    mapping(address => int256) internal magnifiedDividendCorrections;
    mapping(address => uint256) internal withdrawnDividends;

    constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {}

    // public functions

    /// @notice Distributes ether to token holders as dividends.
    /// @dev It reverts if the total supply of tokens is 0.
    /// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
    /// About undistributed ether:
    ///   In each distribution, there is a small amount of ether not distributed,
    ///     the magnified amount of which is
    ///     `(msg.value * magnitude) % totalSupply()`.
    ///   With a well-chosen `magnitude`, the amount of undistributed ether
    ///     (de-magnified) in a distribution can be less than 1 wei.
    ///   We can actually keep track of the undistributed ether in a distribution
    ///     and try to distribute it in the next distribution,
    ///     but keeping track of such data on-chain costs much more than
    ///     the saved ether, so we don't do that.
    function distributeDividends() public payable override {
        _distributeDividends(msg.value);
    }

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) public view override returns (uint256) {
        uint256 _dividend = withdrawableDividendOf(_owner);
        return _dividend;
    }

    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(address _owner) public view override returns (uint256) {
        uint256 _withdrawable = accumulativeDividendOf(_owner) - (withdrawnDividends[_owner]);
        return _withdrawable;
    }

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(address _owner) public view override returns (uint256) {
        uint256 _withdrawn = withdrawnDividends[_owner];
        return _withdrawn;
    }

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner) public view override returns (uint256) {
        uint256 _accumulative = (
            (magnifiedDividendPerShare * _dividendShare(_owner)).toInt256Safe() + magnifiedDividendCorrections[_owner]
        ).toUint256Safe() / magnitude;
        return _accumulative;
    }

    // internal functions

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
        uint256 _withdrawableDividend = withdrawableDividendOf(user);
        if (_withdrawableDividend > 0) {
            withdrawnDividends[user] = withdrawnDividends[user] + _withdrawableDividend;
            (bool success,) = user.call{value: _withdrawableDividend, gas: 3000}("");
            if (!success) {
                return 0;
            }
            return _withdrawableDividend;
        }
        return 0;
    }

    function _dividendShare(address _account) internal view virtual returns (uint256 _share);

    function _distributeDividends(uint256 amount) internal {
        require(totalDividendsShares > 0, "0 dividend totalsupply");
        if (amount > 0) {
            magnifiedDividendPerShare = magnifiedDividendPerShare + (amount * magnitude / totalDividendsShares);
            emit DividendsDistributed(msg.sender, amount);
            totalDividendsDistributed = totalDividendsDistributed + amount;
        }
    }

    /// @dev Internal function that mints tokens to an account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account that will receive the created tokens.
    /// @param value The amount that will be created.
    function _processMint(address account, uint256 value) internal {
        int256 _correction =
            magnifiedDividendCorrections[account] - ((magnifiedDividendPerShare * value).toInt256Safe());
        magnifiedDividendCorrections[account] = _correction;
    }

    /// @dev Internal function that burns an amount of the token of a given account.
    /// Update magnifiedDividendCorrections to keep dividends unchanged.
    /// @param account The account whose tokens will be burnt.
    /// @param value The amount that will be burnt.
    function _processBurn(address account, uint256 value) internal {
        int256 _correction =
            magnifiedDividendCorrections[account] + ((magnifiedDividendPerShare * value).toInt256Safe());
        magnifiedDividendCorrections[account] = _correction;
    }

    /// @dev Internal function that adjusts an address dividends shares according to the new token balance.
    /// @param account The account whose tokens will be proccessed .
    /// @param newBalance The new address balance.
    function _setBalance(address account, uint256 newBalance) internal {
        uint256 currentBalance = _dividendShare(account);
        if (newBalance > currentBalance) {
            uint256 mintAmount = newBalance - currentBalance;
            totalDividendsShares += mintAmount;
            _processMint(account, mintAmount);
        } else if (newBalance < currentBalance) {
            uint256 burnAmount = currentBalance - newBalance;
            totalDividendsShares -= burnAmount;
            _processBurn(account, burnAmount);
        }
    }
}

File 16 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual 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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `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 set 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:
     * ```
     * 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);
            }
        }
    }
}

File 17 of 22 : SafeMathUint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0,"Negative number is not allowed");
    return b;
  }
}

File 18 of 22 : SafeMathInt.sol
// SPDX-License-Identifier: MIT

/*
MIT License

Copyright (c) 2018 requestnetwork
Copyright (c) 2018 Fragments, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

pragma solidity ^0.8.0;

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256),"multplitiy error");
        require((b == 0) || (c / b == a),"multiplity error mul");
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256,"SafeMath error div");

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a),"SafeMath error sub");
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a),"SafeMath error add");
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256,"SafeMath error abs");
        return a < 0 ? -a : a;
    }


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0,"SafeMath toUint error");
        return uint256(a);
    }
}

File 19 of 22 : IDividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface IDividendPayingToken {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function dividendOf(address _owner) external view returns(uint256);

  /// @notice Distributes ether to token holders as dividends.
  /// @dev SHOULD distribute the paid ether to token holders as dividends.
  ///  SHOULD NOT directly transfer ether to token holders in this function.
  ///  MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0.
  function distributeDividends() external payable;

  /// @dev This event MUST emit when ether is distributed to token holders.
  /// @param from The address which sends ether to this contract.
  /// @param weiAmount The amount of distributed ether in wei.
  event DividendsDistributed(
    address indexed from,
    uint256 weiAmount
  );

  /// @dev This event MUST emit when an address withdraws their dividend.
  /// @param to The address which withdraws ether from this contract.
  /// @param weiAmount The amount of withdrawn ether in wei.
  event DividendWithdrawn(
    address indexed to,
    uint256 weiAmount
  );
}

File 20 of 22 : IDividendPayingTokenOptional.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;


/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface IDividendPayingTokenOptional {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function withdrawableDividendOf(address _owner) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has withdrawn.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has withdrawn.
  function withdrawnDividendOf(address _owner) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has earned in total.
  /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has earned in total.
  function accumulativeDividendOf(address _owner) external view returns(uint256);
}

File 21 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}

File 22 of 22 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * 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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {
    "src/libraries/IterableMapping.sol": {
      "IterableMapping": "0x5d764819a2b72a900cd0212e65f51df45c2a2e46"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_fundAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","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":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newDevWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldDevWallet","type":"address"}],"name":"DevWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"exclude","type":"bool"}],"name":"ExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"exclude","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addTransferBeforeTrading","outputs":[],"stateMutability":"nonpayable","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":"_user","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"blackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimWait","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":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeDividends","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"exclude","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"hasDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"switchBuyTaxable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockUnclaimedYearly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidateAmount","type":"uint256"}],"name":"updateAmountToLiquidateAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDevWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yearlyUnlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052610e1060115562000021670de0b6b3a7640000620dbba0620014d8565b6014553480156200003157600080fd5b50604051620053a9380380620053a983398101604081905262000054916200150f565b6040518060400160405280601981526020017f46726f6d2074686520526976657220746f2074686520536561000000000000008152506040518060400160405280600681526020016546545254545360d01b8152503382828160039081620000bd9190620015e3565b506004620000cc8282620015e3565b5050506001600160a01b038116620000ff57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200010a81620003d3565b505050620001203360016200042560201b60201c565b6200012d82600162000425565b6200013a30600162000425565b62000156600080516020620053898339815191526001620004fb565b62000163336001620004fb565b62000170306001620004fb565b601780546001600160a01b038085166001600160a01b031992831617909255601880549284169290911691909117905560126020527f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b805462ff00001990811662010000908117909255336000908152604081208054909216909217905562000207670de0b6b3a7640000640218711a00620014d8565b9050606462000224670de0b6b3a7640000640218711a00620014d8565b6200023190600a620014d8565b6200023d9190620016af565b620002499082620016d2565b9050620002573382620006fe565b6000600080516020620053898339815191526001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002cd9190620016e8565b6040516364e329cb60e11b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260248201526001600160a01b03919091169063c9c65396906044016020604051808303816000875af115801562000330573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003569190620016e8565b601680546001600160a01b0319166001600160a01b038316908117909155909150620003849060016200073c565b620003a2306000805160206200538983398151915260001962000825565b6018805460ff60a81b1916600160a81b179055620003c5426301e1338062001706565b601555506200180d92505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526012602052604090205481151561010090910460ff161515036200048f5760405162461bcd60e51b81526020600482015260116024820152706578636c7564652066656573207365742160781b6044820152606401620000f6565b6001600160a01b0382166000818152601260205260409081902080548415156101000261ff0019909116179055517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df790620004ef90841515815260200190565b60405180910390a25050565b6001600160a01b03821660009081526012602052604090205481151560ff9091161515036200056d5760405162461bcd60e51b815260206004820152601560248201527f616c726561647920686173206265656e207365742100000000000000000000006044820152606401620000f6565b6001600160a01b0382166000908152601260209081526040808320805460ff191685151517905590829052812054905081156200062b57620005b183600062000839565b60405163131836e760e21b8152600c60048201526001600160a01b0384166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b1580156200060c57600080fd5b505af415801562000621573d6000803e3d6000fd5b50505050620006b3565b62000637838262000839565b604051632f0ad01760e21b8152600c60048201526001600160a01b038416602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b1580156200069957600080fd5b505af4158015620006ae573d6000803e3d6000fd5b505050505b826001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be83604051620006f1911515815260200190565b60405180910390a2505050565b6001600160a01b0382166200072a5760405163ec442f0560e01b815260006004820152602401620000f6565b6200073860008383620008cc565b5050565b6001600160a01b038216600090815260126020526040902054811515630100000090910460ff16151503620007a45760405162461bcd60e51b815260206004820152600d60248201526c414d4d2070616972207365742160981b6044820152606401620000f6565b6001600160a01b038216600090815260126020526040902080548215801563010000000263ff0000001990921691909117909155620007e957620007e98282620004fb565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b62000834838383600162000cb2565b505050565b6000620008468362000d8d565b9050808211156200088d5760006200085f8284620016d2565b9050806009600082825462000875919062001706565b90915550620008879050848262000e1c565b50505050565b8082101562000834576000620008a48383620016d2565b90508060096000828254620008ba9190620016d2565b90915550620008879050848262000e7e565b6001600160a01b038316600090815260126020526040902054640100000000900460ff161580156200091f57506001600160a01b038216600090815260126020526040902054640100000000900460ff16155b6200096d5760405162461bcd60e51b815260206004820152601960248201527f66726f6d206f7220746f20697320626c61636b6c6973746564000000000000006044820152606401620000f6565b806000036200098457620008348383600062000eb9565b60185460ff600160b01b8204811691600091600160a01b90910416158015620009aa5750815b6001600160a01b038616600090815260126020526040812054919250906301000000900460ff1680620009fc57506001600160a01b0385166000908152601260205260409020546301000000900460ff165b90508262000a74576001600160a01b03861660009081526012602052604090205462010000900460ff1662000a745760405162461bcd60e51b815260206004820152601660248201527f54726164696e67206973206e6f7420656e61626c6564000000000000000000006044820152606401620000f6565b801562000c60576001600160a01b038616600090815260126020526040812054610100900460ff168062000ac557506001600160a01b038616600090815260126020526040902054610100900460ff165b8062000b1357506001600160a01b0387166000908152601260205260409020546301000000900460ff16801562000b1357506001600160a01b03861660008051602062005389833981519152145b8062000b545750601854600160a81b900460ff1615801562000b5457506001600160a01b0387166000908152601260205260409020546301000000900460ff165b9050600084801562000b705750601854600160a01b900460ff16155b801562000b7b575081155b9050801562000bdc5760006103e8603262000b996019604b62001706565b62000ba5919062001706565b62000bb19089620014d8565b62000bbd9190620016af565b905062000bcb8188620016d2565b965062000bda89308362000eb9565b505b831562000c5d57306000908152602081905260409020546014548110801590819062000c2857506001600160a01b038a166000908152601260205260409020546301000000900460ff16155b1562000c5a576018805460ff60a01b1916600160a01b17905562000c4c8262000fec565b6018805460ff60a01b191690555b50505b50505b62000c6d86868662000eb9565b6001600160a01b0386811660009081526020819052604080822054928816825290205462000c9c8883620010fc565b62000ca88782620010fc565b5050505050505050565b6001600160a01b03841662000cde5760405163e602df0560e01b815260006004820152602401620000f6565b6001600160a01b03831662000d0a57604051634a1406b160e11b815260006004820152602401620000f6565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156200088757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405162000d7f91815260200190565b60405180910390a350505050565b60405163732a2ccf60e01b8152600c60048201526001600160a01b0382166024820152600090735d764819a2b72a900cd0212e65f51df45c2a2e469063732a2ccf90604401602060405180830381865af415801562000df0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e1691906200171c565b92915050565b600062000e388260065462000e329190620014d8565b6200124f565b6001600160a01b0384166000908152600a602052604090205462000e5d919062001736565b6001600160a01b039093166000908152600a60205260409020929092555050565b600062000e948260065462000e329190620014d8565b6001600160a01b0384166000908152600a602052604090205462000e5d919062001759565b6001600160a01b03831662000ee857806002600082825462000edc919062001706565b9091555062000f5c9050565b6001600160a01b0383166000908152602081905260409020548181101562000f3d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000f6565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821662000f7a5760028054829003905562000f99565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000fdf91815260200190565b60405180910390a3505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811062001024576200102462001784565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106200106f576200106f62001784565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b8152600080516020620053898339815191529063791ac94790620010c49085906000908690309042906004016200179a565b600060405180830381600087803b158015620010df57600080fd5b505af1158015620010f4573d6000803e3d6000fd5b505050505050565b6001600160a01b03821660009081526012602052604090205460ff161562001122575050565b6a0771d2fa45345aa90000008110620011c25762001141828262000839565b604051632f0ad01760e21b8152600c60048201526001600160a01b038316602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b158015620011a357600080fd5b505af4158015620011b8573d6000803e3d6000fd5b5050505062001244565b620011cf82600062000839565b60405163131836e760e21b8152600c60048201526001600160a01b0383166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b1580156200122a57600080fd5b505af41580156200123f573d6000803e3d6000fd5b505050505b6200083482620012a4565b6000818181121562000e165760405162461bcd60e51b815260206004820152601e60248201527f4e65676174697665206e756d626572206973206e6f7420616c6c6f77656400006044820152606401620000f6565b600080620012b28362001306565b90508015620012fd5750506001600160a01b031660009081526012602052604090208054600160281b600160681b03191665010000000000426001600160401b031602179055600190565b50600092915050565b6000806200131483620013c3565b90508015620012fd576001600160a01b0383166000908152600b60205260409020546200134390829062001706565b6001600160a01b0384166000818152600b6020526040808220939093559151610bb890849084818181858888f193505050503d8060008114620013a3576040519150601f19603f3d011682016040523d82523d6000602084013e620013a8565b606091505b5050905080620013bc575060009392505050565b5092915050565b6001600160a01b0381166000908152600b60205260408120548190620013e984620013fc565b620013f59190620016d2565b9392505050565b6001600160a01b0381166000908152600a602052604081205481906f4b3b4ca85a86c47a098a224000000000906200145e906200144c6200143d8762000d8d565b60065462000e329190620014d8565b62001458919062001759565b6200146a565b620013f59190620016af565b600080821215620014be5760405162461bcd60e51b815260206004820152601560248201527f536166654d61746820746f55696e74206572726f7200000000000000000000006044820152606401620000f6565b5090565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000e165762000e16620014c2565b80516001600160a01b03811681146200150a57600080fd5b919050565b600080604083850312156200152357600080fd5b6200152e83620014f2565b91506200153e60208401620014f2565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200157257607f821691505b6020821081036200159357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200083457600081815260208120601f850160051c81016020861015620015c25750805b601f850160051c820191505b81811015620010f457828155600101620015ce565b81516001600160401b03811115620015ff57620015ff62001547565b62001617816200161084546200155d565b8462001599565b602080601f8311600181146200164f5760008415620016365750858301515b600019600386901b1c1916600185901b178555620010f4565b600085815260208120601f198616915b8281101562001680578886015182559484019460019091019084016200165f565b50858210156200169f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082620016cd57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111562000e165762000e16620014c2565b600060208284031215620016fb57600080fd5b620013f582620014f2565b8082018082111562000e165762000e16620014c2565b6000602082840312156200172f57600080fd5b5051919050565b8181036000831280158383131683831282161715620013bc57620013bc620014c2565b80820182811260008312801582168215821617156200177c576200177c620014c2565b505092915050565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015620017ec5784516001600160a01b031683529383019391830191600101620017c5565b50506001600160a01b03969096166060850152505050608001529392505050565b613b6c806200181d6000396000f3fe6080604052600436106103175760003560e01c8063852592b71161019a578063be9d0828116100e1578063e7841ec01161008a578063f2fde38b11610064578063f2fde38b14610aa0578063fbcbc0f114610ac0578063ffb2c47914610ae057600080fd5b8063e7841ec014610a3e578063e82bef2914610a53578063e98030c714610a8057600080fd5b8063d5abeb01116100bb578063d5abeb01146109b6578063d6dac595146109cb578063dd62ed3e146109eb57600080fd5b8063be9d082814610961578063c024666814610976578063cee8279d1461099657600080fd5b80639c8e841d11610143578063a9059cbb1161011d578063a9059cbb146108df578063aafd847a146108ff578063be10b6141461094257600080fd5b80639c8e841d1461087f5780639e8c708e1461089f578063a8b9d240146108bf57600080fd5b806391b89fba1161017457806391b89fba1461082a57806395d89b411461084a5780639a7a23d61461085f57600080fd5b8063852592b7146107d357806385a6b3ae146107e95780638da5cb5b146107ff57600080fd5b8063313ce5671161025e578063582810b811610207578063715018a6116101e1578063715018a61461077e5780637429d95a146107935780637f5b4763146107b357600080fd5b8063582810b8146107055780636f2789ec1461072557806370a082311461073b57600080fd5b80634e71d92d116102385780634e71d92d146106335780634fbee193146106485780635183d6fd1461069357600080fd5b8063313ce567146105915780633ad10ef6146105ad5780634ada218b146105ff57600080fd5b8063152a1d35116102c057806323b872dd1161029a57806323b872dd1461053b57806327ce01471461055b5780633009a6091461057b57600080fd5b8063152a1d35146104f057806318160ddd146105065780631816467f1461051b57600080fd5b8063095ea7b3116102f1578063095ea7b31461048c57806309bbedde146104bc5780630f15f4c0146104db57600080fd5b806303c83302146104395780630483f7a01461044157806306fdde031461046157600080fd5b36610434577fffffffffffffffffffffffff85daf2a9cf4b30ac68c620d3a2534b39a60db77333016104115734600060326103546019604b61371f565b61035e919061371f565b610369601984613732565b6103739190613749565b6017549091506103999073ffffffffffffffffffffffffffffffffffffffff1682610b1b565b600060326103a96019604b61371f565b6103b3919061371f565b6103be603285613732565b6103c89190613749565b6018549091506103ee9073ffffffffffffffffffffffffffffffffffffffff1682610b1b565b60006103fa828461371f565b6104049085613784565b905061040f81610bef565b005b60185461040f9073ffffffffffffffffffffffffffffffffffffffff1634610b1b565b600080fd5b61040f610ce2565b34801561044d57600080fd5b5061040f61045c3660046137c7565b610ced565b34801561046d57600080fd5b50610476610d03565b6040516104839190613824565b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613875565b610d95565b6040519015158152602001610483565b3480156104c857600080fd5b50600c545b604051908152602001610483565b3480156104e757600080fd5b5061040f610daf565b3480156104fc57600080fd5b506104cd60155481565b34801561051257600080fd5b506002546104cd565b34801561052757600080fd5b5061040f6105363660046138a1565b610e90565b34801561054757600080fd5b506104ac6105563660046138be565b610fb7565b34801561056757600080fd5b506104cd6105763660046138a1565b610fdd565b34801561058757600080fd5b506104cd60105481565b34801561059d57600080fd5b5060405160128152602001610483565b3480156105b957600080fd5b506017546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610483565b34801561060b57600080fd5b506018546104ac90760100000000000000000000000000000000000000000000900460ff1681565b34801561063f57600080fd5b5061040f611052565b34801561065457600080fd5b506104ac6106633660046138a1565b73ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902054610100900460ff1690565b34801561069f57600080fd5b506106b36106ae3660046138ff565b61105b565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610483565b34801561071157600080fd5b5061040f610720366004613918565b6111e6565b34801561073157600080fd5b506104cd60115481565b34801561074757600080fd5b506104cd6107563660046138a1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561078a57600080fd5b5061040f6112c4565b34801561079f57600080fd5b5061040f6107ae3660046138a1565b6112d6565b3480156107bf57600080fd5b5061040f6107ce3660046138a1565b61134f565b3480156107df57600080fd5b506104cd60095481565b3480156107f557600080fd5b506104cd60085481565b34801561080b57600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff166105da565b34801561083657600080fd5b506104cd6108453660046138a1565b6113a8565b34801561085657600080fd5b506104766113b4565b34801561086b57600080fd5b5061040f61087a3660046137c7565b6113c3565b34801561088b57600080fd5b5061040f61089a3660046137c7565b61145a565b3480156108ab57600080fd5b5061040f6108ba3660046138a1565b61155e565b3480156108cb57600080fd5b506104cd6108da3660046138a1565b6116b3565b3480156108eb57600080fd5b506104ac6108fa366004613875565b6116ee565b34801561090b57600080fd5b506104cd61091a3660046138a1565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b602052604090205490565b34801561094e57600080fd5b506104cd6a0771d2fa45345aa900000081565b34801561096d57600080fd5b5061040f6116fc565b34801561098257600080fd5b5061040f6109913660046137c7565b6117d0565b3480156109a257600080fd5b506104ac6109b13660046138a1565b6117e2565b3480156109c257600080fd5b506104cd611820565b3480156109d757600080fd5b5061040f6109e63660046138ff565b61183a565b3480156109f757600080fd5b506104cd610a06366004613935565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610a4a57600080fd5b506010546104cd565b348015610a5f57600080fd5b506018546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a8c57600080fd5b5061040f610a9b3660046138ff565b6118b2565b348015610aac57600080fd5b5061040f610abb3660046138a1565b6119d3565b348015610acc57600080fd5b506106b3610adb3660046138a1565b611a34565b348015610aec57600080fd5b50610b00610afb3660046138ff565b611a64565b60408051938452602084019290925290820152606001610483565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610b75576040519150601f19603f3d011682016040523d82523d6000602084013e610b7a565b606091505b5050905080610bea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6661696c6564204554480000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505050565b600060095411610c5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f30206469766964656e6420746f74616c737570706c79000000000000000000006044820152606401610be1565b8015610cdf57600954610c7e6f4b3b4ca85a86c47a098a22400000000083613732565b610c889190613749565b600654610c95919061371f565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a280600854610cdb919061371f565b6008555b50565b610ceb34610bef565b565b610cf5611ba0565b610cff8282611bf3565b5050565b606060038054610d1290613963565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3e90613963565b8015610d8b5780601f10610d6057610100808354040283529160200191610d8b565b820191906000526020600020905b815481529060010190602001808311610d6e57829003601f168201915b5050505050905090565b600033610da3818585611e94565b60019150505b92915050565b610db7611ba0565b601854760100000000000000000000000000000000000000000000900460ff1615610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f54726164696e6720697320616c726561647920656e61626c65640000000000006044820152606401610be1565b601880547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff16760100000000000000000000000000000000000000000000179055610e8b42610e1061371f565b601355565b610e98611ba0565b60175473ffffffffffffffffffffffffffffffffffffffff90811690821603610f1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6465762077616c6c6574207365742100000000000000000000000000000000006044820152606401610be1565b610f28816001611ea1565b60175460405173ffffffffffffffffffffffffffffffffffffffff918216918316907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a3601780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600033610fc5858285611fd1565b610fd08585856120a0565b60019150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205481906f4b3b4ca85a86c47a098a22400000000090611048906110396110278761214b565b6006546110349190613732565b6121f7565b61104391906139b6565b612264565b610fd69190613749565b610ceb336112d6565b600080600080600080600080600c735d764819a2b72a900cd0212e65f51df45c2a2e4663deb3d89690916040518263ffffffff1660e01b81526004016110a391815260200190565b602060405180830381865af41580156110c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e491906139de565b89106111275750600096507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9550859450869350839250829150819050806111db565b6040517fd1aa9e7e000000000000000000000000000000000000000000000000000000008152600c6004820152602481018a9052600090735d764819a2b72a900cd0212e65f51df45c2a2e469063d1aa9e7e90604401602060405180830381865af415801561119a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111be91906139f7565b90506111c9816122d4565b98509850985098509850985098509850505b919395975091939597565b6111ee611ba0565b6018547501000000000000000000000000000000000000000000900460ff16151581151503611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f62757973207461782073657421000000000000000000000000000000000000006044820152606401610be1565b601880549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6112cc611ba0565b610ceb60006124a0565b60006112e182612517565b905060008111610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be19060208082526004908201527f3045544800000000000000000000000000000000000000000000000000000000604082015260600190565b611357611ba0565b73ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b600080610fd6836116b3565b606060048054610d1290613963565b6113cb611ba0565b60165473ffffffffffffffffffffffffffffffffffffffff90811690831603611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496d6d757462616c6520506169720000000000000000000000000000000000006044820152606401610be1565b610cff8282612579565b611462611ba0565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151564010000000090910460ff16151503611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f626c61636b6c69737420736574000000000000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff90911660009081526012602052604090208054911515640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff909216919091179055565b611566611ba0565b3073ffffffffffffffffffffffffffffffffffffffff8216036115e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f696e76616c696420746f6b656e000000000000000000000000000000000000006044820152606401610be1565b610cdf61160760055473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015611671573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169591906139de565b73ffffffffffffffffffffffffffffffffffffffff841691906126c9565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604081205481906116e484610fdd565b610fd69190613784565b600033610da38185856120a0565b611704611ba0565b601554421161176f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c696420756e6c6f636b0000000000000000000000000000000000006044820152606401610be1565b61177d426301e1338061371f565b6015556017546117ad9073ffffffffffffffffffffffffffffffffffffffff166117a8600347613749565b610b1b565b601854610ceb9073ffffffffffffffffffffffffffffffffffffffff1647610b1b565b6117d8611ba0565b610cff8282611ea1565b6000806117ee836122d4565b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90941398975050505050505050565b611837670de0b6b3a7640000640218711a00613732565b81565b611842611ba0565b60145481036118ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f6c697175696461746520616d6f756e74207365742100000000000000000000006044820152606401610be1565b601455565b6118ba611ba0565b61070881101580156118cf5750620151808111155b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6d7573742062652075706461746564203120746f20323420686f7572730000006044820152606401610be1565b60115481036119a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f73616d6520636c61696d576169742076616c75650000000000000000000000006044820152606401610be1565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6119db611ba0565b73ffffffffffffffffffffffffffffffffffffffff8116611a2b576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b610cdf816124a0565b600080600080600080600080611a49896122d4565b97509750975097509750975097509750919395975091939597565b600c5460009081908190808203611a8657505060105460009250829150611b99565b6010546000805a90506000805b8984108015611aa157508582105b15611b885784611ab081613a14565b600c5490965086109050611ac357600094505b6000600c6000018681548110611adb57611adb613a4c565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168083526012909152604090912054909150611b2d9067ffffffffffffffff6501000000000090910416612756565b15611b4e57611b3b8161277d565b15611b4e5781611b4a81613a14565b9250505b82611b5881613a14565b93505060005a905080851115611b7f57611b728186613784565b611b7c908761371f565b95505b9350611a939050565b601085905590975095509193505050505b9193909250565b60055473ffffffffffffffffffffffffffffffffffffffff163314610ceb576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151560ff909116151503611c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f616c726561647920686173206265656e207365742100000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515151790559082905281205490508115611d9357611cf68360006127ff565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff84166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b158015611d7657600080fd5b505af4158015611d8a573d6000803e3d6000fd5b50505050611e3d565b611d9d83826127ff565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b158015611e2457600080fd5b505af4158015611e38573d6000803e3d6000fd5b505050505b8273ffffffffffffffffffffffffffffffffffffffff167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be83604051611e87911515815260200190565b60405180910390a2505050565b610bea838383600161287c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151561010090910460ff16151503611f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f6578636c756465206665657320736574210000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260126020526040908190208054841515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116179055517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df790611fc590841515815260200190565b60405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461209a578181101561208b576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024810182905260448101839052606401610be1565b61209a8484848403600061287c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166120f0576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216612140576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b610bea8383836129c4565b6040517f732a2ccf000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff82166024820152600090735d764819a2b72a900cd0212e65f51df45c2a2e469063732a2ccf90604401602060405180830381865af41580156121d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da991906139de565b60008181811215610da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e65676174697665206e756d626572206973206e6f7420616c6c6f77656400006044820152606401610be1565b6000808212156122d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f536166654d61746820746f55696e74206572726f7200000000000000000000006044820152606401610be1565b5090565b6040517f17e142d1000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff821660248201528190600090819081908190819081908190735d764819a2b72a900cd0212e65f51df45c2a2e46906317e142d190604401602060405180830381865af415801561236a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238e91906139de565b96507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff95506000871261240e576010548711156123d9576010546123d29088613a7b565b955061240e565b601054600c54600091106123ee5760006123fe565b601054600c546123fe9190613784565b905061240a81896139b6565b9650505b612417886116b3565b945061242288610fdd565b73ffffffffffffffffffffffffffffffffffffffff891660009081526012602052604090205490945065010000000000900467ffffffffffffffff1692508261246c576000612479565b601154612479908461371f565b9150428211612489576000612493565b6124934283613784565b9050919395975091939597565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061252282612ee2565b90508173ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48260405161256c91815260200190565b60405180910390a2919050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054811515630100000090910460ff16151503612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f414d4d20706169722073657421000000000000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090208054821580156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff90921691909117909155612680576126808282611bf3565b6040518115159073ffffffffffffffffffffffffffffffffffffffff8416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610bea908490612fb1565b60004282111561276857506000919050565b6011546127758342613784565b101592915050565b60008061278983612ee2565b905080156127f657505073ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffff0000000000000000ffffffffff16650100000000004267ffffffffffffffff1602179055600190565b50600092915050565b600061280a8361214b565b9050808211156128445760006128208284613784565b90508060096000828254612834919061371f565b9091555061209a90508482613047565b80821015610bea5760006128588383613784565b9050806009600082825461286c9190613784565b9091555061209a905084826130b8565b73ffffffffffffffffffffffffffffffffffffffff84166128cc576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff831661291c576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160209081526040808320938716835292905220829055801561209a578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516129b691815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260126020526040902054640100000000900460ff16158015612a30575073ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054640100000000900460ff16155b612a96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f66726f6d206f7220746f20697320626c61636b6c6973746564000000000000006044820152606401610be1565b80600003612aaa57610bea838360006130fb565b60185460ff76010000000000000000000000000000000000000000000082048116916000917401000000000000000000000000000000000000000090910416158015612af35750815b73ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040812054919250906301000000900460ff1680612b5e575073ffffffffffffffffffffffffffffffffffffffff85166000908152601260205260409020546301000000900460ff165b905082612bfa5773ffffffffffffffffffffffffffffffffffffffff861660009081526012602052604090205462010000900460ff16612bfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f54726164696e67206973206e6f7420656e61626c6564000000000000000000006044820152606401610be1565b8015612e895773ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040812054610100900460ff1680612c63575073ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040902054610100900460ff165b80612cce575073ffffffffffffffffffffffffffffffffffffffff87166000908152601260205260409020546301000000900460ff168015612cce575073ffffffffffffffffffffffffffffffffffffffff8616737a250d5630b4cf539739df2c5dacb4c659f2488d145b80612d2c57506018547501000000000000000000000000000000000000000000900460ff16158015612d2c575073ffffffffffffffffffffffffffffffffffffffff87166000908152601260205260409020546301000000900460ff165b90506000848015612d58575060185474010000000000000000000000000000000000000000900460ff16155b8015612d62575081155b90508015612db65760006103e86032612d7d6019604b61371f565b612d87919061371f565b612d919089613732565b612d9b9190613749565b9050612da78188613784565b9650612db48930836130fb565b505b8315612e86573060009081526020819052604090205460145481108015908190612e0d575073ffffffffffffffffffffffffffffffffffffffff8a166000908152601260205260409020546301000000900460ff16155b15612e8357601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055612e5a826132a6565b601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b50505b50505b612e948686866130fb565b73ffffffffffffffffffffffffffffffffffffffff868116600090815260208190526040808220549288168252902054612ece88836133f1565b612ed887826133f1565b5050505050505050565b600080612eee836116b3565b905080156127f65773ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040902054612f2790829061371f565b73ffffffffffffffffffffffffffffffffffffffff84166000818152600b6020526040808220939093559151610bb890849084818181858888f193505050503d8060008114612f92576040519150601f19603f3d011682016040523d82523d6000602084013e612f97565b606091505b5050905080612faa575060009392505050565b5092915050565b6000612fd373ffffffffffffffffffffffffffffffffffffffff841683613590565b90508051600014158015612ff8575080806020019051810190612ff69190613a9b565b155b15610bea576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610be1565b600061305a826006546110349190613732565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205461308a9190613a7b565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600a60205260409020929092555050565b60006130cb826006546110349190613732565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205461308a91906139b6565b73ffffffffffffffffffffffffffffffffffffffff8316613133578060026000828254613128919061371f565b909155506131e59050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156131b9576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024810182905260448101839052606401610be1565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661320e5760028054829003905561323a565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161329991815260200190565b60405180910390a3505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106132db576132db613a4c565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061333d5761333d613a4c565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517f791ac947000000000000000000000000000000000000000000000000000000008152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906133bb908590600090869030904290600401613ab8565b600060405180830381600087803b1580156133d557600080fd5b505af11580156133e9573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff1615613423575050565b6a0771d2fa45345aa900000081106134e35761343f82826127ff565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b1580156134c657600080fd5b505af41580156134da573d6000803e3d6000fd5b50505050613587565b6134ee8260006127ff565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff83166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b15801561356e57600080fd5b505af4158015613582573d6000803e3d6000fd5b505050505b610bea8261277d565b6060610fd683836000846000808573ffffffffffffffffffffffffffffffffffffffff1684866040516135c39190613b43565b60006040518083038185875af1925050503d8060008114613600576040519150601f19603f3d011682016040523d82523d6000602084013e613605565b606091505b509150915061361586838361361f565b9695505050505050565b6060826136345761362f826136ae565b610fd6565b8151158015613658575073ffffffffffffffffffffffffffffffffffffffff84163b155b156136a7576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610be1565b5080610fd6565b8051156136be5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610da957610da96136f0565b8082028115828204841417610da957610da96136f0565b60008261377f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610da957610da96136f0565b73ffffffffffffffffffffffffffffffffffffffff81168114610cdf57600080fd5b8015158114610cdf57600080fd5b600080604083850312156137da57600080fd5b82356137e581613797565b915060208301356137f5816137b9565b809150509250929050565b60005b8381101561381b578181015183820152602001613803565b50506000910152565b6020815260008251806020840152613843816040850160208701613800565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000806040838503121561388857600080fd5b823561389381613797565b946020939093013593505050565b6000602082840312156138b357600080fd5b8135610fd681613797565b6000806000606084860312156138d357600080fd5b83356138de81613797565b925060208401356138ee81613797565b929592945050506040919091013590565b60006020828403121561391157600080fd5b5035919050565b60006020828403121561392a57600080fd5b8135610fd6816137b9565b6000806040838503121561394857600080fd5b823561395381613797565b915060208301356137f581613797565b600181811c9082168061397757607f821691505b6020821081036139b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b80820182811260008312801582168215821617156139d6576139d66136f0565b505092915050565b6000602082840312156139f057600080fd5b5051919050565b600060208284031215613a0957600080fd5b8151610fd681613797565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a4557613a456136f0565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8181036000831280158383131683831282161715612faa57612faa6136f0565b600060208284031215613aad57600080fd5b8151610fd6816137b9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613b1557845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101613ae3565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b60008251613b55818460208701613800565b919091019291505056fea164736f6c6343000814000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000015c220c1bd4c26b17dc0032f33870aeac7d7f5500000000000000000000000005cef357bd6867786d40fc9121ca0d7a09d75f030

Deployed Bytecode

0x6080604052600436106103175760003560e01c8063852592b71161019a578063be9d0828116100e1578063e7841ec01161008a578063f2fde38b11610064578063f2fde38b14610aa0578063fbcbc0f114610ac0578063ffb2c47914610ae057600080fd5b8063e7841ec014610a3e578063e82bef2914610a53578063e98030c714610a8057600080fd5b8063d5abeb01116100bb578063d5abeb01146109b6578063d6dac595146109cb578063dd62ed3e146109eb57600080fd5b8063be9d082814610961578063c024666814610976578063cee8279d1461099657600080fd5b80639c8e841d11610143578063a9059cbb1161011d578063a9059cbb146108df578063aafd847a146108ff578063be10b6141461094257600080fd5b80639c8e841d1461087f5780639e8c708e1461089f578063a8b9d240146108bf57600080fd5b806391b89fba1161017457806391b89fba1461082a57806395d89b411461084a5780639a7a23d61461085f57600080fd5b8063852592b7146107d357806385a6b3ae146107e95780638da5cb5b146107ff57600080fd5b8063313ce5671161025e578063582810b811610207578063715018a6116101e1578063715018a61461077e5780637429d95a146107935780637f5b4763146107b357600080fd5b8063582810b8146107055780636f2789ec1461072557806370a082311461073b57600080fd5b80634e71d92d116102385780634e71d92d146106335780634fbee193146106485780635183d6fd1461069357600080fd5b8063313ce567146105915780633ad10ef6146105ad5780634ada218b146105ff57600080fd5b8063152a1d35116102c057806323b872dd1161029a57806323b872dd1461053b57806327ce01471461055b5780633009a6091461057b57600080fd5b8063152a1d35146104f057806318160ddd146105065780631816467f1461051b57600080fd5b8063095ea7b3116102f1578063095ea7b31461048c57806309bbedde146104bc5780630f15f4c0146104db57600080fd5b806303c83302146104395780630483f7a01461044157806306fdde031461046157600080fd5b36610434577fffffffffffffffffffffffff85daf2a9cf4b30ac68c620d3a2534b39a60db77333016104115734600060326103546019604b61371f565b61035e919061371f565b610369601984613732565b6103739190613749565b6017549091506103999073ffffffffffffffffffffffffffffffffffffffff1682610b1b565b600060326103a96019604b61371f565b6103b3919061371f565b6103be603285613732565b6103c89190613749565b6018549091506103ee9073ffffffffffffffffffffffffffffffffffffffff1682610b1b565b60006103fa828461371f565b6104049085613784565b905061040f81610bef565b005b60185461040f9073ffffffffffffffffffffffffffffffffffffffff1634610b1b565b600080fd5b61040f610ce2565b34801561044d57600080fd5b5061040f61045c3660046137c7565b610ced565b34801561046d57600080fd5b50610476610d03565b6040516104839190613824565b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613875565b610d95565b6040519015158152602001610483565b3480156104c857600080fd5b50600c545b604051908152602001610483565b3480156104e757600080fd5b5061040f610daf565b3480156104fc57600080fd5b506104cd60155481565b34801561051257600080fd5b506002546104cd565b34801561052757600080fd5b5061040f6105363660046138a1565b610e90565b34801561054757600080fd5b506104ac6105563660046138be565b610fb7565b34801561056757600080fd5b506104cd6105763660046138a1565b610fdd565b34801561058757600080fd5b506104cd60105481565b34801561059d57600080fd5b5060405160128152602001610483565b3480156105b957600080fd5b506017546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610483565b34801561060b57600080fd5b506018546104ac90760100000000000000000000000000000000000000000000900460ff1681565b34801561063f57600080fd5b5061040f611052565b34801561065457600080fd5b506104ac6106633660046138a1565b73ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902054610100900460ff1690565b34801561069f57600080fd5b506106b36106ae3660046138ff565b61105b565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610483565b34801561071157600080fd5b5061040f610720366004613918565b6111e6565b34801561073157600080fd5b506104cd60115481565b34801561074757600080fd5b506104cd6107563660046138a1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561078a57600080fd5b5061040f6112c4565b34801561079f57600080fd5b5061040f6107ae3660046138a1565b6112d6565b3480156107bf57600080fd5b5061040f6107ce3660046138a1565b61134f565b3480156107df57600080fd5b506104cd60095481565b3480156107f557600080fd5b506104cd60085481565b34801561080b57600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff166105da565b34801561083657600080fd5b506104cd6108453660046138a1565b6113a8565b34801561085657600080fd5b506104766113b4565b34801561086b57600080fd5b5061040f61087a3660046137c7565b6113c3565b34801561088b57600080fd5b5061040f61089a3660046137c7565b61145a565b3480156108ab57600080fd5b5061040f6108ba3660046138a1565b61155e565b3480156108cb57600080fd5b506104cd6108da3660046138a1565b6116b3565b3480156108eb57600080fd5b506104ac6108fa366004613875565b6116ee565b34801561090b57600080fd5b506104cd61091a3660046138a1565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b602052604090205490565b34801561094e57600080fd5b506104cd6a0771d2fa45345aa900000081565b34801561096d57600080fd5b5061040f6116fc565b34801561098257600080fd5b5061040f6109913660046137c7565b6117d0565b3480156109a257600080fd5b506104ac6109b13660046138a1565b6117e2565b3480156109c257600080fd5b506104cd611820565b3480156109d757600080fd5b5061040f6109e63660046138ff565b61183a565b3480156109f757600080fd5b506104cd610a06366004613935565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610a4a57600080fd5b506010546104cd565b348015610a5f57600080fd5b506018546105da9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a8c57600080fd5b5061040f610a9b3660046138ff565b6118b2565b348015610aac57600080fd5b5061040f610abb3660046138a1565b6119d3565b348015610acc57600080fd5b506106b3610adb3660046138a1565b611a34565b348015610aec57600080fd5b50610b00610afb3660046138ff565b611a64565b60408051938452602084019290925290820152606001610483565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114610b75576040519150601f19603f3d011682016040523d82523d6000602084013e610b7a565b606091505b5050905080610bea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6661696c6564204554480000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505050565b600060095411610c5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f30206469766964656e6420746f74616c737570706c79000000000000000000006044820152606401610be1565b8015610cdf57600954610c7e6f4b3b4ca85a86c47a098a22400000000083613732565b610c889190613749565b600654610c95919061371f565b60065560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a280600854610cdb919061371f565b6008555b50565b610ceb34610bef565b565b610cf5611ba0565b610cff8282611bf3565b5050565b606060038054610d1290613963565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3e90613963565b8015610d8b5780601f10610d6057610100808354040283529160200191610d8b565b820191906000526020600020905b815481529060010190602001808311610d6e57829003601f168201915b5050505050905090565b600033610da3818585611e94565b60019150505b92915050565b610db7611ba0565b601854760100000000000000000000000000000000000000000000900460ff1615610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f54726164696e6720697320616c726561647920656e61626c65640000000000006044820152606401610be1565b601880547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff16760100000000000000000000000000000000000000000000179055610e8b42610e1061371f565b601355565b610e98611ba0565b60175473ffffffffffffffffffffffffffffffffffffffff90811690821603610f1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6465762077616c6c6574207365742100000000000000000000000000000000006044820152606401610be1565b610f28816001611ea1565b60175460405173ffffffffffffffffffffffffffffffffffffffff918216918316907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a3601780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600033610fc5858285611fd1565b610fd08585856120a0565b60019150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205481906f4b3b4ca85a86c47a098a22400000000090611048906110396110278761214b565b6006546110349190613732565b6121f7565b61104391906139b6565b612264565b610fd69190613749565b610ceb336112d6565b600080600080600080600080600c735d764819a2b72a900cd0212e65f51df45c2a2e4663deb3d89690916040518263ffffffff1660e01b81526004016110a391815260200190565b602060405180830381865af41580156110c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e491906139de565b89106111275750600096507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9550859450869350839250829150819050806111db565b6040517fd1aa9e7e000000000000000000000000000000000000000000000000000000008152600c6004820152602481018a9052600090735d764819a2b72a900cd0212e65f51df45c2a2e469063d1aa9e7e90604401602060405180830381865af415801561119a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111be91906139f7565b90506111c9816122d4565b98509850985098509850985098509850505b919395975091939597565b6111ee611ba0565b6018547501000000000000000000000000000000000000000000900460ff16151581151503611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f62757973207461782073657421000000000000000000000000000000000000006044820152606401610be1565b601880549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b6112cc611ba0565b610ceb60006124a0565b60006112e182612517565b905060008111610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be19060208082526004908201527f3045544800000000000000000000000000000000000000000000000000000000604082015260600190565b611357611ba0565b73ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b600080610fd6836116b3565b606060048054610d1290613963565b6113cb611ba0565b60165473ffffffffffffffffffffffffffffffffffffffff90811690831603611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496d6d757462616c6520506169720000000000000000000000000000000000006044820152606401610be1565b610cff8282612579565b611462611ba0565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151564010000000090910460ff16151503611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f626c61636b6c69737420736574000000000000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff90911660009081526012602052604090208054911515640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff909216919091179055565b611566611ba0565b3073ffffffffffffffffffffffffffffffffffffffff8216036115e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f696e76616c696420746f6b656e000000000000000000000000000000000000006044820152606401610be1565b610cdf61160760055473ffffffffffffffffffffffffffffffffffffffff1690565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa158015611671573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169591906139de565b73ffffffffffffffffffffffffffffffffffffffff841691906126c9565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604081205481906116e484610fdd565b610fd69190613784565b600033610da38185856120a0565b611704611ba0565b601554421161176f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c696420756e6c6f636b0000000000000000000000000000000000006044820152606401610be1565b61177d426301e1338061371f565b6015556017546117ad9073ffffffffffffffffffffffffffffffffffffffff166117a8600347613749565b610b1b565b601854610ceb9073ffffffffffffffffffffffffffffffffffffffff1647610b1b565b6117d8611ba0565b610cff8282611ea1565b6000806117ee836122d4565b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90941398975050505050505050565b611837670de0b6b3a7640000640218711a00613732565b81565b611842611ba0565b60145481036118ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f6c697175696461746520616d6f756e74207365742100000000000000000000006044820152606401610be1565b601455565b6118ba611ba0565b61070881101580156118cf5750620151808111155b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6d7573742062652075706461746564203120746f20323420686f7572730000006044820152606401610be1565b60115481036119a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f73616d6520636c61696d576169742076616c75650000000000000000000000006044820152606401610be1565b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6119db611ba0565b73ffffffffffffffffffffffffffffffffffffffff8116611a2b576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b610cdf816124a0565b600080600080600080600080611a49896122d4565b97509750975097509750975097509750919395975091939597565b600c5460009081908190808203611a8657505060105460009250829150611b99565b6010546000805a90506000805b8984108015611aa157508582105b15611b885784611ab081613a14565b600c5490965086109050611ac357600094505b6000600c6000018681548110611adb57611adb613a4c565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168083526012909152604090912054909150611b2d9067ffffffffffffffff6501000000000090910416612756565b15611b4e57611b3b8161277d565b15611b4e5781611b4a81613a14565b9250505b82611b5881613a14565b93505060005a905080851115611b7f57611b728186613784565b611b7c908761371f565b95505b9350611a939050565b601085905590975095509193505050505b9193909250565b60055473ffffffffffffffffffffffffffffffffffffffff163314610ceb576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151560ff909116151503611c8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f616c726561647920686173206265656e207365742100000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515151790559082905281205490508115611d9357611cf68360006127ff565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff84166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b158015611d7657600080fd5b505af4158015611d8a573d6000803e3d6000fd5b50505050611e3d565b611d9d83826127ff565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b158015611e2457600080fd5b505af4158015611e38573d6000803e3d6000fd5b505050505b8273ffffffffffffffffffffffffffffffffffffffff167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be83604051611e87911515815260200190565b60405180910390a2505050565b610bea838383600161287c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205481151561010090910460ff16151503611f3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f6578636c756465206665657320736574210000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260126020526040908190208054841515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909116179055517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df790611fc590841515815260200190565b60405180910390a25050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461209a578181101561208b576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024810182905260448101839052606401610be1565b61209a8484848403600061287c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166120f0576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff8216612140576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b610bea8383836129c4565b6040517f732a2ccf000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff82166024820152600090735d764819a2b72a900cd0212e65f51df45c2a2e469063732a2ccf90604401602060405180830381865af41580156121d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da991906139de565b60008181811215610da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e65676174697665206e756d626572206973206e6f7420616c6c6f77656400006044820152606401610be1565b6000808212156122d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f536166654d61746820746f55696e74206572726f7200000000000000000000006044820152606401610be1565b5090565b6040517f17e142d1000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff821660248201528190600090819081908190819081908190735d764819a2b72a900cd0212e65f51df45c2a2e46906317e142d190604401602060405180830381865af415801561236a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238e91906139de565b96507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff95506000871261240e576010548711156123d9576010546123d29088613a7b565b955061240e565b601054600c54600091106123ee5760006123fe565b601054600c546123fe9190613784565b905061240a81896139b6565b9650505b612417886116b3565b945061242288610fdd565b73ffffffffffffffffffffffffffffffffffffffff891660009081526012602052604090205490945065010000000000900467ffffffffffffffff1692508261246c576000612479565b601154612479908461371f565b9150428211612489576000612493565b6124934283613784565b9050919395975091939597565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061252282612ee2565b90508173ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48260405161256c91815260200190565b60405180910390a2919050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054811515630100000090910460ff16151503612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f414d4d20706169722073657421000000000000000000000000000000000000006044820152606401610be1565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090208054821580156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff90921691909117909155612680576126808282611bf3565b6040518115159073ffffffffffffffffffffffffffffffffffffffff8416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610bea908490612fb1565b60004282111561276857506000919050565b6011546127758342613784565b101592915050565b60008061278983612ee2565b905080156127f657505073ffffffffffffffffffffffffffffffffffffffff16600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffff0000000000000000ffffffffff16650100000000004267ffffffffffffffff1602179055600190565b50600092915050565b600061280a8361214b565b9050808211156128445760006128208284613784565b90508060096000828254612834919061371f565b9091555061209a90508482613047565b80821015610bea5760006128588383613784565b9050806009600082825461286c9190613784565b9091555061209a905084826130b8565b73ffffffffffffffffffffffffffffffffffffffff84166128cc576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff831661291c576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610be1565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160209081526040808320938716835292905220829055801561209a578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516129b691815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260126020526040902054640100000000900460ff16158015612a30575073ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054640100000000900460ff16155b612a96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f66726f6d206f7220746f20697320626c61636b6c6973746564000000000000006044820152606401610be1565b80600003612aaa57610bea838360006130fb565b60185460ff76010000000000000000000000000000000000000000000082048116916000917401000000000000000000000000000000000000000090910416158015612af35750815b73ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040812054919250906301000000900460ff1680612b5e575073ffffffffffffffffffffffffffffffffffffffff85166000908152601260205260409020546301000000900460ff165b905082612bfa5773ffffffffffffffffffffffffffffffffffffffff861660009081526012602052604090205462010000900460ff16612bfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f54726164696e67206973206e6f7420656e61626c6564000000000000000000006044820152606401610be1565b8015612e895773ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040812054610100900460ff1680612c63575073ffffffffffffffffffffffffffffffffffffffff8616600090815260126020526040902054610100900460ff165b80612cce575073ffffffffffffffffffffffffffffffffffffffff87166000908152601260205260409020546301000000900460ff168015612cce575073ffffffffffffffffffffffffffffffffffffffff8616737a250d5630b4cf539739df2c5dacb4c659f2488d145b80612d2c57506018547501000000000000000000000000000000000000000000900460ff16158015612d2c575073ffffffffffffffffffffffffffffffffffffffff87166000908152601260205260409020546301000000900460ff165b90506000848015612d58575060185474010000000000000000000000000000000000000000900460ff16155b8015612d62575081155b90508015612db65760006103e86032612d7d6019604b61371f565b612d87919061371f565b612d919089613732565b612d9b9190613749565b9050612da78188613784565b9650612db48930836130fb565b505b8315612e86573060009081526020819052604090205460145481108015908190612e0d575073ffffffffffffffffffffffffffffffffffffffff8a166000908152601260205260409020546301000000900460ff16155b15612e8357601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055612e5a826132a6565b601880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b50505b50505b612e948686866130fb565b73ffffffffffffffffffffffffffffffffffffffff868116600090815260208190526040808220549288168252902054612ece88836133f1565b612ed887826133f1565b5050505050505050565b600080612eee836116b3565b905080156127f65773ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040902054612f2790829061371f565b73ffffffffffffffffffffffffffffffffffffffff84166000818152600b6020526040808220939093559151610bb890849084818181858888f193505050503d8060008114612f92576040519150601f19603f3d011682016040523d82523d6000602084013e612f97565b606091505b5050905080612faa575060009392505050565b5092915050565b6000612fd373ffffffffffffffffffffffffffffffffffffffff841683613590565b90508051600014158015612ff8575080806020019051810190612ff69190613a9b565b155b15610bea576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610be1565b600061305a826006546110349190613732565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205461308a9190613a7b565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600a60205260409020929092555050565b60006130cb826006546110349190613732565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a602052604090205461308a91906139b6565b73ffffffffffffffffffffffffffffffffffffffff8316613133578060026000828254613128919061371f565b909155506131e59050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156131b9576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024810182905260448101839052606401610be1565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661320e5760028054829003905561323a565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161329991815260200190565b60405180910390a3505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106132db576132db613a4c565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061333d5761333d613a4c565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517f791ac947000000000000000000000000000000000000000000000000000000008152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906133bb908590600090869030904290600401613ab8565b600060405180830381600087803b1580156133d557600080fd5b505af11580156133e9573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff1615613423575050565b6a0771d2fa45345aa900000081106134e35761343f82826127ff565b6040517fbc2b405c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052735d764819a2b72a900cd0212e65f51df45c2a2e469063bc2b405c9060640160006040518083038186803b1580156134c657600080fd5b505af41580156134da573d6000803e3d6000fd5b50505050613587565b6134ee8260006127ff565b6040517f4c60db9c000000000000000000000000000000000000000000000000000000008152600c600482015273ffffffffffffffffffffffffffffffffffffffff83166024820152735d764819a2b72a900cd0212e65f51df45c2a2e4690634c60db9c9060440160006040518083038186803b15801561356e57600080fd5b505af4158015613582573d6000803e3d6000fd5b505050505b610bea8261277d565b6060610fd683836000846000808573ffffffffffffffffffffffffffffffffffffffff1684866040516135c39190613b43565b60006040518083038185875af1925050503d8060008114613600576040519150601f19603f3d011682016040523d82523d6000602084013e613605565b606091505b509150915061361586838361361f565b9695505050505050565b6060826136345761362f826136ae565b610fd6565b8151158015613658575073ffffffffffffffffffffffffffffffffffffffff84163b155b156136a7576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610be1565b5080610fd6565b8051156136be5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610da957610da96136f0565b8082028115828204841417610da957610da96136f0565b60008261377f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b81810381811115610da957610da96136f0565b73ffffffffffffffffffffffffffffffffffffffff81168114610cdf57600080fd5b8015158114610cdf57600080fd5b600080604083850312156137da57600080fd5b82356137e581613797565b915060208301356137f5816137b9565b809150509250929050565b60005b8381101561381b578181015183820152602001613803565b50506000910152565b6020815260008251806020840152613843816040850160208701613800565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000806040838503121561388857600080fd5b823561389381613797565b946020939093013593505050565b6000602082840312156138b357600080fd5b8135610fd681613797565b6000806000606084860312156138d357600080fd5b83356138de81613797565b925060208401356138ee81613797565b929592945050506040919091013590565b60006020828403121561391157600080fd5b5035919050565b60006020828403121561392a57600080fd5b8135610fd6816137b9565b6000806040838503121561394857600080fd5b823561395381613797565b915060208301356137f581613797565b600181811c9082168061397757607f821691505b6020821081036139b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b80820182811260008312801582168215821617156139d6576139d66136f0565b505092915050565b6000602082840312156139f057600080fd5b5051919050565b600060208284031215613a0957600080fd5b8151610fd681613797565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a4557613a456136f0565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8181036000831280158383131683831282161715612faa57612faa6136f0565b600060208284031215613aad57600080fd5b8151610fd6816137b9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613b1557845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101613ae3565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b60008251613b55818460208701613800565b919091019291505056fea164736f6c6343000814000a

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

00000000000000000000000015c220c1BD4c26b17DC0032f33870aeAc7d7f5500000000000000000000000005cEF357bD6867786D40FC9121CA0D7A09D75f030

-----Decoded View---------------
Arg [0] : _devAddress (address): 0x15c220c1BD4c26b17DC0032f33870aeAc7d7f550
Arg [1] : _fundAddress (address): 0x5cEF357bD6867786D40FC9121CA0D7A09D75f030

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000015c220c1BD4c26b17DC0032f33870aeAc7d7f550
Arg [1] : 0000000000000000000000005cEF357bD6867786D40FC9121CA0D7A09D75f030


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.