ETH Price: $3,078.27 (-6.82%)
Gas: 8 Gwei

Contract

0xF76A6285f6342ecf1cb644a3BC10Cbd6cc538F4e
 

Overview

ETH Balance

0.003048386824525554 ETH

Eth Value

$9.38 (@ $3,078.27/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Master Swap188617852023-12-25 9:13:23192 days ago1703495603IN
MEV Bot: 0xf76…f4e
0 ETH0.0025523120.39026892
Master Swap183063752023-10-08 14:32:11270 days ago1696775531IN
MEV Bot: 0xf76…f4e
0.00480583 ETH0.0014956510.83496013
Master Swap183062872023-10-08 14:14:23270 days ago1696774463IN
MEV Bot: 0xf76…f4e
0.00454768 ETH0.0018529111.94968838
Master Swap182945532023-10-06 22:51:11272 days ago1696632671IN
MEV Bot: 0xf76…f4e
0.00445682 ETH0.001448748.51609674
Master Swap182903882023-10-06 8:51:47272 days ago1696582307IN
MEV Bot: 0xf76…f4e
0.00425231 ETH0.001480248.69947698
Master Swap182900122023-10-06 7:36:23272 days ago1696577783IN
MEV Bot: 0xf76…f4e
0.00423903 ETH0.001961410.47430949
Master Swap182807212023-10-05 0:25:59273 days ago1696465559IN
MEV Bot: 0xf76…f4e
0.00643715 ETH0.001760149.67653587
Master Swap182702992023-10-03 13:26:11275 days ago1696339571IN
MEV Bot: 0xf76…f4e
0.00814374 ETH0.0019105313.05830661
Master Swap182701252023-10-03 12:51:11275 days ago1696337471IN
MEV Bot: 0xf76…f4e
0.00583976 ETH0.0019076913.40510936
Master Swap182701172023-10-03 12:49:35275 days ago1696337375IN
MEV Bot: 0xf76…f4e
0.00637902 ETH0.0021265813.34278611
Master Swap182655022023-10-02 21:21:23276 days ago1696281683IN
MEV Bot: 0xf76…f4e
0.00428404 ETH0.0031294819.14362626
Master Swap182340382023-09-28 11:49:23280 days ago1695901763IN
MEV Bot: 0xf76…f4e
0.00482926 ETH0.0015726210.95102267
Master Swap182155082023-09-25 21:33:11283 days ago1695677591IN
MEV Bot: 0xf76…f4e
0.00573075 ETH0.0034619523.00594637
Master Swap182128662023-09-25 12:41:35283 days ago1695645695IN
MEV Bot: 0xf76…f4e
0.00451016 ETH0.0027010913.53418205
Master Swap182125802023-09-25 11:43:59283 days ago1695642239IN
MEV Bot: 0xf76…f4e
0.01068618 ETH0.0021632316.59511335
Master Swap182124942023-09-25 11:26:47283 days ago1695641207IN
MEV Bot: 0xf76…f4e
0.0098862 ETH0.0017785511.8184879
Master Swap182104562023-09-25 4:35:35283 days ago1695616535IN
MEV Bot: 0xf76…f4e
0.0043523 ETH0.001469129.85965309
Master Swap182004812023-09-23 19:03:59285 days ago1695495839IN
MEV Bot: 0xf76…f4e
0.00452112 ETH0.0018399511.96500294
Master Swap181999502023-09-23 17:17:23285 days ago1695489443IN
MEV Bot: 0xf76…f4e
0.0042165 ETH0.0014455810.95372424
Master Swap181998972023-09-23 17:06:47285 days ago1695488807IN
MEV Bot: 0xf76…f4e
0.00453712 ETH0.0017766912.70848349
Master Swap181998702023-09-23 17:01:23285 days ago1695488483IN
MEV Bot: 0xf76…f4e
0.00520104 ETH0.0016769811.82831944
Master Swap181998212023-09-23 16:51:35285 days ago1695487895IN
MEV Bot: 0xf76…f4e
0.02306314 ETH0.0014429610.29319152
Master Swap181998192023-09-23 16:51:11285 days ago1695487871IN
MEV Bot: 0xf76…f4e
0.00526615 ETH0.0014756510.43044301
Master Swap181997952023-09-23 16:46:23285 days ago1695487583IN
MEV Bot: 0xf76…f4e
0.01499444 ETH0.0017699412.62910447
Master Swap181997942023-09-23 16:46:11285 days ago1695487571IN
MEV Bot: 0xf76…f4e
0.00464436 ETH0.0017152712.20748947
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
183063752023-10-08 14:32:11270 days ago1696775531
MEV Bot: 0xf76…f4e
0.00053077 ETH
183063752023-10-08 14:32:11270 days ago1696775531
MEV Bot: 0xf76…f4e
0.00427506 ETH
183062872023-10-08 14:14:23270 days ago1696774463
MEV Bot: 0xf76…f4e
0.00139955 ETH
183062872023-10-08 14:14:23270 days ago1696774463
MEV Bot: 0xf76…f4e
0.00314813 ETH
182945532023-10-06 22:51:11272 days ago1696632671
MEV Bot: 0xf76…f4e
0.00054806 ETH
182945532023-10-06 22:51:11272 days ago1696632671
MEV Bot: 0xf76…f4e
0.00390875 ETH
182903882023-10-06 8:51:47272 days ago1696582307
MEV Bot: 0xf76…f4e
0.00048406 ETH
182903882023-10-06 8:51:47272 days ago1696582307
MEV Bot: 0xf76…f4e
0.00376825 ETH
182900122023-10-06 7:36:23272 days ago1696577783
MEV Bot: 0xf76…f4e
0.00027741 ETH
182900122023-10-06 7:36:23272 days ago1696577783
MEV Bot: 0xf76…f4e
0.00396162 ETH
182807212023-10-05 0:25:59273 days ago1696465559
MEV Bot: 0xf76…f4e
0.00643715 ETH
182702992023-10-03 13:26:11275 days ago1696339571
MEV Bot: 0xf76…f4e
0.00415275 ETH
182702992023-10-03 13:26:11275 days ago1696339571
MEV Bot: 0xf76…f4e
0.00399098 ETH
182701252023-10-03 12:51:11275 days ago1696337471
MEV Bot: 0xf76…f4e
0.00583976 ETH
182701172023-10-03 12:49:35275 days ago1696337375
MEV Bot: 0xf76…f4e
0.00637902 ETH
182655022023-10-02 21:21:23276 days ago1696281683
MEV Bot: 0xf76…f4e
0.00371057 ETH
182655022023-10-02 21:21:23276 days ago1696281683
MEV Bot: 0xf76…f4e
0.00057346 ETH
182340382023-09-28 11:49:23280 days ago1695901763
MEV Bot: 0xf76…f4e
0.00387683 ETH
182340382023-09-28 11:49:23280 days ago1695901763
MEV Bot: 0xf76…f4e
0.00095243 ETH
182155082023-09-25 21:33:11283 days ago1695677591
MEV Bot: 0xf76…f4e
0.00573075 ETH
182128662023-09-25 12:41:35283 days ago1695645695
MEV Bot: 0xf76…f4e
0.00451016 ETH
182125802023-09-25 11:43:59283 days ago1695642239
MEV Bot: 0xf76…f4e
0.01068618 ETH
182124942023-09-25 11:26:47283 days ago1695641207
MEV Bot: 0xf76…f4e
0.0098862 ETH
182104562023-09-25 4:35:35283 days ago1695616535
MEV Bot: 0xf76…f4e
0.0043523 ETH
182004812023-09-23 19:03:59285 days ago1695495839
MEV Bot: 0xf76…f4e
0.00140271 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmartTradeUniV3

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 14 : SmartUni.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import "@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

error ZeroAddress();
error UnauthorizedPool();
error TransactionTooOld();
error InvalidSqrtX96Price();
error InvalidAmountIn();
error TooSmallProfit();
error ExceedLimitPrice();
error NegativeUsdPriceValue();

contract SmartTradeUniV3 is IUniswapV3SwapCallback, Pausable, Ownable {
    uint160 private constant MIN_SQRT_RATIO = 4295128739;
    uint160 private constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;
    address private constant UNISWAP_FACTORY_ADDRESS = 0x1F98431c8aD98523631AE4a59f267346ea31F984;

    event SwapInfo(int256, int256, uint256);

    modifier NoDelegateCall() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _ ;
    }
    
    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function isValidPool(address poolAddress) private view returns (bool){
        if (poolAddress == address(0)) {
            return false;
        }

        IUniswapV3Pool pool = IUniswapV3Pool(poolAddress);
        IUniswapV3Factory poolFactory = IUniswapV3Factory(UNISWAP_FACTORY_ADDRESS);

        address token0 = pool.token0();
        if (token0 == address(0)) {
            return false;
        }

        address token1 = pool.token1();
        if (token1 == address(0)) {
            return false;
        }

        uint24 fee = pool.fee();
        if (fee != 3000 && fee != 500 && fee != 10000) {
            return false;
        }
        
        address realPool = poolFactory.getPool(token0, token1, fee);
        if (realPool == address(0)) {
            return false;
        }

        return realPool == poolAddress;
    }

    function masterSwap(
        address poolAddress,
        bool zeroForOne,
        int256 amountIn,
        uint160 sqrtPriceLimitX96,
        uint256 blockHeightRequired,
        int256 priceToken0Usd,
        int256 priceToken1Usd,
        int256 weiPriceUsd,
        int256 bribePercent,
        uint256 gas,
        int256 profitKoef
    ) external payable NoDelegateCall whenNotPaused returns (int256, int256, uint256) {
        if(poolAddress ==address(0)){
            revert ZeroAddress();
        }

        if (priceToken0Usd < 0 || priceToken1Usd < 0 || weiPriceUsd < 0 || bribePercent < 0) {
            revert NegativeUsdPriceValue();
        }

        if (block.number > blockHeightRequired) {
            revert TransactionTooOld();
        }

        if (amountIn <= 0) {
            revert InvalidAmountIn();
        }

        if (sqrtPriceLimitX96 <= MIN_SQRT_RATIO || sqrtPriceLimitX96 >= MAX_SQRT_RATIO) {
            revert InvalidSqrtX96Price();
        }

        if (!isValidPool(poolAddress)) {
            revert UnauthorizedPool();
        }

        IUniswapV3Pool pool = IUniswapV3Pool(poolAddress);

        (uint160 currentSqrtX96Price, , , , , , ) = pool.slot0();
        if ((zeroForOne && currentSqrtX96Price < sqrtPriceLimitX96) || (!zeroForOne && currentSqrtX96Price > sqrtPriceLimitX96)) {
            revert ExceedLimitPrice();
        }

        (int256 amount0, int256 amount1) = pool.swap(msg.sender,
            zeroForOne,
            amountIn,
            sqrtPriceLimitX96,
            abi.encode(msg.sender, zeroForOne)
        );

        int256 profitUsd = zeroForOne ? (-1 * amount1 * priceToken1Usd) - (amount0 * priceToken0Usd) :  (-1 * amount0 * priceToken0Usd) - (amount1 * priceToken1Usd);
        if (profitUsd < 0)
        {
            revert TooSmallProfit(); 
        }

        profitUsd = profitUsd * profitKoef;

        int256 gasCostUsd = int256(gas * tx.gasprice) * weiPriceUsd;
        profitUsd = profitUsd - gasCostUsd;
        if (profitUsd < 0)
        {
            revert TooSmallProfit(); 
        }

        uint256 bribe = 0;
        if (bribePercent > 0 && msg.value > 0) {
            int256 profitWei = profitUsd / weiPriceUsd;
            bribe = uint256(profitWei * bribePercent / 100);

            if (bribe > msg.value)
            {
                bribe = msg.value;
            }

            block.coinbase.transfer(bribe);

            uint256 bribeModWei = msg.value - bribe;
            if (bribeModWei > 0)
            {
                payable(msg.sender).transfer(bribeModWei);
            }
        }

        emit SwapInfo(amount0, amount1, bribe);
        return (amount0, amount1, bribe);
    }

    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external whenNotPaused override {
        if(!isValidPool(msg.sender)){
            revert UnauthorizedPool();
        }

        IUniswapV3Pool pool = IUniswapV3Pool(msg.sender);

        (address payer, bool zeroForOne) = abi.decode(data, (address, bool));
                if(payer == address(0)){
            revert ZeroAddress();
        }

        if(zeroForOne) {
            IERC20(pool.token0()).transferFrom(payer, msg.sender, uint256(amount0Delta));
        }
        else {
            IERC20(pool.token1()).transferFrom(payer, msg.sender, uint256(amount1Delta));
        }
    }

    fallback() external payable{
        revert();
    }

    receive() external payable {
        revert();
    }
}

File 2 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 14 : 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 4 of 14 : IUniswapV3Factory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title The interface for the Uniswap V3 Factory
/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees
interface IUniswapV3Factory {
    /// @notice Emitted when the owner of the factory is changed
    /// @param oldOwner The owner before the owner was changed
    /// @param newOwner The owner after the owner was changed
    event OwnerChanged(address indexed oldOwner, address indexed newOwner);

    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory
    /// @param fee The enabled fee, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee
    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);

    /// @notice Returns the current owner of the factory
    /// @dev Can be changed by the current owner via setOwner
    /// @return The address of the factory owner
    function owner() external view returns (address);

    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled
    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context
    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee
    /// @return The tick spacing
    function feeAmountTickSpacing(uint24 fee) external view returns (int24);

    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order
    /// @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 pool address
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    /// @notice Creates a pool for the given two tokens and fee
    /// @param tokenA One of the two tokens in the desired pool
    /// @param tokenB The other of the two tokens in the desired pool
    /// @param fee The desired fee for the pool
    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
    /// are invalid.
    /// @return pool The address of the newly created pool
    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    /// @notice Updates the owner of the factory
    /// @dev Must be called by the current owner
    /// @param _owner The new owner of the factory
    function setOwner(address _owner) external;

    /// @notice Enables a fee amount with the given tickSpacing
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}

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

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

File 6 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

File 8 of 14 : 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);
}

File 9 of 14 : 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 10 of 14 : 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 11 of 14 : 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 12 of 14 : 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 13 of 14 : 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 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"ExceedLimitPrice","type":"error"},{"inputs":[],"name":"InvalidAmountIn","type":"error"},{"inputs":[],"name":"InvalidSqrtX96Price","type":"error"},{"inputs":[],"name":"NegativeUsdPriceValue","type":"error"},{"inputs":[],"name":"TooSmallProfit","type":"error"},{"inputs":[],"name":"TransactionTooOld","type":"error"},{"inputs":[],"name":"UnauthorizedPool","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int256","name":"","type":"int256"},{"indexed":false,"internalType":"int256","name":"","type":"int256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"SwapInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"int256","name":"amountIn","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"},{"internalType":"uint256","name":"blockHeightRequired","type":"uint256"},{"internalType":"int256","name":"priceToken0Usd","type":"int256"},{"internalType":"int256","name":"priceToken1Usd","type":"int256"},{"internalType":"int256","name":"weiPriceUsd","type":"int256"},{"internalType":"int256","name":"bribePercent","type":"int256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"int256","name":"profitKoef","type":"int256"}],"name":"masterSwap","outputs":[{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080806040523461006d57600080546001600160a81b0319811633600881811b610100600160a81b03169290921784559291901c6001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09084a361159f90816100738239f35b600080fdfe60406080815260049081361015610023575b5050361561001e57600080fd5b600080fd5b600091823560e01c80633f4ba83a14610e4c5780635c975abb14610e2a5780636dcc85b31461061d578063715018a6146105955780638456cb59146104fd5780638da5cb5b146104c3578063f2fde38b146103885763fa461e33146100885750610011565b34610214576060600319360112610214576044359067ffffffffffffffff80831161038457366023840112156103845782820135908111610384578201366024820111610384576100dd60ff86541615610fc3565b6100e6336112ee565b1561035c57828491031261035857602482013573ffffffffffffffffffffffffffffffffffffffff928382168092036103545760440135801515810361035457811561032c5715610266578351907f0dfe168100000000000000000000000000000000000000000000000000000000825260209283838281335afa9087821561025b576101d7968695829461022c575b5088517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909516838601908152336020820152923560408401529396879485939091849160600190565b0393165af1801561021f576101eb57505051f35b81813d8311610218575b6101ff8183611028565b8101031261021457610210906110a7565b5051f35b8280fd5b503d6101f5565b50505051903d90823e3d90fd5b61024d919450863d8811610254575b6102458183611028565b8101906112c2565b9238610176565b503d61023b565b8751903d90823e3d90fd5b8351907fd21220a700000000000000000000000000000000000000000000000000000000825260209283838281335afa9087821561025b576101d7968695829461030d575b5088517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90951692850192835233602084015260243560408401529396879485939091849160600190565b610325919450863d8811610254576102458183611028565b92386102ab565b8285517fd92e233d000000000000000000000000000000000000000000000000000000008152fd5b8580fd5b8380fd5b5082517fc9b13d82000000000000000000000000000000000000000000000000000000008152fd5b8480fd5b5034610214576020600319360112610214576103a2610f3b565b91835473ffffffffffffffffffffffffffffffffffffffff93848260081c16946103cd338714610f5e565b8116938415610440575074ffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffff0000000000000000000000000000000000000000ff9160081b16911617845551917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60849060208551917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b5050346104f957816003193601126104f95773ffffffffffffffffffffffffffffffffffffffff6020925460081c169051908152f35b5080fd5b5050346104f957816003193601126104f95760017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083546105583373ffffffffffffffffffffffffffffffffffffffff8360081c1614610f5e565b61056560ff821615610fc3565b161782557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25860208251338152a151f35b5050346104f957816003193601126104f957818054917fffffffffffffffffffffff0000000000000000000000000000000000000000ff73ffffffffffffffffffffffffffffffffffffffff8460081c16936105f2338614610f5e565b16825551917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b509061016060031936011261021457610634610f3b565b602491823594851594851595868803610214576064359773ffffffffffffffffffffffffffffffffffffffff90818a16809a0361038457333203610dce5761068060ff86541615610fc3565b818716928315610da65760a435928684128015610d9b575b8015610d90575b8015610d84575b610d5c576084354311610d345760443598878a1315610d0c576401000276a38d11801590610cee575b610cc6576106dc906112ee565b15610c9e5787517f3850c7bd00000000000000000000000000000000000000000000000000000000815260e0818881895afa908115610c9457918d918594938a91610bf8575b5084610beb575b8415610bc8575b50505050610ba05785519960209733898d01528a888d0152878c5260608c019a8c8c1067ffffffffffffffff8d1117610b75578b89527f128acb08000000000000000000000000000000000000000000000000000000008c528c60643391015260848d015260a48c015260c48b015260a060e48b015285898b5194878d6101049b888d830152825b898110610b555750509060c484927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6101249b858d8286010152011681010301925af1998a15610b4b578599869b610b13575b505015610af25761083c9061083661082f60c43561082a8d6110b4565b611196565b918a611196565b9061127a565b838112610aca57610851906101443590611196565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff918183043a1182151516610a9f576108959061083660e43580943a02611196565b848112610a77578496359285841380610a6e575b610918575b8a8a6109148a8a7f30151a779e74001cff75afd3c8c2b131a33bf93951b40255714a797015e973b38151806108f6858989846040919493926060820195825260208201520152565b0390a151938493846040919493926060820195825260208201520152565b0390f35b90918093949596975015610a435782147f8000000000000000000000000000000000000000000000000000000000000000821416610a18579161095e9160649305611196565b0593348511610a10575b8280868015610a06575b8280929181924190f1156109fc57843403913483116109d257505083341480156109a2575b8080808796956108ae565b82808093819382906109c9575b3390f1156109be578080610997565b9051903d90823e3d90fd5b506108fc6109af565b601184917f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b83513d84823e3d90fd5b6108fc9150610972565b349450610968565b86856011867f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b87866012877f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b503415156108a9565b8386517f4d0e0700000000000000000000000000000000000000000000000000000000008152fd5b87856011867f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8285517f4d0e0700000000000000000000000000000000000000000000000000000000008152fd5b610b02610b0e9161082a8a6110b4565b61083660c4358b611196565b61083c565b919a5098508589813d8311610b44575b610b2d8185611028565b81010312610384576080905198015198388061080d565b503d610b23565b86513d87823e3d90fd5b91820180820151610124909101528b95508e94508a92508f9181016107b8565b8a886041897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8386517f2c49b322000000000000000000000000000000000000000000000000000000008152fd5b929350909183610bdf575b505050388b8180610730565b161190508a3880610bd3565b9350818185161093610729565b92505091925060e0813d8211610c8c575b81610c1660e09383611028565b81010312610c88578051908282168203610c845760208101518060020b03610c8457610c438a8201611098565b50610c5060608201611098565b50610c5d60808201611098565b5060a081015160ff811603610c8457918d91610c7d60c0879695016110a7565b5038610722565b8880fd5b8780fd5b3d9150610c09565b89513d8a823e3d90fd5b8588517fc9b13d82000000000000000000000000000000000000000000000000000000008152fd5b8689517f86ac95a6000000000000000000000000000000000000000000000000000000008152fd5b5073fffd8963efd1fc6a506488495d951d5263988d268d10156106cf565b8689517fcae33fc2000000000000000000000000000000000000000000000000000000008152fd5b8588517fa83116fc000000000000000000000000000000000000000000000000000000008152fd5b8588517f536c476d000000000000000000000000000000000000000000000000000000008152fd5b508661010435126106a6565b508660e4351261069f565b508660c43512610698565b8487517fd92e233d000000000000000000000000000000000000000000000000000000008152fd5b606484601e8a60208a51937f08c379a00000000000000000000000000000000000000000000000000000000085528401528201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152fd5b5050346104f957816003193601126104f95760ff602092541690519015158152f35b5034610214578260031936011261021457825490610e843373ffffffffffffffffffffffffffffffffffffffff8460081c1614610f5e565b60ff821615610ede57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa60208251338152a151f35b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361001e57565b15610f6557565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610fca57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761106957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b519061ffff8216820361001e57565b5190811515820361001e57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000906001837f8000000000000000000000000000000000000000000000000000000000000000058212838513161661116957600190837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0513828412161661113c570390565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b60008082138184137f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82821686820486111661122057838612917f80000000000000000000000000000000000000000000000000000000000000009383878605891291161661124d5786858712940586129084161661122057859005841291161661113c57500290565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b8181039291600013801582851316918412161761129357565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9081602091031261001e575173ffffffffffffffffffffffffffffffffffffffff8116810361001e5790565b73ffffffffffffffffffffffffffffffffffffffff80911690811561146857604080517f0dfe16810000000000000000000000000000000000000000000000000000000081526020908181600481885afa90811561155e57908491600091611541575b50169081156115375782517fd21220a70000000000000000000000000000000000000000000000000000000081528181600481895afa90811561152c5790859160009161150f575b501680156115045783517fddca3f4300000000000000000000000000000000000000000000000000000000815282816004818a5afa9081156114f9576000916114ba575b5062ffffff1690610bb8821415806114ae575b806114a2575b611496578451937f1698ee820000000000000000000000000000000000000000000000000000000085526004850152602484015260448301528082606481731f98431c8ad98523631ae4a59f267346ea31f9845afa92831561148c575060009261146f575b5050168015611468571490565b5050600090565b6114859250803d10610254576102458183611028565b388061145b565b513d6000823e3d90fd5b50505050505050600090565b506127108214156113f6565b506101f48214156113f0565b8381813d83116114f2575b6114cf8183611028565b810103126104f957519062ffffff821682036114ef575062ffffff6113dd565b80fd5b503d6114c5565b85513d6000823e3d90fd5b505050505050600090565b6115269150833d8511610254576102458183611028565b38611399565b84513d6000823e3d90fd5b5050505050600090565b6115589150833d8511610254576102458183611028565b38611351565b83513d6000823e3d90fdfea264697066735822122042980b2ffb5d3e237001dc631800f372da6c5249db7718d3371ed9e3b94887c364736f6c63430008100033

Deployed Bytecode

0x60406080815260049081361015610023575b5050361561001e57600080fd5b600080fd5b600091823560e01c80633f4ba83a14610e4c5780635c975abb14610e2a5780636dcc85b31461061d578063715018a6146105955780638456cb59146104fd5780638da5cb5b146104c3578063f2fde38b146103885763fa461e33146100885750610011565b34610214576060600319360112610214576044359067ffffffffffffffff80831161038457366023840112156103845782820135908111610384578201366024820111610384576100dd60ff86541615610fc3565b6100e6336112ee565b1561035c57828491031261035857602482013573ffffffffffffffffffffffffffffffffffffffff928382168092036103545760440135801515810361035457811561032c5715610266578351907f0dfe168100000000000000000000000000000000000000000000000000000000825260209283838281335afa9087821561025b576101d7968695829461022c575b5088517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909516838601908152336020820152923560408401529396879485939091849160600190565b0393165af1801561021f576101eb57505051f35b81813d8311610218575b6101ff8183611028565b8101031261021457610210906110a7565b5051f35b8280fd5b503d6101f5565b50505051903d90823e3d90fd5b61024d919450863d8811610254575b6102458183611028565b8101906112c2565b9238610176565b503d61023b565b8751903d90823e3d90fd5b8351907fd21220a700000000000000000000000000000000000000000000000000000000825260209283838281335afa9087821561025b576101d7968695829461030d575b5088517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90951692850192835233602084015260243560408401529396879485939091849160600190565b610325919450863d8811610254576102458183611028565b92386102ab565b8285517fd92e233d000000000000000000000000000000000000000000000000000000008152fd5b8580fd5b8380fd5b5082517fc9b13d82000000000000000000000000000000000000000000000000000000008152fd5b8480fd5b5034610214576020600319360112610214576103a2610f3b565b91835473ffffffffffffffffffffffffffffffffffffffff93848260081c16946103cd338714610f5e565b8116938415610440575074ffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffff0000000000000000000000000000000000000000ff9160081b16911617845551917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08484a3f35b60849060208551917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b5050346104f957816003193601126104f95773ffffffffffffffffffffffffffffffffffffffff6020925460081c169051908152f35b5080fd5b5050346104f957816003193601126104f95760017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083546105583373ffffffffffffffffffffffffffffffffffffffff8360081c1614610f5e565b61056560ff821615610fc3565b161782557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25860208251338152a151f35b5050346104f957816003193601126104f957818054917fffffffffffffffffffffff0000000000000000000000000000000000000000ff73ffffffffffffffffffffffffffffffffffffffff8460081c16936105f2338614610f5e565b16825551917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b509061016060031936011261021457610634610f3b565b602491823594851594851595868803610214576064359773ffffffffffffffffffffffffffffffffffffffff90818a16809a0361038457333203610dce5761068060ff86541615610fc3565b818716928315610da65760a435928684128015610d9b575b8015610d90575b8015610d84575b610d5c576084354311610d345760443598878a1315610d0c576401000276a38d11801590610cee575b610cc6576106dc906112ee565b15610c9e5787517f3850c7bd00000000000000000000000000000000000000000000000000000000815260e0818881895afa908115610c9457918d918594938a91610bf8575b5084610beb575b8415610bc8575b50505050610ba05785519960209733898d01528a888d0152878c5260608c019a8c8c1067ffffffffffffffff8d1117610b75578b89527f128acb08000000000000000000000000000000000000000000000000000000008c528c60643391015260848d015260a48c015260c48b015260a060e48b015285898b5194878d6101049b888d830152825b898110610b555750509060c484927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6101249b858d8286010152011681010301925af1998a15610b4b578599869b610b13575b505015610af25761083c9061083661082f60c43561082a8d6110b4565b611196565b918a611196565b9061127a565b838112610aca57610851906101443590611196565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff918183043a1182151516610a9f576108959061083660e43580943a02611196565b848112610a77578496359285841380610a6e575b610918575b8a8a6109148a8a7f30151a779e74001cff75afd3c8c2b131a33bf93951b40255714a797015e973b38151806108f6858989846040919493926060820195825260208201520152565b0390a151938493846040919493926060820195825260208201520152565b0390f35b90918093949596975015610a435782147f8000000000000000000000000000000000000000000000000000000000000000821416610a18579161095e9160649305611196565b0593348511610a10575b8280868015610a06575b8280929181924190f1156109fc57843403913483116109d257505083341480156109a2575b8080808796956108ae565b82808093819382906109c9575b3390f1156109be578080610997565b9051903d90823e3d90fd5b506108fc6109af565b601184917f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b83513d84823e3d90fd5b6108fc9150610972565b349450610968565b86856011867f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b87866012877f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b503415156108a9565b8386517f4d0e0700000000000000000000000000000000000000000000000000000000008152fd5b87856011867f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8285517f4d0e0700000000000000000000000000000000000000000000000000000000008152fd5b610b02610b0e9161082a8a6110b4565b61083660c4358b611196565b61083c565b919a5098508589813d8311610b44575b610b2d8185611028565b81010312610384576080905198015198388061080d565b503d610b23565b86513d87823e3d90fd5b91820180820151610124909101528b95508e94508a92508f9181016107b8565b8a886041897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8386517f2c49b322000000000000000000000000000000000000000000000000000000008152fd5b929350909183610bdf575b505050388b8180610730565b161190508a3880610bd3565b9350818185161093610729565b92505091925060e0813d8211610c8c575b81610c1660e09383611028565b81010312610c88578051908282168203610c845760208101518060020b03610c8457610c438a8201611098565b50610c5060608201611098565b50610c5d60808201611098565b5060a081015160ff811603610c8457918d91610c7d60c0879695016110a7565b5038610722565b8880fd5b8780fd5b3d9150610c09565b89513d8a823e3d90fd5b8588517fc9b13d82000000000000000000000000000000000000000000000000000000008152fd5b8689517f86ac95a6000000000000000000000000000000000000000000000000000000008152fd5b5073fffd8963efd1fc6a506488495d951d5263988d268d10156106cf565b8689517fcae33fc2000000000000000000000000000000000000000000000000000000008152fd5b8588517fa83116fc000000000000000000000000000000000000000000000000000000008152fd5b8588517f536c476d000000000000000000000000000000000000000000000000000000008152fd5b508661010435126106a6565b508660e4351261069f565b508660c43512610698565b8487517fd92e233d000000000000000000000000000000000000000000000000000000008152fd5b606484601e8a60208a51937f08c379a00000000000000000000000000000000000000000000000000000000085528401528201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152fd5b5050346104f957816003193601126104f95760ff602092541690519015158152f35b5034610214578260031936011261021457825490610e843373ffffffffffffffffffffffffffffffffffffffff8460081c1614610f5e565b60ff821615610ede57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa60208251338152a151f35b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361001e57565b15610f6557565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15610fca57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761106957604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b519061ffff8216820361001e57565b5190811515820361001e57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000906001837f8000000000000000000000000000000000000000000000000000000000000000058212838513161661116957600190837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0513828412161661113c570390565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b60008082138184137f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82821686820486111661122057838612917f80000000000000000000000000000000000000000000000000000000000000009383878605891291161661124d5786858712940586129084161661122057859005841291161661113c57500290565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b8181039291600013801582851316918412161761129357565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9081602091031261001e575173ffffffffffffffffffffffffffffffffffffffff8116810361001e5790565b73ffffffffffffffffffffffffffffffffffffffff80911690811561146857604080517f0dfe16810000000000000000000000000000000000000000000000000000000081526020908181600481885afa90811561155e57908491600091611541575b50169081156115375782517fd21220a70000000000000000000000000000000000000000000000000000000081528181600481895afa90811561152c5790859160009161150f575b501680156115045783517fddca3f4300000000000000000000000000000000000000000000000000000000815282816004818a5afa9081156114f9576000916114ba575b5062ffffff1690610bb8821415806114ae575b806114a2575b611496578451937f1698ee820000000000000000000000000000000000000000000000000000000085526004850152602484015260448301528082606481731f98431c8ad98523631ae4a59f267346ea31f9845afa92831561148c575060009261146f575b5050168015611468571490565b5050600090565b6114859250803d10610254576102458183611028565b388061145b565b513d6000823e3d90fd5b50505050505050600090565b506127108214156113f6565b506101f48214156113f0565b8381813d83116114f2575b6114cf8183611028565b810103126104f957519062ffffff821682036114ef575062ffffff6113dd565b80fd5b503d6114c5565b85513d6000823e3d90fd5b505050505050600090565b6115269150833d8511610254576102458183611028565b38611399565b84513d6000823e3d90fd5b5050505050600090565b6115589150833d8511610254576102458183611028565b38611351565b83513d6000823e3d90fdfea264697066735822122042980b2ffb5d3e237001dc631800f372da6c5249db7718d3371ed9e3b94887c364736f6c63430008100033

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.