ETH Price: $2,531.21 (+3.86%)

Contract

0xcdaDCce6384ceaF6877517Bf757543fC9FEf0574
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake179383712023-08-18 1:21:35382 days ago1692321695IN
0xcdaDCce6...C9FEf0574
0 ETH0.0059129626.75696338
Stake179383672023-08-18 1:20:47382 days ago1692321647IN
0xcdaDCce6...C9FEf0574
0.05 ETH0.0066252924.98092814
Unstake179336192023-08-17 9:23:23382 days ago1692264203IN
0xcdaDCce6...C9FEf0574
0 ETH0.003736816.90951917
Stake179336102023-08-17 9:21:35382 days ago1692264095IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0047437316.63592004
Stake179335892023-08-17 9:17:23382 days ago1692263843IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0047470718.03502364
Stake179327282023-08-17 6:23:59382 days ago1692253439IN
0xcdaDCce6...C9FEf0574
0.05 ETH0.0043058415.58457357
Unstake179321842023-08-17 4:34:23382 days ago1692246863IN
0xcdaDCce6...C9FEf0574
0 ETH0.0038828917.57059261
Stake179319432023-08-17 3:45:35382 days ago1692243935IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0057481920.00729133
Stake179318102023-08-17 3:18:47382 days ago1692242327IN
0xcdaDCce6...C9FEf0574
0.05 ETH0.0058882820.49487999
Stake179317162023-08-17 2:59:35382 days ago1692241175IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0081286622.6715111
Stake179313042023-08-17 1:36:47383 days ago1692236207IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0102798825.69970555
Stake179311212023-08-17 0:59:35383 days ago1692233975IN
0xcdaDCce6...C9FEf0574
0.01 ETH0.0118148129.53703428
Stake179310912023-08-17 0:53:35383 days ago1692233615IN
0xcdaDCce6...C9FEf0574
0.001 ETH0.013679834.1995144
0x60806040179265062023-08-16 9:30:23383 days ago1692178223IN
 Create: LottyStaking
0 ETH0.0299380521.99178752

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
179383672023-08-18 1:20:47382 days ago1692321647
0xcdaDCce6...C9FEf0574
0.00000001 ETH
179383672023-08-18 1:20:47382 days ago1692321647
0xcdaDCce6...C9FEf0574
0.00000001 ETH
179383672023-08-18 1:20:47382 days ago1692321647
0xcdaDCce6...C9FEf0574
0.05 ETH
179336102023-08-17 9:21:35382 days ago1692264095
0xcdaDCce6...C9FEf0574
0 ETH
179336102023-08-17 9:21:35382 days ago1692264095
0xcdaDCce6...C9FEf0574
0 ETH
179336102023-08-17 9:21:35382 days ago1692264095
0xcdaDCce6...C9FEf0574
0.01 ETH
179335892023-08-17 9:17:23382 days ago1692263843
0xcdaDCce6...C9FEf0574
0 ETH
179335892023-08-17 9:17:23382 days ago1692263843
0xcdaDCce6...C9FEf0574
0 ETH
179335892023-08-17 9:17:23382 days ago1692263843
0xcdaDCce6...C9FEf0574
0.01 ETH
179327282023-08-17 6:23:59382 days ago1692253439
0xcdaDCce6...C9FEf0574
0.05 ETH
179319432023-08-17 3:45:35382 days ago1692243935
0xcdaDCce6...C9FEf0574
0.00000001 ETH
179319432023-08-17 3:45:35382 days ago1692243935
0xcdaDCce6...C9FEf0574
0.00000001 ETH
179319432023-08-17 3:45:35382 days ago1692243935
0xcdaDCce6...C9FEf0574
0.01 ETH
179318102023-08-17 3:18:47382 days ago1692242327
0xcdaDCce6...C9FEf0574
0.00000007 ETH
179318102023-08-17 3:18:47382 days ago1692242327
0xcdaDCce6...C9FEf0574
0.00000007 ETH
179318102023-08-17 3:18:47382 days ago1692242327
0xcdaDCce6...C9FEf0574
0.05 ETH
179317162023-08-17 2:59:35382 days ago1692241175
0xcdaDCce6...C9FEf0574
0 ETH
179317162023-08-17 2:59:35382 days ago1692241175
0xcdaDCce6...C9FEf0574
0 ETH
179317162023-08-17 2:59:35382 days ago1692241175
0xcdaDCce6...C9FEf0574
0.01 ETH
179313042023-08-17 1:36:47383 days ago1692236207
0xcdaDCce6...C9FEf0574
0 ETH
179313042023-08-17 1:36:47383 days ago1692236207
0xcdaDCce6...C9FEf0574
0.01 ETH
179311212023-08-17 0:59:35383 days ago1692233975
0xcdaDCce6...C9FEf0574
0 ETH
179311212023-08-17 0:59:35383 days ago1692233975
0xcdaDCce6...C9FEf0574
0 ETH
179311212023-08-17 0:59:35383 days ago1692233975
0xcdaDCce6...C9FEf0574
0.01 ETH
179310912023-08-17 0:53:35383 days ago1692233615
0xcdaDCce6...C9FEf0574
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LottyStaking

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : LottyStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

/**
 * @title LOTTY Staking Contract
 * @author @Xirynx
 */
contract LottyStaking is Ownable {
    //============================================//
    //                Definitions                 //
    //============================================//

    struct StakePosition {
        address owner;
        uint256 timestamp;
        uint256 liquidity;
        uint256 timeLocked;
    }

    //============================================//
    //                  Errors                    //
    //============================================//

    error BalanceTransferFailed();
    error CallerNotOrigin();
    error CallerDoesNotOwnPosition();
    error PositionLocked();

    //============================================//
    //                  Events                    //
    //============================================//

    event Stake(
        address indexed owner,
        uint256 indexed positionNonce,
        uint256 timestamp,
        uint256 timelock,
        uint256 liquidity
    );
    event Unstake(
        address indexed owner,
        uint256 indexed positionNonce,
        uint256 timestamp,
        uint256 liquidity
    );

    //============================================//
    //                 Constants                  //
    //============================================//

    IUniswapV2Pair uniswapV2Pair;
    IUniswapV2Router02 uniswapV2Router;
    IERC20 lotty;

    //============================================//
    //              State Variables               //
    //============================================//

    uint256 public totalLiquidity;
    uint256 public stakeNonce;
    mapping(uint256 => StakePosition) public positions;

    /**
     * @notice Make the deployment network agnostic by requiring to specify prerequisite addresses
     * @param _uniswapV2Pair: Uniswap pool pair address
     * @param _uniswapV2Router: UniswapV2Router address
     * @param _lotty: ERC20 Lotty token address
     */
    constructor(
        IUniswapV2Pair _uniswapV2Pair,
        IUniswapV2Router02 _uniswapV2Router,
        IERC20 _lotty
    ) {
        uniswapV2Pair = IUniswapV2Pair(_uniswapV2Pair);
        uniswapV2Router = IUniswapV2Router02(_uniswapV2Router);
        lotty = IERC20(_lotty);
    }

    //============================================//
    //                 Read Only                  //
    //============================================//
    /**
     * @notice Returns staking position indexed at `_nonce`
     * @param _nonce: Index of the staking position being queried.
     */
    function checkPosition(
        uint256 _nonce
    ) public view returns (StakePosition memory _position) {
        _position = positions[_nonce];
    }

    //============================================//
    //                Core Methods                //
    //============================================//

    /**
     * @notice Stakes Lotty and ETH and locks liquidity for duration of _timeLocked
     * @dev Caller must be not be contract
     * @dev Caller must have approved at least `_amountLottyDesired` tokens before staking
     * @param _amountLottyDesired: Ideal amount of Lotty tokens to stake
     * @param _amountLottyMin: Bounds the extent to which the ETH/Lotty price can go up before the transaction reverts. Must be <= _amountLottyDesired
     * @param _amountETHMin: Bounds the extent to which the Lotty/ETH price can go up before the transaction reverts. Must be <= `msg.value`
     * @param _deadline: Unix timestamp after which the transaction will revert
     * @param _timeLocked: Duration (seconds) for which the position will be unstakeable
     */
    function stake(
        uint256 _amountLottyDesired,
        uint256 _amountLottyMin,
        uint256 _amountETHMin,
        uint256 _deadline,
        uint256 _timeLocked
    ) public payable {
        if (msg.sender != tx.origin) revert CallerNotOrigin();

        lotty.transferFrom(msg.sender, address(this), _amountLottyDesired);
        lotty.approve(address(uniswapV2Router), _amountLottyDesired);
        stakeNonce += 1;

        (, , uint256 liquidity) = uniswapV2Router.addLiquidityETH{
            value: msg.value
        }(
            address(lotty),
            _amountLottyDesired,
            _amountLottyMin,
            _amountETHMin,
            address(this),
            _deadline
        );

        totalLiquidity += liquidity;
        positions[stakeNonce] = StakePosition(
            msg.sender,
            block.timestamp,
            liquidity,
            _timeLocked
        );

        uint256 balance = address(this).balance;
        if (balance > 0) {
            (bool callSuccess, ) = payable(msg.sender).call{value: balance}("");
            if (!callSuccess) revert BalanceTransferFailed();
        }

        uint256 lottyBalance = lotty.balanceOf(address(this));
        if (lottyBalance > 0) {
            lotty.transfer(msg.sender, lottyBalance);
        }

        emit Stake(
            msg.sender,
            stakeNonce,
            block.timestamp,
            _timeLocked,
            liquidity
        );
    }

    /**
     * @notice Burns the position's liquidity tokens and returns the equivalent Lotty and ETH back to the staker
     * @dev Caller must own the position
     * @dev `block.timestamp` must be greater than the position's unlock time
     * @param _positionNonce: Nonce by which to identify the position for unstaking
     * @param _amountLottyMin: The minimum amount of Lotty that must be received for the transaction not to revert
     * @param _amountETHMin: The minimum amount of ETH that must be received for the transaction not to revert.
     * @param _deadline: Unix timestamp after which the transaction will revert
     */
    function unstake(
        uint256 _positionNonce,
        uint256 _amountLottyMin,
        uint256 _amountETHMin,
        uint256 _deadline
    ) public {
        StakePosition memory position = positions[_positionNonce];
        if (position.owner != msg.sender) revert CallerDoesNotOwnPosition();
        if (block.timestamp - position.timestamp < position.timeLocked)
            revert PositionLocked();

        totalLiquidity -= position.liquidity;
        positions[_positionNonce].owner = address(0);

        uniswapV2Pair.approve(address(uniswapV2Router), position.liquidity);

        uniswapV2Router.removeLiquidityETH(
            address(lotty),
            position.liquidity,
            _amountLottyMin,
            _amountETHMin,
            msg.sender,
            _deadline
        );

        emit Unstake(
            msg.sender,
            _positionNonce,
            block.timestamp,
            position.liquidity
        );
    }

    receive() external payable {}
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 4 of 7 : 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;
    }
}

File 5 of 7 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 6 of 7 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 7 of 7 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV2Pair","name":"_uniswapV2Pair","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"_uniswapV2Router","type":"address"},{"internalType":"contract IERC20","name":"_lotty","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BalanceTransferFailed","type":"error"},{"inputs":[],"name":"CallerDoesNotOwnPosition","type":"error"},{"inputs":[],"name":"CallerNotOrigin","type":"error"},{"inputs":[],"name":"PositionLocked","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":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"positionNonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timelock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"positionNonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"checkPosition","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"timeLocked","type":"uint256"}],"internalType":"struct LottyStaking.StakePosition","name":"_position","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"positions","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"timeLocked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountLottyDesired","type":"uint256"},{"internalType":"uint256","name":"_amountLottyMin","type":"uint256"},{"internalType":"uint256","name":"_amountETHMin","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint256","name":"_timeLocked","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"stakeNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_positionNonce","type":"uint256"},{"internalType":"uint256","name":"_amountLottyMin","type":"uint256"},{"internalType":"uint256","name":"_amountETHMin","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801562000010575f80fd5b5060405162001913380380620019138339818101604052810190620000369190620002e3565b620000566200004a6200011f60201b60201c565b6200012660201b60201c565b8260015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200033c565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200021682620001eb565b9050919050565b5f62000229826200020a565b9050919050565b6200023b816200021d565b811462000246575f80fd5b50565b5f81519050620002598162000230565b92915050565b5f6200026b826200020a565b9050919050565b6200027d816200025f565b811462000288575f80fd5b50565b5f815190506200029b8162000272565b92915050565b5f620002ad826200020a565b9050919050565b620002bf81620002a1565b8114620002ca575f80fd5b50565b5f81519050620002dd81620002b4565b92915050565b5f805f60608486031215620002fd57620002fc620001e7565b5b5f6200030c8682870162000249565b93505060206200031f868287016200028b565b92505060406200033286828701620002cd565b9150509250925092565b6115c9806200034a5f395ff3fe608060405260043610610089575f3560e01c80638da5cb5b116100585780638da5cb5b1461011a57806399fbab8814610144578063a6ef3b7614610183578063e6b1c1b7146101bf578063f2fde38b146101e757610090565b806315770f92146100945780634bdaa9d7146100be57806350d444d6146100da578063715018a61461010457610090565b3661009057005b5f80fd5b34801561009f575f80fd5b506100a861020f565b6040516100b59190610eae565b60405180910390f35b6100d860048036038101906100d39190610ef5565b610215565b005b3480156100e5575f80fd5b506100ee6107d1565b6040516100fb9190610eae565b60405180910390f35b34801561010f575f80fd5b506101186107d7565b005b348015610125575f80fd5b5061012e6107ea565b60405161013b9190610fab565b60405180910390f35b34801561014f575f80fd5b5061016a60048036038101906101659190610fc4565b610811565b60405161017a9493929190610fef565b60405180910390f35b34801561018e575f80fd5b506101a960048036038101906101a49190610fc4565b61085c565b6040516101b691906110a3565b60405180910390f35b3480156101ca575f80fd5b506101e560048036038101906101e091906110bc565b6108f9565b005b3480156101f2575f80fd5b5061020d6004803603810190610208919061114a565b610c94565b005b60045481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027a576040517fe02c6ccf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b81526004016102d893929190611175565b6020604051808303815f875af11580156102f4573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061031891906111df565b5060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876040518363ffffffff1660e01b815260040161039692919061120a565b6020604051808303815f875af11580156103b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d691906111df565b50600160055f8282546103e9919061125e565b925050819055505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7193460035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16898989308a6040518863ffffffff1660e01b815260040161047796959493929190611291565b60606040518083038185885af1158015610493573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906104b89190611304565b925050508060045f8282546104cd919061125e565b9250508190555060405180608001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020014281526020018281526020018381525060065f60055481526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050505f4790505f811115610630575f3373ffffffffffffffffffffffffffffffffffffffff16826040516105b490611381565b5f6040518083038185875af1925050503d805f81146105ee576040519150601f19603f3d011682016040523d82523d5f602084013e6105f3565b606091505b505090508061062e576040517fb397759300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068b9190610fab565b602060405180830381865afa1580156106a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ca9190611395565b90505f8111156107725760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161073092919061120a565b6020604051808303815f875af115801561074c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077091906111df565b505b6005543373ffffffffffffffffffffffffffffffffffffffff167f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde2824287876040516107bf939291906113c0565b60405180910390a35050505050505050565b60055481565b6107df610d16565b6107e85f610d94565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6006602052805f5260405f205f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b610864610e5c565b60065f8381526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820154815250509050919050565b5f60065f8681526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152505090503373ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff16146109f2576040517f5db8bb6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060600151816020015142610a0791906113f5565b1015610a3f576040517fc7d26d7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015160045f828254610a5491906113f5565b925050819055505f60065f8781526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604001516040518363ffffffff1660e01b8152600401610b2d92919061120a565b6020604051808303815f875af1158015610b49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6d91906111df565b5060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302751cec60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360400151878733886040518763ffffffff1660e01b8152600401610bf796959493929190611291565b60408051808303815f875af1158015610c12573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c369190611428565b5050843373ffffffffffffffffffffffffffffffffffffffff167ffbd65cfd6de1493db337385c0712095397ecbd0504df64b861cdfceb80c7b422428460400151604051610c85929190611466565b60405180910390a35050505050565b610c9c610d16565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d019061150d565b60405180910390fd5b610d1381610d94565b50565b610d1e610e55565b73ffffffffffffffffffffffffffffffffffffffff16610d3c6107ea565b73ffffffffffffffffffffffffffffffffffffffff1614610d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8990611575565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b5f819050919050565b610ea881610e96565b82525050565b5f602082019050610ec15f830184610e9f565b92915050565b5f80fd5b610ed481610e96565b8114610ede575f80fd5b50565b5f81359050610eef81610ecb565b92915050565b5f805f805f60a08688031215610f0e57610f0d610ec7565b5b5f610f1b88828901610ee1565b9550506020610f2c88828901610ee1565b9450506040610f3d88828901610ee1565b9350506060610f4e88828901610ee1565b9250506080610f5f88828901610ee1565b9150509295509295909350565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610f9582610f6c565b9050919050565b610fa581610f8b565b82525050565b5f602082019050610fbe5f830184610f9c565b92915050565b5f60208284031215610fd957610fd8610ec7565b5b5f610fe684828501610ee1565b91505092915050565b5f6080820190506110025f830187610f9c565b61100f6020830186610e9f565b61101c6040830185610e9f565b6110296060830184610e9f565b95945050505050565b61103b81610f8b565b82525050565b61104a81610e96565b82525050565b608082015f8201516110645f850182611032565b5060208201516110776020850182611041565b50604082015161108a6040850182611041565b50606082015161109d6060850182611041565b50505050565b5f6080820190506110b65f830184611050565b92915050565b5f805f80608085870312156110d4576110d3610ec7565b5b5f6110e187828801610ee1565b94505060206110f287828801610ee1565b935050604061110387828801610ee1565b925050606061111487828801610ee1565b91505092959194509250565b61112981610f8b565b8114611133575f80fd5b50565b5f8135905061114481611120565b92915050565b5f6020828403121561115f5761115e610ec7565b5b5f61116c84828501611136565b91505092915050565b5f6060820190506111885f830186610f9c565b6111956020830185610f9c565b6111a26040830184610e9f565b949350505050565b5f8115159050919050565b6111be816111aa565b81146111c8575f80fd5b50565b5f815190506111d9816111b5565b92915050565b5f602082840312156111f4576111f3610ec7565b5b5f611201848285016111cb565b91505092915050565b5f60408201905061121d5f830185610f9c565b61122a6020830184610e9f565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61126882610e96565b915061127383610e96565b925082820190508082111561128b5761128a611231565b5b92915050565b5f60c0820190506112a45f830189610f9c565b6112b16020830188610e9f565b6112be6040830187610e9f565b6112cb6060830186610e9f565b6112d86080830185610f9c565b6112e560a0830184610e9f565b979650505050505050565b5f815190506112fe81610ecb565b92915050565b5f805f6060848603121561131b5761131a610ec7565b5b5f611328868287016112f0565b9350506020611339868287016112f0565b925050604061134a868287016112f0565b9150509250925092565b5f81905092915050565b50565b5f61136c5f83611354565b91506113778261135e565b5f82019050919050565b5f61138b82611361565b9150819050919050565b5f602082840312156113aa576113a9610ec7565b5b5f6113b7848285016112f0565b91505092915050565b5f6060820190506113d35f830186610e9f565b6113e06020830185610e9f565b6113ed6040830184610e9f565b949350505050565b5f6113ff82610e96565b915061140a83610e96565b925082820390508181111561142257611421611231565b5b92915050565b5f806040838503121561143e5761143d610ec7565b5b5f61144b858286016112f0565b925050602061145c858286016112f0565b9150509250929050565b5f6040820190506114795f830185610e9f565b6114866020830184610e9f565b9392505050565b5f82825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6114f760268361148d565b91506115028261149d565b604082019050919050565b5f6020820190508181035f830152611524816114eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61155f60208361148d565b915061156a8261152b565b602082019050919050565b5f6020820190508181035f83015261158c81611553565b905091905056fea264697066735822122083204dde64a39a044fba752d73688f20a66c1a5f0e157be4cb7dc78de3770f1764736f6c634300081500330000000000000000000000001840c51b131a51bb66f3019cc7b2d54e6d686e100000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000b459f7204a8ac84f9e7758d6d839ebd01670e35c

Deployed Bytecode

0x608060405260043610610089575f3560e01c80638da5cb5b116100585780638da5cb5b1461011a57806399fbab8814610144578063a6ef3b7614610183578063e6b1c1b7146101bf578063f2fde38b146101e757610090565b806315770f92146100945780634bdaa9d7146100be57806350d444d6146100da578063715018a61461010457610090565b3661009057005b5f80fd5b34801561009f575f80fd5b506100a861020f565b6040516100b59190610eae565b60405180910390f35b6100d860048036038101906100d39190610ef5565b610215565b005b3480156100e5575f80fd5b506100ee6107d1565b6040516100fb9190610eae565b60405180910390f35b34801561010f575f80fd5b506101186107d7565b005b348015610125575f80fd5b5061012e6107ea565b60405161013b9190610fab565b60405180910390f35b34801561014f575f80fd5b5061016a60048036038101906101659190610fc4565b610811565b60405161017a9493929190610fef565b60405180910390f35b34801561018e575f80fd5b506101a960048036038101906101a49190610fc4565b61085c565b6040516101b691906110a3565b60405180910390f35b3480156101ca575f80fd5b506101e560048036038101906101e091906110bc565b6108f9565b005b3480156101f2575f80fd5b5061020d6004803603810190610208919061114a565b610c94565b005b60045481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461027a576040517fe02c6ccf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b81526004016102d893929190611175565b6020604051808303815f875af11580156102f4573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061031891906111df565b5060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16876040518363ffffffff1660e01b815260040161039692919061120a565b6020604051808303815f875af11580156103b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d691906111df565b50600160055f8282546103e9919061125e565b925050819055505f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7193460035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16898989308a6040518863ffffffff1660e01b815260040161047796959493929190611291565b60606040518083038185885af1158015610493573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906104b89190611304565b925050508060045f8282546104cd919061125e565b9250508190555060405180608001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020014281526020018281526020018381525060065f60055481526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301559050505f4790505f811115610630575f3373ffffffffffffffffffffffffffffffffffffffff16826040516105b490611381565b5f6040518083038185875af1925050503d805f81146105ee576040519150601f19603f3d011682016040523d82523d5f602084013e6105f3565b606091505b505090508061062e576040517fb397759300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161068b9190610fab565b602060405180830381865afa1580156106a6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ca9190611395565b90505f8111156107725760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161073092919061120a565b6020604051808303815f875af115801561074c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077091906111df565b505b6005543373ffffffffffffffffffffffffffffffffffffffff167f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde2824287876040516107bf939291906113c0565b60405180910390a35050505050505050565b60055481565b6107df610d16565b6107e85f610d94565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6006602052805f5260405f205f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b610864610e5c565b60065f8381526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820154815250509050919050565b5f60065f8681526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152505090503373ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff16146109f2576040517f5db8bb6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060600151816020015142610a0791906113f5565b1015610a3f576040517fc7d26d7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015160045f828254610a5491906113f5565b925050819055505f60065f8781526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604001516040518363ffffffff1660e01b8152600401610b2d92919061120a565b6020604051808303815f875af1158015610b49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6d91906111df565b5060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302751cec60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360400151878733886040518763ffffffff1660e01b8152600401610bf796959493929190611291565b60408051808303815f875af1158015610c12573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c369190611428565b5050843373ffffffffffffffffffffffffffffffffffffffff167ffbd65cfd6de1493db337385c0712095397ecbd0504df64b861cdfceb80c7b422428460400151604051610c85929190611466565b60405180910390a35050505050565b610c9c610d16565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d019061150d565b60405180910390fd5b610d1381610d94565b50565b610d1e610e55565b73ffffffffffffffffffffffffffffffffffffffff16610d3c6107ea565b73ffffffffffffffffffffffffffffffffffffffff1614610d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8990611575565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b5f819050919050565b610ea881610e96565b82525050565b5f602082019050610ec15f830184610e9f565b92915050565b5f80fd5b610ed481610e96565b8114610ede575f80fd5b50565b5f81359050610eef81610ecb565b92915050565b5f805f805f60a08688031215610f0e57610f0d610ec7565b5b5f610f1b88828901610ee1565b9550506020610f2c88828901610ee1565b9450506040610f3d88828901610ee1565b9350506060610f4e88828901610ee1565b9250506080610f5f88828901610ee1565b9150509295509295909350565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610f9582610f6c565b9050919050565b610fa581610f8b565b82525050565b5f602082019050610fbe5f830184610f9c565b92915050565b5f60208284031215610fd957610fd8610ec7565b5b5f610fe684828501610ee1565b91505092915050565b5f6080820190506110025f830187610f9c565b61100f6020830186610e9f565b61101c6040830185610e9f565b6110296060830184610e9f565b95945050505050565b61103b81610f8b565b82525050565b61104a81610e96565b82525050565b608082015f8201516110645f850182611032565b5060208201516110776020850182611041565b50604082015161108a6040850182611041565b50606082015161109d6060850182611041565b50505050565b5f6080820190506110b65f830184611050565b92915050565b5f805f80608085870312156110d4576110d3610ec7565b5b5f6110e187828801610ee1565b94505060206110f287828801610ee1565b935050604061110387828801610ee1565b925050606061111487828801610ee1565b91505092959194509250565b61112981610f8b565b8114611133575f80fd5b50565b5f8135905061114481611120565b92915050565b5f6020828403121561115f5761115e610ec7565b5b5f61116c84828501611136565b91505092915050565b5f6060820190506111885f830186610f9c565b6111956020830185610f9c565b6111a26040830184610e9f565b949350505050565b5f8115159050919050565b6111be816111aa565b81146111c8575f80fd5b50565b5f815190506111d9816111b5565b92915050565b5f602082840312156111f4576111f3610ec7565b5b5f611201848285016111cb565b91505092915050565b5f60408201905061121d5f830185610f9c565b61122a6020830184610e9f565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61126882610e96565b915061127383610e96565b925082820190508082111561128b5761128a611231565b5b92915050565b5f60c0820190506112a45f830189610f9c565b6112b16020830188610e9f565b6112be6040830187610e9f565b6112cb6060830186610e9f565b6112d86080830185610f9c565b6112e560a0830184610e9f565b979650505050505050565b5f815190506112fe81610ecb565b92915050565b5f805f6060848603121561131b5761131a610ec7565b5b5f611328868287016112f0565b9350506020611339868287016112f0565b925050604061134a868287016112f0565b9150509250925092565b5f81905092915050565b50565b5f61136c5f83611354565b91506113778261135e565b5f82019050919050565b5f61138b82611361565b9150819050919050565b5f602082840312156113aa576113a9610ec7565b5b5f6113b7848285016112f0565b91505092915050565b5f6060820190506113d35f830186610e9f565b6113e06020830185610e9f565b6113ed6040830184610e9f565b949350505050565b5f6113ff82610e96565b915061140a83610e96565b925082820390508181111561142257611421611231565b5b92915050565b5f806040838503121561143e5761143d610ec7565b5b5f61144b858286016112f0565b925050602061145c858286016112f0565b9150509250929050565b5f6040820190506114795f830185610e9f565b6114866020830184610e9f565b9392505050565b5f82825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6114f760268361148d565b91506115028261149d565b604082019050919050565b5f6020820190508181035f830152611524816114eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61155f60208361148d565b915061156a8261152b565b602082019050919050565b5f6020820190508181035f83015261158c81611553565b905091905056fea264697066735822122083204dde64a39a044fba752d73688f20a66c1a5f0e157be4cb7dc78de3770f1764736f6c63430008150033

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

0000000000000000000000001840c51b131a51bb66f3019cc7b2d54e6d686e100000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000b459f7204a8ac84f9e7758d6d839ebd01670e35c

-----Decoded View---------------
Arg [0] : _uniswapV2Pair (address): 0x1840c51B131a51bb66F3019CC7B2d54e6d686E10
Arg [1] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [2] : _lotty (address): 0xB459F7204A8Ac84F9e7758d6d839eBD01670E35C

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001840c51b131a51bb66f3019cc7b2d54e6d686e10
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [2] : 000000000000000000000000b459f7204a8ac84f9e7758d6d839ebd01670e35c


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.