Contract Address Details

0x69D3E8279209b78dA6514981A962680b7C77d9F1

Token
Sonic Doge (SND)
Creator
0xa393bc–fbe2ca at 0x1bb108–1d5f41
Balance
0 Doge
Tokens
Fetching tokens...
Transactions
4 Transactions
Transfers
0 Transfers
Gas Used
177,328
Last Balance Update
26873085
Contract name:
SonicDoge




Optimization enabled
true
Compiler version
v0.8.16+commit.07a7930e




Optimization runs
200
EVM Version
default




Verified at
2022-08-20T01:30:32.305386Z

Contract source code

// SPDX-License-Identifier: MIT
// File: contracts/interfaces/IDogeSwapV2Factory.sol

pragma solidity >=0.5.0;

interface IDogeSwapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint256);

    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(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

// File: contracts/interfaces/IDogeSwapV2Router01.sol

pragma solidity >=0.6.2;

interface IDogeSwapV2Router01 {
    function factory() external view returns (address);

    function WWDOGE() external view returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityWDOGE(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountWDOGEMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountWDOGE,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityWDOGE(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountWDOGEMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountWDOGE);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityWDOGEWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountWDOGEMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountWDOGE);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactWDOGEForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactWDOGE(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForWDOGE(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapWDOGEForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

// File: contracts/interfaces/IDogeSwapV2Router02.sol



pragma solidity >=0.6.2;


interface IDogeSwapV2Router02 is IDogeSwapV2Router01 {
    function removeLiquidityWDOGESupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountWDOGEMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountWDOGE);

    function removeLiquidityWDOGEWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountWDOGEMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountWDOGE);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactWDOGEForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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


pragma solidity ^0.8.16;



contract SonicDoge is ERC20, Ownable {
    mapping(address => uint256) _rBalance;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) private _isExcludedFromFees;

    uint256 public liquidityBuyFee;
    uint256 public treasuryBuyFee;
    uint256 public totalBuyFee;

    uint256 public liquiditySellFee;
    uint256 public treasurySellFee;
    uint256 public firePitSellFee;
    uint256 public totalSellFee;

    IDogeSwapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;
    address public sustainabilityWallet;
    address public treasuryWallet;

    address private DEAD = 0x000000000000000000000000000000000000dEaD;

    mapping(address => bool) public automatedMarketMakerPairs;

    uint256 private initialSupply;
    uint256 private rSupply;
    uint256 private constant MAX = type(uint256).max;
    uint256 private _totalSupply;

    bool public swapEnabled = true;
    bool private inSwap;
    uint256 private swapThreshold;
    uint256 public lastSwapTime;
    uint256 public swapInterval;

    modifier swapping() {
        inSwap = true;
        _;
        inSwap = false;
    }

    uint256 private launchTime;

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event BuyFeesUpdated(uint256 liquidityBuyFee, uint256 treasuryBuyFee);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event SwapAndLiquify(uint256 tokensSwapped, uint256 bnbReceived, uint256 tokensIntoLiqudity);
    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);

    constructor() ERC20('Sonic Doge', 'SND') {
        liquidityBuyFee = 2;
        treasuryBuyFee = 3;
        totalBuyFee = liquidityBuyFee + treasuryBuyFee;

        liquiditySellFee = 2;
        treasurySellFee = 2;
        firePitSellFee = 1;
        totalSellFee = liquiditySellFee + treasurySellFee + firePitSellFee;

        treasuryWallet = 0xa393Bcf315Df147Fe5E4E203f463f4c45cFBe2Ca;
    
        IDogeSwapV2Router02 _uniswapV2Router = IDogeSwapV2Router02(0xa4EE06Ce40cb7e8c04E127c1F7D3dFB7F7039C81);
        address _uniswapV2Pair = IDogeSwapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            _uniswapV2Router.WWDOGE()
        );

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        _allowances[address(this)][address(uniswapV2Router)] = MAX;

        initialSupply = 1_000_000_000_000 * (10**18);//Total supply

        _mint(_msgSender(), initialSupply);

        _totalSupply = initialSupply;

        _isExcludedFromFees[owner()] = true;
        _isExcludedFromFees[_msgSender()] = true;
        _isExcludedFromFees[DEAD] = true;
        _isExcludedFromFees[address(this)] = true;

        swapThreshold = 1000 * (10**18);
        swapInterval = 1 minutes;

        _rBalance[_msgSender()] = _totalSupply;
    }

    receive() external payable {}

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

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

    function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {
        require(pair != uniswapV2Pair, 'The PancakeSwap pair cannot be removed from automatedMarketMakerPairs');

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(automatedMarketMakerPairs[pair] != value, 'Automated market maker pair is already set to that value');
        automatedMarketMakerPairs[pair] = value;
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function approve(address spender, uint256 value) public override returns (bool) {
        _allowances[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function allowance(address owner_, address spender) public view override returns (uint256) {
        return _allowances[owner_][spender];
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) {
        uint256 oldValue = _allowances[msg.sender][spender];
        if (subtractedValue >= oldValue) {
            _allowances[msg.sender][spender] = 0;
        } else {
            _allowances[msg.sender][spender] = oldValue - subtractedValue;
        }
        emit Approval(msg.sender, spender, _allowances[msg.sender][spender]);
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) {
        _allowances[msg.sender][spender] = _allowances[msg.sender][spender] + addedValue;
        emit Approval(msg.sender, spender, _allowances[msg.sender][spender]);
        return true;
    }

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

    function balanceOf(address account) public view override returns (uint256) {
        return _rBalance[account];
    }

    function transfer(address to, uint256 value) public override returns (bool) {
        _transferFrom(msg.sender, to, value);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) public override returns (bool) {
        if (_allowances[from][msg.sender] != MAX) {
            _allowances[from][msg.sender] = _allowances[from][msg.sender] - value;
        }
        _transferFrom(from, to, value);
        return true;
    }

    function _basicTransfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        _rBalance[from] = _rBalance[from] - amount;
        _rBalance[to] = _rBalance[to] + amount;
        emit Transfer(from, to, amount);
        return true;
    }

    function _transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) internal returns (bool) {
        require(recipient != address(0), 'ERC20: transfer to the zero address');
        if (inSwap) {
            return _basicTransfer(sender, recipient, amount);
        }
        if (recipient == uniswapV2Pair && launchTime == 0 && amount > 0) {
            launchTime = block.timestamp;
        }

        if (shouldSwapBack()) {
            swapBack();
        }

        _rBalance[sender] = _rBalance[sender] - amount;

        uint256 amountReceived = (_isExcludedFromFees[sender] || _isExcludedFromFees[recipient])
            ? amount
            : takeFee(sender, amount, recipient);
        _rBalance[recipient] = _rBalance[recipient] + amountReceived;

        emit Transfer(sender, recipient, amountReceived);
        return true;
    }

    function takeFee(
        address sender,
        uint256 rAmount,
        address recipient
    ) internal returns (uint256) {
        uint256 _finalFee;

        if (
            block.timestamp - launchTime < 10 &&
            launchTime != 0 &&
            (uniswapV2Pair == recipient || uniswapV2Pair == sender)
        ) {
            _finalFee = 75;
        } else if (uniswapV2Pair == recipient) {
            _finalFee = totalSellFee;
        } else if (uniswapV2Pair == sender) {
            _finalFee = totalBuyFee;
        } else {
            _finalFee = 0;
        }

        uint256 feeAmount = (rAmount * _finalFee) / 100;

        _rBalance[address(this)] = _rBalance[address(this)] + feeAmount;
        emit Transfer(sender, address(this), feeAmount);

        return rAmount - feeAmount;
    }

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

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

    function updateSellFees(
        uint256 _liquiditySellFee,
        uint256 _treasurySellFee,
        uint256 _firePitSellFee
    ) external onlyOwner {
        liquiditySellFee = _liquiditySellFee;
        treasurySellFee = _treasurySellFee;
        firePitSellFee = _firePitSellFee;
        totalSellFee = liquiditySellFee + treasurySellFee + firePitSellFee;

        require(totalSellFee <= 10, 'Fees must be less than 10%');
    }

    function updateBuyFees(uint256 _liquidityBuyFee, uint256 _treasuryBuyFee) external onlyOwner {
        liquidityBuyFee = _liquidityBuyFee;
        treasuryBuyFee = _treasuryBuyFee;
        totalBuyFee = liquidityBuyFee + treasuryBuyFee;

        require(totalBuyFee <= 10, 'Fees must be less than 10%');
        emit BuyFeesUpdated(liquidityBuyFee, treasuryBuyFee);
    }

    function changeTreasuryWallet(address _treasuryWallet) external onlyOwner {
        require(_treasuryWallet != treasuryWallet, 'Treasury wallet is already that address');
        treasuryWallet = _treasuryWallet;
    }

    function shouldSwapBack() internal view returns (bool) {
        return (msg.sender != uniswapV2Pair &&
            !inSwap &&
            swapEnabled &&
            _rBalance[address(this)] >= swapThreshold &&
            lastSwapTime + swapInterval < block.timestamp);
    }

    function swapBack() internal swapping {
        uint256 total = balanceOf(address(this));

        uint256 totalFee = totalBuyFee + totalSellFee;
        uint256 liquidityShare = liquidityBuyFee + liquiditySellFee;
        uint256 treasuryShare = treasurySellFee + treasuryBuyFee;
        uint256 firePitShare = firePitSellFee;

        uint256 liquidityTokens;
        uint256 firePitTokens;

        if (liquidityShare > 0) {
            liquidityTokens = (total * liquidityShare) / totalFee;
            swapAndLiquify(liquidityTokens);
        }

        if (firePitShare > 0) {
            firePitTokens = (total * firePitShare) / totalFee;
            _basicTransfer(address(this), DEAD, firePitTokens);
        }

        total -= liquidityTokens + firePitTokens;
        uint256 bnbShare = treasuryShare;

        if (total > 0 && bnbShare > 0) {
            uint256 initialBalance = address(this).balance;

            address[] memory path = new address[](2);
            path[0] = address(this);
            path[1] = uniswapV2Router.WWDOGE();

            uniswapV2Router.swapExactTokensForWDOGESupportingFeeOnTransferTokens(
                total,
                0,
                path,
                address(this),
                block.timestamp
            );

            uint256 newBalance = address(this).balance - initialBalance;

            if (treasuryShare > 0) {
                uint256 marketingBNB = (newBalance * treasuryShare) / bnbShare;
                sendBNB(payable(treasuryWallet), marketingBNB);
            }
        }

        lastSwapTime = block.timestamp;
    }

    function swapAndLiquify(uint256 tokens) private {
        uint256 half = tokens / 2;
        uint256 otherHalf = tokens - half;

        uint256 initialBalance = address(this).balance;

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WWDOGE();

        uniswapV2Router.swapExactTokensForWDOGESupportingFeeOnTransferTokens(
            half,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 newBalance = address(this).balance - initialBalance;

        uniswapV2Router.addLiquidityWDOGE{ value: newBalance }(
            address(this),
            otherHalf,
            0,
            0,
            DEAD,
            block.timestamp
        );

        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

    function setSwapBackSettings(
        bool _enabled,
        uint256 _amount,
        uint256 _interval
    ) external onlyOwner {
        swapEnabled = _enabled;
        swapThreshold = _amount;
        swapInterval = _interval;
    }

    function checkSwapThreshold() external view returns (uint256) {
        return swapThreshold;
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BuyFeesUpdated","inputs":[{"type":"uint256","name":"liquidityBuyFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"treasuryBuyFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ExcludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"isExcluded","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetAutomatedMarketMakerPair","inputs":[{"type":"address","name":"pair","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":true}],"anonymous":false},{"type":"event","name":"SwapAndLiquify","inputs":[{"type":"uint256","name":"tokensSwapped","internalType":"uint256","indexed":false},{"type":"uint256","name":"bnbReceived","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensIntoLiqudity","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateUniswapV2Router","inputs":[{"type":"address","name":"newAddress","internalType":"address","indexed":true},{"type":"address","name":"oldAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner_","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"automatedMarketMakerPairs","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeTreasuryWallet","inputs":[{"type":"address","name":"_treasuryWallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"checkSwapThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"excluded","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"firePitSellFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromFees","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastSwapTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityBuyFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquiditySellFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAutomatedMarketMakerPair","inputs":[{"type":"address","name":"pair","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapBackSettings","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"uint256","name":"_interval","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"sustainabilityWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapInterval","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBuyFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSellFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"treasuryBuyFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"treasurySellFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"treasuryWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"uniswapV2Pair","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IDogeSwapV2Router02"}],"name":"uniswapV2Router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateBuyFees","inputs":[{"type":"uint256","name":"_liquidityBuyFee","internalType":"uint256"},{"type":"uint256","name":"_treasuryBuyFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSellFees","inputs":[{"type":"uint256","name":"_liquiditySellFee","internalType":"uint256"},{"type":"uint256","name":"_treasurySellFee","internalType":"uint256"},{"type":"uint256","name":"_firePitSellFee","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
            

Contract Creation Code

0x6080604052601480546001600160a01b03191661dead1790556019805460ff191660011790553480156200003257600080fd5b506040518060400160405280600a815260200169536f6e696320446f676560b01b8152506040518060400160405280600381526020016214d39160ea1b8152508160039081620000839190620006d5565b506004620000928282620006d5565b505050620000af620000a96200040160201b60201c565b62000405565b600260098190556003600a819055620000c891620007a1565b600b556002600c819055600d8190556001600e81905590620000eb9080620007a1565b620000f79190620007a1565b600f55601380546001600160a01b03191673a393bcf315df147fe5e4e203f463f4c45cfbe2ca1790556040805163c45a015560e01b8152905173a4ee06ce40cb7e8c04e127c1f7d3dfb7f7039c8191600091839163c45a01559160048083019260209291908290030181865afa15801562000176573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019c9190620007c9565b6001600160a01b031663c9c6539630846001600160a01b0316634ed154606040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002109190620007c9565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200025e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002849190620007c9565b601080546001600160a01b038086166001600160a01b03199283161790925560118054928416929091169190911790559050620002c381600162000457565b3060009081526007602090815260408083206010546001600160a01b03168452909152902060001990556c0c9f2c9cd04674edea400000006016556200030c3360165462000547565b6016546018556001600860006200032b6005546001600160a01b031690565b6001600160a01b0316815260208101919091526040016000908120805460ff191692151592909217909155600190600890620003643390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff1996871617905560145490911681526008909252808220805484166001908117909155308352908220805490931617909155683635c9adc5dea00000601a55603c601c5560185490600690620003de3390565b6001600160a01b0316815260208101919091526040016000205550620007fb9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526015602052604090205481151560ff909116151503620004f35760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c7565000000000000000060648201526084015b60405180910390fd5b6001600160a01b038216600081815260156020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b0382166200059f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620004ea565b8060026000828254620005b39190620007a1565b90915550506001600160a01b03821660009081526020819052604081208054839290620005e2908490620007a1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200065c57607f821691505b6020821081036200067d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200062c57600081815260208120601f850160051c81016020861015620006ac5750805b601f850160051c820191505b81811015620006cd57828155600101620006b8565b505050505050565b81516001600160401b03811115620006f157620006f162000631565b620007098162000702845462000647565b8462000683565b602080601f831160018114620007415760008415620007285750858301515b600019600386901b1c1916600185901b178555620006cd565b600085815260208120601f198616915b82811015620007725788860151825594840194600190910190840162000751565b5085821015620007915787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620007c357634e487b7160e01b600052601160045260246000fd5b92915050565b600060208284031215620007dc57600080fd5b81516001600160a01b0381168114620007f457600080fd5b9392505050565b611d23806200080b6000396000f3fe60806040526004361061021e5760003560e01c80636ddd171311610123578063b1283c1c116100ab578063d08893581161006f578063d088935814610624578063dd62ed3e14610644578063ed0d21371461068a578063f2fde38b146106a0578063fedcb861146106c057600080fd5b8063b1283c1c14610588578063b62496f51461059e578063c0246668146105ce578063c17b5b8c146105ee578063ccb613581461060e57600080fd5b806395d89b41116100f257806395d89b41146104fd5780639a7a23d6146105125780639d9241ec14610532578063a457c2d714610548578063a9059cbb1461056857600080fd5b80636ddd17131461047a57806370a0823114610494578063715018a6146104ca5780638da5cb5b146104df57600080fd5b8063313ce567116101a65780634fbee193116101755780634fbee193146103d4578063537c1ac71461040d57806359b107b91461042f57806366ca9b83146104455780636d351d1a1461046557600080fd5b8063313ce5671461035857806339509351146103745780634626402b1461039457806349bd5a5e146103b457600080fd5b80630dd87157116101ed5780630dd87157146102bf5780631694505e146102d557806318160ddd1461030d57806323b872dd146103225780632c10508c1461034257600080fd5b806306fdde031461022a578063095ea7b314610255578063099d0d30146102855780630a944b70146102a957600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061023f6106e0565b60405161024c9190611973565b60405180910390f35b34801561026157600080fd5b506102756102703660046119d6565b610772565b604051901515815260200161024c565b34801561029157600080fd5b5061029b600c5481565b60405190815260200161024c565b3480156102b557600080fd5b5061029b600e5481565b3480156102cb57600080fd5b5061029b601b5481565b3480156102e157600080fd5b506010546102f5906001600160a01b031681565b6040516001600160a01b03909116815260200161024c565b34801561031957600080fd5b5060185461029b565b34801561032e57600080fd5b5061027561033d366004611a02565b6107df565b34801561034e57600080fd5b5061029b600a5481565b34801561036457600080fd5b506040516012815260200161024c565b34801561038057600080fd5b5061027561038f3660046119d6565b610877565b3480156103a057600080fd5b506013546102f5906001600160a01b031681565b3480156103c057600080fd5b506011546102f5906001600160a01b031681565b3480156103e057600080fd5b506102756103ef366004611a43565b6001600160a01b031660009081526008602052604090205460ff1690565b34801561041957600080fd5b5061042d610428366004611a43565b6108fd565b005b34801561043b57600080fd5b5061029b600b5481565b34801561045157600080fd5b5061042d610460366004611a60565b61099a565b34801561047157600080fd5b50601a5461029b565b34801561048657600080fd5b506019546102759060ff1681565b3480156104a057600080fd5b5061029b6104af366004611a43565b6001600160a01b031660009081526006602052604090205490565b3480156104d657600080fd5b5061042d610a55565b3480156104eb57600080fd5b506005546001600160a01b03166102f5565b34801561050957600080fd5b5061023f610a69565b34801561051e57600080fd5b5061042d61052d366004611a97565b610a78565b34801561053e57600080fd5b5061029b600f5481565b34801561055457600080fd5b506102756105633660046119d6565b610b20565b34801561057457600080fd5b506102756105833660046119d6565b610c08565b34801561059457600080fd5b5061029b601c5481565b3480156105aa57600080fd5b506102756105b9366004611a43565b60156020526000908152604090205460ff1681565b3480156105da57600080fd5b5061042d6105e9366004611a97565b610c1f565b3480156105fa57600080fd5b5061042d610609366004611acc565b610c86565b34801561061a57600080fd5b5061029b60095481565b34801561063057600080fd5b5061042d61063f366004611af8565b610d0c565b34801561065057600080fd5b5061029b61065f366004611b2b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b34801561069657600080fd5b5061029b600d5481565b3480156106ac57600080fd5b5061042d6106bb366004611a43565b610d2e565b3480156106cc57600080fd5b506012546102f5906001600160a01b031681565b6060600380546106ef90611b64565b80601f016020809104026020016040519081016040528092919081815260200182805461071b90611b64565b80156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b5050505050905090565b3360008181526007602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906107cd9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526007602090815260408083203384529091528120546000191461085f576001600160a01b038416600090815260076020908152604080832033845290915290205461083a908390611bb4565b6001600160a01b03851660009081526007602090815260408083203384529091529020555b61086a848484610da7565b50600190505b9392505050565b3360009081526007602090815260408083206001600160a01b03861684529091528120546108a6908390611bc7565b3360008181526007602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016107cd565b610905610f8a565b6013546001600160a01b03908116908216036109785760405162461bcd60e51b815260206004820152602760248201527f54726561737572792077616c6c657420697320616c72656164792074686174206044820152666164647265737360c81b60648201526084015b60405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6109a2610f8a565b6009829055600a8190556109b68183611bc7565b600b819055600a1015610a0b5760405162461bcd60e51b815260206004820152601a60248201527f46656573206d757374206265206c657373207468616e20313025000000000000604482015260640161096f565b7f480af1f773972b1df72af32ec463e0fdeb1b49f1ca37d07982f677919d5fdd0c600954600a54604051610a49929190918252602082015260400190565b60405180910390a15050565b610a5d610f8a565b610a676000610fe4565b565b6060600480546106ef90611b64565b610a80610f8a565b6011546001600160a01b0390811690831603610b125760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a40161096f565b610b1c8282611036565b5050565b3360009081526007602090815260408083206001600160a01b0386168452909152812054808310610b74573360009081526007602090815260408083206001600160a01b0388168452909152812055610ba3565b610b7e8382611bb4565b3360009081526007602090815260408083206001600160a01b03891684529091529020555b3360008181526007602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060019392505050565b6000610c15338484610da7565b5060019392505050565b610c27610f8a565b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b610c8e610f8a565b600c839055600d829055600e81905580610ca88385611bc7565b610cb29190611bc7565b600f819055600a1015610d075760405162461bcd60e51b815260206004820152601a60248201527f46656573206d757374206265206c657373207468616e20313025000000000000604482015260640161096f565b505050565b610d14610f8a565b6019805460ff191693151593909317909255601a55601c55565b610d36610f8a565b6001600160a01b038116610d9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096f565b610da481610fe4565b50565b60006001600160a01b038316610e0b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161096f565b601954610100900460ff1615610e2d57610e26848484611120565b9050610870565b6011546001600160a01b038481169116148015610e4a5750601d54155b8015610e565750600082115b15610e605742601d555b610e686111c8565b15610e7557610e75611238565b6001600160a01b038416600090815260066020526040902054610e99908390611bb4565b6001600160a01b038516600090815260066020908152604080832093909355600890529081205460ff1680610ee657506001600160a01b03841660009081526008602052604090205460ff165b610efa57610ef58584866114cb565b610efc565b825b6001600160a01b038516600090815260066020526040902054909150610f23908290611bc7565b6001600160a01b0380861660008181526006602052604090819020939093559151908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f779085815260200190565b60405180910390a3506001949350505050565b6005546001600160a01b03163314610a675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161096f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526015602052604090205481151560ff9091161515036110cc5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840161096f565b6001600160a01b038216600081815260156020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038316600090815260066020526040812054611144908390611bb4565b6001600160a01b038086166000908152600660205260408082209390935590851681522054611174908390611bc7565b6001600160a01b0380851660008181526006602052604090819020939093559151908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610bf69086815260200190565b6011546000906001600160a01b031633148015906111ee5750601954610100900460ff16155b80156111fc575060195460ff165b80156112195750601a543060009081526006602052604090205410155b8015611233575042601c54601b546112319190611bc7565b105b905090565b6019805461ff0019166101001790553060009081526006602052604081205490506000600f54600b5461126b9190611bc7565b90506000600c5460095461127f9190611bc7565b90506000600a54600d546112939190611bc7565b600e5490915060008084156112c257856112ad8689611bda565b6112b79190611bf9565b91506112c28261160c565b82156112fa57856112d38489611bda565b6112dd9190611bf9565b6014549091506112f89030906001600160a01b031683611120565b505b6113048183611bc7565b61130e9088611bb4565b96508387158015906113205750600081115b156114b25760408051600280825260608201835247926000929190602083019080368337019050509050308160008151811061135e5761135e611c1b565b6001600160a01b03928316602091820292909201810191909152601054604080516302768aa360e51b815290519190931692634ed154609260048083019391928290030181865afa1580156113b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113db9190611c31565b816001815181106113ee576113ee611c1b565b6001600160a01b03928316602091820292909201015260105460405163b43d9bbb60e01b815291169063b43d9bbb90611434908d90600090869030904290600401611c4e565b600060405180830381600087803b15801561144e57600080fd5b505af1158015611462573d6000803e3d6000fd5b50505050600082476114749190611bb4565b905087156114ae576000846114898a84611bda565b6114939190611bf9565b6013549091506114ac906001600160a01b03168261185a565b505b5050505b505042601b5550506019805461ff001916905550505050565b600080600a601d54426114de9190611bb4565b1080156114ec5750601d5415155b801561151c57506011546001600160a01b038481169116148061151c57506011546001600160a01b038681169116145b156115295750604b611569565b6011546001600160a01b038085169116036115475750600f54611569565b6011546001600160a01b038087169116036115655750600b54611569565b5060005b600060646115778387611bda565b6115819190611bf9565b3060009081526006602052604090205490915061159f908290611bc7565b30600081815260066020526040908190209290925590516001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115f09085815260200190565b60405180910390a36116028186611bb4565b9695505050505050565b6000611619600283611bf9565b905060006116278284611bb4565b6040805160028082526060820183529293504792600092602083019080368337019050509050308160008151811061166157611661611c1b565b6001600160a01b03928316602091820292909201810191909152601054604080516302768aa360e51b815290519190931692634ed154609260048083019391928290030181865afa1580156116ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116de9190611c31565b816001815181106116f1576116f1611c1b565b6001600160a01b03928316602091820292909201015260105460405163b43d9bbb60e01b815291169063b43d9bbb90611737908790600090869030904290600401611c4e565b600060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b50505050600082476117779190611bb4565b601054601454604051633994a6ad60e21b81523060048201526024810188905260006044820181905260648201526001600160a01b0391821660848201524260a4820152929350169063e6529ab490839060c40160606040518083038185885af11580156117e9573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061180e9190611cbf565b505060408051878152602081018490529081018690527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561915060600160405180910390a1505050505050565b804710156118aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161096f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118f7576040519150601f19603f3d011682016040523d82523d6000602084013e6118fc565b606091505b5050905080610d075760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161096f565b600060208083528351808285015260005b818110156119a057858101830151858201604001528201611984565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610da457600080fd5b600080604083850312156119e957600080fd5b82356119f4816119c1565b946020939093013593505050565b600080600060608486031215611a1757600080fd5b8335611a22816119c1565b92506020840135611a32816119c1565b929592945050506040919091013590565b600060208284031215611a5557600080fd5b8135610870816119c1565b60008060408385031215611a7357600080fd5b50508035926020909101359150565b80358015158114611a9257600080fd5b919050565b60008060408385031215611aaa57600080fd5b8235611ab5816119c1565b9150611ac360208401611a82565b90509250929050565b600080600060608486031215611ae157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215611b0d57600080fd5b611b1684611a82565b95602085013595506040909401359392505050565b60008060408385031215611b3e57600080fd5b8235611b49816119c1565b91506020830135611b59816119c1565b809150509250929050565b600181811c90821680611b7857607f821691505b602082108103611b9857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156107d9576107d9611b9e565b808201808211156107d9576107d9611b9e565b6000816000190483118215151615611bf457611bf4611b9e565b500290565b600082611c1657634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611c4357600080fd5b8151610870816119c1565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611c9e5784516001600160a01b031683529383019391830191600101611c79565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215611cd457600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220b950fcd26549a92dc61eed433c9cbdc839f8a680cd489cc82eb043070011519564736f6c63430008100033

Deployed ByteCode

0x60806040526004361061021e5760003560e01c80636ddd171311610123578063b1283c1c116100ab578063d08893581161006f578063d088935814610624578063dd62ed3e14610644578063ed0d21371461068a578063f2fde38b146106a0578063fedcb861146106c057600080fd5b8063b1283c1c14610588578063b62496f51461059e578063c0246668146105ce578063c17b5b8c146105ee578063ccb613581461060e57600080fd5b806395d89b41116100f257806395d89b41146104fd5780639a7a23d6146105125780639d9241ec14610532578063a457c2d714610548578063a9059cbb1461056857600080fd5b80636ddd17131461047a57806370a0823114610494578063715018a6146104ca5780638da5cb5b146104df57600080fd5b8063313ce567116101a65780634fbee193116101755780634fbee193146103d4578063537c1ac71461040d57806359b107b91461042f57806366ca9b83146104455780636d351d1a1461046557600080fd5b8063313ce5671461035857806339509351146103745780634626402b1461039457806349bd5a5e146103b457600080fd5b80630dd87157116101ed5780630dd87157146102bf5780631694505e146102d557806318160ddd1461030d57806323b872dd146103225780632c10508c1461034257600080fd5b806306fdde031461022a578063095ea7b314610255578063099d0d30146102855780630a944b70146102a957600080fd5b3661022557005b600080fd5b34801561023657600080fd5b5061023f6106e0565b60405161024c9190611973565b60405180910390f35b34801561026157600080fd5b506102756102703660046119d6565b610772565b604051901515815260200161024c565b34801561029157600080fd5b5061029b600c5481565b60405190815260200161024c565b3480156102b557600080fd5b5061029b600e5481565b3480156102cb57600080fd5b5061029b601b5481565b3480156102e157600080fd5b506010546102f5906001600160a01b031681565b6040516001600160a01b03909116815260200161024c565b34801561031957600080fd5b5060185461029b565b34801561032e57600080fd5b5061027561033d366004611a02565b6107df565b34801561034e57600080fd5b5061029b600a5481565b34801561036457600080fd5b506040516012815260200161024c565b34801561038057600080fd5b5061027561038f3660046119d6565b610877565b3480156103a057600080fd5b506013546102f5906001600160a01b031681565b3480156103c057600080fd5b506011546102f5906001600160a01b031681565b3480156103e057600080fd5b506102756103ef366004611a43565b6001600160a01b031660009081526008602052604090205460ff1690565b34801561041957600080fd5b5061042d610428366004611a43565b6108fd565b005b34801561043b57600080fd5b5061029b600b5481565b34801561045157600080fd5b5061042d610460366004611a60565b61099a565b34801561047157600080fd5b50601a5461029b565b34801561048657600080fd5b506019546102759060ff1681565b3480156104a057600080fd5b5061029b6104af366004611a43565b6001600160a01b031660009081526006602052604090205490565b3480156104d657600080fd5b5061042d610a55565b3480156104eb57600080fd5b506005546001600160a01b03166102f5565b34801561050957600080fd5b5061023f610a69565b34801561051e57600080fd5b5061042d61052d366004611a97565b610a78565b34801561053e57600080fd5b5061029b600f5481565b34801561055457600080fd5b506102756105633660046119d6565b610b20565b34801561057457600080fd5b506102756105833660046119d6565b610c08565b34801561059457600080fd5b5061029b601c5481565b3480156105aa57600080fd5b506102756105b9366004611a43565b60156020526000908152604090205460ff1681565b3480156105da57600080fd5b5061042d6105e9366004611a97565b610c1f565b3480156105fa57600080fd5b5061042d610609366004611acc565b610c86565b34801561061a57600080fd5b5061029b60095481565b34801561063057600080fd5b5061042d61063f366004611af8565b610d0c565b34801561065057600080fd5b5061029b61065f366004611b2b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b34801561069657600080fd5b5061029b600d5481565b3480156106ac57600080fd5b5061042d6106bb366004611a43565b610d2e565b3480156106cc57600080fd5b506012546102f5906001600160a01b031681565b6060600380546106ef90611b64565b80601f016020809104026020016040519081016040528092919081815260200182805461071b90611b64565b80156107685780601f1061073d57610100808354040283529160200191610768565b820191906000526020600020905b81548152906001019060200180831161074b57829003601f168201915b5050505050905090565b3360008181526007602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906107cd9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526007602090815260408083203384529091528120546000191461085f576001600160a01b038416600090815260076020908152604080832033845290915290205461083a908390611bb4565b6001600160a01b03851660009081526007602090815260408083203384529091529020555b61086a848484610da7565b50600190505b9392505050565b3360009081526007602090815260408083206001600160a01b03861684529091528120546108a6908390611bc7565b3360008181526007602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016107cd565b610905610f8a565b6013546001600160a01b03908116908216036109785760405162461bcd60e51b815260206004820152602760248201527f54726561737572792077616c6c657420697320616c72656164792074686174206044820152666164647265737360c81b60648201526084015b60405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6109a2610f8a565b6009829055600a8190556109b68183611bc7565b600b819055600a1015610a0b5760405162461bcd60e51b815260206004820152601a60248201527f46656573206d757374206265206c657373207468616e20313025000000000000604482015260640161096f565b7f480af1f773972b1df72af32ec463e0fdeb1b49f1ca37d07982f677919d5fdd0c600954600a54604051610a49929190918252602082015260400190565b60405180910390a15050565b610a5d610f8a565b610a676000610fe4565b565b6060600480546106ef90611b64565b610a80610f8a565b6011546001600160a01b0390811690831603610b125760405162461bcd60e51b815260206004820152604560248201527f5468652050616e63616b655377617020706169722063616e6e6f74206265207260448201527f656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572606482015264506169727360d81b608482015260a40161096f565b610b1c8282611036565b5050565b3360009081526007602090815260408083206001600160a01b0386168452909152812054808310610b74573360009081526007602090815260408083206001600160a01b0388168452909152812055610ba3565b610b7e8382611bb4565b3360009081526007602090815260408083206001600160a01b03891684529091529020555b3360008181526007602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a35060019392505050565b6000610c15338484610da7565b5060019392505050565b610c27610f8a565b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b610c8e610f8a565b600c839055600d829055600e81905580610ca88385611bc7565b610cb29190611bc7565b600f819055600a1015610d075760405162461bcd60e51b815260206004820152601a60248201527f46656573206d757374206265206c657373207468616e20313025000000000000604482015260640161096f565b505050565b610d14610f8a565b6019805460ff191693151593909317909255601a55601c55565b610d36610f8a565b6001600160a01b038116610d9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096f565b610da481610fe4565b50565b60006001600160a01b038316610e0b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161096f565b601954610100900460ff1615610e2d57610e26848484611120565b9050610870565b6011546001600160a01b038481169116148015610e4a5750601d54155b8015610e565750600082115b15610e605742601d555b610e686111c8565b15610e7557610e75611238565b6001600160a01b038416600090815260066020526040902054610e99908390611bb4565b6001600160a01b038516600090815260066020908152604080832093909355600890529081205460ff1680610ee657506001600160a01b03841660009081526008602052604090205460ff165b610efa57610ef58584866114cb565b610efc565b825b6001600160a01b038516600090815260066020526040902054909150610f23908290611bc7565b6001600160a01b0380861660008181526006602052604090819020939093559151908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f779085815260200190565b60405180910390a3506001949350505050565b6005546001600160a01b03163314610a675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161096f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526015602052604090205481151560ff9091161515036110cc5760405162461bcd60e51b815260206004820152603860248201527f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160448201527f6c72656164792073657420746f20746861742076616c75650000000000000000606482015260840161096f565b6001600160a01b038216600081815260156020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038316600090815260066020526040812054611144908390611bb4565b6001600160a01b038086166000908152600660205260408082209390935590851681522054611174908390611bc7565b6001600160a01b0380851660008181526006602052604090819020939093559151908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610bf69086815260200190565b6011546000906001600160a01b031633148015906111ee5750601954610100900460ff16155b80156111fc575060195460ff165b80156112195750601a543060009081526006602052604090205410155b8015611233575042601c54601b546112319190611bc7565b105b905090565b6019805461ff0019166101001790553060009081526006602052604081205490506000600f54600b5461126b9190611bc7565b90506000600c5460095461127f9190611bc7565b90506000600a54600d546112939190611bc7565b600e5490915060008084156112c257856112ad8689611bda565b6112b79190611bf9565b91506112c28261160c565b82156112fa57856112d38489611bda565b6112dd9190611bf9565b6014549091506112f89030906001600160a01b031683611120565b505b6113048183611bc7565b61130e9088611bb4565b96508387158015906113205750600081115b156114b25760408051600280825260608201835247926000929190602083019080368337019050509050308160008151811061135e5761135e611c1b565b6001600160a01b03928316602091820292909201810191909152601054604080516302768aa360e51b815290519190931692634ed154609260048083019391928290030181865afa1580156113b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113db9190611c31565b816001815181106113ee576113ee611c1b565b6001600160a01b03928316602091820292909201015260105460405163b43d9bbb60e01b815291169063b43d9bbb90611434908d90600090869030904290600401611c4e565b600060405180830381600087803b15801561144e57600080fd5b505af1158015611462573d6000803e3d6000fd5b50505050600082476114749190611bb4565b905087156114ae576000846114898a84611bda565b6114939190611bf9565b6013549091506114ac906001600160a01b03168261185a565b505b5050505b505042601b5550506019805461ff001916905550505050565b600080600a601d54426114de9190611bb4565b1080156114ec5750601d5415155b801561151c57506011546001600160a01b038481169116148061151c57506011546001600160a01b038681169116145b156115295750604b611569565b6011546001600160a01b038085169116036115475750600f54611569565b6011546001600160a01b038087169116036115655750600b54611569565b5060005b600060646115778387611bda565b6115819190611bf9565b3060009081526006602052604090205490915061159f908290611bc7565b30600081815260066020526040908190209290925590516001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115f09085815260200190565b60405180910390a36116028186611bb4565b9695505050505050565b6000611619600283611bf9565b905060006116278284611bb4565b6040805160028082526060820183529293504792600092602083019080368337019050509050308160008151811061166157611661611c1b565b6001600160a01b03928316602091820292909201810191909152601054604080516302768aa360e51b815290519190931692634ed154609260048083019391928290030181865afa1580156116ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116de9190611c31565b816001815181106116f1576116f1611c1b565b6001600160a01b03928316602091820292909201015260105460405163b43d9bbb60e01b815291169063b43d9bbb90611737908790600090869030904290600401611c4e565b600060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b50505050600082476117779190611bb4565b601054601454604051633994a6ad60e21b81523060048201526024810188905260006044820181905260648201526001600160a01b0391821660848201524260a4820152929350169063e6529ab490839060c40160606040518083038185885af11580156117e9573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061180e9190611cbf565b505060408051878152602081018490529081018690527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561915060600160405180910390a1505050505050565b804710156118aa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161096f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118f7576040519150601f19603f3d011682016040523d82523d6000602084013e6118fc565b606091505b5050905080610d075760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161096f565b600060208083528351808285015260005b818110156119a057858101830151858201604001528201611984565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610da457600080fd5b600080604083850312156119e957600080fd5b82356119f4816119c1565b946020939093013593505050565b600080600060608486031215611a1757600080fd5b8335611a22816119c1565b92506020840135611a32816119c1565b929592945050506040919091013590565b600060208284031215611a5557600080fd5b8135610870816119c1565b60008060408385031215611a7357600080fd5b50508035926020909101359150565b80358015158114611a9257600080fd5b919050565b60008060408385031215611aaa57600080fd5b8235611ab5816119c1565b9150611ac360208401611a82565b90509250929050565b600080600060608486031215611ae157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215611b0d57600080fd5b611b1684611a82565b95602085013595506040909401359392505050565b60008060408385031215611b3e57600080fd5b8235611b49816119c1565b91506020830135611b59816119c1565b809150509250929050565b600181811c90821680611b7857607f821691505b602082108103611b9857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156107d9576107d9611b9e565b808201808211156107d9576107d9611b9e565b6000816000190483118215151615611bf457611bf4611b9e565b500290565b600082611c1657634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611c4357600080fd5b8151610870816119c1565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611c9e5784516001600160a01b031683529383019391830191600101611c79565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215611cd457600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220b950fcd26549a92dc61eed433c9cbdc839f8a680cd489cc82eb043070011519564736f6c63430008100033