ETH Price: $2,426.13 (-1.99%)
Gas: 3.51 Gwei
 

Overview

Max Total Supply

1,000,000 FART

Holders

24

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
16,392.682903848059662836 FART

Value
$0.00
0x15610d874052387f31ac0df769ea6f4879f27b5b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
FartingShiba

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : fartingshiba.sol
/*⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣐⢂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠤⠀⠀⢀⠀⠀⢀⠀⢀⣤⣤⣾⣿⣿⣷⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣶⣶⣦⣦⣢⢀⠀⢀⣠⣴⣶⣶⣿⣷⣶⣤⣆⣤⠐⠄⠈⣴⣿⡿⠹⠟⠀⠀⠚⠛⢻⣷⡆⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⡀⠀⠀⠀⠀⠀⢠⣾⣿⣿⠿⠛⠛⠿⢿⣿⣿⣷⣿⠿⠟⠛⠛⠉⠛⠻⢿⣿⣿⣷⣄⠀⠻⣿⣧⣀⡀⠀⠐⠀⠀⠀⣿⣯⠅⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣼⣀⠤⢀⠀⠀⠀⣾⣿⡟⠀⠀⠀⠀⠀⠀⠈⠛⣿⣷⡂⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣤⠀⠈⣽⣯⠀⠀⠀⡀⠀⠛⢿⡏⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⡿⢻⣿⣀⠀⠂⠀⢠⣿⠿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⡀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⡏⠀⠀⠻⣷⣶⣠⣼⢧⣬⣶⣿⠗⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣾⣿⠋⠀⠀⢈⣙⣷⣆⠀⢸⣿⣵⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⡏⠀⠀⠀⠀⠉⠉⠀⠈⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠿⣿⣱⣴⣷⣼⣿⡿⠏⠀⠀⠘⣿⣆⠀⠠⠀⠀⠀⠀THE⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣴⣾⣿⣿⣿⣷⣶⣴⣦⡀⠲⠨⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠈⠁⠀⠀⢀⣴⣿⡿⢧⣀⠒⠀⠀⠀⠀⠀FIRST⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠀⢤⣿⣿⠋⠀⠀⢩⣄⠀⠀⠀⠀⠀⠀⠀⠀FART⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣿⣧⡄⠈⠀⢠⣄⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠄⣿⣻⡃⠀⠀⠀⠀⢿⣦⣄⠂⠀⠀⠀⠀⠀⠀⠀TO⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣺⠀⣠⣴⣶⣄⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢸⣿⣼⠇⠀⠀⠀⠀⠈⢻⣿⣷⣦⣤⣤⣤⣾⡄⠄⠀EARN ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡟⣀⣿⣿⣿⣿⣶⣶⣶⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢻⣿⣶⡀⠀⠀⠀⠀⢠⡽⠛⣿⣿⠋⠁⣿⣧⠀⠆⠀⠀⠀TOKEN  ⠀⠀⠀⣰⣿⣿⣿⠇⢴⣿⣿⢿⡿⠛⠻⣿⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣿⣿⣦⣄⠀⠀⣾⡇⠀⠸⣿⣷⣶⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⠟⠁⢈⣿⢿⡁⠀⠀⠀⠙⢿⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⡟⠿⣿⣯⠋⢀⡀⠈⠈⠉⠉⠻⣿⣿⣶⣤⣄⡀⠀⠀⠀⠀⣠⣠⣴⠿⣿⣿⣿⣷⡄⠀⢿⣿⣦⣀⣴⣆⣤⣿⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡿⠉⠀⣌⠁⠉⠀⢀⣠⡾⠂⠡⠈⠉⠉⠁⠀⠀⠀⠀⠉⠁⠀⠀⠈⠻⣿⣿⣿⠆⠀⠀⠉⠉⠙⢛⣟⠟⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⡋⣠⣾⠏⣴⣴⣶⡿⠃⠀⠀⠀⠈⠀⠀⢠⣦⠈⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⡀⠀⠀⠀⠉⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣷⣿⣿⣿⣿⣅⠀⠀⠀⠀⠀⠀⢠⣴⣿⣦⣀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⠿⠁⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⡿⠟⠀⠘⠻⣿⣷⣀⡀⠀⠀⣀⣾⡟⠋⠛⢿⣿⣶⣤⣤⣤⣴⣾⣿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠂⠈⠙⢻⡿⡿⠟⠛⠉⠀⠀⠀⠀⠈⠙⢛⢿⠿⠿⠻⠻⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⠟⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⡟⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
      FARTING SHIBA
The first FART TO EARN token

● Deflationary farting supply
● Fast farts secured by Chainlink VRF
● Noisy fart to earn, stinky fart to lose

Website: https://fartingshiba.site/
Documentation: https://docs.fartingshiba.site/
Telegram: https://t.me/fartingshiba/

*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";

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

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);
    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);
    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);
    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);
    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;
    function initialize(address, address) external;
}

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);
    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);
    function createPair(address tokenA, address tokenB) external returns (address pair);
    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC20Metadata is IERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
    function name() public view virtual override returns (string memory) {
        return _name;
    }
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount );
        return true;
    }
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue );
        return true;
    }
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue );
        return true;
    }
    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] - amount;
        _balances[recipient] = _balances[recipient] + amount;
        emit Transfer(sender, recipient, amount);
    }
    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 + amount;
        _balances[account] = _balances[account] + amount;
        emit Transfer(address(0), account, amount);
    }
    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] - amount;
        _totalSupply = _totalSupply - amount;
        emit Transfer(account, address(0), amount);
    }
    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);
    }
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }
    function owner() public view returns (address) {
        return _owner;
    }
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

error Reentrancy();

abstract contract ReentrancyGuard {
  uint256 private locked = 1;
  modifier nonReentrant() {
    if (locked != 1) {
      revert Reentrancy();
    }
    locked = 2;
    _;
    locked = 1;
  }
}

contract FartingShiba is ERC20, Ownable, ReentrancyGuard, VRFConsumerBaseV2 {
    VRFCoordinatorV2Interface private COORDINATOR;
    uint64 private s_subscriptionId;
    bytes32 private keyHash;
    uint32 private callbackGasLimit = 2500000;
    uint16 private requestConfirmations = 3;
    uint32 private numWords =  1;

    mapping(uint256 => address) private requestIdToSender;
    mapping(address => uint256) public userIdFart;
    mapping(address => uint256) public betsizeFart;
    event betFart(address indexed from, uint amount);
    event winFart(address indexed from, uint roll, bool won, uint amount); 

    IUniswapV2Router02 public uniswapV2Router;
    address public constant deadAddress = address(0xdead);

    bool private swapping;

    address public devWallet;
    
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    
    uint256 public buyTotalFees;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
    
    uint256 public sellTotalFees;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;

    uint256 public VRFFee; 
    
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
    
    // exlcude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    // 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 UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    constructor(uint64 subscriptionId) ERC20("Farting Shiba", "FART") VRFConsumerBaseV2(0x271682DEB8C4E0901D1a1550aD2e64D568E69909) {
        COORDINATOR = VRFCoordinatorV2Interface(0x271682DEB8C4E0901D1a1550aD2e64D568E69909);
        s_subscriptionId = subscriptionId;
        keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
        
        uint256 _buyLiquidityFee = 0;
        uint256 _buyDevFee = 3;
        uint256 _sellLiquidityFee = 4;
        uint256 _sellDevFee = 3;

        uint256 _VRFFee = 0.0011 ether;
        
        uint256 totalSupply = 1000000 * 1e18;
        
        maxTransactionAmount = totalSupply * 5 / 100; // 5% maxTransactionAmountTxn
        maxWallet = totalSupply * 5 / 100; // 5% maxWallet
        swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap wallet

        buyLiquidityFee = _buyLiquidityFee;
        buyDevFee = _buyDevFee;
        buyTotalFees = buyLiquidityFee + buyDevFee;
        
        sellLiquidityFee = _sellLiquidityFee;
        sellDevFee = _sellDevFee;
        sellTotalFees = sellLiquidityFee + sellDevFee;

        VRFFee = _VRFFee;
        
        devWallet = address(0x4a20805f146Ea250CDbD51D60BCaC147031D0b6C); // set as dev wallet

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        
        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    function fart(uint256 _amount) nonReentrant public payable {
        require(_amount <= totalSupply() / 100, "Can not fart more than 1% of the supply at a time");
        require(userIdFart[msg.sender] == 0, "One fart at a time!");
        require(msg.value >= VRFFee, "Insufficient VRFFee");

        (bool sent, ) = devWallet.call{value: VRFFee}("");
        require(sent, "Failed to send VRFFee");

        _burn(msg.sender, _amount);
        uint256 requestId = COORDINATOR.requestRandomWords(
            keyHash,
            s_subscriptionId,
            requestConfirmations,
            callbackGasLimit,
            numWords
        );
        requestIdToSender[requestId] = msg.sender;
        userIdFart[msg.sender] = requestId;
        betsizeFart[msg.sender] = (_amount * 199 / 100);
        emit betFart(msg.sender, _amount);
    }

    function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override {
        address user = requestIdToSender[requestId];
        require(user != address(0), "No game found for the user");

        uint256 randomNumber = randomWords[0];

        // Fart Game Logic
        if (userIdFart[user] == requestId) {
            uint256 secretnum = randomNumber % 2;
            if (secretnum == 0){
                _mint(user, betsizeFart[user]);
                emit winFart(user, secretnum, true, betsizeFart[user]);
            }
            else {
                emit winFart(user, secretnum, false, betsizeFart[user]);
            }
            delete betsizeFart[user];
            delete userIdFart[user];
        }
    }

    function dangerClearCacheFart() public {
        delete betsizeFart[msg.sender];
        delete userIdFart[msg.sender];
    }

    function setRouter(address router) public onlyOwner{
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);
        
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
    }

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }
    
    function removeLimits() external onlyOwner returns (bool){
        limitsInEffect = false;
        return true;
    }
    
     // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
  	    require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
  	    require(newAmount <= totalSupply() * 1 / 100, "Swap amount cannot be higher than 1% total supply.");
  	    swapTokensAtAmount = newAmount;
  	    return true;
  	}
    
    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * (10**18);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * (10**18);
    }
    
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }
    
    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner(){
        swapEnabled = enabled;
    }
    
    function updateBuyFees(uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _devFee;
        buyTotalFees = buyLiquidityFee + buyDevFee;
        require(buyTotalFees <= 20, "Must keep fees at 20% or less");
    }
    
    function updateSellFees(uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _devFee;
        sellTotalFees = sellLiquidityFee + sellDevFee;
        require(sellTotalFees <= 25, "Must keep fees at 25% or less");
    }

    function updateVRFFee(uint256 _newFee) external onlyOwner {
        require(_newFee <= 0.1 ether, "Must keep VRF fee <= 0.1 ETH");
        VRFFee = _newFee;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }
    
    function updateDevWallet(address newWallet) external onlyOwner {
        emit devWalletUpdated(newWallet, devWallet);
        devWallet = newWallet;
    }
    
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }
    
    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");
        
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        
        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }

                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
                
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
        }
                     
		uint256 contractTokenBalance = balanceOf(address(this));
        
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if( 
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;            
            swapBack();
            swapping = false;
        }
        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
        
        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
                fees = amount * sellTotalFees / 100;
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForDev += fees * sellDevFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
        	    fees = amount * buyTotalFees / 100;
        	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForDev += fees * buyDevFee / buyTotalFees;
            }     
            if(fees > 0){    
                super._transfer(from, address(this), fees);
            }       	
        	amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    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] = uniswapV2Router.WETH();

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

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }
    
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForDev;
        bool success;
        
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}

        if(contractBalance > swapTokensAtAmount * 20){
          contractBalance = swapTokensAtAmount * 20;
        }
        
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance - liquidityTokens;
        
        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH); 
        
        uint256 ethBalance = address(this).balance - initialETHBalance;
        
        uint256 ethForDev = ethBalance * tokensForDev / totalTokensToSwap;
        
        uint256 ethForLiquidity = ethBalance - ethForDev;
        
        tokensForLiquidity = 0;
        tokensForDev = 0;
        
        (success,) = address(devWallet).call{value: ethForDev}("");
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
        (success,) = address(devWallet).call{value: address(this).balance}("");
    }
    
    function payout() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function withdrawToken() public onlyOwner {
        this.approve(address(this), totalSupply());
        this.transferFrom(address(this), owner(), balanceOf(address(this)));  
    }
}

File 2 of 3 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig() external view returns (uint16, uint32, bytes32[] memory);

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(
    uint64 subId
  ) external view returns (uint96 balance, uint64 reqCount, address owner, address[] memory consumers);

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

File 3 of 3 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"Reentrancy","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"betFart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"devWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"roll","type":"uint256"},{"indexed":false,"internalType":"bool","name":"won","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"winFart","type":"event"},{"inputs":[],"name":"VRFFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"betsizeFart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dangerClearCacheFart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"fart","outputs":[],"stateMutability":"payable","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":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","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":[],"name":"payout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForDev","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"updateVRFFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userIdFart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405260016006819055600980546001600160501b03191666010003002625a01790556012805462ffffff191690911790553480156200004057600080fd5b506040516200379c3803806200379c8339810160408190526200006391620005fe565b604080518082018252600d81526c46617274696e6720536869626160981b6020808301918252835180850190945260048452631190549560e21b90840152815173271682deb8c4e0901d1a1550ad2e64d568e699099391620000c9916003919062000558565b508051620000df90600490602084019062000558565b5050506000620000f46200034a60201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0316608052600780546001600160401b038316600160a01b026001600160e01b03199091161773271682deb8c4e0901d1a1550ad2e64d568e699091790557f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef600855737a250d5630b4cf539739df2c5dacb4c659f2488d620001cd8160016200034e565b600d80546001600160a01b0319166001600160a01b038316179055600060036004816603e871b540c00069d3c21bcecceda100000060646200021182600562000646565b6200021d919062000668565b600f5560646200022f82600562000646565b6200023b919062000668565b6011556127106200024e82600562000646565b6200025a919062000668565b601055601486905560158590556200027385876200068b565b601355601784905560188390556200028c83856200068b565b6016556019829055600e80546001600160a01b031916734a20805f146ea250cdbd51d60bcac147031d0b6c179055620002d9620002d16005546001600160a01b031690565b6001620003c8565b620002e6306001620003c8565b620002f561dead6001620003c8565b620003146200030c6005546001600160a01b031690565b60016200034e565b620003213060016200034e565b6200033061dead60016200034e565b6200033c338262000472565b5050505050505050620006e3565b3390565b6005546001600160a01b031633146200039d5760405162461bcd60e51b815260206004820181905260248201526000805160206200377c83398151915260448201526064015b60405180910390fd5b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314620004135760405162461bcd60e51b815260206004820181905260248201526000805160206200377c833981519152604482015260640162000394565b6001600160a01b0382166000818152601c6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620004ca5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000394565b80600254620004da91906200068b565b6002556001600160a01b038216600090815260208190526040902054620005039082906200068b565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b8280546200056690620006a6565b90600052602060002090601f0160209004810192826200058a5760008555620005d5565b82601f10620005a557805160ff1916838001178555620005d5565b82800160010185558215620005d5579182015b82811115620005d5578251825591602001919060010190620005b8565b50620005e3929150620005e7565b5090565b5b80821115620005e35760008155600101620005e8565b6000602082840312156200061157600080fd5b81516001600160401b03811681146200062957600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562000663576200066362000630565b500290565b6000826200068657634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115620006a157620006a162000630565b500190565b600181811c90821680620006bb57607f821691505b60208210811415620006dd57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516130766200070660003960008181610c490152610c8b01526130766000f3fe60806040526004361061036f5760003560e01c80638ea5220f116101c6578063c0d78655116100f7578063e2ee328311610095578063f16816471161006f578063f1681647146109f4578063f2fde38b14610a23578063f637434214610a43578063f8b45b0514610a5957600080fd5b8063e2ee3283146109b5578063e2f45605146109c8578063f11a24d3146109de57600080fd5b8063ca628c78116100d1578063ca628c7814610924578063d257b34f14610939578063d85ba06314610959578063dd62ed3e1461096f57600080fd5b8063c0d78655146108ce578063c18bc195146108ee578063c8c8ebe41461090e57600080fd5b8063a0d82dc511610164578063a9059cbb1161013e578063a9059cbb1461083f578063b62496f51461085f578063bbc0c7421461088f578063c0246668146108ae57600080fd5b8063a0d82dc5146107dc578063a340f3bc146107f2578063a457c2d71461081f57600080fd5b806395d89b41116101a057806395d89b411461077b5780639a7a23d6146107905780639c3b4fdc146107b05780639fccce32146107c657600080fd5b80638ea5220f14610725578063924de9b714610745578063935cbe151461076557600080fd5b80633546211e116102a05780636ddd17131161023e578063751039fc11610218578063751039fc146106bd5780637571336a146106d25780638a8c523c146106f25780638da5cb5b1461070757600080fd5b80636ddd17131461065257806370a0823114610672578063715018a6146106a857600080fd5b80634fbee1931161027a5780634fbee193146105ce57806363bd1d4a1461060757806366ca9b831461061c5780636a486a8e1461063c57600080fd5b80633546211e1461056757806339509351146105945780634a62bb65146105b457600080fd5b80631a8145bb1161030d57806323b872dd116102e757806323b872dd146104f557806327c8f835146105155780632aec3ab91461052b578063313ce5671461054b57600080fd5b80631a8145bb1461049f5780631fe543e3146104b5578063203e727e146104d557600080fd5b806310d5de531161034957806310d5de53146103f85780631694505e1461042857806318160ddd146104605780631816467f1461047f57600080fd5b806302dbd8f81461037b57806306fdde031461039d578063095ea7b3146103c857600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004612af6565b610a6f565b005b3480156103a957600080fd5b506103b2610b0f565b6040516103bf9190612b18565b60405180910390f35b3480156103d457600080fd5b506103e86103e3366004612b82565b610ba1565b60405190151581526020016103bf565b34801561040457600080fd5b506103e8610413366004612bae565b601d6020526000908152604090205460ff1681565b34801561043457600080fd5b50600d54610448906001600160a01b031681565b6040516001600160a01b0390911681526020016103bf565b34801561046c57600080fd5b506002545b6040519081526020016103bf565b34801561048b57600080fd5b5061039b61049a366004612bae565b610bb7565b3480156104ab57600080fd5b50610471601a5481565b3480156104c157600080fd5b5061039b6104d0366004612be8565b610c3e565b3480156104e157600080fd5b5061039b6104f0366004612cb2565b610cc2565b34801561050157600080fd5b506103e8610510366004612ccb565b610d9f565b34801561052157600080fd5b5061044861dead81565b34801561053757600080fd5b5061039b610546366004612cb2565b610df1565b34801561055757600080fd5b50604051601281526020016103bf565b34801561057357600080fd5b50610471610582366004612bae565b600b6020526000908152604090205481565b3480156105a057600080fd5b506103e86105af366004612b82565b610e78565b3480156105c057600080fd5b506012546103e89060ff1681565b3480156105da57600080fd5b506103e86105e9366004612bae565b6001600160a01b03166000908152601c602052604090205460ff1690565b34801561061357600080fd5b5061039b610eaf565b34801561062857600080fd5b5061039b610637366004612af6565b610f08565b34801561064857600080fd5b5061047160165481565b34801561065e57600080fd5b506012546103e89062010000900460ff1681565b34801561067e57600080fd5b5061047161068d366004612bae565b6001600160a01b031660009081526020819052604090205490565b3480156106b457600080fd5b5061039b610f9b565b3480156106c957600080fd5b506103e861100f565b3480156106de57600080fd5b5061039b6106ed366004612d1a565b61104c565b3480156106fe57600080fd5b5061039b6110a1565b34801561071357600080fd5b506005546001600160a01b0316610448565b34801561073157600080fd5b50600e54610448906001600160a01b031681565b34801561075157600080fd5b5061039b610760366004612d53565b6110de565b34801561077157600080fd5b5061047160195481565b34801561078757600080fd5b506103b2611124565b34801561079c57600080fd5b5061039b6107ab366004612d1a565b611133565b3480156107bc57600080fd5b5061047160155481565b3480156107d257600080fd5b50610471601b5481565b3480156107e857600080fd5b5061047160185481565b3480156107fe57600080fd5b5061047161080d366004612bae565b600c6020526000908152604090205481565b34801561082b57600080fd5b506103e861083a366004612b82565b611167565b34801561084b57600080fd5b506103e861085a366004612b82565b61119e565b34801561086b57600080fd5b506103e861087a366004612bae565b601e6020526000908152604090205460ff1681565b34801561089b57600080fd5b506012546103e890610100900460ff1681565b3480156108ba57600080fd5b5061039b6108c9366004612d1a565b6111ab565b3480156108da57600080fd5b5061039b6108e9366004612bae565b611234565b3480156108fa57600080fd5b5061039b610909366004612cb2565b61128d565b34801561091a57600080fd5b50610471600f5481565b34801561093057600080fd5b5061039b61135e565b34801561094557600080fd5b506103e8610954366004612cb2565b6114a9565b34801561096557600080fd5b5061047160135481565b34801561097b57600080fd5b5061047161098a366004612d70565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61039b6109c3366004612cb2565b6115f8565b3480156109d457600080fd5b5061047160105481565b3480156109ea57600080fd5b5061047160145481565b348015610a0057600080fd5b5061039b336000908152600c60209081526040808320839055600b909152812055565b348015610a2f57600080fd5b5061039b610a3e366004612bae565b61193d565b348015610a4f57600080fd5b5061047160175481565b348015610a6557600080fd5b5061047160115481565b6005546001600160a01b03163314610aa25760405162461bcd60e51b8152600401610a9990612d9e565b60405180910390fd5b60178290556018819055610ab68183612de9565b601681905560191015610b0b5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610a99565b5050565b606060038054610b1e90612e01565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90612e01565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b5050505050905090565b6000610bae338484611a28565b50600192915050565b6005546001600160a01b03163314610be15760405162461bcd60e51b8152600401610a9990612d9e565b600e546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600e80546001600160a01b0319166001600160a01b0392909216919091179055565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cb85760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610a99565b610b0b8282611b4d565b6005546001600160a01b03163314610cec5760405162461bcd60e51b8152600401610a9990612d9e565b670de0b6b3a76400006103e8610d0160025490565b610d0c906001612e3c565b610d169190612e71565b610d209190612e71565b811015610d875760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610a99565b610d9981670de0b6b3a7640000612e3c565b600f5550565b6000610dac848484611d30565b6001600160a01b038416600090815260016020908152604080832033808552925290912054610de7918691610de2908690612e85565b611a28565b5060019392505050565b6005546001600160a01b03163314610e1b5760405162461bcd60e51b8152600401610a9990612d9e565b67016345785d8a0000811115610e735760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702056524620666565203c3d20302e3120455448000000006044820152606401610a99565b601955565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610bae918590610de2908690612de9565b6005546001600160a01b03163314610ed95760405162461bcd60e51b8152600401610a9990612d9e565b60405133904780156108fc02916000818181858888f19350505050158015610f05573d6000803e3d6000fd5b50565b6005546001600160a01b03163314610f325760405162461bcd60e51b8152600401610a9990612d9e565b60148290556015819055610f468183612de9565b601381905560141015610b0b5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610a99565b6005546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610a9990612d9e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546000906001600160a01b0316331461103c5760405162461bcd60e51b8152600401610a9990612d9e565b506012805460ff19169055600190565b6005546001600160a01b031633146110765760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110cb5760405162461bcd60e51b8152600401610a9990612d9e565b6012805462ffff00191662010100179055565b6005546001600160a01b031633146111085760405162461bcd60e51b8152600401610a9990612d9e565b60128054911515620100000262ff000019909216919091179055565b606060048054610b1e90612e01565b6005546001600160a01b0316331461115d5760405162461bcd60e51b8152600401610a9990612d9e565b610b0b82826123d7565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610bae918590610de2908690612e85565b6000610bae338484611d30565b6005546001600160a01b031633146111d55760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b0382166000818152601c6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b0316331461125e5760405162461bcd60e51b8152600401610a9990612d9e565b8061126a81600161104c565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6005546001600160a01b031633146112b75760405162461bcd60e51b8152600401610a9990612d9e565b670de0b6b3a76400006103e86112cc60025490565b6112d7906005612e3c565b6112e19190612e71565b6112eb9190612e71565b8110156113465760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b6064820152608401610a99565b61135881670de0b6b3a7640000612e3c565b60115550565b6005546001600160a01b031633146113885760405162461bcd60e51b8152600401610a9990612d9e565b3063095ea7b38161139860025490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114079190612e9c565b50306323b872dd816114216005546001600160a01b031690565b306000908152602081905260409020546040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611485573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f059190612e9c565b6005546000906001600160a01b031633146114d65760405162461bcd60e51b8152600401610a9990612d9e565b620186a06114e360025490565b6114ee906001612e3c565b6114f89190612e71565b8210156115655760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610a99565b606461157060025490565b61157b906001612e3c565b6115859190612e71565b8211156115ef5760405162461bcd60e51b815260206004820152603260248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527137101892903a37ba30b61039bab838363c9760711b6064820152608401610a99565b50601055600190565b60065460011461161b5760405163558a1e0360e11b815260040160405180910390fd5b6002600655606461162b60025490565b6116359190612e71565b81111561169e5760405162461bcd60e51b815260206004820152603160248201527f43616e206e6f742066617274206d6f7265207468616e203125206f662074686560448201527020737570706c7920617420612074696d6560781b6064820152608401610a99565b336000908152600b6020526040902054156116f15760405162461bcd60e51b81526020600482015260136024820152724f6e65206661727420617420612074696d652160681b6044820152606401610a99565b6019543410156117395760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742056524646656560681b6044820152606401610a99565b600e546019546040516000926001600160a01b031691908381818185875af1925050503d8060008114611788576040519150601f19603f3d011682016040523d82523d6000602084013e61178d565b606091505b50509050806117d65760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e642056524646656560581b6044820152606401610a99565b6117e0338361242b565b6007546008546009546040516305d3b1d360e41b81526004810192909252600160a01b830467ffffffffffffffff166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526000916001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190612eb9565b6000818152600a6020908152604080832080546001600160a01b031916339081179091558352600b9091529020819055905060646118db8460c7612e3c565b6118e59190612e71565b336000818152600c6020526040908190209290925590517ff1805d757050f42a8e9145be9851086ed2f6557c87d5fc651cd8a5c7ed923e929061192b9086815260200190565b60405180910390a25050600160065550565b6005546001600160a01b031633146119675760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b0381166119cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a99565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316611a8a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a99565b6001600160a01b038216611aeb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a99565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000828152600a60205260409020546001600160a01b031680611bb25760405162461bcd60e51b815260206004820152601a60248201527f4e6f2067616d6520666f756e6420666f722074686520757365720000000000006044820152606401610a99565b600082600081518110611bc757611bc7612ed2565b6020026020010151905083600b6000846001600160a01b03166001600160a01b03168152602001908152602001600020541415611d2a576000611c0b600283612ee8565b905080611ca1576001600160a01b0383166000908152600c6020526040902054611c3690849061251f565b6001600160a01b0383166000818152600c6020526040908190205490517f639b3f89af73534c58698d78dfe9d0ab626a4e371f09056916e5057957e4334791611c949185916001919283529015156020830152604082015260600190565b60405180910390a2611d02565b6001600160a01b0383166000818152600c60205260408082205490517f639b3f89af73534c58698d78dfe9d0ab626a4e371f09056916e5057957e4334792611cf9928683529015156020830152604082015260600190565b60405180910390a25b506001600160a01b0382166000908152600c60209081526040808320839055600b9091528120555b50505050565b6001600160a01b038316611d565760405162461bcd60e51b8152600401610a9990612efc565b6001600160a01b038216611d7c5760405162461bcd60e51b8152600401610a9990612f41565b80611d9257611d8d838360006125f8565b505050565b60125460ff1615612108576005546001600160a01b03848116911614801590611dc957506005546001600160a01b03838116911614155b8015611ddd57506001600160a01b03821615155b8015611df457506001600160a01b03821661dead14155b8015611e0a5750600d54600160a01b900460ff16155b1561210857601254610100900460ff16611ea2576001600160a01b0383166000908152601c602052604090205460ff1680611e5d57506001600160a01b0382166000908152601c602052604090205460ff165b611ea25760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610a99565b6001600160a01b0383166000908152601e602052604090205460ff168015611ee357506001600160a01b0382166000908152601d602052604090205460ff16155b15611fc757600f54811115611f585760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610a99565b6011546001600160a01b038316600090815260208190526040902054611f7e9083612de9565b1115611fc25760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a99565b612108565b6001600160a01b0382166000908152601e602052604090205460ff16801561200857506001600160a01b0383166000908152601d602052604090205460ff16155b1561207e57600f54811115611fc25760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610a99565b6001600160a01b0382166000908152601d602052604090205460ff16612108576011546001600160a01b0383166000908152602081905260409020546120c49083612de9565b11156121085760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a99565b3060009081526020819052604090205460105481108015908190612134575060125462010000900460ff165b801561214a5750600d54600160a01b900460ff16155b801561216f57506001600160a01b0385166000908152601e602052604090205460ff16155b801561219457506001600160a01b0385166000908152601c602052604090205460ff16155b80156121b957506001600160a01b0384166000908152601c602052604090205460ff16155b156121e757600d805460ff60a01b1916600160a01b1790556121d96126e9565b600d805460ff60a01b191690555b600d546001600160a01b0386166000908152601c602052604090205460ff600160a01b90920482161591168061223557506001600160a01b0385166000908152601c602052604090205460ff165b1561223e575060005b600081156123c3576001600160a01b0386166000908152601e602052604090205460ff16801561227057506000601654115b156122f8576064601654866122859190612e3c565b61228f9190612e71565b9050601654601754826122a29190612e3c565b6122ac9190612e71565b601a60008282546122bd9190612de9565b90915550506016546018546122d29083612e3c565b6122dc9190612e71565b601b60008282546122ed9190612de9565b909155506123a59050565b6001600160a01b0387166000908152601e602052604090205460ff16801561232257506000601354115b156123a5576064601354866123379190612e3c565b6123419190612e71565b9050601354601454826123549190612e3c565b61235e9190612e71565b601a600082825461236f9190612de9565b90915550506013546015546123849083612e3c565b61238e9190612e71565b601b600082825461239f9190612de9565b90915550505b80156123b6576123b68730836125f8565b6123c08186612e85565b94505b6123ce8787876125f8565b50505050505050565b6001600160a01b0382166000818152601e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b03821661248b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a99565b6001600160a01b0382166000908152602081905260409020546124af908290612e85565b6001600160a01b0383166000908152602081905260409020556002546124d6908290612e85565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b0382166125755760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a99565b806002546125839190612de9565b6002556001600160a01b0382166000908152602081905260409020546125aa908290612de9565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101612513565b6001600160a01b03831661261e5760405162461bcd60e51b8152600401610a9990612efc565b6001600160a01b0382166126445760405162461bcd60e51b8152600401610a9990612f41565b6001600160a01b038316600090815260208190526040902054612668908290612e85565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612698908290612de9565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611b40565b3060009081526020819052604081205490506000601b54601a5461270d9190612de9565b9050600082158061271c575081155b1561272657505050565b601054612734906014612e3c565b83111561274c57601054612749906014612e3c565b92505b6000600283601a548661275f9190612e3c565b6127699190612e71565b6127739190612e71565b905060006127818286612e85565b90504761278d826128e8565b60006127998247612e85565b9050600086601b54836127ac9190612e3c565b6127b69190612e71565b905060006127c48284612e85565b6000601a819055601b819055600e546040519293506001600160a01b031691849181818185875af1925050503d806000811461281c576040519150601f19603f3d011682016040523d82523d6000602084013e612821565b606091505b509097505085158015906128355750600081115b15612888576128448682612a42565b601a54604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b600e546040516001600160a01b03909116904790600081818185875af1925050503d80600081146128d5576040519150601f19603f3d011682016040523d82523d6000602084013e6128da565b606091505b505050505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061291d5761291d612ed2565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299a9190612f84565b816001815181106129ad576129ad612ed2565b6001600160a01b039283166020918202929092010152600d546129d39130911684611a28565b600d5460405163791ac94760e01b81526001600160a01b039091169063791ac94790612a0c908590600090869030904290600401612fa1565b600060405180830381600087803b158015612a2657600080fd5b505af1158015612a3a573d6000803e3d6000fd5b505050505050565b600d54612a5a9030906001600160a01b031684611a28565b600d54600e5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612aca573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612aef9190613012565b5050505050565b60008060408385031215612b0957600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015612b4557858101830151858201604001528201612b29565b81811115612b57576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610f0557600080fd5b60008060408385031215612b9557600080fd5b8235612ba081612b6d565b946020939093013593505050565b600060208284031215612bc057600080fd5b8135612bcb81612b6d565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215612bfb57600080fd5b8235915060208084013567ffffffffffffffff80821115612c1b57600080fd5b818601915086601f830112612c2f57600080fd5b813581811115612c4157612c41612bd2565b8060051b604051601f19603f83011681018181108582111715612c6657612c66612bd2565b604052918252848201925083810185019189831115612c8457600080fd5b938501935b82851015612ca257843584529385019392850192612c89565b8096505050505050509250929050565b600060208284031215612cc457600080fd5b5035919050565b600080600060608486031215612ce057600080fd5b8335612ceb81612b6d565b92506020840135612cfb81612b6d565b929592945050506040919091013590565b8015158114610f0557600080fd5b60008060408385031215612d2d57600080fd5b8235612d3881612b6d565b91506020830135612d4881612d0c565b809150509250929050565b600060208284031215612d6557600080fd5b8135612bcb81612d0c565b60008060408385031215612d8357600080fd5b8235612d8e81612b6d565b91506020830135612d4881612b6d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dfc57612dfc612dd3565b500190565b600181811c90821680612e1557607f821691505b60208210811415612e3657634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612e5657612e56612dd3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e8057612e80612e5b565b500490565b600082821015612e9757612e97612dd3565b500390565b600060208284031215612eae57600080fd5b8151612bcb81612d0c565b600060208284031215612ecb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600082612ef757612ef7612e5b565b500690565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600060208284031215612f9657600080fd5b8151612bcb81612b6d565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612ff15784516001600160a01b031683529383019391830191600101612fcc565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561302757600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220c99e0fae5aca912c560f86b4f8dafae0cdbe619ec98a849b88684e224abcf54164736f6c634300080a00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000003b3

Deployed Bytecode

0x60806040526004361061036f5760003560e01c80638ea5220f116101c6578063c0d78655116100f7578063e2ee328311610095578063f16816471161006f578063f1681647146109f4578063f2fde38b14610a23578063f637434214610a43578063f8b45b0514610a5957600080fd5b8063e2ee3283146109b5578063e2f45605146109c8578063f11a24d3146109de57600080fd5b8063ca628c78116100d1578063ca628c7814610924578063d257b34f14610939578063d85ba06314610959578063dd62ed3e1461096f57600080fd5b8063c0d78655146108ce578063c18bc195146108ee578063c8c8ebe41461090e57600080fd5b8063a0d82dc511610164578063a9059cbb1161013e578063a9059cbb1461083f578063b62496f51461085f578063bbc0c7421461088f578063c0246668146108ae57600080fd5b8063a0d82dc5146107dc578063a340f3bc146107f2578063a457c2d71461081f57600080fd5b806395d89b41116101a057806395d89b411461077b5780639a7a23d6146107905780639c3b4fdc146107b05780639fccce32146107c657600080fd5b80638ea5220f14610725578063924de9b714610745578063935cbe151461076557600080fd5b80633546211e116102a05780636ddd17131161023e578063751039fc11610218578063751039fc146106bd5780637571336a146106d25780638a8c523c146106f25780638da5cb5b1461070757600080fd5b80636ddd17131461065257806370a0823114610672578063715018a6146106a857600080fd5b80634fbee1931161027a5780634fbee193146105ce57806363bd1d4a1461060757806366ca9b831461061c5780636a486a8e1461063c57600080fd5b80633546211e1461056757806339509351146105945780634a62bb65146105b457600080fd5b80631a8145bb1161030d57806323b872dd116102e757806323b872dd146104f557806327c8f835146105155780632aec3ab91461052b578063313ce5671461054b57600080fd5b80631a8145bb1461049f5780631fe543e3146104b5578063203e727e146104d557600080fd5b806310d5de531161034957806310d5de53146103f85780631694505e1461042857806318160ddd146104605780631816467f1461047f57600080fd5b806302dbd8f81461037b57806306fdde031461039d578063095ea7b3146103c857600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004612af6565b610a6f565b005b3480156103a957600080fd5b506103b2610b0f565b6040516103bf9190612b18565b60405180910390f35b3480156103d457600080fd5b506103e86103e3366004612b82565b610ba1565b60405190151581526020016103bf565b34801561040457600080fd5b506103e8610413366004612bae565b601d6020526000908152604090205460ff1681565b34801561043457600080fd5b50600d54610448906001600160a01b031681565b6040516001600160a01b0390911681526020016103bf565b34801561046c57600080fd5b506002545b6040519081526020016103bf565b34801561048b57600080fd5b5061039b61049a366004612bae565b610bb7565b3480156104ab57600080fd5b50610471601a5481565b3480156104c157600080fd5b5061039b6104d0366004612be8565b610c3e565b3480156104e157600080fd5b5061039b6104f0366004612cb2565b610cc2565b34801561050157600080fd5b506103e8610510366004612ccb565b610d9f565b34801561052157600080fd5b5061044861dead81565b34801561053757600080fd5b5061039b610546366004612cb2565b610df1565b34801561055757600080fd5b50604051601281526020016103bf565b34801561057357600080fd5b50610471610582366004612bae565b600b6020526000908152604090205481565b3480156105a057600080fd5b506103e86105af366004612b82565b610e78565b3480156105c057600080fd5b506012546103e89060ff1681565b3480156105da57600080fd5b506103e86105e9366004612bae565b6001600160a01b03166000908152601c602052604090205460ff1690565b34801561061357600080fd5b5061039b610eaf565b34801561062857600080fd5b5061039b610637366004612af6565b610f08565b34801561064857600080fd5b5061047160165481565b34801561065e57600080fd5b506012546103e89062010000900460ff1681565b34801561067e57600080fd5b5061047161068d366004612bae565b6001600160a01b031660009081526020819052604090205490565b3480156106b457600080fd5b5061039b610f9b565b3480156106c957600080fd5b506103e861100f565b3480156106de57600080fd5b5061039b6106ed366004612d1a565b61104c565b3480156106fe57600080fd5b5061039b6110a1565b34801561071357600080fd5b506005546001600160a01b0316610448565b34801561073157600080fd5b50600e54610448906001600160a01b031681565b34801561075157600080fd5b5061039b610760366004612d53565b6110de565b34801561077157600080fd5b5061047160195481565b34801561078757600080fd5b506103b2611124565b34801561079c57600080fd5b5061039b6107ab366004612d1a565b611133565b3480156107bc57600080fd5b5061047160155481565b3480156107d257600080fd5b50610471601b5481565b3480156107e857600080fd5b5061047160185481565b3480156107fe57600080fd5b5061047161080d366004612bae565b600c6020526000908152604090205481565b34801561082b57600080fd5b506103e861083a366004612b82565b611167565b34801561084b57600080fd5b506103e861085a366004612b82565b61119e565b34801561086b57600080fd5b506103e861087a366004612bae565b601e6020526000908152604090205460ff1681565b34801561089b57600080fd5b506012546103e890610100900460ff1681565b3480156108ba57600080fd5b5061039b6108c9366004612d1a565b6111ab565b3480156108da57600080fd5b5061039b6108e9366004612bae565b611234565b3480156108fa57600080fd5b5061039b610909366004612cb2565b61128d565b34801561091a57600080fd5b50610471600f5481565b34801561093057600080fd5b5061039b61135e565b34801561094557600080fd5b506103e8610954366004612cb2565b6114a9565b34801561096557600080fd5b5061047160135481565b34801561097b57600080fd5b5061047161098a366004612d70565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61039b6109c3366004612cb2565b6115f8565b3480156109d457600080fd5b5061047160105481565b3480156109ea57600080fd5b5061047160145481565b348015610a0057600080fd5b5061039b336000908152600c60209081526040808320839055600b909152812055565b348015610a2f57600080fd5b5061039b610a3e366004612bae565b61193d565b348015610a4f57600080fd5b5061047160175481565b348015610a6557600080fd5b5061047160115481565b6005546001600160a01b03163314610aa25760405162461bcd60e51b8152600401610a9990612d9e565b60405180910390fd5b60178290556018819055610ab68183612de9565b601681905560191015610b0b5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610a99565b5050565b606060038054610b1e90612e01565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90612e01565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b5050505050905090565b6000610bae338484611a28565b50600192915050565b6005546001600160a01b03163314610be15760405162461bcd60e51b8152600401610a9990612d9e565b600e546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600e80546001600160a01b0319166001600160a01b0392909216919091179055565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614610cb85760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610a99565b610b0b8282611b4d565b6005546001600160a01b03163314610cec5760405162461bcd60e51b8152600401610a9990612d9e565b670de0b6b3a76400006103e8610d0160025490565b610d0c906001612e3c565b610d169190612e71565b610d209190612e71565b811015610d875760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610a99565b610d9981670de0b6b3a7640000612e3c565b600f5550565b6000610dac848484611d30565b6001600160a01b038416600090815260016020908152604080832033808552925290912054610de7918691610de2908690612e85565b611a28565b5060019392505050565b6005546001600160a01b03163314610e1b5760405162461bcd60e51b8152600401610a9990612d9e565b67016345785d8a0000811115610e735760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702056524620666565203c3d20302e3120455448000000006044820152606401610a99565b601955565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610bae918590610de2908690612de9565b6005546001600160a01b03163314610ed95760405162461bcd60e51b8152600401610a9990612d9e565b60405133904780156108fc02916000818181858888f19350505050158015610f05573d6000803e3d6000fd5b50565b6005546001600160a01b03163314610f325760405162461bcd60e51b8152600401610a9990612d9e565b60148290556015819055610f468183612de9565b601381905560141015610b0b5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610a99565b6005546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610a9990612d9e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546000906001600160a01b0316331461103c5760405162461bcd60e51b8152600401610a9990612d9e565b506012805460ff19169055600190565b6005546001600160a01b031633146110765760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110cb5760405162461bcd60e51b8152600401610a9990612d9e565b6012805462ffff00191662010100179055565b6005546001600160a01b031633146111085760405162461bcd60e51b8152600401610a9990612d9e565b60128054911515620100000262ff000019909216919091179055565b606060048054610b1e90612e01565b6005546001600160a01b0316331461115d5760405162461bcd60e51b8152600401610a9990612d9e565b610b0b82826123d7565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610bae918590610de2908690612e85565b6000610bae338484611d30565b6005546001600160a01b031633146111d55760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b0382166000818152601c6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b0316331461125e5760405162461bcd60e51b8152600401610a9990612d9e565b8061126a81600161104c565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6005546001600160a01b031633146112b75760405162461bcd60e51b8152600401610a9990612d9e565b670de0b6b3a76400006103e86112cc60025490565b6112d7906005612e3c565b6112e19190612e71565b6112eb9190612e71565b8110156113465760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b6064820152608401610a99565b61135881670de0b6b3a7640000612e3c565b60115550565b6005546001600160a01b031633146113885760405162461bcd60e51b8152600401610a9990612d9e565b3063095ea7b38161139860025490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156113e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114079190612e9c565b50306323b872dd816114216005546001600160a01b031690565b306000908152602081905260409020546040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611485573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f059190612e9c565b6005546000906001600160a01b031633146114d65760405162461bcd60e51b8152600401610a9990612d9e565b620186a06114e360025490565b6114ee906001612e3c565b6114f89190612e71565b8210156115655760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610a99565b606461157060025490565b61157b906001612e3c565b6115859190612e71565b8211156115ef5760405162461bcd60e51b815260206004820152603260248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527137101892903a37ba30b61039bab838363c9760711b6064820152608401610a99565b50601055600190565b60065460011461161b5760405163558a1e0360e11b815260040160405180910390fd5b6002600655606461162b60025490565b6116359190612e71565b81111561169e5760405162461bcd60e51b815260206004820152603160248201527f43616e206e6f742066617274206d6f7265207468616e203125206f662074686560448201527020737570706c7920617420612074696d6560781b6064820152608401610a99565b336000908152600b6020526040902054156116f15760405162461bcd60e51b81526020600482015260136024820152724f6e65206661727420617420612074696d652160681b6044820152606401610a99565b6019543410156117395760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742056524646656560681b6044820152606401610a99565b600e546019546040516000926001600160a01b031691908381818185875af1925050503d8060008114611788576040519150601f19603f3d011682016040523d82523d6000602084013e61178d565b606091505b50509050806117d65760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e642056524646656560581b6044820152606401610a99565b6117e0338361242b565b6007546008546009546040516305d3b1d360e41b81526004810192909252600160a01b830467ffffffffffffffff166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526000916001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190612eb9565b6000818152600a6020908152604080832080546001600160a01b031916339081179091558352600b9091529020819055905060646118db8460c7612e3c565b6118e59190612e71565b336000818152600c6020526040908190209290925590517ff1805d757050f42a8e9145be9851086ed2f6557c87d5fc651cd8a5c7ed923e929061192b9086815260200190565b60405180910390a25050600160065550565b6005546001600160a01b031633146119675760405162461bcd60e51b8152600401610a9990612d9e565b6001600160a01b0381166119cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a99565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316611a8a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a99565b6001600160a01b038216611aeb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a99565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000828152600a60205260409020546001600160a01b031680611bb25760405162461bcd60e51b815260206004820152601a60248201527f4e6f2067616d6520666f756e6420666f722074686520757365720000000000006044820152606401610a99565b600082600081518110611bc757611bc7612ed2565b6020026020010151905083600b6000846001600160a01b03166001600160a01b03168152602001908152602001600020541415611d2a576000611c0b600283612ee8565b905080611ca1576001600160a01b0383166000908152600c6020526040902054611c3690849061251f565b6001600160a01b0383166000818152600c6020526040908190205490517f639b3f89af73534c58698d78dfe9d0ab626a4e371f09056916e5057957e4334791611c949185916001919283529015156020830152604082015260600190565b60405180910390a2611d02565b6001600160a01b0383166000818152600c60205260408082205490517f639b3f89af73534c58698d78dfe9d0ab626a4e371f09056916e5057957e4334792611cf9928683529015156020830152604082015260600190565b60405180910390a25b506001600160a01b0382166000908152600c60209081526040808320839055600b9091528120555b50505050565b6001600160a01b038316611d565760405162461bcd60e51b8152600401610a9990612efc565b6001600160a01b038216611d7c5760405162461bcd60e51b8152600401610a9990612f41565b80611d9257611d8d838360006125f8565b505050565b60125460ff1615612108576005546001600160a01b03848116911614801590611dc957506005546001600160a01b03838116911614155b8015611ddd57506001600160a01b03821615155b8015611df457506001600160a01b03821661dead14155b8015611e0a5750600d54600160a01b900460ff16155b1561210857601254610100900460ff16611ea2576001600160a01b0383166000908152601c602052604090205460ff1680611e5d57506001600160a01b0382166000908152601c602052604090205460ff165b611ea25760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610a99565b6001600160a01b0383166000908152601e602052604090205460ff168015611ee357506001600160a01b0382166000908152601d602052604090205460ff16155b15611fc757600f54811115611f585760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610a99565b6011546001600160a01b038316600090815260208190526040902054611f7e9083612de9565b1115611fc25760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a99565b612108565b6001600160a01b0382166000908152601e602052604090205460ff16801561200857506001600160a01b0383166000908152601d602052604090205460ff16155b1561207e57600f54811115611fc25760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610a99565b6001600160a01b0382166000908152601d602052604090205460ff16612108576011546001600160a01b0383166000908152602081905260409020546120c49083612de9565b11156121085760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610a99565b3060009081526020819052604090205460105481108015908190612134575060125462010000900460ff165b801561214a5750600d54600160a01b900460ff16155b801561216f57506001600160a01b0385166000908152601e602052604090205460ff16155b801561219457506001600160a01b0385166000908152601c602052604090205460ff16155b80156121b957506001600160a01b0384166000908152601c602052604090205460ff16155b156121e757600d805460ff60a01b1916600160a01b1790556121d96126e9565b600d805460ff60a01b191690555b600d546001600160a01b0386166000908152601c602052604090205460ff600160a01b90920482161591168061223557506001600160a01b0385166000908152601c602052604090205460ff165b1561223e575060005b600081156123c3576001600160a01b0386166000908152601e602052604090205460ff16801561227057506000601654115b156122f8576064601654866122859190612e3c565b61228f9190612e71565b9050601654601754826122a29190612e3c565b6122ac9190612e71565b601a60008282546122bd9190612de9565b90915550506016546018546122d29083612e3c565b6122dc9190612e71565b601b60008282546122ed9190612de9565b909155506123a59050565b6001600160a01b0387166000908152601e602052604090205460ff16801561232257506000601354115b156123a5576064601354866123379190612e3c565b6123419190612e71565b9050601354601454826123549190612e3c565b61235e9190612e71565b601a600082825461236f9190612de9565b90915550506013546015546123849083612e3c565b61238e9190612e71565b601b600082825461239f9190612de9565b90915550505b80156123b6576123b68730836125f8565b6123c08186612e85565b94505b6123ce8787876125f8565b50505050505050565b6001600160a01b0382166000818152601e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b03821661248b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a99565b6001600160a01b0382166000908152602081905260409020546124af908290612e85565b6001600160a01b0383166000908152602081905260409020556002546124d6908290612e85565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b0382166125755760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a99565b806002546125839190612de9565b6002556001600160a01b0382166000908152602081905260409020546125aa908290612de9565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101612513565b6001600160a01b03831661261e5760405162461bcd60e51b8152600401610a9990612efc565b6001600160a01b0382166126445760405162461bcd60e51b8152600401610a9990612f41565b6001600160a01b038316600090815260208190526040902054612668908290612e85565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612698908290612de9565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611b40565b3060009081526020819052604081205490506000601b54601a5461270d9190612de9565b9050600082158061271c575081155b1561272657505050565b601054612734906014612e3c565b83111561274c57601054612749906014612e3c565b92505b6000600283601a548661275f9190612e3c565b6127699190612e71565b6127739190612e71565b905060006127818286612e85565b90504761278d826128e8565b60006127998247612e85565b9050600086601b54836127ac9190612e3c565b6127b69190612e71565b905060006127c48284612e85565b6000601a819055601b819055600e546040519293506001600160a01b031691849181818185875af1925050503d806000811461281c576040519150601f19603f3d011682016040523d82523d6000602084013e612821565b606091505b509097505085158015906128355750600081115b15612888576128448682612a42565b601a54604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b600e546040516001600160a01b03909116904790600081818185875af1925050503d80600081146128d5576040519150601f19603f3d011682016040523d82523d6000602084013e6128da565b606091505b505050505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061291d5761291d612ed2565b6001600160a01b03928316602091820292909201810191909152600d54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612976573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299a9190612f84565b816001815181106129ad576129ad612ed2565b6001600160a01b039283166020918202929092010152600d546129d39130911684611a28565b600d5460405163791ac94760e01b81526001600160a01b039091169063791ac94790612a0c908590600090869030904290600401612fa1565b600060405180830381600087803b158015612a2657600080fd5b505af1158015612a3a573d6000803e3d6000fd5b505050505050565b600d54612a5a9030906001600160a01b031684611a28565b600d54600e5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612aca573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612aef9190613012565b5050505050565b60008060408385031215612b0957600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015612b4557858101830151858201604001528201612b29565b81811115612b57576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610f0557600080fd5b60008060408385031215612b9557600080fd5b8235612ba081612b6d565b946020939093013593505050565b600060208284031215612bc057600080fd5b8135612bcb81612b6d565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215612bfb57600080fd5b8235915060208084013567ffffffffffffffff80821115612c1b57600080fd5b818601915086601f830112612c2f57600080fd5b813581811115612c4157612c41612bd2565b8060051b604051601f19603f83011681018181108582111715612c6657612c66612bd2565b604052918252848201925083810185019189831115612c8457600080fd5b938501935b82851015612ca257843584529385019392850192612c89565b8096505050505050509250929050565b600060208284031215612cc457600080fd5b5035919050565b600080600060608486031215612ce057600080fd5b8335612ceb81612b6d565b92506020840135612cfb81612b6d565b929592945050506040919091013590565b8015158114610f0557600080fd5b60008060408385031215612d2d57600080fd5b8235612d3881612b6d565b91506020830135612d4881612d0c565b809150509250929050565b600060208284031215612d6557600080fd5b8135612bcb81612d0c565b60008060408385031215612d8357600080fd5b8235612d8e81612b6d565b91506020830135612d4881612b6d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dfc57612dfc612dd3565b500190565b600181811c90821680612e1557607f821691505b60208210811415612e3657634e487b7160e01b600052602260045260246000fd5b50919050565b6000816000190483118215151615612e5657612e56612dd3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612e8057612e80612e5b565b500490565b600082821015612e9757612e97612dd3565b500390565b600060208284031215612eae57600080fd5b8151612bcb81612d0c565b600060208284031215612ecb57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600082612ef757612ef7612e5b565b500690565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600060208284031215612f9657600080fd5b8151612bcb81612b6d565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612ff15784516001600160a01b031683529383019391830191600101612fcc565b50506001600160a01b03969096166060850152505050608001529392505050565b60008060006060848603121561302757600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220c99e0fae5aca912c560f86b4f8dafae0cdbe619ec98a849b88684e224abcf54164736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000003b3

-----Decoded View---------------
Arg [0] : subscriptionId (uint64): 947

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003b3


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

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