ETH Price: $3,282.52 (+1.12%)
Gas: 12 Gwei

Contract

0xa4aF2938c909C23B8141082c7933A9D7A3583c38
 

Overview

ETH Balance

5.589630038456750424 ETH

Eth Value

$18,348.07 (@ $3,282.52/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
163669712023-01-09 4:52:11565 days ago1673239931
0xa4aF2938...7A3583c38
0.00423903 ETH
144408912022-03-23 6:10:05857 days ago1648015805
0xa4aF2938...7A3583c38
0.03193533 ETH
143969322022-03-16 9:59:58864 days ago1647424798
0xa4aF2938...7A3583c38
0.01047329 ETH
143969282022-03-16 9:58:38864 days ago1647424718
0xa4aF2938...7A3583c38
0.02082788 ETH
143888952022-03-15 4:01:14865 days ago1647316874
0xa4aF2938...7A3583c38
0.01499182 ETH
143810502022-03-13 22:38:05866 days ago1647211085
0xa4aF2938...7A3583c38
0.03264531 ETH
143773832022-03-13 8:59:02867 days ago1647161942
0xa4aF2938...7A3583c38
0.07803567 ETH
143760852022-03-13 3:54:50867 days ago1647143690
0xa4aF2938...7A3583c38
0.01376666 ETH
143750352022-03-12 23:53:01867 days ago1647129181
0xa4aF2938...7A3583c38
0.00753789 ETH
143749252022-03-12 23:29:01867 days ago1647127741
0xa4aF2938...7A3583c38
0.08249959 ETH
143728262022-03-12 15:48:02868 days ago1647100082
0xa4aF2938...7A3583c38
0.09821465 ETH
143443582022-03-08 5:34:33872 days ago1646717673
0xa4aF2938...7A3583c38
0.00274416 ETH
143434662022-03-08 2:20:20872 days ago1646706020
0xa4aF2938...7A3583c38
0.05644553 ETH
143422432022-03-07 21:54:16872 days ago1646690056
0xa4aF2938...7A3583c38
0.00827755 ETH
143383822022-03-07 7:20:58873 days ago1646637658
0xa4aF2938...7A3583c38
0.04879264 ETH
143124942022-03-03 6:52:29877 days ago1646290349
0xa4aF2938...7A3583c38
0.00684989 ETH
143124892022-03-03 6:51:42877 days ago1646290302
0xa4aF2938...7A3583c38
0.00538759 ETH
143124752022-03-03 6:47:12877 days ago1646290032
0xa4aF2938...7A3583c38
0.00513607 ETH
143124692022-03-03 6:46:06877 days ago1646289966
0xa4aF2938...7A3583c38
0.00538759 ETH
143118512022-03-03 4:26:11877 days ago1646281571
0xa4aF2938...7A3583c38
0.06957607 ETH
143108422022-03-03 0:38:22877 days ago1646267902
0xa4aF2938...7A3583c38
0.00465876 ETH
143108382022-03-03 0:37:38877 days ago1646267858
0xa4aF2938...7A3583c38
0.00578136 ETH
142979612022-03-01 0:47:00879 days ago1646095620
0xa4aF2938...7A3583c38
0.02601538 ETH
142650842022-02-23 22:32:48884 days ago1645655568
0xa4aF2938...7A3583c38
0.026465 ETH
142491102022-02-21 11:12:21887 days ago1645441941
0xa4aF2938...7A3583c38
0.08213643 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TWITTERINUDividendTracker

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 11: TWITTERINU.sol
// SPDX-License-Identifier: Unlicensed

/* 
WELCOME TO TWITTER INU

MEET THE ONLY DEFLATIONARY INU TOKEN THAT GIVES YOU AN INSANE AMOUNT OF ETHEREUM REWARDS

DEFI, MEME, DEFI 3.0 , FAAS, DAAS , NFT, FARMING, PASSIVE INCOME... EVERYTHING YOU ARE LOOKING FOR IS HERE.

Its very simple, TWITTERINU need to go viral in the crypto space!!! Buy a bag, claim anytime, enjoy the ETH rewards, use every social network you know (Twitter especially) and share the hashtag #TWITTERINU everywhere, anywhere.
    Always like, comment and retweet our tweets. 
    Dont waste time on Telegram asking when 100x, when binance, when moon. You ask when calls, when marketing? This is the answer: Twitter is free and is the biggest tool for marketing in the Crypto world.

 BUY, SHILL, CLAIM, REPEAT.

 LETS GO VIRAL

 LIQUIDITY LOCKED 1 YEAR, DYNAMIC FEES BASED ON THE MARKET SENTIMENT, NO FEES ON TRANSFER.

 https://t.me/TwitterInu (At launch the only way to communicate with us in on twitter, every comment, every post you make need to have the hashtag #TWITTERINU
 https://twitter.com/TwInuProject


*/

pragma solidity ^0.8.6;

import "./DividendPayingToken.sol";
import "./IterableMapping.sol";
import "./Ownable.sol";
import "./IDex.sol";
import "./SafeMath.sol";

library Address{
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

contract TWITTERINU is ERC20, Ownable {
    using Address for address payable;

    IRouter public router;
    address public  pair;
        
    bool private swapping;
    bool public swapEnabled = true;

    mapping (address=> bool) public isBot;

    TWITTERINUDividendTracker public dividendTracker;

    uint256 public swapTokensAtAmount = 500_000_000 * (10**9);
    uint256 public maxTxAmount = 10000000000 * 10**9;
    uint256 public maxWalletBalance = 50000000000 * 10**9;

    uint256 public  ETHRewardsFee = 0;
    uint256 public  treasuryFee = 20;
    uint256 public  liquidityFee = 0;
    uint256 public  totalFees = ETHRewardsFee + treasuryFee + liquidityFee;

    uint256 public sellETHRewardsFee = 20;
    uint256 public sellTreasuryFee = 0;
    uint256 public sellLiquidityFee = 20;
    uint256 public sellTotalFees = sellETHRewardsFee + sellLiquidityFee + sellTreasuryFee;
    
    address public treasuryWallet = 0x775D05a72504cD751Ac25Fa298443E688dAA0d5a;


    mapping (address => bool) private _isExcludedFromFees;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress);

    event Updaterouter(address indexed newAddress, address indexed oldAddress);

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);

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


    event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SendDividends(
    	uint256 tokensSwapped,
    	uint256 amount
    );

     modifier lockTheSwap {
        swapping = true;
        _;
        swapping = false;
    }

    constructor()  ERC20("TWITTER INU", "TWITTERINU") {
        
    	dividendTracker = new TWITTERINUDividendTracker();

    	IRouter _router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
         // Create a uniswap pair for this new token
        address _pair = IFactory(_router.factory())
            .createPair(address(this), _router.WETH());

        router = _router;
        pair = _pair;

        _setAutomatedMarketMakerPair(_pair, true);

        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD);
        dividendTracker.excludeFromDividends(address(_router));

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(treasuryWallet, true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(), 1e12 * (10**9));
    }

    receive() external payable {

  	}


    function updateDividendTracker(address newAddress) public onlyOwner {
        require(newAddress != address(dividendTracker), "TWITTERINU: The dividend tracker already has that address");

        TWITTERINUDividendTracker newDividendTracker = TWITTERINUDividendTracker(payable(newAddress));

        require(newDividendTracker.owner() == address(this), "TWITTERINU: The new dividend tracker must be owned by the TWITTERINU token contract");

        newDividendTracker.excludeFromDividends(address(newDividendTracker));
        newDividendTracker.excludeFromDividends(address(this));
        newDividendTracker.excludeFromDividends(owner());
        newDividendTracker.excludeFromDividends(address(router));

        emit UpdateDividendTracker(newAddress, address(dividendTracker));

        dividendTracker = newDividendTracker;
    }

    function updateRouter(address newAddress) public onlyOwner {
        require(newAddress != address(router), "TWITTERINU: The router already has that address");
        emit Updaterouter(newAddress, address(router));
        router = IRouter(newAddress);
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        require(_isExcludedFromFees[account] != excluded, "TWITTERINU: Account is already the value of 'excluded'");
        _isExcludedFromFees[account] = excluded;

        emit ExcludeFromFees(account, excluded);
    }

    function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner {
        for(uint256 i = 0; i < accounts.length; i++) {
            _isExcludedFromFees[accounts[i]] = excluded;
        }

        emit ExcludeMultipleAccountsFromFees(accounts, excluded);
    }

    function setSwapTokensAtAmount(uint256 amount) external onlyOwner{
        swapTokensAtAmount = amount * 10**9;
    }

    function setAutomatedMarketMakerPair(address newPair, bool value) public onlyOwner {
        require(newPair != pair, "TWITTERINU: The PancakeSwap pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(newPair, value);
    }

    function excludeFromDividends(address account) external onlyOwner{
        dividendTracker.excludeFromDividends(account);
    }

    function _setAutomatedMarketMakerPair(address newPair, bool value) private {
        require(automatedMarketMakerPairs[newPair] != value, "TWITTERINU: Automated market maker pair is already set to that value");
        automatedMarketMakerPairs[newPair] = value;

        if(value) {
            dividendTracker.excludeFromDividends(newPair);
        }

        emit SetAutomatedMarketMakerPair(newPair, value);
    }

    function setMaxtxAmount(uint256 amount) external onlyOwner{
        maxTxAmount = amount * 10**9;
    }

    function setMaxWalletBalance(uint256 amount) external onlyOwner{
        maxWalletBalance = amount * 10**9;
    }

    /// @notice Withdraw tokens sent by mistake.
    /// @param tokenAddress The address of the token to withdraw
    function rescueBEP20Tokens(address tokenAddress) external onlyOwner{
        IERC20(tokenAddress).transfer(msg.sender, IERC20(tokenAddress).balanceOf(address(this)));
    }
    
    function forceSend() external {
        uint256 ETHbalance = address(this).balance;
        payable(owner()).sendValue(ETHbalance);
    }

    function getTotalDividendsDistributed() external view returns (uint256) {
        return dividendTracker.totalDividendsDistributed();
    }

    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    function withdrawableDividendOf(address account) public view returns(uint256) {
    	return dividendTracker.withdrawableDividendOf(account);
  	}

	function dividendTokenBalanceOf(address account) public view returns (uint256) {
		return dividendTracker.balanceOf(account);
	}

    function getAccountInfo(address account)
        external view returns (
             address,
            uint256,
            uint256,
            uint256,
            uint256){
        return dividendTracker.getAccount(account);
    }

    function claim() external {
		dividendTracker.processAccount(payable(msg.sender), false);
    }

    function setBuyFees(uint256 _rewards, uint256 _liquidity, uint256 _treasury) external onlyOwner{
        require(_rewards + _liquidity + _treasury <= 40, "max fee is 40%");
        ETHRewardsFee = _rewards;
        liquidityFee = _liquidity;
        treasuryFee = _treasury;
        totalFees = ETHRewardsFee + liquidityFee + treasuryFee;
    }

    function setSellFees(uint256 _rewards, uint256 _liquidity, uint256 _treasury) external onlyOwner{
        require(_rewards + _liquidity + _treasury <= 40, "max fee is 40%");
        sellETHRewardsFee = _rewards;
        sellLiquidityFee = _liquidity;
        sellTreasuryFee = _treasury;
        sellTotalFees = sellETHRewardsFee + sellLiquidityFee + sellTreasuryFee;
    }
    
    function setTreasuryWallet(address newWallet) external onlyOwner{
        treasuryWallet = newWallet;
    }

    function setSwapEnabled(bool value) external onlyOwner{
        swapEnabled = value;
    }

    function setBot(address account, bool state) external onlyOwner{
        isBot[account] = state;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!isBot[from] && !isBot[to], "You are a bot");

        if(!_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
           require(amount <= maxTxAmount ,"You are exceeding maxTxAmount");
           if(!automatedMarketMakerPairs[to]){
               require(balanceOf(to) + amount <= maxWalletBalance ,"You are exceeding maxWalletBalance");
           }
        }
        if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
        if(canSwap && swapEnabled && !swapping && from != pair && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            if(totalFees > 0){
                swapAndLiquify(swapTokensAtAmount);
            }
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to] && (!automatedMarketMakerPairs[from] && !automatedMarketMakerPairs[to])) {
            takeFee = false;
        }

        if(takeFee) {
        	uint256 fees;
            if(automatedMarketMakerPairs[from]) fees = amount * (totalFees) / (100);
            else if(automatedMarketMakerPairs[to]) fees  = amount * sellTotalFees / 100;
        	amount = amount - fees;
            super._transfer(from, address(this), fees);
        }

        super._transfer(from, to, amount);

        dividendTracker.setBalance(payable(from), balanceOf(from));
        dividendTracker.setBalance(payable(to), balanceOf(to));
    }

    function swapAndLiquify(uint256 tokens) private lockTheSwap{
        // Split the contract balance into halves
        uint256 denominator= (sellTotalFees) * 2;
        uint256 tokensToAddLiquidityWith = tokens * sellLiquidityFee / denominator;
        uint256 toSwap = tokens - tokensToAddLiquidityWith;

        uint256 initialBalance = address(this).balance;

        swapTokensForETH(toSwap);

        uint256 deltaBalance = address(this).balance - initialBalance;
        uint256 unitBalance= deltaBalance / (denominator - sellLiquidityFee);
        uint256 ethToAddLiquidityWith = unitBalance * sellLiquidityFee;

        if(ethToAddLiquidityWith > 0){
            // Add liquidity to pancake
            addLiquidity(tokensToAddLiquidityWith, ethToAddLiquidityWith);
        }

        // Send ETH to treasury
        uint256 treasuryAmt = (unitBalance * 2 * sellTreasuryFee);
        if(treasuryAmt > 0){
            payable(treasuryWallet).sendValue(treasuryAmt);
        }

        // Send ETH to rewards
        uint256 dividends = unitBalance * 2 * ETHRewardsFee;
        if(dividends > 0){
            (bool success,) = address(dividendTracker).call{value: dividends}("");
            if(success)emit SendDividends(tokens, dividends);
        }
        
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {

        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(router), tokenAmount);

        // add the liquidity
        router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0), 
            block.timestamp
        );

    }

    function swapTokensForETH(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();

        _approve(address(this), address(router), tokenAmount);

        // make the swap
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );

    }
}

contract TWITTERINUDividendTracker is DividendPayingToken, Ownable {

    struct AccountInfo {
        address account;
        uint256 withdrawableDividends;
        uint256 totalDividends;
        uint256 lastClaimTime;
    }

    mapping(address => uint256) public lastClaimTimes;

    mapping (address => bool) public excludedFromDividends;

    event ExcludeFromDividends(address indexed account);

    event Claim(address indexed account, uint256 amount, bool indexed automatic);

    constructor()  DividendPayingToken("TWITTERINU_Dividend_Tracker", "TWITTERINU_Dividend_Tracker") { }

    function _transfer(address, address, uint256) internal pure override{
        require(false, "TWITTERINU_Dividend_Tracker: No transfers allowed");
    }

    function withdrawDividend() public pure override {
        require(false, "TWITTERINU_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main TWITTERINU contract.");
    }

    function excludeFromDividends(address account) external onlyOwner {
    	require(!excludedFromDividends[account]);
    	excludedFromDividends[account] = true;

    	_setBalance(account, 0);

    	emit ExcludeFromDividends(account);
    }

    function getAccount(address account) public view returns (address, uint256, uint256, uint256, uint256 ) {
        AccountInfo memory info;
        info.account = account;
        info.withdrawableDividends = withdrawableDividendOf(account);
        info.totalDividends = accumulativeDividendOf(account);
        info.lastClaimTime = lastClaimTimes[account];
        return (
            info.account,
            info.withdrawableDividends,
            info.totalDividends,
            info.lastClaimTime,
            totalDividendsWithdrawn
        );
        
    }

    function setBalance(address payable account, uint256 newBalance) external onlyOwner {
    	if(excludedFromDividends[account]) {
    		return;
    	}
        _setBalance(account, newBalance);    
    }

    function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) {
        uint256 amount = _withdrawDividendOfUser(account);

    	if(amount > 0) {
    		lastClaimTimes[account] = block.timestamp;
            emit Claim(account, amount, automatic);
    		return true;
    	}

    	return false;
    }
}

File 2 of 11: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

/*
 * @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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 3 of 11: DividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

import "./ERC20.sol";
import "./SafeMath.sol";
import "./DividendPayingTokenInterface.sol";
import "./DividendPayingTokenOptionalInterface.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
contract DividendPayingToken is ERC20, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
  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;

  // 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;

  uint256 public totalDividendsDistributed;
  uint256 public totalDividendsWithdrawn;

  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);

    if (msg.value > 0) {
      magnifiedDividendPerShare = magnifiedDividendPerShare.add(
        (msg.value).mul(magnitude) / totalSupply()
      );
      emit DividendsDistributed(msg.sender, msg.value);
      totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
    }
  }

  /// @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) {
      withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
       totalDividendsWithdrawn += _withdrawableDividend;
      emit DividendWithdrawn(user, _withdrawableDividend);
      (bool success,) = user.call{value: _withdrawableDividend, gas: 3000}("");

      if(!success) {
        withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
        totalDividendsWithdrawn -= _withdrawableDividend;
        return 0;
      }

      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) {
    return withdrawableDividendOf(_owner);
  }

  /// @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) {
    return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
  }

  /// @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) {
    return withdrawnDividends[_owner];
  }


  /// @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) {
    return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
      .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
  }

  /// @dev Internal function that transfer tokens from one address to another.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param from The address to transfer from.
  /// @param to The address to transfer to.
  /// @param value The amount to be transferred.
  function _transfer(address from, address to, uint256 value) internal virtual override {
    require(false);

    int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
    magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
    magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
  }

  /// @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 _mint(address account, uint256 value) internal override {
    super._mint(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

  /// @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 _burn(address account, uint256 value) internal override {
    super._burn(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

  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 4 of 11: DividendPayingTokenInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;


/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {
  /// @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;

  /// @notice Withdraws the ether distributed to the sender.
  /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
  ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
  function withdrawDividend() external;

  /// @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 5 of 11: DividendPayingTokenOptionalInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;


/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {
  /// @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 6 of 11: ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

import "./IERC20.sol";
import "./Context.sol";
import "./SafeMath.sol";

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

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

File 7 of 11: IDex.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

interface IPair {
    function sync() external;
}

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

interface IRouter {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

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

File 8 of 11: IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

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

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

File 9 of 11: IterableMapping.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

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 10 of 11: Ownable.sol
pragma solidity ^0.8.6;

// SPDX-License-Identifier: MIT License

import "./Context.sol";

contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

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

pragma solidity ^0.8.6;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @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));
        require((b == 0) || (c / b == a));
        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);

        // 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));
        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));
        return c;
    }

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


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

/**
 * @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);
    return b;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"}],"name":"Claim","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"}],"name":"ExcludeFromDividends","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":"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimes","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":"address payable","name":"account","type":"address"},{"internalType":"bool","name":"automatic","type":"bool"}],"name":"processAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","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":"totalDividendsWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"pure","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"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b50604080518082018252601b8082527f54574954544552494e555f4469766964656e645f547261636b65720000000000602080840182815285518087019096529285528401528151919291839183916200006e91600391620000f3565b50805162000084906004906020840190620000f3565b505050505060006200009b620000ef60201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001d6565b3390565b828054620001019062000199565b90600052602060002090601f01602090048101928262000125576000855562000170565b82601f106200014057805160ff191683800117855562000170565b8280016001018555821562000170579182015b828111156200017057825182559160200191906001019062000153565b506200017e92915062000182565b5090565b5b808211156200017e576000815560010162000183565b600181811c90821680620001ae57607f821691505b60208210811415620001d057634e487b7160e01b600052602260045260246000fd5b50919050565b61188280620001e66000396000f3fe6080604052600436106101bb5760003560e01c806385a6b3ae116100ec578063a9059cbb1161008a578063dd62ed3e11610064578063dd62ed3e146104e9578063e30443bc1461052f578063f2fde38b1461054f578063fbcbc0f11461056f57600080fd5b8063a9059cbb14610473578063aafd847a14610493578063bc4c4b37146104c957600080fd5b806395d89b41116100c657806395d89b41146104085780639e1e06611461041d578063a457c2d714610433578063a8b9d2401461045357600080fd5b806385a6b3ae146103aa5780638da5cb5b146103c057806391b89fba146103e857600080fd5b8063313ce567116101595780634e7b827f116101335780634e7b827f1461031a5780636a4740021461034a57806370a082311461035f578063715018a61461039557600080fd5b8063313ce567146102be57806331e79db0146102da57806339509351146102fa57600080fd5b806318160ddd1161019557806318160ddd14610232578063226cfa3d1461025157806323b872dd1461027e57806327ce01471461029e57600080fd5b806303c83302146101cf57806306fdde03146101d7578063095ea7b31461020257600080fd5b366101ca576101c86105c1565b005b600080fd5b6101c86105c1565b3480156101e357600080fd5b506101ec610654565b6040516101f991906115fa565b60405180910390f35b34801561020e57600080fd5b5061022261021d36600461155f565b6106e6565b60405190151581526020016101f9565b34801561023e57600080fd5b506002545b6040519081526020016101f9565b34801561025d57600080fd5b5061024361026c366004611504565b600b6020526000908152604090205481565b34801561028a57600080fd5b506102226102993660046115b9565b6106fd565b3480156102aa57600080fd5b506102436102b9366004611504565b610766565b3480156102ca57600080fd5b50604051600981526020016101f9565b3480156102e657600080fd5b506101c86102f5366004611504565b6107c2565b34801561030657600080fd5b5061022261031536600461155f565b610880565b34801561032657600080fd5b50610222610335366004611504565b600c6020526000908152604090205460ff1681565b34801561035657600080fd5b506101c86108b6565b34801561036b57600080fd5b5061024361037a366004611504565b6001600160a01b031660009081526020819052604090205490565b3480156103a157600080fd5b506101c8610964565b3480156103b657600080fd5b5061024360085481565b3480156103cc57600080fd5b50600a546040516001600160a01b0390911681526020016101f9565b3480156103f457600080fd5b50610243610403366004611504565b6109d8565b34801561041457600080fd5b506101ec6109e3565b34801561042957600080fd5b5061024360095481565b34801561043f57600080fd5b5061022261044e36600461155f565b6109f2565b34801561045f57600080fd5b5061024361046e366004611504565b610a41565b34801561047f57600080fd5b5061022261048e36600461155f565b610a6d565b34801561049f57600080fd5b506102436104ae366004611504565b6001600160a01b031660009081526007602052604090205490565b3480156104d557600080fd5b506102226104e4366004611521565b610a7a565b3480156104f557600080fd5b5061024361050436600461158b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561053b57600080fd5b506101c861054a36600461155f565b610b28565b34801561055b57600080fd5b506101c861056a366004611504565b610b85565b34801561057b57600080fd5b5061058f61058a366004611504565b610c70565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016101f9565b60006105cc60025490565b116105d657600080fd5b3415610652576106096105e860025490565b6105f634600160801b610d18565b61060091906116dd565b60055490610d9e565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461064e9034610d9e565b6008555b565b60606003805461066390611774565b80601f016020809104026020016040519081016040528092919081815260200182805461068f90611774565b80156106dc5780601f106106b1576101008083540402835291602001916106dc565b820191906000526020600020905b8154815290600101906020018083116106bf57829003601f168201915b5050505050905090565b60006106f3338484610dfd565b5060015b92915050565b600061070a848484610f21565b61075c843361075785604051806060016040528060288152602001611800602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190610f88565b610dfd565b5060019392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b926107b8926107b3926107ad916107a89190610d18565b610fc2565b90610fd2565b611010565b6106f791906116dd565b600a546001600160a01b031633146107f55760405162461bcd60e51b81526004016107ec9061164f565b60405180910390fd5b6001600160a01b0381166000908152600c602052604090205460ff161561081b57600080fd5b6001600160a01b0381166000908152600c60205260408120805460ff19166001179055610849908290611023565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106f39185906107579086610d9e565b60405162461bcd60e51b815260206004820152607160248201527f54574954544552494e555f4469766964656e645f547261636b65723a2077697460448201527f68647261774469766964656e642064697361626c65642e20557365207468652060648201527f27636c61696d272066756e6374696f6e206f6e20746865206d61696e205457496084820152702a2a22a924a72a9031b7b73a3930b1ba1760791b60a482015260c4016107ec565b600a546001600160a01b0316331461098e5760405162461bcd60e51b81526004016107ec9061164f565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b60006106f782610a41565b60606004805461066390611774565b60006106f3338461075785604051806060016040528060258152602001611828602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190610f88565b6001600160a01b0381166000908152600760205260408120546106f790610a6784610766565b90611082565b60006106f3338484610f21565b600a546000906001600160a01b03163314610aa75760405162461bcd60e51b81526004016107ec9061164f565b6000610ab2846110c4565b90508015610b1e576001600160a01b0384166000818152600b6020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610b0c9085815260200190565b60405180910390a360019150506106f7565b5060009392505050565b600a546001600160a01b03163314610b525760405162461bcd60e51b81526004016107ec9061164f565b6001600160a01b0382166000908152600c602052604090205460ff1615610b77575050565b610b818282611023565b5050565b600a546001600160a01b03163314610baf5760405162461bcd60e51b81526004016107ec9061164f565b6001600160a01b038116610c145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ec565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000806000610cac604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610cc187610a41565b6020820152610ccf87610766565b60408281019182526001600160a01b03989098166000908152600b6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600082610d27575060006106f7565b6000610d3383856116ff565b905082610d4085836116dd565b14610d975760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016107ec565b9392505050565b600080610dab83856116c5565b905083811015610d975760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016107ec565b6001600160a01b038316610e5f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ec565b6001600160a01b038216610ec05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ec565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152603160248201527f54574954544552494e555f4469766964656e645f547261636b65723a204e6f206044820152701d1c985b9cd9995c9cc8185b1b1bddd959607a1b60648201526084016107ec565b505050565b60008184841115610fac5760405162461bcd60e51b81526004016107ec91906115fa565b506000610fb9848661175d565b95945050505050565b600081818112156106f757600080fd5b600080610fdf8385611684565b905060008312158015610ff25750838112155b80611007575060008312801561100757508381125b610d9757600080fd5b60008082121561101f57600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156110625760006110508383611082565b905061105c848261123c565b50505050565b80821015610f835760006110768284611082565b905061105c84826112a0565b6000610d9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f88565b6000806110d083610a41565b90508015611233576001600160a01b0383166000908152600760205260409020546110fb9082610d9e565b6001600160a01b038416600090815260076020526040812091909155600980548392906111299084906116c5565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d80600081146111be576040519150601f19603f3d011682016040523d82523d6000602084013e6111c3565b606091505b505090508061122c576001600160a01b0384166000908152600760205260409020546111ef9083611082565b6001600160a01b0385166000908152600760205260408120919091556009805484929061121d90849061175d565b90915550600095945050505050565b5092915050565b50600092915050565b61124682826112e4565b6112806112616107a883600554610d1890919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906113c3565b6001600160a01b0390921660009081526006602052604090209190915550565b6112aa8282611400565b6112806112c56107a883600554610d1890919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610fd2565b6001600160a01b03821661133a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107ec565b6002546113479082610d9e565b6002556001600160a01b03821660009081526020819052604090205461136d9082610d9e565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6000806113d0838561171e565b9050600083121580156113e35750838113155b8061100757506000831280156110075750838113610d9757600080fd5b6001600160a01b0382166114605760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107ec565b61149d816040518060600160405280602281526020016117de602291396001600160a01b0385166000908152602081905260409020549190610f88565b6001600160a01b0383166000908152602081905260409020556002546114c39082611082565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016113b7565b60006020828403121561151657600080fd5b8135610d97816117c5565b6000806040838503121561153457600080fd5b823561153f816117c5565b91506020830135801515811461155457600080fd5b809150509250929050565b6000806040838503121561157257600080fd5b823561157d816117c5565b946020939093013593505050565b6000806040838503121561159e57600080fd5b82356115a9816117c5565b91506020830135611554816117c5565b6000806000606084860312156115ce57600080fd5b83356115d9816117c5565b925060208401356115e9816117c5565b929592945050506040919091013590565b600060208083528351808285015260005b818110156116275785810183015185820160400152820161160b565b81811115611639576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b03849003851316156116a6576116a66117af565b600160ff1b83900384128116156116bf576116bf6117af565b50500190565b600082198211156116d8576116d86117af565b500190565b6000826116fa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611719576117196117af565b500290565b60008083128015600160ff1b85018412161561173c5761173c6117af565b6001600160ff1b0384018313811615611757576117576117af565b50500390565b60008282101561176f5761176f6117af565b500390565b600181811c9082168061178857607f821691505b602082108114156117a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117da57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122074e523319dae1e4d95d2a157928970b359b6bae2c54c417ef0e1d810871fa86864736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101bb5760003560e01c806385a6b3ae116100ec578063a9059cbb1161008a578063dd62ed3e11610064578063dd62ed3e146104e9578063e30443bc1461052f578063f2fde38b1461054f578063fbcbc0f11461056f57600080fd5b8063a9059cbb14610473578063aafd847a14610493578063bc4c4b37146104c957600080fd5b806395d89b41116100c657806395d89b41146104085780639e1e06611461041d578063a457c2d714610433578063a8b9d2401461045357600080fd5b806385a6b3ae146103aa5780638da5cb5b146103c057806391b89fba146103e857600080fd5b8063313ce567116101595780634e7b827f116101335780634e7b827f1461031a5780636a4740021461034a57806370a082311461035f578063715018a61461039557600080fd5b8063313ce567146102be57806331e79db0146102da57806339509351146102fa57600080fd5b806318160ddd1161019557806318160ddd14610232578063226cfa3d1461025157806323b872dd1461027e57806327ce01471461029e57600080fd5b806303c83302146101cf57806306fdde03146101d7578063095ea7b31461020257600080fd5b366101ca576101c86105c1565b005b600080fd5b6101c86105c1565b3480156101e357600080fd5b506101ec610654565b6040516101f991906115fa565b60405180910390f35b34801561020e57600080fd5b5061022261021d36600461155f565b6106e6565b60405190151581526020016101f9565b34801561023e57600080fd5b506002545b6040519081526020016101f9565b34801561025d57600080fd5b5061024361026c366004611504565b600b6020526000908152604090205481565b34801561028a57600080fd5b506102226102993660046115b9565b6106fd565b3480156102aa57600080fd5b506102436102b9366004611504565b610766565b3480156102ca57600080fd5b50604051600981526020016101f9565b3480156102e657600080fd5b506101c86102f5366004611504565b6107c2565b34801561030657600080fd5b5061022261031536600461155f565b610880565b34801561032657600080fd5b50610222610335366004611504565b600c6020526000908152604090205460ff1681565b34801561035657600080fd5b506101c86108b6565b34801561036b57600080fd5b5061024361037a366004611504565b6001600160a01b031660009081526020819052604090205490565b3480156103a157600080fd5b506101c8610964565b3480156103b657600080fd5b5061024360085481565b3480156103cc57600080fd5b50600a546040516001600160a01b0390911681526020016101f9565b3480156103f457600080fd5b50610243610403366004611504565b6109d8565b34801561041457600080fd5b506101ec6109e3565b34801561042957600080fd5b5061024360095481565b34801561043f57600080fd5b5061022261044e36600461155f565b6109f2565b34801561045f57600080fd5b5061024361046e366004611504565b610a41565b34801561047f57600080fd5b5061022261048e36600461155f565b610a6d565b34801561049f57600080fd5b506102436104ae366004611504565b6001600160a01b031660009081526007602052604090205490565b3480156104d557600080fd5b506102226104e4366004611521565b610a7a565b3480156104f557600080fd5b5061024361050436600461158b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561053b57600080fd5b506101c861054a36600461155f565b610b28565b34801561055b57600080fd5b506101c861056a366004611504565b610b85565b34801561057b57600080fd5b5061058f61058a366004611504565b610c70565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a0016101f9565b60006105cc60025490565b116105d657600080fd5b3415610652576106096105e860025490565b6105f634600160801b610d18565b61060091906116dd565b60055490610d9e565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a260085461064e9034610d9e565b6008555b565b60606003805461066390611774565b80601f016020809104026020016040519081016040528092919081815260200182805461068f90611774565b80156106dc5780601f106106b1576101008083540402835291602001916106dc565b820191906000526020600020905b8154815290600101906020018083116106bf57829003601f168201915b5050505050905090565b60006106f3338484610dfd565b5060015b92915050565b600061070a848484610f21565b61075c843361075785604051806060016040528060288152602001611800602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190610f88565b610dfd565b5060019392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b926107b8926107b3926107ad916107a89190610d18565b610fc2565b90610fd2565b611010565b6106f791906116dd565b600a546001600160a01b031633146107f55760405162461bcd60e51b81526004016107ec9061164f565b60405180910390fd5b6001600160a01b0381166000908152600c602052604090205460ff161561081b57600080fd5b6001600160a01b0381166000908152600c60205260408120805460ff19166001179055610849908290611023565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106f39185906107579086610d9e565b60405162461bcd60e51b815260206004820152607160248201527f54574954544552494e555f4469766964656e645f547261636b65723a2077697460448201527f68647261774469766964656e642064697361626c65642e20557365207468652060648201527f27636c61696d272066756e6374696f6e206f6e20746865206d61696e205457496084820152702a2a22a924a72a9031b7b73a3930b1ba1760791b60a482015260c4016107ec565b600a546001600160a01b0316331461098e5760405162461bcd60e51b81526004016107ec9061164f565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b60006106f782610a41565b60606004805461066390611774565b60006106f3338461075785604051806060016040528060258152602001611828602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190610f88565b6001600160a01b0381166000908152600760205260408120546106f790610a6784610766565b90611082565b60006106f3338484610f21565b600a546000906001600160a01b03163314610aa75760405162461bcd60e51b81526004016107ec9061164f565b6000610ab2846110c4565b90508015610b1e576001600160a01b0384166000818152600b6020526040908190204290555184151591907fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09290610b0c9085815260200190565b60405180910390a360019150506106f7565b5060009392505050565b600a546001600160a01b03163314610b525760405162461bcd60e51b81526004016107ec9061164f565b6001600160a01b0382166000908152600c602052604090205460ff1615610b77575050565b610b818282611023565b5050565b600a546001600160a01b03163314610baf5760405162461bcd60e51b81526004016107ec9061164f565b6001600160a01b038116610c145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ec565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000806000610cac604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610cc187610a41565b6020820152610ccf87610766565b60408281019182526001600160a01b03989098166000908152600b6020908152989020546060830181905282519890920151905160095498999198909750919550909350915050565b600082610d27575060006106f7565b6000610d3383856116ff565b905082610d4085836116dd565b14610d975760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016107ec565b9392505050565b600080610dab83856116c5565b905083811015610d975760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016107ec565b6001600160a01b038316610e5f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ec565b6001600160a01b038216610ec05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ec565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60405162461bcd60e51b815260206004820152603160248201527f54574954544552494e555f4469766964656e645f547261636b65723a204e6f206044820152701d1c985b9cd9995c9cc8185b1b1bddd959607a1b60648201526084016107ec565b505050565b60008184841115610fac5760405162461bcd60e51b81526004016107ec91906115fa565b506000610fb9848661175d565b95945050505050565b600081818112156106f757600080fd5b600080610fdf8385611684565b905060008312158015610ff25750838112155b80611007575060008312801561100757508381125b610d9757600080fd5b60008082121561101f57600080fd5b5090565b6001600160a01b038216600090815260208190526040902054808211156110625760006110508383611082565b905061105c848261123c565b50505050565b80821015610f835760006110768284611082565b905061105c84826112a0565b6000610d9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f88565b6000806110d083610a41565b90508015611233576001600160a01b0383166000908152600760205260409020546110fb9082610d9e565b6001600160a01b038416600090815260076020526040812091909155600980548392906111299084906116c5565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d80600081146111be576040519150601f19603f3d011682016040523d82523d6000602084013e6111c3565b606091505b505090508061122c576001600160a01b0384166000908152600760205260409020546111ef9083611082565b6001600160a01b0385166000908152600760205260408120919091556009805484929061121d90849061175d565b90915550600095945050505050565b5092915050565b50600092915050565b61124682826112e4565b6112806112616107a883600554610d1890919063ffffffff16565b6001600160a01b038416600090815260066020526040902054906113c3565b6001600160a01b0390921660009081526006602052604090209190915550565b6112aa8282611400565b6112806112c56107a883600554610d1890919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490610fd2565b6001600160a01b03821661133a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107ec565b6002546113479082610d9e565b6002556001600160a01b03821660009081526020819052604090205461136d9082610d9e565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6000806113d0838561171e565b9050600083121580156113e35750838113155b8061100757506000831280156110075750838113610d9757600080fd5b6001600160a01b0382166114605760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107ec565b61149d816040518060600160405280602281526020016117de602291396001600160a01b0385166000908152602081905260409020549190610f88565b6001600160a01b0383166000908152602081905260409020556002546114c39082611082565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016113b7565b60006020828403121561151657600080fd5b8135610d97816117c5565b6000806040838503121561153457600080fd5b823561153f816117c5565b91506020830135801515811461155457600080fd5b809150509250929050565b6000806040838503121561157257600080fd5b823561157d816117c5565b946020939093013593505050565b6000806040838503121561159e57600080fd5b82356115a9816117c5565b91506020830135611554816117c5565b6000806000606084860312156115ce57600080fd5b83356115d9816117c5565b925060208401356115e9816117c5565b929592945050506040919091013590565b600060208083528351808285015260005b818110156116275785810183015185820160400152820161160b565b81811115611639576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b03849003851316156116a6576116a66117af565b600160ff1b83900384128116156116bf576116bf6117af565b50500190565b600082198211156116d8576116d86117af565b500190565b6000826116fa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611719576117196117af565b500290565b60008083128015600160ff1b85018412161561173c5761173c6117af565b6001600160ff1b0384018313811615611757576117576117af565b50500390565b60008282101561176f5761176f6117af565b500390565b600181811c9082168061178857607f821691505b602082108114156117a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146117da57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122074e523319dae1e4d95d2a157928970b359b6bae2c54c417ef0e1d810871fa86864736f6c63430008070033

Deployed Bytecode Sourcemap

14850:2385:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2482:21:1;:19;:21::i;:::-;14850:2385:10;;;;;3358:391:1;;;:::i;2141:100:4:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4307:169;;;;;;;;;;-1:-1:-1;4307:169:4;;;;;:::i;:::-;;:::i;:::-;;;3274:14:11;;3267:22;3249:41;;3237:2;3222:18;4307:169:4;3109:187:11;3260:108:4;;;;;;;;;;-1:-1:-1;3348:12:4;;3260:108;;;8126:25:11;;;8114:2;8099:18;3260:108:4;7980:177:11;15092:49:10;;;;;;;;;;-1:-1:-1;15092:49:10;;;;;:::i;:::-;;;;;;;;;;;;;;4958:355:4;;;;;;;;;;-1:-1:-1;4958:355:4;;;;;:::i;:::-;;:::i;6437:247:1:-;;;;;;;;;;-1:-1:-1;6437:247:1;;;;;:::i;:::-;;:::i;3103:92:4:-;;;;;;;;;;-1:-1:-1;3103:92:4;;3186:1;8304:36:11;;8292:2;8277:18;3103:92:4;8162:184:11;15835:244:10;;;;;;;;;;-1:-1:-1;15835:244:10;;;;;:::i;:::-;;:::i;5722:218:4:-;;;;;;;;;;-1:-1:-1;5722:218:4;;;;;:::i;:::-;;:::i;15150:54:10:-;;;;;;;;;;-1:-1:-1;15150:54:10;;;;;:::i;:::-;;;;;;;;;;;;;;;;15628:199;;;;;;;;;;;;;:::i;3431:127:4:-;;;;;;;;;;-1:-1:-1;3431:127:4;;;;;:::i;:::-;-1:-1:-1;;;;;3532:18:4;3505:7;3532:18;;;;;;;;;;;;3431:127;1231:148:8;;;;;;;;;;;;;:::i;2190:40:1:-;;;;;;;;;;;;;;;;589:79:8;;;;;;;;;;-1:-1:-1;654:6:8;;589:79;;-1:-1:-1;;;;;654:6:8;;;2553:51:11;;2541:2;2526:18;589:79:8;2407:203:11;5151:124:1;;;;;;;;;;-1:-1:-1;5151:124:1;;;;;:::i;:::-;;:::i;2360:104:4:-;;;;;;;;;;;;;:::i;2235:38:1:-;;;;;;;;;;;;;;;;6443:269:4;;;;;;;;;;-1:-1:-1;6443:269:4;;;;;:::i;:::-;;:::i;5486:168:1:-;;;;;;;;;;-1:-1:-1;5486:168:1;;;;;:::i;:::-;;:::i;3771:175:4:-;;;;;;;;;;-1:-1:-1;3771:175:4;;;;;:::i;:::-;;:::i;5867:129:1:-;;;;;;;;;;-1:-1:-1;5867:129:1;;;;;:::i;:::-;-1:-1:-1;;;;;5964:26:1;5941:7;5964:26;;;:18;:26;;;;;;;5867:129;16889:343:10;;;;;;;;;;-1:-1:-1;16889:343:10;;;;;:::i;:::-;;:::i;4009:151:4:-;;;;;;;;;;-1:-1:-1;4009:151:4;;;;;:::i;:::-;-1:-1:-1;;;;;4125:18:4;;;4098:7;4125:18;;;-1:-1:-1;4125:18:4;;;;;;;;:27;;;;;;;;;;;;;4009:151;16676:205:10;;;;;;;;;;-1:-1:-1;16676:205:10;;;;;:::i;:::-;;:::i;1534:244:8:-;;;;;;;;;;-1:-1:-1;1534:244:8;;;;;:::i;:::-;;:::i;16087:581:10:-;;;;;;;;;;-1:-1:-1;16087:581:10;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;2892:32:11;;;;2874:51;;2956:2;2941:18;;2934:34;;;;2984:18;;;2977:34;;;;3042:2;3027:18;;3020:34;3085:3;3070:19;;3063:35;-1:-1:-1;2846:19:11;16087:581:10;2615:489:11;3358:391:1;3444:1;3428:13;3348:12:4;;;3260:108;3428:13:1;:17;3420:26;;;;;;3459:9;:13;3455:289;;3511:91;3580:13;3348:12:4;;;3260:108;3580:13:1;3551:26;3552:9;-1:-1:-1;;;3551:15:1;:26::i;:::-;:42;;;;:::i;:::-;3511:25;;;:29;:91::i;:::-;3483:25;:119;3616:43;;3649:9;8126:25:11;;3637:10:1;;3616:43;;8114:2:11;8099:18;3616:43:1;;;;;;;3696:25;;:40;;3726:9;3696:29;:40::i;:::-;3668:25;:68;3455:289;3358:391::o;2141:100:4:-;2195:13;2228:5;2221:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2141:100;:::o;4307:169::-;4390:4;4407:39;681:10:0;4430:7:4;4439:6;4407:8;:39::i;:::-;-1:-1:-1;4464:4:4;4307:169;;;;;:::o;4958:355::-;5098:4;5115:36;5125:6;5133:9;5144:6;5115:9;:36::i;:::-;5162:121;5171:6;681:10:0;5193:89:4;5231:6;5193:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5193:19:4;;;;;;-1:-1:-1;5193:19:4;;;;;;;;681:10:0;5193:33:4;;;;;;;;;;:37;:89::i;:::-;5162:8;:121::i;:::-;-1:-1:-1;5301:4:4;4958:355;;;;;:::o;6437:247:1:-;-1:-1:-1;;;;;6613:36:1;;6514:7;6613:36;;;:28;:36;;;;;;;;;3532:18:4;;;;;;;6537:25:1;;-1:-1:-1;;;;6537:129:1;;:113;;:63;;:48;;:25;:29;:48::i;:::-;:61;:63::i;:::-;:75;;:113::i;:::-;:127;:129::i;:::-;:141;;;;:::i;15835:244:10:-;801:6:8;;-1:-1:-1;;;;;801:6:8;681:10:0;801:22:8;793:67;;;;-1:-1:-1;;;793:67:8;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;15918:30:10;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;15917:31;15909:40;;;::::0;::::1;;-1:-1:-1::0;;;;;15957:30:10;::::1;;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;15957:37:10::1;-1:-1:-1::0;15957:37:10::1;::::0;;16004:23:::1;::::0;15957:30;;16004:11:::1;:23::i;:::-;16042:29;::::0;-1:-1:-1;;;;;16042:29:10;::::1;::::0;::::1;::::0;;;::::1;15835:244:::0;:::o;5722:218:4:-;681:10:0;5810:4:4;5859:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;5859:34:4;;;;;;;;;;5810:4;;5827:83;;5859:34;;:50;;5898:10;5859:38;:50::i;15628:199:10:-;15688:131;;-1:-1:-1;;;15688:131:10;;6854:2:11;15688:131:10;;;6836:21:11;6893:3;6873:18;;;6866:31;6933:34;6913:18;;;6906:62;7004:34;6984:18;;;6977:62;7076:34;7055:19;;;7048:63;-1:-1:-1;;;7127:19:11;;;7120:48;7185:19;;15688:131:10;6652:558:11;1231:148:8;801:6;;-1:-1:-1;;;;;801:6:8;681:10:0;801:22:8;793:67;;;;-1:-1:-1;;;793:67:8;;;;;;;:::i;:::-;1322:6:::1;::::0;1301:40:::1;::::0;1338:1:::1;::::0;-1:-1:-1;;;;;1322:6:8::1;::::0;1301:40:::1;::::0;1338:1;;1301:40:::1;1352:6;:19:::0;;-1:-1:-1;;;;;;1352:19:8::1;::::0;;1231:148::o;5151:124:1:-;5216:7;5239:30;5262:6;5239:22;:30::i;2360:104:4:-;2416:13;2449:7;2442:14;;;;;:::i;6443:269::-;6536:4;6553:129;681:10:0;6576:7:4;6585:96;6624:15;6585:96;;;;;;;;;;;;;;;;;681:10:0;6585:25:4;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;6585:34:4;;;;;;;;;;;;:38;:96::i;5486:168:1:-;-1:-1:-1;;;;;5621:26:1;;5563:7;5621:26;;;:18;:26;;;;;;5586:62;;:30;5621:26;5586:22;:30::i;:::-;:34;;:62::i;3771:175:4:-;3857:4;3874:42;681:10:0;3898:9:4;3909:6;3874:9;:42::i;16889:343:10:-;801:6:8;;16980:4:10;;-1:-1:-1;;;;;801:6:8;681:10:0;801:22:8;793:67;;;;-1:-1:-1;;;793:67:8;;;;;;;:::i;:::-;16997:14:10::1;17014:32;17038:7;17014:23;:32::i;:::-;16997:49:::0;-1:-1:-1;17059:10:10;;17056:147:::1;;-1:-1:-1::0;;;;;17080:23:10;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;;17106:15:::1;17080:41:::0;;17141:33;;8126:25:11;;;17141:33:10;::::1;;::::0;17080:23;17141:33:::1;::::0;8099:18:11;17141:33:10::1;;;;;;;17190:4;17183:11;;;;;17056:147;-1:-1:-1::0;17219:5:10::1;::::0;16889:343;-1:-1:-1;;;16889:343:10:o;16676:205::-;801:6:8;;-1:-1:-1;;;;;801:6:8;681:10:0;801:22:8;793:67;;;;-1:-1:-1;;;793:67:8;;;;;;;:::i;:::-;-1:-1:-1;;;;;16771:30:10;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;16768:59;;;16676:205:::0;;:::o;16768:59::-:1;16837:32;16849:7;16858:10;16837:11;:32::i;:::-;16676:205:::0;;:::o;1534:244:8:-;801:6;;-1:-1:-1;;;;;801:6:8;681:10:0;801:22:8;793:67;;;;-1:-1:-1;;;793:67:8;;;;;;;:::i;:::-;-1:-1:-1;;;;;1623:22:8;::::1;1615:73;;;::::0;-1:-1:-1;;;1615:73:8;;4523:2:11;1615:73:8::1;::::0;::::1;4505:21:11::0;4562:2;4542:18;;;4535:30;4601:34;4581:18;;;4574:62;-1:-1:-1;;;4652:18:11;;;4645:36;4698:19;;1615:73:8::1;4321:402:11::0;1615:73:8::1;1725:6;::::0;1704:38:::1;::::0;-1:-1:-1;;;;;1704:38:8;;::::1;::::0;1725:6:::1;::::0;1704:38:::1;::::0;1725:6:::1;::::0;1704:38:::1;1753:6;:17:::0;;-1:-1:-1;;;;;;1753:17:8::1;-1:-1:-1::0;;;;;1753:17:8;;;::::1;::::0;;;::::1;::::0;;1534:244::o;16087:581:10:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16236:22:10;;;;-1:-1:-1;;;;;;;;16298:31:10;16236:22;16298;:31::i;:::-;16269:26;;;:60;16362:31;16385:7;16362:22;:31::i;:::-;16340:19;;;;:53;;;-1:-1:-1;;;;;16425:23:10;;;;;;;;:14;:23;;;;;;;;16404:18;;;:44;;;16481:12;;16508:26;;;;;16549:19;;16616:23;;16481:12;;16508:26;;16549:19;;-1:-1:-1;16425:23:10;;-1:-1:-1;16616:23:10;;-1:-1:-1;16481:12:10;-1:-1:-1;;16087:581:10:o;1679:471:9:-;1737:7;1982:6;1978:47;;-1:-1:-1;2012:1:9;2005:8;;1978:47;2037:9;2049:5;2053:1;2049;:5;:::i;:::-;2037:17;-1:-1:-1;2082:1:9;2073:5;2077:1;2037:17;2073:5;:::i;:::-;:10;2065:56;;;;-1:-1:-1;;;2065:56:9;;5689:2:11;2065:56:9;;;5671:21:11;5728:2;5708:18;;;5701:30;5767:34;5747:18;;;5740:62;-1:-1:-1;;;5818:18:11;;;5811:31;5859:19;;2065:56:9;5487:397:11;2065:56:9;2141:1;1679:471;-1:-1:-1;;;1679:471:9:o;325:181::-;383:7;;415:5;419:1;415;:5;:::i;:::-;403:17;;444:1;439;:6;;431:46;;;;-1:-1:-1;;;431:46:9;;5333:2:11;431:46:9;;;5315:21:11;5372:2;5352:18;;;5345:30;5411:29;5391:18;;;5384:57;5458:18;;431:46:9;5131:351:11;9629:380:4;-1:-1:-1;;;;;9765:19:4;;9757:68;;;;-1:-1:-1;;;9757:68:4;;7417:2:11;9757:68:4;;;7399:21:11;7456:2;7436:18;;;7429:30;7495:34;7475:18;;;7468:62;-1:-1:-1;;;7546:18:11;;;7539:34;7590:19;;9757:68:4;7215:400:11;9757:68:4;-1:-1:-1;;;;;9844:21:4;;9836:68;;;;-1:-1:-1;;;9836:68:4;;4930:2:11;9836:68:4;;;4912:21:11;4969:2;4949:18;;;4942:30;5008:34;4988:18;;;4981:62;-1:-1:-1;;;5059:18:11;;;5052:32;5101:19;;9836:68:4;4728:398:11;9836:68:4;-1:-1:-1;;;;;9917:18:4;;;;;;;-1:-1:-1;9917:18:4;;;;;;;;:27;;;;;;;;;;;;;:36;;;9969:32;;8126:25:11;;;9969:32:4;;;;;;;;;;;;9629:380;;;:::o;15466:154:10:-;15545:67;;-1:-1:-1;;;15545:67:10;;4105:2:11;15545:67:10;;;4087:21:11;4144:2;4124:18;;;4117:30;4183:34;4163:18;;;4156:62;-1:-1:-1;;;4234:18:11;;;4227:47;4291:19;;15545:67:10;3903:413:11;15545:67:10;15466:154;;;:::o;1228:192:9:-;1314:7;1350:12;1342:6;;;;1334:29;;;;-1:-1:-1;;;1334:29:9;;;;;;;;:::i;:::-;-1:-1:-1;1374:9:9;1386:5;1390:1;1386;:5;:::i;:::-;1374:17;1228:192;-1:-1:-1;;;;;1228:192:9:o;6799:134::-;6855:6;6888:1;6905:6;;;;6897:15;;;;;6135:176;6191:6;;6221:5;6225:1;6221;:5;:::i;:::-;6210:16;;6251:1;6246;:6;;:16;;;;;6261:1;6256;:6;;6246:16;6245:38;;;;6272:1;6268;:5;:14;;;;;6281:1;6277;:5;6268:14;6237:47;;;;;6540:127;6596:7;6629:1;6624;:6;;6616:15;;;;;;-1:-1:-1;6657:1:9;6540:127::o;8442:407:1:-;-1:-1:-1;;;;;3532:18:4;;8516:22:1;3532:18:4;;;;;;;;;;;8571:27:1;;;8568:276;;;8609:18;8630:30;:10;8645:14;8630;:30::i;:::-;8609:51;;8669:26;8675:7;8684:10;8669:5;:26::i;:::-;8600:103;15466:154:10;;;:::o;8568:276:1:-;8725:14;8712:10;:27;8709:135;;;8750:18;8771:30;:14;8790:10;8771:18;:30::i;:::-;8750:51;;8810:26;8816:7;8825:10;8810:5;:26::i;789:136:9:-;847:7;874:43;878:1;881;874:43;;;;;;;;;;;;;;;;;:3;:43::i;4196:742:1:-;4269:7;4285:29;4317:28;4340:4;4317:22;:28::i;:::-;4285:60;-1:-1:-1;4356:25:1;;4352:564;;-1:-1:-1;;;;;4419:24:1;;;;;;:18;:24;;;;;;:51;;4448:21;4419:28;:51::i;:::-;-1:-1:-1;;;;;4392:24:1;;;;;;:18;:24;;;;;:78;;;;4480:23;:48;;4507:21;;4392:24;4480:48;;4507:21;;4480:48;:::i;:::-;;;;-1:-1:-1;;4542:46:1;;;8126:25:11;;;4542:46:1;;-1:-1:-1;;;;;4542:46:1;;;;;;;;;8114:2:11;4542:46:1;;;4615:54;;4598:12;;-1:-1:-1;;;;;4615:9:1;;;4660:4;;4632:21;;4598:12;4615:54;4598:12;4615:54;4632:21;4615:9;4660:4;4615:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4597:72;;;4684:7;4680:190;;-1:-1:-1;;;;;4731:24:1;;;;;;:18;:24;;;;;;:51;;4760:21;4731:28;:51::i;:::-;-1:-1:-1;;;;;4704:24:1;;;;;;:18;:24;;;;;:78;;;;4793:23;:48;;4820:21;;4704:24;4793:48;;4820:21;;4793:48;:::i;:::-;;;;-1:-1:-1;4859:1:1;;4196:742;-1:-1:-1;;;;;4196:742:1:o;4680:190::-;-1:-1:-1;4887:21:1;4196:742;-1:-1:-1;;4196:742:1:o;4352:564::-;-1:-1:-1;4931:1:1;;4196:742;-1:-1:-1;;4196:742:1:o;7641:260::-;7713:27;7725:7;7734:5;7713:11;:27::i;:::-;7789:106;7840:53;7841:36;7871:5;7841:25;;:29;;:36;;;;:::i;7840:53::-;-1:-1:-1;;;;;7789:37:1;;;;;;:28;:37;;;;;;;:49;:106::i;:::-;-1:-1:-1;;;;;7749:37:1;;;;;;;;:28;:37;;;;;:146;;;;-1:-1:-1;7641:260:1:o;8176:::-;8248:27;8260:7;8269:5;8248:11;:27::i;:::-;8324:106;8375:53;8376:36;8406:5;8376:25;;:29;;:36;;;;:::i;8375:53::-;-1:-1:-1;;;;;8324:37:1;;;;;;:28;:37;;;;;;;:49;:106::i;8062:378:4:-;-1:-1:-1;;;;;8146:21:4;;8138:65;;;;-1:-1:-1;;;8138:65:4;;7822:2:11;8138:65:4;;;7804:21:11;7861:2;7841:18;;;7834:30;7900:33;7880:18;;;7873:61;7951:18;;8138:65:4;7620:355:11;8138:65:4;8293:12;;:24;;8310:6;8293:16;:24::i;:::-;8278:12;:39;-1:-1:-1;;;;;8349:18:4;;:9;:18;;;;;;;;;;;:30;;8372:6;8349:22;:30::i;:::-;-1:-1:-1;;;;;8328:18:4;;:9;:18;;;;;;;;;;;:51;;;;8395:37;;8126:25:11;;;8328:18:4;;:9;;8395:37;;8099:18:11;8395:37:4;;;;;;;;8062:378;;:::o;5871:176:9:-;5927:6;;5957:5;5961:1;5957;:5;:::i;:::-;5946:16;;5987:1;5982;:6;;:16;;;;;5997:1;5992;:6;;5982:16;5981:38;;;;6008:1;6004;:5;:14;;;;;6017:1;6013;:5;5973:47;;;;;8773:418:4;-1:-1:-1;;;;;8857:21:4;;8849:67;;;;-1:-1:-1;;;8849:67:4;;6452:2:11;8849:67:4;;;6434:21:11;6491:2;6471:18;;;6464:30;6530:34;6510:18;;;6503:62;-1:-1:-1;;;6581:18:11;;;6574:31;6622:19;;8849:67:4;6250:397:11;8849:67:4;9012:68;9035:6;9012:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9012:18:4;;:9;:18;;;;;;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;8991:18:4;;:9;:18;;;;;;;;;;:89;9106:12;;:24;;9123:6;9106:16;:24::i;:::-;9091:12;:39;9146:37;;8126:25:11;;;9172:1:4;;-1:-1:-1;;;;;9146:37:4;;;;;8114:2:11;8099:18;9146:37:4;7980:177:11;14:247;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;200:31;225:5;200:31;:::i;266:424::-;339:6;347;400:2;388:9;379:7;375:23;371:32;368:52;;;416:1;413;406:12;368:52;455:9;442:23;474:31;499:5;474:31;:::i;:::-;524:5;-1:-1:-1;581:2:11;566:18;;553:32;623:15;;616:23;604:36;;594:64;;654:1;651;644:12;594:64;677:7;667:17;;;266:424;;;;;:::o;695:323::-;771:6;779;832:2;820:9;811:7;807:23;803:32;800:52;;;848:1;845;838:12;800:52;887:9;874:23;906:31;931:5;906:31;:::i;:::-;956:5;1008:2;993:18;;;;980:32;;-1:-1:-1;;;695:323:11:o;1023:388::-;1091:6;1099;1152:2;1140:9;1131:7;1127:23;1123:32;1120:52;;;1168:1;1165;1158:12;1120:52;1207:9;1194:23;1226:31;1251:5;1226:31;:::i;:::-;1276:5;-1:-1:-1;1333:2:11;1318:18;;1305:32;1346:33;1305:32;1346:33;:::i;1416:456::-;1493:6;1501;1509;1562:2;1550:9;1541:7;1537:23;1533:32;1530:52;;;1578:1;1575;1568:12;1530:52;1617:9;1604:23;1636:31;1661:5;1636:31;:::i;:::-;1686:5;-1:-1:-1;1743:2:11;1728:18;;1715:32;1756:33;1715:32;1756:33;:::i;:::-;1416:456;;1808:7;;-1:-1:-1;;;1862:2:11;1847:18;;;;1834:32;;1416:456::o;3301:597::-;3413:4;3442:2;3471;3460:9;3453:21;3503:6;3497:13;3546:6;3541:2;3530:9;3526:18;3519:34;3571:1;3581:140;3595:6;3592:1;3589:13;3581:140;;;3690:14;;;3686:23;;3680:30;3656:17;;;3675:2;3652:26;3645:66;3610:10;;3581:140;;;3739:6;3736:1;3733:13;3730:91;;;3809:1;3804:2;3795:6;3784:9;3780:22;3776:31;3769:42;3730:91;-1:-1:-1;3882:2:11;3861:15;-1:-1:-1;;3857:29:11;3842:45;;;;3889:2;3838:54;;3301:597;-1:-1:-1;;;3301:597:11:o;5889:356::-;6091:2;6073:21;;;6110:18;;;6103:30;6169:34;6164:2;6149:18;;6142:62;6236:2;6221:18;;5889:356::o;8351:265::-;8390:3;8418:9;;;-1:-1:-1;;;;;8462:27:11;;;8455:35;;8443:10;;8439:52;8436:78;;;8494:18;;:::i;:::-;-1:-1:-1;;;8541:19:11;;;8534:27;;8526:36;;8523:62;;;8565:18;;:::i;:::-;-1:-1:-1;;8601:9:11;;8351:265::o;8621:128::-;8661:3;8692:1;8688:6;8685:1;8682:13;8679:39;;;8698:18;;:::i;:::-;-1:-1:-1;8734:9:11;;8621:128::o;8754:217::-;8794:1;8820;8810:132;;8864:10;8859:3;8855:20;8852:1;8845:31;8899:4;8896:1;8889:15;8927:4;8924:1;8917:15;8810:132;-1:-1:-1;8956:9:11;;8754:217::o;8976:168::-;9016:7;9082:1;9078;9074:6;9070:14;9067:1;9064:21;9059:1;9052:9;9045:17;9041:45;9038:71;;;9089:18;;:::i;:::-;-1:-1:-1;9129:9:11;;8976:168::o;9149:267::-;9188:4;9217:9;;;-1:-1:-1;;;9261:19:11;;9254:27;;9242:10;;9238:44;9235:70;;;9285:18;;:::i;:::-;-1:-1:-1;;;;;9332:27:11;;9325:35;;9317:44;;9314:70;;;9364:18;;:::i;:::-;-1:-1:-1;;9401:9:11;;9149:267::o;9421:125::-;9461:4;9489:1;9486;9483:8;9480:34;;;9494:18;;:::i;:::-;-1:-1:-1;9531:9:11;;9421:125::o;9551:380::-;9630:1;9626:12;;;;9673;;;9694:61;;9748:4;9740:6;9736:17;9726:27;;9694:61;9801:2;9793:6;9790:14;9770:18;9767:38;9764:161;;;9847:10;9842:3;9838:20;9835:1;9828:31;9882:4;9879:1;9872:15;9910:4;9907:1;9900:15;9764:161;;9551:380;;;:::o;9936:127::-;9997:10;9992:3;9988:20;9985:1;9978:31;10028:4;10025:1;10018:15;10052:4;10049:1;10042:15;10068:131;-1:-1:-1;;;;;10143:31:11;;10133:42;;10123:70;;10189:1;10186;10179:12;10123:70;10068:131;:::o

Swarm Source

ipfs://74e523319dae1e4d95d2a157928970b359b6bae2c54c417ef0e1d810871fa868

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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