ETH Price: $3,122.75 (+1.97%)
Gas: 16 Gwei

Contract

0x410e10C33a49279f78CB99c8d816F18D5e7D5404
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Buyn Burn199114062024-05-20 13:22:233 hrs ago1716211343IN
TitanX: Buy And Burn V2
0 ETH0.0109780158.31488839
Buyn Burn199100152024-05-20 8:42:117 hrs ago1716194531IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.80054917
Buyn Burn199086232024-05-20 4:01:5912 hrs ago1716177719IN
TitanX: Buy And Burn V2
0 ETH0.0109780158.31798623
Buyn Burn199072292024-05-19 23:21:4717 hrs ago1716160907IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.66856232
Buyn Burn199058352024-05-19 18:41:3521 hrs ago1716144095IN
TitanX: Buy And Burn V2
0 ETH0.0109780169.17548426
Buyn Burn199044452024-05-19 14:01:2326 hrs ago1716127283IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.77107135
Buyn Burn199030542024-05-19 9:21:1131 hrs ago1716110471IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.64882763
Buyn Burn199016642024-05-19 4:40:5935 hrs ago1716093659IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.64368132
Buyn Burn199002712024-05-19 0:00:4740 hrs ago1716076847IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.76226423
Buyn Burn198988772024-05-18 19:20:3545 hrs ago1716060035IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.67027891
Buyn Burn198974862024-05-18 14:40:232 days ago1716043223IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.7680341
Buyn Burn198960952024-05-18 10:00:112 days ago1716026411IN
TitanX: Buy And Burn V2
0 ETH0.0109780169.17504836
Buyn Burn198947102024-05-18 5:19:592 days ago1716009599IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.77562781
Buyn Burn198933192024-05-18 0:39:472 days ago1715992787IN
TitanX: Buy And Burn V2
0 ETH0.0109780158.26846033
Buyn Burn198919272024-05-17 19:59:352 days ago1715975975IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.66255491
Buyn Burn198905392024-05-17 15:19:113 days ago1715959151IN
TitanX: Buy And Burn V2
0 ETH0.0109780158.27464647
Buyn Burn198891472024-05-17 10:38:593 days ago1715942339IN
TitanX: Buy And Burn V2
0 ETH0.0109780169.18115134
Buyn Burn198877602024-05-17 5:58:353 days ago1715925515IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.64754098
Buyn Burn198863672024-05-17 1:18:233 days ago1715908703IN
TitanX: Buy And Burn V2
0 ETH0.0109879958.08501303
Buyn Burn198849712024-05-16 20:38:113 days ago1715891891IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.67027891
Buyn Burn198835812024-05-16 15:57:594 days ago1715875079IN
TitanX: Buy And Burn V2
0 ETH0.0109780169.1698181
Buyn Burn198821862024-05-16 11:17:474 days ago1715858267IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.67113724
Buyn Burn198807922024-05-16 6:36:594 days ago1715841419IN
TitanX: Buy And Burn V2
0 ETH0.0109879957.78231192
Buyn Burn198794002024-05-16 1:56:474 days ago1715824607IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.68229749
Buyn Burn198780102024-05-15 21:16:354 days ago1715807795IN
TitanX: Buy And Burn V2
0 ETH0.0109879968.65654855
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
199114062024-05-20 13:22:233 hrs ago1716211343
TitanX: Buy And Burn V2
0.010989 ETH
199114062024-05-20 13:22:233 hrs ago1716211343
TitanX: Buy And Burn V2
0.010989 ETH
199100152024-05-20 8:42:117 hrs ago1716194531
TitanX: Buy And Burn V2
0.010989 ETH
199100152024-05-20 8:42:117 hrs ago1716194531
TitanX: Buy And Burn V2
0.010989 ETH
199086232024-05-20 4:01:5912 hrs ago1716177719
TitanX: Buy And Burn V2
0.010989 ETH
199086232024-05-20 4:01:5912 hrs ago1716177719
TitanX: Buy And Burn V2
0.010989 ETH
199072292024-05-19 23:21:4717 hrs ago1716160907
TitanX: Buy And Burn V2
0.010989 ETH
199072292024-05-19 23:21:4717 hrs ago1716160907
TitanX: Buy And Burn V2
0.010989 ETH
199058352024-05-19 18:41:3521 hrs ago1716144095
TitanX: Buy And Burn V2
0.010989 ETH
199058352024-05-19 18:41:3521 hrs ago1716144095
TitanX: Buy And Burn V2
0.010989 ETH
199053122024-05-19 16:56:1123 hrs ago1716137771
TitanX: Buy And Burn V2
0.00969948 ETH
199053122024-05-19 16:56:1123 hrs ago1716137771
TitanX: Buy And Burn V2
0.00969948 ETH
199044452024-05-19 14:01:2326 hrs ago1716127283
TitanX: Buy And Burn V2
0.010989 ETH
199044452024-05-19 14:01:2326 hrs ago1716127283
TitanX: Buy And Burn V2
0.010989 ETH
199030542024-05-19 9:21:1131 hrs ago1716110471
TitanX: Buy And Burn V2
0.010989 ETH
199030542024-05-19 9:21:1131 hrs ago1716110471
TitanX: Buy And Burn V2
0.010989 ETH
199016642024-05-19 4:40:5935 hrs ago1716093659
TitanX: Buy And Burn V2
0.010989 ETH
199016642024-05-19 4:40:5935 hrs ago1716093659
TitanX: Buy And Burn V2
0.010989 ETH
199002712024-05-19 0:00:4740 hrs ago1716076847
TitanX: Buy And Burn V2
0.010989 ETH
199002712024-05-19 0:00:4740 hrs ago1716076847
TitanX: Buy And Burn V2
0.010989 ETH
198988772024-05-18 19:20:3545 hrs ago1716060035
TitanX: Buy And Burn V2
0.010989 ETH
198988772024-05-18 19:20:3545 hrs ago1716060035
TitanX: Buy And Burn V2
0.010989 ETH
198974862024-05-18 14:40:232 days ago1716043223
TitanX: Buy And Burn V2
0.010989 ETH
198974862024-05-18 14:40:232 days ago1716043223
TitanX: Buy And Burn V2
0.010989 ETH
198960952024-05-18 10:00:112 days ago1716026411
TitanX: Buy And Burn V2
0.010989 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BuyAndBurnV2

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : BuyAndBurnV2.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
pragma abicoder v2;

import "./openzeppelin/security/ReentrancyGuard.sol";

import "../libs/Constant.sol";
import "../libs/PoolAddress.sol";
import "../libs/CallbackValidation.sol";
import "../libs/TransferHelper.sol";
import "../libs/FullMath.sol";

import "../interfaces/IUniswapV3Pool.sol";
import "../interfaces/IWETH9.sol";
import "../interfaces/ITITANX.sol";

contract BuyAndBurnV2 is ReentrancyGuard {
    /** @dev genesis timestamp */
    uint256 private immutable i_genesisTs;

    /** @dev owner address */
    address private s_ownerAddress;

    /** @dev tracks total weth used for buyandburn */
    uint256 private s_totalWethBuyAndBurn;

    /** @dev tracks titan burned through buyandburn */
    uint256 private s_totalTitanBuyAndBurn;

    /** @dev tracks current per swap cap */
    uint256 private s_capPerSwap;

    /** @dev tracks timestamp of the last buynburn was called */
    uint256 private s_lastCallTs;

    /** @dev slippage amount between 0 - 50 */
    uint256 private s_slippage;

    /** @dev buynburn interval in seconds */
    uint256 private s_interval;

    event BoughtAndBurned(
        uint256 indexed weth,
        uint256 indexed titan,
        address indexed caller
    );
    event CollectedFees(
        uint256 indexed weth,
        uint256 indexed titan,
        address indexed caller
    );

    constructor() {
        i_genesisTs = block.timestamp;
        s_ownerAddress = msg.sender;
        s_capPerSwap = 1 ether;
        s_slippage = 5;
        s_interval = 60;
    }

    /** @notice receive eth and convert all eth into weth */
    receive() external payable {
        //prevent ETH withdrawal received from WETH contract into deposit function
        if (msg.sender != WETH9) IWETH9(WETH9).deposit{value: msg.value}();
    }

    /** @notice remove owner */
    function renounceOwnership() public {
        require(msg.sender == s_ownerAddress, "InvalidCaller");
        s_ownerAddress = address(0);
    }

    /** @notice set new owner address. Only callable by owner address.
     * @param ownerAddress new owner address
     */
    function setOwnerAddress(address ownerAddress) external {
        require(msg.sender == s_ownerAddress, "InvalidCaller");
        require(ownerAddress != address(0), "InvalidAddress");
        s_ownerAddress = ownerAddress;
    }

    /**
     * @notice set weth cap amount per buynburn call. Only callable by owner address.
     * @param amount amount in 18 decimals
     */
    function setCapPerSwap(uint256 amount) external {
        require(msg.sender == s_ownerAddress, "InvalidCaller");
        s_capPerSwap = amount;
    }

    /**
     * @notice set slippage % for buynburn minimum received amount. Only callable by owner address.
     * @param amount amount from 0 - 50
     */
    function setSlippage(uint256 amount) external {
        require(msg.sender == s_ownerAddress, "InvalidCaller");
        require(amount >= 5 && amount <= 15, "5-15_Only");
        s_slippage = amount;
    }

    /**
     * @notice set buynburn call interval in seconds. Only callable by owner address.
     * @param secs amount in seconds
     */
    function setBuynBurnInterval(uint256 secs) external {
        require(msg.sender == s_ownerAddress, "InvalidCaller");
        require(
            secs >= MIN_INTERVAL_SECONDS && secs <= MAX_INTERVAL_SECONDS,
            "1m-12h_Only"
        );
        s_interval = secs;
    }

    /** @notice burn all Titan in BuyAndBurn address */
    function burnLPTitan() public {
        ITITANX(TITANX).burnLPTokens();
    }

    /** @notice buy and burn Titan from uniswap pool */
    function buynBurn() public nonReentrant {
        //prevent contract accounts (bots) from calling this function
        require(msg.sender == tx.origin, "InvalidCaller");
        //a minium gap of 1 min between each call
        require(block.timestamp - s_lastCallTs > s_interval, "IntervalWait");
        s_lastCallTs = block.timestamp;

        uint256 wethAmount = getWethBalance(address(this));
        require(wethAmount != 0, "NoAvailableFunds");

        uint256 wethCap = s_capPerSwap;
        if (wethAmount > wethCap) wethAmount = wethCap;

        uint256 incentiveFee = (wethAmount * INCENTIVE_FEE) /
            INCENTIVE_FEE_PERCENT_BASE;
        IWETH9(WETH9).withdraw(incentiveFee);

        wethAmount -= incentiveFee;
        _swapWETHForTitan(wethAmount);
        TransferHelper.safeTransferETH(payable(msg.sender), incentiveFee);
    }

    /** @notice Used by uniswapV3. Modified from uniswapV3 swap callback function to complete the swap */
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata
    ) external {
        require(amount0Delta > 0 || amount1Delta > 0); // swaps entirely within 0-liquidity regions are not supported
        IUniswapV3Pool pool = CallbackValidation.verifyCallback(
            UNISWAPV3FACTORY,
            WETH9,
            TITANX,
            POOLFEE1PERCENT
        );
        require(address(pool) == TITANX_WETH_POOL, "WrongPool");

        //swap weth for titan
        TransferHelper.safeTransferFrom(
            WETH9,
            address(this),
            msg.sender,
            amount0Delta > 0 ? uint256(amount0Delta) : uint256(amount1Delta)
        );

        s_totalWethBuyAndBurn += amount0Delta > 0
            ? uint256(amount0Delta)
            : uint256(amount1Delta);
    }

    // ==================== Private Functions =======================================
    /** @dev call uniswap swap function to swap weth for titan, then burn all titan
     * @param amountWETH weth amount
     */
    function _swapWETHForTitan(uint256 amountWETH) private {
        //calculate minimum amount for slippage protection
        uint256 minTokenAmount = ((amountWETH * 1 ether * (100 - s_slippage)) /
            getCurrentEthPrice()) / 100;

        (int256 amount0, int256 amount1) = IUniswapV3Pool(TITANX_WETH_POOL)
            .swap(
                address(this),
                WETH9 < TITANX,
                int256(amountWETH),
                WETH9 < TITANX ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,
                ""
            );
        uint256 titan = WETH9 < TITANX
            ? uint256(amount1 >= 0 ? amount1 : -amount1)
            : uint256(amount0 >= 0 ? amount0 : -amount0);

        //slippage protection check
        require(titan >= minTokenAmount, "TooLittleReceived");

        s_totalTitanBuyAndBurn += titan;
        burnLPTitan();
        emit BoughtAndBurned(amountWETH, titan, msg.sender);
    }

    //views
    /** @notice get titanx weth pool address
     * @return address titanx weth pool address
     */
    function getPoolAddress() public pure returns (address) {
        return TITANX_WETH_POOL;
    }

    /** @notice get contract ETH balance
     * @return balance contract ETH balance
     */
    function getBalance() public view returns (uint256) {
        return address(this).balance;
    }

    /** @notice get WETH balance for speciifed address
     * @param account address
     * @return balance WETH balance
     */
    function getWethBalance(address account) public view returns (uint256) {
        return IWETH9(WETH9).balanceOf(account);
    }

    /** @notice get titan balance for speicifed address
     * @param account address
     */
    function getTitanBalance(address account) public view returns (uint256) {
        return ITITANX(TITANX).balanceOf(account);
    }

    /** @notice get buy and burn current contract day
     * @return day current contract day
     */
    function getCurrentContractDay() public view returns (uint256) {
        return ((block.timestamp - i_genesisTs) / SECONDS_IN_DAY) + 1;
    }

    /** @notice get current sqrt price
     * @return sqrtPrice sqrt Price X96
     */
    function getCurrentSqrtPriceX96() public view returns (uint160) {
        IUniswapV3Pool pool = IUniswapV3Pool(TITANX_WETH_POOL);
        (uint160 sqrtPriceX96, , , , , , ) = pool.slot0();
        return sqrtPriceX96;
    }

    /** @notice get current eth price
     * @return ethPrice eth price
     */
    function getCurrentEthPrice() public view returns (uint256) {
        IUniswapV3Pool pool = IUniswapV3Pool(TITANX_WETH_POOL);
        (uint256 sqrtPriceX96, , , , , , ) = pool.slot0();
        uint256 numerator1 = sqrtPriceX96 * sqrtPriceX96;
        uint256 numerator2 = 10 ** 18;
        uint256 price = FullMath.mulDiv(numerator1, numerator2, 1 << 192);
        price = WETH9 < TITANX ? (1 ether * 1 ether) / price : price;
        return price;
    }

    /** @notice get cap amount per buy and burn
     * @return cap amount
     */
    function getWethBuyAndBurnCap() public view returns (uint256) {
        return s_capPerSwap;
    }

    /** @notice get buynburn slippage
     * @return slippage
     */
    function getSlippage() public view returns (uint256) {
        return s_slippage;
    }

    /** @notice get the buynburn interval between each call in seconds
     * @return seconds
     */
    function getBuynBurnInterval() public view returns (uint256) {
        return s_interval;
    }

    /** @notice since burnLPTokens in TitanX reads the BuyAndBurn CA, TitanX in V1 will not be burned when CA we migrate to V2,
     * so we just have remove the supply owned by V1
     * @return return the actual total supply
     */
    function totalTitanXLiquidSupply() public view returns (uint256) {
        return ITITANX(TITANX).totalSupply() - getTitanBalance(BUYANDBURNV1);
    }

    // ==================== BuyAndBurnV2 Getters =======================================
    /** @notice get buy and burn funds (exclude weth fees)
     * @return amount weth amount
     */
    function getBuyAndBurnFundsV2() public view returns (uint256) {
        return getWethBalance(address(this));
    }

    /** @notice get total weth amount used to buy and burn (exclude weth fees)
     * @return amount total weth amount
     */
    function getTotalWethBuyAndBurnV2() public view returns (uint256) {
        return s_totalWethBuyAndBurn;
    }

    /** @notice get total titan amount burned from all buy and burn
     * @return amount total titan amount
     */
    function getTotalTitanBuyAndBurnV2() public view returns (uint256) {
        return s_totalTitanBuyAndBurn;
    }
}

File 3 of 17 : ITITANX.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;

interface ITITANX {
    function burnLPTokens() external;

    function balanceOf(address account) external view returns (uint256);

    function totalSupply() external view returns (uint256);
}

File 4 of 17 : IWETH9.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.7.6;

import "../contracts/openzeppelin/token/ERC20/IERC20.sol";

/// @title Interface for WETH9
interface IWETH9 is IERC20 {
    /// @notice Deposit ether to get wrapped ether
    function deposit() external payable;

    /// @notice Withdraw wrapped ether to get ether
    function withdraw(uint256) external;
}

File 5 of 17 : IUniswapV3Pool.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

import "./pool/IUniswapV3PoolImmutables.sol";
import "./pool/IUniswapV3PoolState.sol";
import "./pool/IUniswapV3PoolDerivedState.sol";
import "./pool/IUniswapV3PoolActions.sol";
import "./pool/IUniswapV3PoolOwnerActions.sol";
import "./pool/IUniswapV3PoolEvents.sol";

/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

File 6 of 17 : FullMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        // 512-bit multiply [prod1 prod0] = a * b
        // Compute the product mod 2**256 and mod 2**256 - 1
        // then use the Chinese Remainder Theorem to reconstruct
        // the 512 bit result. The result is stored in two 256
        // variables such that product = prod1 * 2**256 + prod0
        uint256 prod0; // Least significant 256 bits of the product
        uint256 prod1; // Most significant 256 bits of the product
        assembly {
            let mm := mulmod(a, b, not(0))
            prod0 := mul(a, b)
            prod1 := sub(sub(mm, prod0), lt(mm, prod0))
        }

        // Handle non-overflow cases, 256 by 256 division
        if (prod1 == 0) {
            require(denominator > 0);
            assembly {
                result := div(prod0, denominator)
            }
            return result;
        }

        // Make sure the result is less than 2**256.
        // Also prevents denominator == 0
        require(denominator > prod1);

        ///////////////////////////////////////////////
        // 512 by 256 division.
        ///////////////////////////////////////////////

        // Make division exact by subtracting the remainder from [prod1 prod0]
        // Compute remainder using mulmod
        uint256 remainder;
        assembly {
            remainder := mulmod(a, b, denominator)
        }
        // Subtract 256 bit number from 512 bit number
        assembly {
            prod1 := sub(prod1, gt(remainder, prod0))
            prod0 := sub(prod0, remainder)
        }

        // Factor powers of two out of denominator
        // Compute largest power of two divisor of denominator.
        // Always >= 1.
        uint256 twos = -denominator & denominator;
        // Divide denominator by power of two
        assembly {
            denominator := div(denominator, twos)
        }

        // Divide [prod1 prod0] by the factors of two
        assembly {
            prod0 := div(prod0, twos)
        }
        // Shift in bits from prod1 into prod0. For this we need
        // to flip `twos` such that it is 2**256 / twos.
        // If twos is zero, then it becomes one
        assembly {
            twos := add(div(sub(0, twos), twos), 1)
        }
        prod0 |= prod1 * twos;

        // Invert denominator mod 2**256
        // Now that denominator is an odd number, it has an inverse
        // modulo 2**256 such that denominator * inv = 1 mod 2**256.
        // Compute the inverse by starting with a seed that is correct
        // correct for four bits. That is, denominator * inv = 1 mod 2**4
        uint256 inv = (3 * denominator) ^ 2;
        // Now use Newton-Raphson iteration to improve the precision.
        // Thanks to Hensel's lifting lemma, this also works in modular
        // arithmetic, doubling the correct bits in each step.
        inv *= 2 - denominator * inv; // inverse mod 2**8
        inv *= 2 - denominator * inv; // inverse mod 2**16
        inv *= 2 - denominator * inv; // inverse mod 2**32
        inv *= 2 - denominator * inv; // inverse mod 2**64
        inv *= 2 - denominator * inv; // inverse mod 2**128
        inv *= 2 - denominator * inv; // inverse mod 2**256

        // Because the division is now exact we can divide by multiplying
        // with the modular inverse of denominator. This will give us the
        // correct result modulo 2**256. Since the precoditions guarantee
        // that the outcome is less than 2**256, this is the final result.
        // We don't need to compute the high bits of the result and prod1
        // is no longer required.
        result = prod0 * inv;
        return result;
    }

    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        result = mulDiv(a, b, denominator);
        if (mulmod(a, b, denominator) > 0) {
            require(result < type(uint256).max);
            result++;
        }
    }
}

File 7 of 17 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

import "../contracts/openzeppelin/token/ERC20/IERC20.sol";

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(
                IERC20.transferFrom.selector,
                from,
                to,
                value
            )
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "STF"
        );
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(address token, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "ST"
        );
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(address token, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.approve.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "SA"
        );
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, "STE");
    }
}

File 8 of 17 : CallbackValidation.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.7.6;

import "../interfaces/IUniswapV3Pool.sol";
import "./PoolAddress.sol";

/// @notice Provides validation for callbacks from Uniswap V3 Pools
library CallbackValidation {
    /// @notice Returns the address of a valid Uniswap V3 Pool
    /// @param factory The contract address of the Uniswap V3 factory
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @return pool The V3 pool contract address
    function verifyCallback(
        address factory,
        address tokenA,
        address tokenB,
        uint24 fee
    ) internal view returns (IUniswapV3Pool pool) {
        return
            verifyCallback(
                factory,
                PoolAddress.getPoolKey(tokenA, tokenB, fee)
            );
    }

    /// @notice Returns the address of a valid Uniswap V3 Pool
    /// @param factory The contract address of the Uniswap V3 factory
    /// @param poolKey The identifying key of the V3 pool
    /// @return pool The V3 pool contract address
    function verifyCallback(
        address factory,
        PoolAddress.PoolKey memory poolKey
    ) internal view returns (IUniswapV3Pool pool) {
        pool = IUniswapV3Pool(PoolAddress.computeAddress(factory, poolKey));
        require(msg.sender == address(pool));
    }
}

File 9 of 17 : PoolAddress.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Provides functions for deriving a pool address from the factory, tokens, and the fee
library PoolAddress {
    bytes32 internal constant POOL_INIT_CODE_HASH =
        0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;

    /// @notice The identifying key of the pool
    struct PoolKey {
        address token0;
        address token1;
        uint24 fee;
    }

    /// @notice Returns PoolKey: the ordered tokens with the matched fee levels
    /// @param tokenA The first token of a pool, unsorted
    /// @param tokenB The second token of a pool, unsorted
    /// @param fee The fee level of the pool
    /// @return Poolkey The pool details with ordered token0 and token1 assignments
    function getPoolKey(
        address tokenA,
        address tokenB,
        uint24 fee
    ) internal pure returns (PoolKey memory) {
        if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA);
        return PoolKey({token0: tokenA, token1: tokenB, fee: fee});
    }

    /// @notice Deterministically computes the pool address given the factory and PoolKey
    /// @param factory The Uniswap V3 factory contract address
    /// @param key The PoolKey
    /// @return pool The contract address of the V3 pool
    function computeAddress(
        address factory,
        PoolKey memory key
    ) internal pure returns (address pool) {
        require(key.token0 < key.token1);
        pool = address(
            uint256(
                keccak256(
                    abi.encodePacked(
                        hex"ff",
                        factory,
                        keccak256(abi.encode(key.token0, key.token1, key.fee)),
                        POOL_INIT_CODE_HASH
                    )
                )
            )
        );
    }
}

File 10 of 17 : Constant.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;

address constant TITANX = 0xF19308F923582A6f7c465e5CE7a9Dc1BEC6665B1;
address constant BUYANDBURNV1 = 0x1393ad734EA3c52865b4B541cf049dafd25c23a5;
address constant TITANX_WETH_POOL = 0xc45A81BC23A64eA556ab4CdF08A86B61cdcEEA8b;
address constant UNISWAPV3FACTORY = 0x1F98431c8aD98523631AE4a59f267346ea31F984;
address constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

uint256 constant SECONDS_IN_DAY = 86400;

uint24 constant POOLFEE1PERCENT = 10000; //1% Fee
uint160 constant MIN_SQRT_RATIO = 4295128739;
uint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

uint256 constant INCENTIVE_FEE = 3300;
uint256 constant INCENTIVE_FEE_PERCENT_BASE = 1_000_000;

uint256 constant MIN_INTERVAL_SECONDS = 60;
uint256 constant MAX_INTERVAL_SECONDS = 43200; //12 hours

File 11 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.7.6;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

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

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

File 12 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

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

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

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

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

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

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

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

File 13 of 17 : IUniswapV3PoolEvents.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(
        uint8 feeProtocol0Old,
        uint8 feeProtocol1Old,
        uint8 feeProtocol0New,
        uint8 feeProtocol1New
    );

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(
        address indexed sender,
        address indexed recipient,
        uint128 amount0,
        uint128 amount1
    );
}

File 14 of 17 : IUniswapV3PoolOwnerActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

File 15 of 17 : IUniswapV3PoolActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(
        uint16 observationCardinalityNext
    ) external;
}

File 16 of 17 : IUniswapV3PoolDerivedState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(
        uint32[] calldata secondsAgos
    )
        external
        view
        returns (
            int56[] memory tickCumulatives,
            uint160[] memory secondsPerLiquidityCumulativeX128s
        );

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(
        int24 tickLower,
        int24 tickUpper
    )
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

File 17 of 17 : IUniswapV3PoolState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees()
        external
        view
        returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(
        int24 tick
    )
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(
        bytes32 key
    )
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(
        uint256 index
    )
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

File 18 of 17 : IUniswapV3PoolImmutables.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"weth","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"titan","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"BoughtAndBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"weth","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"titan","type":"uint256"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"CollectedFees","type":"event"},{"inputs":[],"name":"burnLPTitan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buynBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyAndBurnFundsV2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuynBurnInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentContractDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSqrtPriceX96","outputs":[{"internalType":"uint160","name":"","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPoolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getTitanBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalTitanBuyAndBurnV2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalWethBuyAndBurnV2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getWethBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWethBuyAndBurnCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"setBuynBurnInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setCapPerSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"setOwnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalTitanXLiquidSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b506001600081905550426080818152505033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550670de0b6b3a76400006004819055506005600681905550603c6007819055506080516125d061009b600039806106f552506125d06000f3fe6080604052600436106101395760003560e01c80639125009d116100ab578063cce1e0701161006f578063cce1e07014610494578063e01c1780146104bf578063f0fa55a9146104ea578063f586c6d914610513578063fa461e331461053e578063fc9cee3c14610567576101fd565b80639125009d146103e7578063b12bea1214610412578063bed18ec81461043d578063bee403b814610454578063c179306c1461047d576101fd565b80633b20250c116100fd5780633b20250c146102d5578063510d23811461031257806367ceadab1461033d578063715018a6146103685780637510270a1461037f5780637fec4bed146103bc576101fd565b80630987b9c014610202578063098dada51461022d57806312065fe0146102565780631ae409c014610281578063331a6bf5146102ac576101fd565b366101fd5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101fb5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156101e157600080fd5b505af11580156101f5573d6000803e3d6000fd5b50505050505b005b600080fd5b34801561020e57600080fd5b50610217610592565b60405161022491906123f5565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190611fa1565b610649565b005b34801561026257600080fd5b5061026b6106e3565b60405161027891906123f5565b60405180910390f35b34801561028d57600080fd5b506102966106eb565b6040516102a391906123f5565b60405180910390f35b3480156102b857600080fd5b506102d360048036038101906102ce9190611e32565b610724565b005b3480156102e157600080fd5b506102fc60048036038101906102f79190611e32565b610868565b60405161030991906123f5565b60405180910390f35b34801561031e57600080fd5b5061032761090e565b60405161033491906123f5565b60405180910390f35b34801561034957600080fd5b50610352610918565b60405161035f91906123f5565b60405180910390f35b34801561037457600080fd5b5061037d610922565b005b34801561038b57600080fd5b506103a660048036038101906103a19190611e32565b6109f6565b6040516103b391906123f5565b60405180910390f35b3480156103c857600080fd5b506103d1610a9c565b6040516103de91906123da565b60405180910390f35b3480156103f357600080fd5b506103fc610b46565b60405161040991906123f5565b60405180910390f35b34801561041e57600080fd5b50610427610cc2565b60405161043491906123f5565b60405180910390f35b34801561044957600080fd5b50610452610ccc565b005b34801561046057600080fd5b5061047b60048036038101906104769190611fa1565b610d42565b005b34801561048957600080fd5b50610492610e2e565b005b3480156104a057600080fd5b506104a9611010565b6040516104b691906123f5565b60405180910390f35b3480156104cb57600080fd5b506104d461101a565b6040516104e191906123f5565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c9190611fa1565b61102a565b005b34801561051f57600080fd5b50610528611115565b6040516105359190612267565b60405180910390f35b34801561054a57600080fd5b5061056560048036038101906105609190611e97565b611131565b005b34801561057357600080fd5b5061057c61126e565b60405161058991906123f5565b60405180910390f35b60006105b1731393ad734ea3c52865b4b541cf049dafd25c23a56109f6565b73f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561060b57600080fd5b505afa15801561061f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106439190611fca565b03905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d09061237a565b60405180910390fd5b8060048190555050565b600047905090565b60006001620151807f000000000000000000000000000000000000000000000000000000000000000042038161071d57fe5b0401905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab9061237a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610824576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081b906122da565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016108b79190612267565b60206040518083038186803b1580156108cf57600080fd5b505afa1580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109079190611fca565b9050919050565b6000600354905090565b6000600754905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a99061237a565b60405180910390fd5b6000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610a459190612267565b60206040518083038186803b158015610a5d57600080fd5b505afa158015610a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a959190611fca565b9050919050565b60008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611f03565b5050505050509050809250505090565b60008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190611f03565b50505050505073ffffffffffffffffffffffffffffffffffffffff169050600081820290506000670de0b6b3a764000090506000610c3883837801000000000000000000000000000000000000000000000000611278565b905073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1610610c9b5780610cb5565b806ec097ce7bc90715b34b9f100000000081610cb357fe5b045b9050809550505050505090565b6000600454905090565b73f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1663bb88603c6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b50505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc99061237a565b60405180910390fd5b603c8110158015610de5575061a8c08111155b610e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1b9061235a565b60405180910390fd5b8060078190555050565b610e36611352565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b9061237a565b60405180910390fd5b600754600554420311610eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee39061233a565b60405180910390fd5b426005819055506000610efe30610868565b90506000811415610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b906122fa565b60405180910390fd5b6000600454905080821115610f57578091505b6000620f4240610ce4840281610f6957fe5b04905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610fb991906123f5565b600060405180830381600087803b158015610fd357600080fd5b505af1158015610fe7573d6000803e3d6000fd5b505050508083039250610ff9836113d5565b61100333826116bb565b50505061100e611837565b565b6000600254905090565b600061102530610868565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b19061237a565b60405180910390fd5b600581101580156110cc5750600f8111155b61110b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111029061239a565b60405180910390fd5b8060068190555050565b600073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905090565b60008413806111405750600083135b61114957600080fd5b6000611195731f98431c8ad98523631ae4a59f267346ea31f98473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273f19308f923582a6f7c465e5ce7a9dc1bec6665b1612710611841565b905073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611219576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611210906123ba565b60405180910390fd5b61124873c02aaa39b223fe8d0a0e5c4f27ead9083c756cc23033600089136112415787611243565b885b611861565b600085136112565783611258565b845b6002600082825401925050819055505050505050565b6000600654905090565b6000806000801985870985870292508281108382030391505060008114156112b357600084116112a757600080fd5b8382049250505061134b565b8084116112bf57600080fd5b600084868809905082811182039150808303925060008586600003169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b600260005414156113cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550565b600060646113e1610b46565b600654606403670de0b6b3a7640000850202816113fa57fe5b048161140257fe5b04905060008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b73ffffffffffffffffffffffffffffffffffffffff1663128acb083073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16108773f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff161061150957600173fffd8963efd1fc6a506488495d951d5263988d2603611513565b60016401000276a3015b6040518563ffffffff1660e01b81526004016115329493929190612282565b6040805180830381600087803b15801561154b57600080fd5b505af115801561155f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115839190611e5b565b91509150600073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16106115fd5760008312156115f657826000036115f8565b825b611612565b600082121561160f5781600003611611565b815b5b905083811015611657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164e9061231a565b60405180910390fd5b8060036000828254019250508190555061166f610ccc565b3373ffffffffffffffffffffffffffffffffffffffff1681867f1b6fe3d614107093562b62b9236e265cac820f430060c5eb674a70824a7435db60405160405180910390a45050505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811180156116ed57600080fd5b506040519080825280601f01601f1916602001820160405280156117205781602001600182028036833780820191505090505b506040518082805190602001908083835b602083106117545780518252602082019150602081019050602083039250611731565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b5050905080611832576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f535445000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050565b6001600081905550565b600061185785611852868686611a81565b611b1d565b9050949350505050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310611960578051825260208201915060208101905060208303925061193d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119c2576040519150601f19603f3d011682016040523d82523d6000602084013e6119c7565b606091505b5091509150818015611a075750600081511480611a0657508080602001905160208110156119f457600080fd5b81019080805190602001909291905050505b5b611a79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f535446000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050505050565b611a89611cc4565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161115611ac857828480945081955050505b60405180606001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018362ffffff1681525090509392505050565b6000611b298383611b69565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b6357600080fd5b92915050565b6000816020015173ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1610611bab57600080fd5b82826000015183602001518460400151604051602001808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1681526020019350505050604051602081830303815290604052805190602001207fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460001b60405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c905092915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600062ffffff1681525090565b600081359050611d25816124e2565b92915050565b600081519050611d3a816124f9565b92915050565b60008083601f840112611d5257600080fd5b8235905067ffffffffffffffff811115611d6b57600080fd5b602083019150836001820283011115611d8357600080fd5b9250929050565b600081519050611d9981612510565b92915050565b600081359050611dae81612527565b92915050565b600081519050611dc381612527565b92915050565b600081519050611dd881612555565b92915050565b600081519050611ded8161253e565b92915050565b600081359050611e028161256c565b92915050565b600081519050611e178161256c565b92915050565b600081519050611e2c81612583565b92915050565b600060208284031215611e4457600080fd5b6000611e5284828501611d16565b91505092915050565b60008060408385031215611e6e57600080fd5b6000611e7c85828601611db4565b9250506020611e8d85828601611db4565b9150509250929050565b60008060008060608587031215611ead57600080fd5b6000611ebb87828801611d9f565b9450506020611ecc87828801611d9f565b935050604085013567ffffffffffffffff811115611ee957600080fd5b611ef587828801611d40565b925092505092959194509250565b600080600080600080600060e0888a031215611f1e57600080fd5b6000611f2c8a828b01611dc9565b9750506020611f3d8a828b01611d8a565b9650506040611f4e8a828b01611dde565b9550506060611f5f8a828b01611dde565b9450506080611f708a828b01611dde565b93505060a0611f818a828b01611e1d565b92505060c0611f928a828b01611d2b565b91505092959891949750929550565b600060208284031215611fb357600080fd5b6000611fc184828501611df3565b91505092915050565b600060208284031215611fdc57600080fd5b6000611fea84828501611e08565b91505092915050565b611ffc816124ac565b82525050565b61200b81612432565b82525050565b61201a81612444565b82525050565b6120298161245d565b82525050565b600061203c600e83612421565b91507f496e76616c6964416464726573730000000000000000000000000000000000006000830152602082019050919050565b600061207c601083612421565b91507f4e6f417661696c61626c6546756e6473000000000000000000000000000000006000830152602082019050919050565b60006120bc601183612421565b91507f546f6f4c6974746c6552656365697665640000000000000000000000000000006000830152602082019050919050565b60006120fc600c83612421565b91507f496e74657276616c5761697400000000000000000000000000000000000000006000830152602082019050919050565b600061213c600b83612421565b91507f316d2d3132685f4f6e6c790000000000000000000000000000000000000000006000830152602082019050919050565b600061217c600d83612421565b91507f496e76616c696443616c6c6572000000000000000000000000000000000000006000830152602082019050919050565b60006121bc600983612421565b91507f352d31355f4f6e6c7900000000000000000000000000000000000000000000006000830152602082019050919050565b60006121fc600083612410565b9150600082019050919050565b6000612216600983612421565b91507f57726f6e67506f6f6c00000000000000000000000000000000000000000000006000830152602082019050919050565b61225281612475565b82525050565b61226181612495565b82525050565b600060208201905061227c6000830184612002565b92915050565b600060a0820190506122976000830187611ff3565b6122a46020830186612011565b6122b16040830185612020565b6122be6060830184612249565b81810360808301526122cf816121ef565b905095945050505050565b600060208201905081810360008301526122f38161202f565b9050919050565b600060208201905081810360008301526123138161206f565b9050919050565b60006020820190508181036000830152612333816120af565b9050919050565b60006020820190508181036000830152612353816120ef565b9050919050565b600060208201905081810360008301526123738161212f565b9050919050565b600060208201905081810360008301526123938161216f565b9050919050565b600060208201905081810360008301526123b3816121af565b9050919050565b600060208201905081810360008301526123d381612209565b9050919050565b60006020820190506123ef6000830184612249565b92915050565b600060208201905061240a6000830184612258565b92915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061243d82612475565b9050919050565b60008115159050919050565b60008160020b9050919050565b6000819050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006124b7826124be565b9050919050565b60006124c9826124d0565b9050919050565b60006124db82612475565b9050919050565b6124eb81612432565b81146124f657600080fd5b50565b61250281612444565b811461250d57600080fd5b50565b61251981612450565b811461252457600080fd5b50565b6125308161245d565b811461253b57600080fd5b50565b61254781612467565b811461255257600080fd5b50565b61255e81612475565b811461256957600080fd5b50565b61257581612495565b811461258057600080fd5b50565b61258c8161249f565b811461259757600080fd5b5056fea26469706673582212209fdffb5a6a94cf881d44076609eea4ca25b65e9285c3719c6362739842d93df564736f6c63430007060033

Deployed Bytecode

0x6080604052600436106101395760003560e01c80639125009d116100ab578063cce1e0701161006f578063cce1e07014610494578063e01c1780146104bf578063f0fa55a9146104ea578063f586c6d914610513578063fa461e331461053e578063fc9cee3c14610567576101fd565b80639125009d146103e7578063b12bea1214610412578063bed18ec81461043d578063bee403b814610454578063c179306c1461047d576101fd565b80633b20250c116100fd5780633b20250c146102d5578063510d23811461031257806367ceadab1461033d578063715018a6146103685780637510270a1461037f5780637fec4bed146103bc576101fd565b80630987b9c014610202578063098dada51461022d57806312065fe0146102565780631ae409c014610281578063331a6bf5146102ac576101fd565b366101fd5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101fb5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156101e157600080fd5b505af11580156101f5573d6000803e3d6000fd5b50505050505b005b600080fd5b34801561020e57600080fd5b50610217610592565b60405161022491906123f5565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190611fa1565b610649565b005b34801561026257600080fd5b5061026b6106e3565b60405161027891906123f5565b60405180910390f35b34801561028d57600080fd5b506102966106eb565b6040516102a391906123f5565b60405180910390f35b3480156102b857600080fd5b506102d360048036038101906102ce9190611e32565b610724565b005b3480156102e157600080fd5b506102fc60048036038101906102f79190611e32565b610868565b60405161030991906123f5565b60405180910390f35b34801561031e57600080fd5b5061032761090e565b60405161033491906123f5565b60405180910390f35b34801561034957600080fd5b50610352610918565b60405161035f91906123f5565b60405180910390f35b34801561037457600080fd5b5061037d610922565b005b34801561038b57600080fd5b506103a660048036038101906103a19190611e32565b6109f6565b6040516103b391906123f5565b60405180910390f35b3480156103c857600080fd5b506103d1610a9c565b6040516103de91906123da565b60405180910390f35b3480156103f357600080fd5b506103fc610b46565b60405161040991906123f5565b60405180910390f35b34801561041e57600080fd5b50610427610cc2565b60405161043491906123f5565b60405180910390f35b34801561044957600080fd5b50610452610ccc565b005b34801561046057600080fd5b5061047b60048036038101906104769190611fa1565b610d42565b005b34801561048957600080fd5b50610492610e2e565b005b3480156104a057600080fd5b506104a9611010565b6040516104b691906123f5565b60405180910390f35b3480156104cb57600080fd5b506104d461101a565b6040516104e191906123f5565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c9190611fa1565b61102a565b005b34801561051f57600080fd5b50610528611115565b6040516105359190612267565b60405180910390f35b34801561054a57600080fd5b5061056560048036038101906105609190611e97565b611131565b005b34801561057357600080fd5b5061057c61126e565b60405161058991906123f5565b60405180910390f35b60006105b1731393ad734ea3c52865b4b541cf049dafd25c23a56109f6565b73f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561060b57600080fd5b505afa15801561061f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106439190611fca565b03905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d09061237a565b60405180910390fd5b8060048190555050565b600047905090565b60006001620151807f000000000000000000000000000000000000000000000000000000006549fd6742038161071d57fe5b0401905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab9061237a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610824576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081b906122da565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016108b79190612267565b60206040518083038186803b1580156108cf57600080fd5b505afa1580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109079190611fca565b9050919050565b6000600354905090565b6000600754905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a99061237a565b60405180910390fd5b6000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610a459190612267565b60206040518083038186803b158015610a5d57600080fd5b505afa158015610a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a959190611fca565b9050919050565b60008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611f03565b5050505050509050809250505090565b60008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905060008173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015610ba857600080fd5b505afa158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190611f03565b50505050505073ffffffffffffffffffffffffffffffffffffffff169050600081820290506000670de0b6b3a764000090506000610c3883837801000000000000000000000000000000000000000000000000611278565b905073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1610610c9b5780610cb5565b806ec097ce7bc90715b34b9f100000000081610cb357fe5b045b9050809550505050505090565b6000600454905090565b73f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1663bb88603c6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b50505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc99061237a565b60405180910390fd5b603c8110158015610de5575061a8c08111155b610e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1b9061235a565b60405180910390fd5b8060078190555050565b610e36611352565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b9061237a565b60405180910390fd5b600754600554420311610eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee39061233a565b60405180910390fd5b426005819055506000610efe30610868565b90506000811415610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b906122fa565b60405180910390fd5b6000600454905080821115610f57578091505b6000620f4240610ce4840281610f6957fe5b04905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610fb991906123f5565b600060405180830381600087803b158015610fd357600080fd5b505af1158015610fe7573d6000803e3d6000fd5b505050508083039250610ff9836113d5565b61100333826116bb565b50505061100e611837565b565b6000600254905090565b600061102530610868565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b19061237a565b60405180910390fd5b600581101580156110cc5750600f8111155b61110b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111029061239a565b60405180910390fd5b8060068190555050565b600073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b905090565b60008413806111405750600083135b61114957600080fd5b6000611195731f98431c8ad98523631ae4a59f267346ea31f98473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273f19308f923582a6f7c465e5ce7a9dc1bec6665b1612710611841565b905073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611219576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611210906123ba565b60405180910390fd5b61124873c02aaa39b223fe8d0a0e5c4f27ead9083c756cc23033600089136112415787611243565b885b611861565b600085136112565783611258565b845b6002600082825401925050819055505050505050565b6000600654905090565b6000806000801985870985870292508281108382030391505060008114156112b357600084116112a757600080fd5b8382049250505061134b565b8084116112bf57600080fd5b600084868809905082811182039150808303925060008586600003169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b600260005414156113cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550565b600060646113e1610b46565b600654606403670de0b6b3a7640000850202816113fa57fe5b048161140257fe5b04905060008073c45a81bc23a64ea556ab4cdf08a86b61cdceea8b73ffffffffffffffffffffffffffffffffffffffff1663128acb083073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16108773f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff161061150957600173fffd8963efd1fc6a506488495d951d5263988d2603611513565b60016401000276a3015b6040518563ffffffff1660e01b81526004016115329493929190612282565b6040805180830381600087803b15801561154b57600080fd5b505af115801561155f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115839190611e5b565b91509150600073f19308f923582a6f7c465e5ce7a9dc1bec6665b173ffffffffffffffffffffffffffffffffffffffff1673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16106115fd5760008312156115f657826000036115f8565b825b611612565b600082121561160f5781600003611611565b815b5b905083811015611657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164e9061231a565b60405180910390fd5b8060036000828254019250508190555061166f610ccc565b3373ffffffffffffffffffffffffffffffffffffffff1681867f1b6fe3d614107093562b62b9236e265cac820f430060c5eb674a70824a7435db60405160405180910390a45050505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811180156116ed57600080fd5b506040519080825280601f01601f1916602001820160405280156117205781602001600182028036833780820191505090505b506040518082805190602001908083835b602083106117545780518252602082019150602081019050602083039250611731565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b5050905080611832576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f535445000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050565b6001600081905550565b600061185785611852868686611a81565b611b1d565b9050949350505050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310611960578051825260208201915060208101905060208303925061193d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119c2576040519150601f19603f3d011682016040523d82523d6000602084013e6119c7565b606091505b5091509150818015611a075750600081511480611a0657508080602001905160208110156119f457600080fd5b81019080805190602001909291905050505b5b611a79576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f535446000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050505050565b611a89611cc4565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161115611ac857828480945081955050505b60405180606001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018362ffffff1681525090509392505050565b6000611b298383611b69565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b6357600080fd5b92915050565b6000816020015173ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1610611bab57600080fd5b82826000015183602001518460400151604051602001808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff1681526020019350505050604051602081830303815290604052805190602001207fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460001b60405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c905092915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600062ffffff1681525090565b600081359050611d25816124e2565b92915050565b600081519050611d3a816124f9565b92915050565b60008083601f840112611d5257600080fd5b8235905067ffffffffffffffff811115611d6b57600080fd5b602083019150836001820283011115611d8357600080fd5b9250929050565b600081519050611d9981612510565b92915050565b600081359050611dae81612527565b92915050565b600081519050611dc381612527565b92915050565b600081519050611dd881612555565b92915050565b600081519050611ded8161253e565b92915050565b600081359050611e028161256c565b92915050565b600081519050611e178161256c565b92915050565b600081519050611e2c81612583565b92915050565b600060208284031215611e4457600080fd5b6000611e5284828501611d16565b91505092915050565b60008060408385031215611e6e57600080fd5b6000611e7c85828601611db4565b9250506020611e8d85828601611db4565b9150509250929050565b60008060008060608587031215611ead57600080fd5b6000611ebb87828801611d9f565b9450506020611ecc87828801611d9f565b935050604085013567ffffffffffffffff811115611ee957600080fd5b611ef587828801611d40565b925092505092959194509250565b600080600080600080600060e0888a031215611f1e57600080fd5b6000611f2c8a828b01611dc9565b9750506020611f3d8a828b01611d8a565b9650506040611f4e8a828b01611dde565b9550506060611f5f8a828b01611dde565b9450506080611f708a828b01611dde565b93505060a0611f818a828b01611e1d565b92505060c0611f928a828b01611d2b565b91505092959891949750929550565b600060208284031215611fb357600080fd5b6000611fc184828501611df3565b91505092915050565b600060208284031215611fdc57600080fd5b6000611fea84828501611e08565b91505092915050565b611ffc816124ac565b82525050565b61200b81612432565b82525050565b61201a81612444565b82525050565b6120298161245d565b82525050565b600061203c600e83612421565b91507f496e76616c6964416464726573730000000000000000000000000000000000006000830152602082019050919050565b600061207c601083612421565b91507f4e6f417661696c61626c6546756e6473000000000000000000000000000000006000830152602082019050919050565b60006120bc601183612421565b91507f546f6f4c6974746c6552656365697665640000000000000000000000000000006000830152602082019050919050565b60006120fc600c83612421565b91507f496e74657276616c5761697400000000000000000000000000000000000000006000830152602082019050919050565b600061213c600b83612421565b91507f316d2d3132685f4f6e6c790000000000000000000000000000000000000000006000830152602082019050919050565b600061217c600d83612421565b91507f496e76616c696443616c6c6572000000000000000000000000000000000000006000830152602082019050919050565b60006121bc600983612421565b91507f352d31355f4f6e6c7900000000000000000000000000000000000000000000006000830152602082019050919050565b60006121fc600083612410565b9150600082019050919050565b6000612216600983612421565b91507f57726f6e67506f6f6c00000000000000000000000000000000000000000000006000830152602082019050919050565b61225281612475565b82525050565b61226181612495565b82525050565b600060208201905061227c6000830184612002565b92915050565b600060a0820190506122976000830187611ff3565b6122a46020830186612011565b6122b16040830185612020565b6122be6060830184612249565b81810360808301526122cf816121ef565b905095945050505050565b600060208201905081810360008301526122f38161202f565b9050919050565b600060208201905081810360008301526123138161206f565b9050919050565b60006020820190508181036000830152612333816120af565b9050919050565b60006020820190508181036000830152612353816120ef565b9050919050565b600060208201905081810360008301526123738161212f565b9050919050565b600060208201905081810360008301526123938161216f565b9050919050565b600060208201905081810360008301526123b3816121af565b9050919050565b600060208201905081810360008301526123d381612209565b9050919050565b60006020820190506123ef6000830184612249565b92915050565b600060208201905061240a6000830184612258565b92915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061243d82612475565b9050919050565b60008115159050919050565b60008160020b9050919050565b6000819050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006124b7826124be565b9050919050565b60006124c9826124d0565b9050919050565b60006124db82612475565b9050919050565b6124eb81612432565b81146124f657600080fd5b50565b61250281612444565b811461250d57600080fd5b50565b61251981612450565b811461252457600080fd5b50565b6125308161245d565b811461253b57600080fd5b50565b61254781612467565b811461255257600080fd5b50565b61255e81612475565b811461256957600080fd5b50565b61257581612495565b811461258057600080fd5b50565b61258c8161249f565b811461259757600080fd5b5056fea26469706673582212209fdffb5a6a94cf881d44076609eea4ca25b65e9285c3719c6362739842d93df564736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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