ETH Price: $3,331.55 (-3.45%)

Contract

0xBe4E191B22368bfF26aA60Be498575C477AF5Cc3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unlock212043002024-11-17 1:59:479 days ago1731808787IN
0xBe4E191B...477AF5Cc3
0 ETH0.0019202513.25856508
Unlock211328052024-11-07 2:31:3519 days ago1730946695IN
0xBe4E191B...477AF5Cc3
0 ETH0.0025921617.89785081
Unlock207303362024-09-11 22:24:4776 days ago1726093487IN
0xBe4E191B...477AF5Cc3
0 ETH0.00060912.77734441
Unlock206358142024-08-29 17:45:1189 days ago1724953511IN
0xBe4E191B...477AF5Cc3
0 ETH0.000793582.6998956
Unlock204882302024-08-09 3:03:35109 days ago1723172615IN
0xBe4E191B...477AF5Cc3
0 ETH0.00073752.50910253
Unlock199206942024-05-21 20:33:23189 days ago1716323603IN
0xBe4E191B...477AF5Cc3
0 ETH0.0017386112.01582795
Unlock197206582024-04-23 21:04:47217 days ago1713906287IN
0xBe4E191B...477AF5Cc3
0 ETH0.0111583818.83583429
Unlock195363932024-03-29 1:29:11242 days ago1711675751IN
0xBe4E191B...477AF5Cc3
0 ETH0.0053620624.44946589
Unlock194705082024-03-19 18:14:59252 days ago1710872099IN
0xBe4E191B...477AF5Cc3
0 ETH0.008670939.53686157
Unlock194559832024-03-17 17:14:59254 days ago1710695699IN
0xBe4E191B...477AF5Cc3
0 ETH0.0046701236.21491026
Unlock193320562024-02-29 8:43:47271 days ago1709196227IN
0xBe4E191B...477AF5Cc3
0 ETH0.0080435255.58986979
Unlock192753032024-02-21 10:00:59279 days ago1708509659IN
0xBe4E191B...477AF5Cc3
0 ETH0.0045045434.93083601
Unlock192732482024-02-21 3:04:23279 days ago1708484663IN
0xBe4E191B...477AF5Cc3
0 ETH0.0054078537.37444755
Unlock192266422024-02-14 13:56:59286 days ago1707919019IN
0xBe4E191B...477AF5Cc3
0 ETH0.0062304843.01901464
Unlock192228672024-02-14 1:13:23286 days ago1707873203IN
0xBe4E191B...477AF5Cc3
0 ETH0.0044723520.39263786
Unlock189638532024-01-08 17:44:11323 days ago1704735851IN
0xBe4E191B...477AF5Cc3
0 ETH0.0028128121.79380671
Unlock185581932023-11-12 20:23:35380 days ago1699820615IN
0xBe4E191B...477AF5Cc3
0 ETH0.0063652729.02381969
Unlock181392472023-09-15 4:27:47438 days ago1694752067IN
0xBe4E191B...477AF5Cc3
0 ETH0.0024798111.30019637
Unlock180273752023-08-30 12:20:35454 days ago1693398035IN
0xBe4E191B...477AF5Cc3
0 ETH0.0054669119.74826446
Unlock178620802023-08-07 9:11:47477 days ago1691399507IN
0xBe4E191B...477AF5Cc3
0 ETH0.0029274320.23190136
Unlock178221642023-08-01 19:12:59483 days ago1690917179IN
0xBe4E191B...477AF5Cc3
0 ETH0.0039696327.43468417
Unlock176515382023-07-08 20:52:11507 days ago1688849531IN
0xBe4E191B...477AF5Cc3
0 ETH0.0018207812.58366176
Unlock175992252023-07-01 12:32:23514 days ago1688214743IN
0xBe4E191B...477AF5Cc3
0 ETH0.0021867615.09872294
Unlock175782032023-06-28 13:46:11517 days ago1687959971IN
0xBe4E191B...477AF5Cc3
0 ETH0.0003880816.45903661
Unlock175782022023-06-28 13:45:59517 days ago1687959959IN
0xBe4E191B...477AF5Cc3
0 ETH0.0022562815.57877408
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LockShiboshi

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ILockShiboshi.sol";
import "./interfaces/ILandAuction.sol";

contract LockShiboshi is ILockShiboshi, Ownable {
    uint256 public immutable AMOUNT_MIN;
    uint256 public immutable AMOUNT_MAX;
    uint256 public immutable DAYS_MIN;
    uint256 public immutable DAYS_MAX;

    IERC721 public immutable SHIBOSHI;

    ILandAuction public landAuction;

    struct Lock {
        uint256[] ids;
        uint256 startTime;
        uint256 numDays;
        address ogUser;
    }

    mapping(address => Lock) private _lockOf;

    constructor(
        address _shiboshi,
        uint256 amountMin,
        uint256 amountMax,
        uint256 daysMin,
        uint256 daysMax
    ) {
        SHIBOSHI = IERC721(_shiboshi);
        AMOUNT_MIN = amountMin;
        AMOUNT_MAX = amountMax;
        DAYS_MIN = daysMin;
        DAYS_MAX = daysMax;
    }

    function lockInfoOf(address user)
        public
        view
        returns (
            uint256[] memory ids,
            uint256 startTime,
            uint256 numDays,
            address ogUser
        )
    {
        return (
            _lockOf[user].ids,
            _lockOf[user].startTime,
            _lockOf[user].numDays,
            _lockOf[user].ogUser
        );
    }

    function weightOf(address user) public view returns (uint256) {
        return _lockOf[user].ids.length * _lockOf[user].numDays;
    }

    function extraShiboshiNeeded(address user, uint256 targetWeight)
        external
        view
        returns (uint256)
    {
        uint256 currentWeight = weightOf(user);

        if (currentWeight >= targetWeight) {
            return 0;
        }

        return (targetWeight - currentWeight) / _lockOf[user].numDays;
    }

    function extraDaysNeeded(address user, uint256 targetWeight)
        external
        view
        returns (uint256)
    {
        uint256 currentWeight = weightOf(user);

        if (currentWeight >= targetWeight) {
            return 0;
        }

        return (targetWeight - currentWeight) / _lockOf[user].ids.length;
    }

    function isWinner(address user) public view returns (bool) {
        return landAuction.winningsBidsOf(user) > 0;
    }

    function unlockAt(address user) public view returns (uint256) {
        Lock memory s = _lockOf[user];

        if (isWinner(user)) {
            return s.startTime + s.numDays * 1 days;
        }

        return s.startTime + 15 days + (s.numDays * 1 days) / 3;
    }

    function setLandAuction(address sale) external onlyOwner {
        landAuction = ILandAuction(sale);
    }

    function lock(uint256[] memory ids, uint256 numDaysToAdd) external {
        Lock storage s = _lockOf[msg.sender];

        uint256 length = ids.length;
        for (uint256 i = 0; i < length; i = _uncheckedInc(i)) {
            SHIBOSHI.transferFrom(msg.sender, address(this), ids[i]);
            s.ids.push(ids[i]);
        }

        length = s.ids.length;
        require(
            AMOUNT_MIN <= length && length <= AMOUNT_MAX,
            "SHIBOSHI count outside of limits"
        );

        if (s.numDays == 0) {
            // no existing lock
            s.startTime = block.timestamp;
            s.ogUser = msg.sender;
        }

        if (numDaysToAdd > 0) {
            s.numDays += numDaysToAdd;
        }

        uint256 numDays = s.numDays;

        require(
            DAYS_MIN <= numDays && numDays <= DAYS_MAX,
            "Days outside of limits"
        );
    }

    function unlock() external {
        Lock storage s = _lockOf[msg.sender];

        uint256 length = s.ids.length;

        require(length > 0, "No SHIBOSHI locked");
        require(unlockAt(msg.sender) <= block.timestamp, "Not unlocked yet");

        for (uint256 i = 0; i < length; i = _uncheckedInc(i)) {
            // NOT using safeTransferFrom intentionally
            SHIBOSHI.transferFrom(address(this), msg.sender, s.ids[i]);
        }

        delete _lockOf[msg.sender];
    }

    function _uncheckedInc(uint256 i) internal pure returns (uint256) {
        unchecked {
            return i + 1;
        }
    }

    function transferLock(address newOwner) external {
        require(_lockOf[msg.sender].numDays != 0, "Lock does not exist");
        require(_lockOf[newOwner].numDays == 0, "New owner already has a lock");
        _lockOf[newOwner] = _lockOf[msg.sender];
        delete _lockOf[msg.sender];
    }
}

File 2 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 3 of 7 : 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 4 of 7 : ILockShiboshi.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface ILockShiboshi {
    function lockInfoOf(address user)
        external
        view
        returns (
            uint256[] memory ids,
            uint256 startTime,
            uint256 numDays,
            address ogUser
        );

    function weightOf(address user) external view returns (uint256);

    function extraShiboshiNeeded(address user, uint256 targetWeight)
        external
        view
        returns (uint256);

    function extraDaysNeeded(address user, uint256 targetWeight)
        external
        view
        returns (uint256);

    function isWinner(address user) external view returns (bool);

    function unlockAt(address user) external view returns (uint256);
}

File 5 of 7 : ILandAuction.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface ILandAuction {
    function winningsBidsOf(address user) external view returns (uint256);
}

File 6 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_shiboshi","type":"address"},{"internalType":"uint256","name":"amountMin","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"},{"internalType":"uint256","name":"daysMin","type":"uint256"},{"internalType":"uint256","name":"daysMax","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"AMOUNT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AMOUNT_MIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAYS_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAYS_MIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIBOSHI","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"targetWeight","type":"uint256"}],"name":"extraDaysNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"targetWeight","type":"uint256"}],"name":"extraShiboshiNeeded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isWinner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"landAuction","outputs":[{"internalType":"contract ILandAuction","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256","name":"numDaysToAdd","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lockInfoOf","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"numDays","type":"uint256"},{"internalType":"address","name":"ogUser","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sale","type":"address"}],"name":"setLandAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"unlockAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"weightOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

61012060405234801561001157600080fd5b506040516111de3803806111de833981016040819052610030916100ac565b6100393361005c565b6001600160a01b039094166101005260809290925260a05260c05260e052610101565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080600060a086880312156100c457600080fd5b85516001600160a01b03811681146100db57600080fd5b602087015160408801516060890151608090990151929a91995097965090945092505050565b60805160a05160c05160e0516101005161106f61016f60003960008181610140015281816104b40152610a8b01526000818161028001526106c6015260008181610306015261069b0152600081816101b901526105de01526000818161018401526105b3015261106f6000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80639d9ca28d116100ad578063d44106f611610071578063d44106f6146102b5578063dd4bc101146102c8578063e7bb8d31146102db578063f2fde38b146102ee578063fbc086891461030157600080fd5b80639d9ca28d1461022d578063a006dfe114610250578063a69df4b514610273578063c962e2d11461027b578063cb454a81146102a257600080fd5b80635ceb8b5b116100f45780635ceb8b5b146101db5780636c209888146101ee578063715018a61461020157806389b7e586146102095780638da5cb5b1461021c57600080fd5b806327006d76146101265780633fc4b6701461013b5780634b8b66fa1461017f5780635a5173b3146101b4575b600080fd5b610139610134366004610dd0565b610328565b005b6101627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610176565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b6101396101e9366004610e01565b610496565b6101a66101fc366004610ec5565b610735565b61013961078f565b6101a6610217366004610dd0565b6107c5565b6000546001600160a01b0316610162565b61024061023b366004610dd0565b6108d3565b6040519015158152602001610176565b61026361025e366004610dd0565b61094c565b6040516101769493929190610eef565b6101396109e0565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b6101396102b0366004610dd0565b610b92565b600154610162906001600160a01b031681565b6101a66102d6366004610dd0565b610bde565b6101a66102e9366004610ec5565b610c08565b6101396102fc366004610dd0565b610c4a565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b3360009081526002602081905260408220015490036103845760405162461bcd60e51b8152602060048201526013602482015272131bd8dac8191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064015b60405180910390fd5b6001600160a01b03811660009081526002602081905260409091200154156103ee5760405162461bcd60e51b815260206004820152601c60248201527f4e6577206f776e657220616c7265616479206861732061206c6f636b00000000604482015260640161037b565b336000908152600260205260408082206001600160a01b03841683529120815461041b9082908490610d35565b5060018281015490820155600280830154818301556003928301549290910180546001600160a01b0319166001600160a01b039093169290921790915533600090815260209190915260408120906104738282610d85565b50600060018201819055600282015560030180546001600160a01b031916905550565b336000908152600260205260408120835190915b818110156105ad577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd33308885815181106104f5576104f5610f4f565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050508260000185828151811061057d5761057d610f4f565b602090810291909101810151825460018101845560009384529190922001556105a68160010190565b90506104aa565b505080547f0000000000000000000000000000000000000000000000000000000000000000811080159061060157507f00000000000000000000000000000000000000000000000000000000000000008111155b61064d5760405162461bcd60e51b815260206004820181905260248201527f534849424f53484920636f756e74206f757473696465206f66206c696d697473604482015260640161037b565b8160020154600003610674574260018301556003820180546001600160a01b031916331790555b8215610694578282600201600082825461068e9190610f7b565b90915550505b60028201547f000000000000000000000000000000000000000000000000000000000000000081108015906106e957507f00000000000000000000000000000000000000000000000000000000000000008111155b61072e5760405162461bcd60e51b815260206004820152601660248201527544617973206f757473696465206f66206c696d69747360501b604482015260640161037b565b5050505050565b60008061074184610bde565b9050828110610754576000915050610789565b6001600160a01b0384166000908152600260208190526040909120015461077b8285610f93565b6107859190610faa565b9150505b92915050565b6000546001600160a01b031633146107b95760405162461bcd60e51b815260040161037b90610fcc565b6107c36000610ce5565b565b6001600160a01b03811660009081526002602090815260408083208151815460a0948102820185019093526080810183815285949193849284919084018282801561082f57602002820191906000526020600020905b81548152602001906001019080831161081b575b505050918352505060018201546020820152600282015460408201526003909101546001600160a01b0316606090910152905061086b836108d3565b156108985760408101516108829062015180611001565b81602001516108919190610f7b565b9392505050565b60038160400151620151806108ad9190611001565b6108b79190610faa565b60208201516108c9906213c680610f7b565b6108919190610f7b565b60015460405163031a0e2f60e21b81526001600160a01b0383811660048301526000928392911690630c6838bc90602401602060405180830381865afa158015610921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611020565b1192915050565b6001600160a01b0380821660009081526002602081815260408084206001810154938101546003820154825484518187028101870190955280855260609888978897959690959390911692909186918301828280156109ca57602002820191906000526020600020905b8154815260200190600101908083116109b6575b5050505050935093509350935093509193509193565b336000908152600260205260409020805480610a335760405162461bcd60e51b8152602060048201526012602482015271139bc814d2125093d4d212481b1bd8dad95960721b604482015260640161037b565b42610a3d336107c5565b1115610a7e5760405162461bcd60e51b815260206004820152601060248201526f139bdd081d5b9b1bd8dad959081e595d60821b604482015260640161037b565b60005b81811015610b53577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd3033866000018581548110610acf57610acf610f4f565b6000918252602090912001546040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610b2a57600080fd5b505af1158015610b3e573d6000803e3d6000fd5b50505050610b4c8160010190565b9050610a81565b5033600090815260026020526040812090610b6e8282610d85565b50600060018201819055600282015560030180546001600160a01b03191690555050565b6000546001600160a01b03163314610bbc5760405162461bcd60e51b815260040161037b90610fcc565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260026020819052604082209081015490546107899190611001565b600080610c1484610bde565b9050828110610c27576000915050610789565b6001600160a01b03841660009081526002602052604090205461077b8285610f93565b6000546001600160a01b03163314610c745760405162461bcd60e51b815260040161037b90610fcc565b6001600160a01b038116610cd95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161037b565b610ce281610ce5565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215610d755760005260206000209182015b82811115610d75578254825591600101919060010190610d5a565b50610d81929150610d9f565b5090565b5080546000825590600052602060002090810190610ce291905b5b80821115610d815760008155600101610da0565b80356001600160a01b0381168114610dcb57600080fd5b919050565b600060208284031215610de257600080fd5b61089182610db4565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610e1457600080fd5b823567ffffffffffffffff80821115610e2c57600080fd5b818501915085601f830112610e4057600080fd5b8135602082821115610e5457610e54610deb565b8160051b604051601f19603f83011681018181108682111715610e7957610e79610deb565b604052928352818301935084810182019289841115610e9757600080fd5b948201945b83861015610eb557853585529482019493820193610e9c565b9997909101359750505050505050565b60008060408385031215610ed857600080fd5b610ee183610db4565b946020939093013593505050565b6080808252855190820181905260009060209060a0840190828901845b82811015610f2857815184529284019290840190600101610f0c565b505050908301959095525060408101929092526001600160a01b0316606090910152919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115610f8e57610f8e610f65565b500190565b600082821015610fa557610fa5610f65565b500390565b600082610fc757634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561101b5761101b610f65565b500290565b60006020828403121561103257600080fd5b505191905056fea2646970667358221220fb000011bba2ae9126abbeed473b19a76701c8b3dd9d3a3953c2e21ed1b7629464736f6c634300080d003300000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000005a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c80639d9ca28d116100ad578063d44106f611610071578063d44106f6146102b5578063dd4bc101146102c8578063e7bb8d31146102db578063f2fde38b146102ee578063fbc086891461030157600080fd5b80639d9ca28d1461022d578063a006dfe114610250578063a69df4b514610273578063c962e2d11461027b578063cb454a81146102a257600080fd5b80635ceb8b5b116100f45780635ceb8b5b146101db5780636c209888146101ee578063715018a61461020157806389b7e586146102095780638da5cb5b1461021c57600080fd5b806327006d76146101265780633fc4b6701461013b5780634b8b66fa1461017f5780635a5173b3146101b4575b600080fd5b610139610134366004610dd0565b610328565b005b6101627f00000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f81565b6040516001600160a01b0390911681526020015b60405180910390f35b6101a67f000000000000000000000000000000000000000000000000000000000000000181565b604051908152602001610176565b6101a67f000000000000000000000000000000000000000000000000000000000000000a81565b6101396101e9366004610e01565b610496565b6101a66101fc366004610ec5565b610735565b61013961078f565b6101a6610217366004610dd0565b6107c5565b6000546001600160a01b0316610162565b61024061023b366004610dd0565b6108d3565b6040519015158152602001610176565b61026361025e366004610dd0565b61094c565b6040516101769493929190610eef565b6101396109e0565b6101a67f000000000000000000000000000000000000000000000000000000000000005a81565b6101396102b0366004610dd0565b610b92565b600154610162906001600160a01b031681565b6101a66102d6366004610dd0565b610bde565b6101a66102e9366004610ec5565b610c08565b6101396102fc366004610dd0565b610c4a565b6101a67f000000000000000000000000000000000000000000000000000000000000002d81565b3360009081526002602081905260408220015490036103845760405162461bcd60e51b8152602060048201526013602482015272131bd8dac8191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064015b60405180910390fd5b6001600160a01b03811660009081526002602081905260409091200154156103ee5760405162461bcd60e51b815260206004820152601c60248201527f4e6577206f776e657220616c7265616479206861732061206c6f636b00000000604482015260640161037b565b336000908152600260205260408082206001600160a01b03841683529120815461041b9082908490610d35565b5060018281015490820155600280830154818301556003928301549290910180546001600160a01b0319166001600160a01b039093169290921790915533600090815260209190915260408120906104738282610d85565b50600060018201819055600282015560030180546001600160a01b031916905550565b336000908152600260205260408120835190915b818110156105ad577f00000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f6001600160a01b03166323b872dd33308885815181106104f5576104f5610f4f565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050508260000185828151811061057d5761057d610f4f565b602090810291909101810151825460018101845560009384529190922001556105a68160010190565b90506104aa565b505080547f0000000000000000000000000000000000000000000000000000000000000001811080159061060157507f000000000000000000000000000000000000000000000000000000000000000a8111155b61064d5760405162461bcd60e51b815260206004820181905260248201527f534849424f53484920636f756e74206f757473696465206f66206c696d697473604482015260640161037b565b8160020154600003610674574260018301556003820180546001600160a01b031916331790555b8215610694578282600201600082825461068e9190610f7b565b90915550505b60028201547f000000000000000000000000000000000000000000000000000000000000002d81108015906106e957507f000000000000000000000000000000000000000000000000000000000000005a8111155b61072e5760405162461bcd60e51b815260206004820152601660248201527544617973206f757473696465206f66206c696d69747360501b604482015260640161037b565b5050505050565b60008061074184610bde565b9050828110610754576000915050610789565b6001600160a01b0384166000908152600260208190526040909120015461077b8285610f93565b6107859190610faa565b9150505b92915050565b6000546001600160a01b031633146107b95760405162461bcd60e51b815260040161037b90610fcc565b6107c36000610ce5565b565b6001600160a01b03811660009081526002602090815260408083208151815460a0948102820185019093526080810183815285949193849284919084018282801561082f57602002820191906000526020600020905b81548152602001906001019080831161081b575b505050918352505060018201546020820152600282015460408201526003909101546001600160a01b0316606090910152905061086b836108d3565b156108985760408101516108829062015180611001565b81602001516108919190610f7b565b9392505050565b60038160400151620151806108ad9190611001565b6108b79190610faa565b60208201516108c9906213c680610f7b565b6108919190610f7b565b60015460405163031a0e2f60e21b81526001600160a01b0383811660048301526000928392911690630c6838bc90602401602060405180830381865afa158015610921573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109459190611020565b1192915050565b6001600160a01b0380821660009081526002602081815260408084206001810154938101546003820154825484518187028101870190955280855260609888978897959690959390911692909186918301828280156109ca57602002820191906000526020600020905b8154815260200190600101908083116109b6575b5050505050935093509350935093509193509193565b336000908152600260205260409020805480610a335760405162461bcd60e51b8152602060048201526012602482015271139bc814d2125093d4d212481b1bd8dad95960721b604482015260640161037b565b42610a3d336107c5565b1115610a7e5760405162461bcd60e51b815260206004820152601060248201526f139bdd081d5b9b1bd8dad959081e595d60821b604482015260640161037b565b60005b81811015610b53577f00000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f6001600160a01b03166323b872dd3033866000018581548110610acf57610acf610f4f565b6000918252602090912001546040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610b2a57600080fd5b505af1158015610b3e573d6000803e3d6000fd5b50505050610b4c8160010190565b9050610a81565b5033600090815260026020526040812090610b6e8282610d85565b50600060018201819055600282015560030180546001600160a01b03191690555050565b6000546001600160a01b03163314610bbc5760405162461bcd60e51b815260040161037b90610fcc565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260026020819052604082209081015490546107899190611001565b600080610c1484610bde565b9050828110610c27576000915050610789565b6001600160a01b03841660009081526002602052604090205461077b8285610f93565b6000546001600160a01b03163314610c745760405162461bcd60e51b815260040161037b90610fcc565b6001600160a01b038116610cd95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161037b565b610ce281610ce5565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215610d755760005260206000209182015b82811115610d75578254825591600101919060010190610d5a565b50610d81929150610d9f565b5090565b5080546000825590600052602060002090810190610ce291905b5b80821115610d815760008155600101610da0565b80356001600160a01b0381168114610dcb57600080fd5b919050565b600060208284031215610de257600080fd5b61089182610db4565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610e1457600080fd5b823567ffffffffffffffff80821115610e2c57600080fd5b818501915085601f830112610e4057600080fd5b8135602082821115610e5457610e54610deb565b8160051b604051601f19603f83011681018181108682111715610e7957610e79610deb565b604052928352818301935084810182019289841115610e9757600080fd5b948201945b83861015610eb557853585529482019493820193610e9c565b9997909101359750505050505050565b60008060408385031215610ed857600080fd5b610ee183610db4565b946020939093013593505050565b6080808252855190820181905260009060209060a0840190828901845b82811015610f2857815184529284019290840190600101610f0c565b505050908301959095525060408101929092526001600160a01b0316606090910152919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115610f8e57610f8e610f65565b500190565b600082821015610fa557610fa5610f65565b500390565b600082610fc757634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561101b5761101b610f65565b500290565b60006020828403121561103257600080fd5b505191905056fea2646970667358221220fb000011bba2ae9126abbeed473b19a76701c8b3dd9d3a3953c2e21ed1b7629464736f6c634300080d0033

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

00000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002d000000000000000000000000000000000000000000000000000000000000005a

-----Decoded View---------------
Arg [0] : _shiboshi (address): 0x11450058d796B02EB53e65374be59cFf65d3FE7f
Arg [1] : amountMin (uint256): 1
Arg [2] : amountMax (uint256): 10
Arg [3] : daysMin (uint256): 45
Arg [4] : daysMax (uint256): 90

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000011450058d796b02eb53e65374be59cff65d3fe7f
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002d
Arg [4] : 000000000000000000000000000000000000000000000000000000000000005a


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  ]

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.