ETH Price: $2,383.59 (-3.95%)
Gas: 4.6 Gwei

Contract

0xca70ec677061ad4CAA1b4A9B5169d186f9488F5F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
Withdraw Funds176795082023-07-12 19:19:35448 days ago1689189575IN
0xca70ec67...6f9488F5F
0 ETH0.0009313527.90918924
Process Refunds176794432023-07-12 19:06:35448 days ago1689188795IN
0xca70ec67...6f9488F5F
0 ETH0.0076613836.10643858
Process Refunds176794362023-07-12 19:05:11448 days ago1689188711IN
0xca70ec67...6f9488F5F
0 ETH0.0516493736.55922258
Process Refunds176794272023-07-12 19:03:23448 days ago1689188603IN
0xca70ec67...6f9488F5F
0 ETH0.053894338.48848113
Process Refunds176794222023-07-12 19:02:23448 days ago1689188543IN
0xca70ec67...6f9488F5F
0 ETH0.0591420141.93663301
Process Refunds176794182023-07-12 19:01:35448 days ago1689188495IN
0xca70ec67...6f9488F5F
0 ETH0.0647021745.79845255
Process Refunds176794112023-07-12 19:00:11448 days ago1689188411IN
0xca70ec67...6f9488F5F
0 ETH0.0560897841.25459522
Process Refunds176793962023-07-12 18:57:11448 days ago1689188231IN
0xca70ec67...6f9488F5F
0 ETH0.001626136.77715972
Set Settle Price176793812023-07-12 18:54:11448 days ago1689188051IN
0xca70ec67...6f9488F5F
0 ETH0.0015856334.60952565
Auction Mint176790962023-07-12 17:56:47448 days ago1689184607IN
0xca70ec67...6f9488F5F
0.3 ETH0.0042655166
Auction Mint176790742023-07-12 17:52:11448 days ago1689184331IN
0xca70ec67...6f9488F5F
0.3 ETH0.0045055570
Auction Mint176789642023-07-12 17:29:11448 days ago1689182951IN
0xca70ec67...6f9488F5F
0.6 ETH0.0052191981.07740987
Auction Mint176789642023-07-12 17:29:11448 days ago1689182951IN
0xca70ec67...6f9488F5F
0.6 ETH0.0052191981.07740987
Auction Mint176789602023-07-12 17:28:23448 days ago1689182903IN
0xca70ec67...6f9488F5F
0.6 ETH0.0050813678.93634541
Auction Mint176789352023-07-12 17:23:23448 days ago1689182603IN
0xca70ec67...6f9488F5F
0.25 ETH0.00694522107.8903054
Auction Mint176789312023-07-12 17:22:35448 days ago1689182555IN
0xca70ec67...6f9488F5F
0.25 ETH0.0064047999.49498347
Auction Mint176789302023-07-12 17:22:23448 days ago1689182543IN
0xca70ec67...6f9488F5F
0.25 ETH0.00648288100.70816959
Auction Mint176789282023-07-12 17:21:59448 days ago1689182519IN
0xca70ec67...6f9488F5F
0.25 ETH0.00664242103.18645008
Auction Mint176789222023-07-12 17:20:47448 days ago1689182447IN
0xca70ec67...6f9488F5F
0.3 ETH0.0061227695.11380502
Auction Mint176789222023-07-12 17:20:47448 days ago1689182447IN
0xca70ec67...6f9488F5F
0.25 ETH0.0061227695.11380502
Auction Mint176789222023-07-12 17:20:47448 days ago1689182447IN
0xca70ec67...6f9488F5F
0.5 ETH0.0061356395.31380502
Auction Mint176789212023-07-12 17:20:35448 days ago1689182435IN
0xca70ec67...6f9488F5F
0.3 ETH0.0062231496.6731895
Auction Mint176789192023-07-12 17:20:11448 days ago1689182411IN
0xca70ec67...6f9488F5F
0.9 ETH0.0064373100
Auction Mint176789192023-07-12 17:20:11448 days ago1689182411IN
0xca70ec67...6f9488F5F
0.9 ETH0.0064373100
Auction Mint176789172023-07-12 17:19:47448 days ago1689182387IN
0xca70ec67...6f9488F5F
0.3 ETH0.00687045106.72880923
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
176795082023-07-12 19:19:35448 days ago1689189575
0xca70ec67...6f9488F5F
496.5 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794432023-07-12 19:06:35448 days ago1689188795
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
176794362023-07-12 19:05:11448 days ago1689188711
0xca70ec67...6f9488F5F
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EtherCapsuleAuction

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : EtherCapsuleAuction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

error InputMismatch();
error AuctionNotStarted();
error MaxPerMintExceeded();
error InsufficientPrice();
error WithdrawFailed();
error InvalidCurrentTokenId();
error RefundAlreadyProcessed();
error AuctionNotOver();
error InvalidBid();
error RefundFailed(uint256 tokenId);
error OnlyEOA();

contract EtherCapsuleAuction is Ownable, ReentrancyGuard {
    IERC721 public immutable ETHER_CAPSULE;

    struct AuctionParams {
        uint64 startPrice;
        uint64 endPrice;
        uint64 decay;
        uint32 step;
        uint32 startTime;
    }

    struct Bid {
        address bidder;
        uint64 amount;
        bool refundProcessed;
    }

    AuctionParams public auctionParams;
    mapping(uint256 => Bid) public tokenBids;
    // Initial value is the first token minted to this contract
    uint256 public currentTokenId = 2075;
    uint256 public settlePrice;

    constructor(
        address _capsuleAddress,
        uint64 _startPrice,
        uint64 _endPrice,
        uint64 _decay,
        uint32 _step,
        uint32 _startTime
    ) {
        ETHER_CAPSULE = IERC721(_capsuleAddress);

        auctionParams = AuctionParams(_startPrice, _endPrice, _decay, _step, _startTime);
    }

    function airdrop(address[] calldata receivers, uint16[] calldata amounts) external onlyOwner {
        if (receivers.length != amounts.length) revert InputMismatch();

        unchecked {
            for (uint256 i; i < receivers.length; ++i) {
                address receiver = receivers[i];
                uint16 amount = amounts[i];
                uint256 _currentTokenId = currentTokenId;

                // Loop through and transfer tokens
                for (uint16 j; j < amount; ++j) {
                    ETHER_CAPSULE.transferFrom(address(this), receiver, _currentTokenId + j);
                }

                currentTokenId += amount;
            }
        }
    }

    modifier onlyEOA() {
        if (tx.origin != msg.sender) revert OnlyEOA();
        _;
    }

    // =========================================================================
    //                            Auction Functions
    // =========================================================================

    function getAuctionPrice() public view returns (uint256) {
        AuctionParams memory _auctionParams = auctionParams;
        if (_auctionParams.startTime == 0) return _auctionParams.startPrice;
        uint256 elapsed = block.timestamp - _auctionParams.startTime;
        uint256 steps = elapsed / _auctionParams.step;
        uint256 decay = steps * _auctionParams.decay;
        unchecked {
            if (decay > _auctionParams.startPrice - _auctionParams.endPrice) {
                return _auctionParams.endPrice;
            }
            return _auctionParams.startPrice - decay;
        }
    }

    function auctionMint(uint256 qty) external payable nonReentrant onlyEOA {
        if (auctionParams.startTime == 0) revert AuctionNotStarted();
        if (qty > 3) revert MaxPerMintExceeded();

        uint256 currentPrice = getAuctionPrice();
        uint256 totalPrice = currentPrice * qty;
        if (msg.value < totalPrice) revert InsufficientPrice();

        // Record bids for each token id
        uint256 _currentTokenId = currentTokenId;
        for (uint256 i; i < qty;) {
            uint256 tokenId = _currentTokenId + i;
            tokenBids[tokenId] = Bid(msg.sender, uint64(currentPrice), false);
            ETHER_CAPSULE.transferFrom(address(this), msg.sender, tokenId);
            unchecked {
                ++i;
            }
        }

        unchecked {
            // Increment current token id
            currentTokenId += qty;

            // Refund if over
            uint256 difference = msg.value - totalPrice;
            if (difference > 0) {
                _transferETH(msg.sender, difference);
            }
        }
    }

    function processRefunds(uint256[] calldata tokenIds) external onlyOwner nonReentrant {
        if (settlePrice == 0) revert AuctionNotOver();

        for (uint256 i; i < tokenIds.length;) {
            uint256 tokenId = tokenIds[i];
            Bid memory bid = tokenBids[tokenId];

            if (bid.bidder == address(0)) revert InvalidBid();
            if (bid.refundProcessed) revert RefundAlreadyProcessed();

            tokenBids[tokenId].refundProcessed = true;
            uint256 priceDifference = bid.amount - settlePrice;
            if (priceDifference > 0) {
                bool success = _transferETH(bid.bidder, priceDifference);
                if (!success) revert RefundFailed(tokenId);
            }

            unchecked {
                ++i;
            }
        }
    }

    // =========================================================================
    //                           Owner Only Functions
    // =========================================================================

    function setCurrentTokenId(uint256 _currentTokenId) external onlyOwner {
        if (ETHER_CAPSULE.ownerOf(_currentTokenId) != address(this)) {
            revert InvalidCurrentTokenId();
        }
        currentTokenId = _currentTokenId;
    }
    
    function setSettlePrice(uint256 _settlePrice) external onlyOwner {
        settlePrice = _settlePrice;
    }

    function setAuctionStart(uint32 _startTime) external onlyOwner {
        auctionParams.startTime = _startTime;
    }

    function setAuctionParams(uint64 _startPrice, uint64 _endPrice, uint64 _decay, uint32 _step, uint32 _startTime)
        external
        onlyOwner
    {
        // Passing a _startTime > 0 will set the auction start time
        auctionParams = AuctionParams(_startPrice, _endPrice, _decay, _step, _startTime);
    }

    function withdrawFunds(address receiver) external onlyOwner {
        (bool sent,) = receiver.call{value: address(this).balance}("");
        if (!sent) {
            revert WithdrawFailed();
        }
    }

    function _transferETH(address to, uint256 value) internal returns (bool) {
        (bool success,) = to.call{value: value, gas: 30000}(new bytes(0));
        return success;
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 6 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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

File 4 of 6 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 5 of 6 : 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 6 of 6 : 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": [
    "@openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ERC721A-Upgradeable/=lib/ERC721A-Upgradeable/contracts/",
    "ERC721A/=lib/ERC721A/contracts/",
    "closedsea/=lib/closedsea/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "erc721a-upgradeable/=lib/ERC721A-Upgradeable/",
    "erc721a/=lib/closedsea/lib/erc721a/contracts/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/src/"
  ],
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_capsuleAddress","type":"address"},{"internalType":"uint64","name":"_startPrice","type":"uint64"},{"internalType":"uint64","name":"_endPrice","type":"uint64"},{"internalType":"uint64","name":"_decay","type":"uint64"},{"internalType":"uint32","name":"_step","type":"uint32"},{"internalType":"uint32","name":"_startTime","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AuctionNotOver","type":"error"},{"inputs":[],"name":"AuctionNotStarted","type":"error"},{"inputs":[],"name":"InputMismatch","type":"error"},{"inputs":[],"name":"InsufficientPrice","type":"error"},{"inputs":[],"name":"InvalidBid","type":"error"},{"inputs":[],"name":"InvalidCurrentTokenId","type":"error"},{"inputs":[],"name":"MaxPerMintExceeded","type":"error"},{"inputs":[],"name":"OnlyEOA","type":"error"},{"inputs":[],"name":"RefundAlreadyProcessed","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RefundFailed","type":"error"},{"inputs":[],"name":"WithdrawFailed","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"},{"inputs":[],"name":"ETHER_CAPSULE","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint16[]","name":"amounts","type":"uint16[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"auctionParams","outputs":[{"internalType":"uint64","name":"startPrice","type":"uint64"},{"internalType":"uint64","name":"endPrice","type":"uint64"},{"internalType":"uint64","name":"decay","type":"uint64"},{"internalType":"uint32","name":"step","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"processRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_startPrice","type":"uint64"},{"internalType":"uint64","name":"_endPrice","type":"uint64"},{"internalType":"uint64","name":"_decay","type":"uint64"},{"internalType":"uint32","name":"_step","type":"uint32"},{"internalType":"uint32","name":"_startTime","type":"uint32"}],"name":"setAuctionParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startTime","type":"uint32"}],"name":"setAuctionStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentTokenId","type":"uint256"}],"name":"setCurrentTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_settlePrice","type":"uint256"}],"name":"setSettlePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settlePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenBids","outputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"bool","name":"refundProcessed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405261081b60045534801562000016575f80fd5b506040516200132738038062001327833981016040819052620000399162000187565b620000443362000108565b600180556001600160a01b039590951660809081526040805160a0810182526001600160401b03968716808252958716602082018190529490961690860181905263ffffffff92831660608701819052929096169401849052600280546001600160801b0319169093176801000000000000000090920291909117600160801b600160e01b031916600160801b90940263ffffffff60c01b191693909317600160c01b909302929092176001600160e01b0316600160e01b90910217905562000210565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160401b03811681146200016e575f80fd5b919050565b805163ffffffff811681146200016e575f80fd5b5f805f805f8060c087890312156200019d575f80fd5b86516001600160a01b0381168114620001b4575f80fd5b9550620001c46020880162000157565b9450620001d46040880162000157565b9350620001e46060880162000157565b9250620001f46080880162000173565b91506200020460a0880162000173565b90509295509295509295565b6080516110e96200023e5f395f81816103bd015281816108ba01528181610a020152610b6301526110e95ff3fe6080604052600436106100f9575f3560e01c8063568f02f8116100925780638da5cb5b116100625780638da5cb5b1461031f578063b0681af21461034f578063b82b3f7a1461036e578063f2fde38b1461038d578063f50600df146103ac575f80fd5b8063568f02f81461024057806368742da6146102cd578063715018a6146102ec5780638329de2f14610300575f80fd5b80632d47f0ce116100cd5780632d47f0ce1461017a5780632f78e2b8146101fa5780634bd25c6f146102195780634d3554c31461022d575f80fd5b80629a9b7b146100fd5780630e8894dd14610125578063122251bf146101465780632567d7d614610165575b5f80fd5b348015610108575f80fd5b5061011260045481565b6040519081526020015b60405180910390f35b348015610130575f80fd5b5061014461013f366004610dff565b6103df565b005b348015610151575f80fd5b50610144610160366004610e35565b61040c565b348015610170575f80fd5b5061011260055481565b348015610185575f80fd5b506101cb610194366004610e96565b60036020525f90815260409020546001600160a01b03811690600160a01b81046001600160401b031690600160e01b900460ff1683565b604080516001600160a01b0390941684526001600160401b03909216602084015215159082015260600161011c565b348015610205575f80fd5b50610144610214366004610ef4565b6104c8565b348015610224575f80fd5b5061011261064c565b61014461023b366004610e96565b610753565b34801561024b575f80fd5b5060025461028c906001600160401b0380821691600160401b8104821691600160801b8204169063ffffffff600160c01b8204811691600160e01b90041685565b604080516001600160401b0396871681529486166020860152929094169183019190915263ffffffff9081166060830152909116608082015260a00161011c565b3480156102d8575f80fd5b506101446102e7366004610f46565b61094f565b3480156102f7575f80fd5b506101446109c7565b34801561030b575f80fd5b5061014461031a366004610e96565b6109da565b34801561032a575f80fd5b505f546001600160a01b03165b6040516001600160a01b03909116815260200161011c565b34801561035a575f80fd5b50610144610369366004610f61565b610a97565b348015610379575f80fd5b50610144610388366004610e96565b610be7565b348015610398575f80fd5b506101446103a7366004610f46565b610bf4565b3480156103b7575f80fd5b506103377f000000000000000000000000000000000000000000000000000000000000000081565b6103e7610c6a565b6002805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b610414610c6a565b6040805160a0810182526001600160401b03968716808252958716602082018190529490961690860181905263ffffffff92831660608701819052919092166080909501859052600280546fffffffffffffffffffffffffffffffff1916909417600160401b909302929092176bffffffffffffffffffffffff60801b1916600160801b90910263ffffffff60c01b191617600160c01b909102176001600160e01b0316600160e01b909202919091179055565b6104d0610c6a565b6104d8610cc3565b6005545f036104fa5760405163058ebc1760e11b815260040160405180910390fd5b5f5b8181101561063e575f83838381811061051757610517610fc7565b602090810292909201355f81815260038452604090819020815160608101835290546001600160a01b038116808352600160a01b82046001600160401b031696830196909652600160e01b900460ff161515918101919091529093509190506105935760405163c6388ef760e01b815260040160405180910390fd5b8060400151156105b657604051639a83650b60e01b815260040160405180910390fd5b5f8281526003602090815260408220805460ff60e01b1916600160e01b179055600554908301516105f091906001600160401b0316610fef565b90508015610630575f610606835f015183610d1c565b90508061062e57604051630b288dc560e21b8152600481018590526024015b60405180910390fd5b505b8360010193505050506104fc565b5061064860018055565b5050565b6040805160a0810182526002546001600160401b038082168352600160401b820481166020840152600160801b8204169282019290925263ffffffff600160c01b830481166060830152600160e01b909204909116608082018190525f919082036106c057516001600160401b0316919050565b5f816080015163ffffffff16426106d79190610fef565b90505f826060015163ffffffff16826106f09190611002565b90505f83604001516001600160401b03168261070c9190611021565b90508360200151845f0151036001600160401b031681111561073d57505050602001516001600160401b0316919050565b92516001600160401b0316929092039392505050565b61075b610cc3565b32331461077b57604051639f8129d160e01b815260040160405180910390fd5b600254600160e01b900463ffffffff165f036107aa576040516301dff5d560e71b815260040160405180910390fd5b60038111156107cc57604051631bb8629b60e21b815260040160405180910390fd5b5f6107d561064c565b90505f6107e28383611021565b9050803410156108055760405163d548170360e01b815260040160405180910390fd5b6004545f5b8481101561091f575f61081d8284611038565b60408051606081018252338082526001600160401b0389811660208085019182525f858701818152888252600390925286902094518554925191511515600160e01b0260ff60e01b1992909416600160a01b026001600160e01b03199093166001600160a01b039182161792909217169190911790925591516323b872dd60e01b81523060048201526024810192909252604482018390529192507f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd906064015f604051808303815f87803b1580156108fd575f80fd5b505af115801561090f573d5f803e3d5ffd5b505050508160010191505061080a565b5060048054850190553482810390831461093f5761093d3382610d1c565b505b5050505061094c60018055565b50565b610957610c6a565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f81146109a0576040519150601f19603f3d011682016040523d82523d5f602084013e6109a5565b606091505b505090508061064857604051631d42c86760e21b815260040160405180910390fd5b6109cf610c6a565b6109d85f610d98565b565b6109e2610c6a565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa158015610a47573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6b919061104b565b6001600160a01b031614610a9257604051630713c5a160e51b815260040160405180910390fd5b600455565b610a9f610c6a565b828114610abe5760405162a80fb560e51b815260040160405180910390fd5b5f5b83811015610be0575f858583818110610adb57610adb610fc7565b9050602002016020810190610af09190610f46565b90505f848484818110610b0557610b05610fc7565b9050602002016020810190610b1a9190611066565b6004549091505f5b8261ffff168161ffff161015610bc5576040516323b872dd60e01b81523060048201526001600160a01b03858116602483015261ffff8316840160448301527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064015f604051808303815f87803b158015610ba4575f80fd5b505af1158015610bb6573d5f803e3d5ffd5b50505050806001019050610b22565b50506004805461ffff90921691909101905550600101610ac0565b5050505050565b610bef610c6a565b600555565b610bfc610c6a565b6001600160a01b038116610c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610625565b61094c81610d98565b5f546001600160a01b031633146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610625565b600260015403610d155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610625565b6002600155565b604080515f8082526020820190925281906001600160a01b03851690617530908590604051610d4b9190611087565b5f60405180830381858888f193505050503d805f8114610d86576040519150601f19603f3d011682016040523d82523d5f602084013e610d8b565b606091505b5090925050505b92915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803563ffffffff81168114610dfa575f80fd5b919050565b5f60208284031215610e0f575f80fd5b610e1882610de7565b9392505050565b80356001600160401b0381168114610dfa575f80fd5b5f805f805f60a08688031215610e49575f80fd5b610e5286610e1f565b9450610e6060208701610e1f565b9350610e6e60408701610e1f565b9250610e7c60608701610de7565b9150610e8a60808701610de7565b90509295509295909350565b5f60208284031215610ea6575f80fd5b5035919050565b5f8083601f840112610ebd575f80fd5b5081356001600160401b03811115610ed3575f80fd5b6020830191508360208260051b8501011115610eed575f80fd5b9250929050565b5f8060208385031215610f05575f80fd5b82356001600160401b03811115610f1a575f80fd5b610f2685828601610ead565b90969095509350505050565b6001600160a01b038116811461094c575f80fd5b5f60208284031215610f56575f80fd5b8135610e1881610f32565b5f805f8060408587031215610f74575f80fd5b84356001600160401b0380821115610f8a575f80fd5b610f9688838901610ead565b90965094506020870135915080821115610fae575f80fd5b50610fbb87828801610ead565b95989497509550505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610d9257610d92610fdb565b5f8261101c57634e487b7160e01b5f52601260045260245ffd5b500490565b8082028115828204841417610d9257610d92610fdb565b80820180821115610d9257610d92610fdb565b5f6020828403121561105b575f80fd5b8151610e1881610f32565b5f60208284031215611076575f80fd5b813561ffff81168114610e18575f80fd5b5f82515f5b818110156110a6576020818601810151858301520161108c565b505f92019182525091905056fea26469706673582212207b7deb6c1e40cfd1ddd58769f554e2347362089698628e104e4119d8570f4b5e64736f6c634300081400330000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb00000000000000000000000000000000000000000000000007a1fe1602770000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000000002580000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100f9575f3560e01c8063568f02f8116100925780638da5cb5b116100625780638da5cb5b1461031f578063b0681af21461034f578063b82b3f7a1461036e578063f2fde38b1461038d578063f50600df146103ac575f80fd5b8063568f02f81461024057806368742da6146102cd578063715018a6146102ec5780638329de2f14610300575f80fd5b80632d47f0ce116100cd5780632d47f0ce1461017a5780632f78e2b8146101fa5780634bd25c6f146102195780634d3554c31461022d575f80fd5b80629a9b7b146100fd5780630e8894dd14610125578063122251bf146101465780632567d7d614610165575b5f80fd5b348015610108575f80fd5b5061011260045481565b6040519081526020015b60405180910390f35b348015610130575f80fd5b5061014461013f366004610dff565b6103df565b005b348015610151575f80fd5b50610144610160366004610e35565b61040c565b348015610170575f80fd5b5061011260055481565b348015610185575f80fd5b506101cb610194366004610e96565b60036020525f90815260409020546001600160a01b03811690600160a01b81046001600160401b031690600160e01b900460ff1683565b604080516001600160a01b0390941684526001600160401b03909216602084015215159082015260600161011c565b348015610205575f80fd5b50610144610214366004610ef4565b6104c8565b348015610224575f80fd5b5061011261064c565b61014461023b366004610e96565b610753565b34801561024b575f80fd5b5060025461028c906001600160401b0380821691600160401b8104821691600160801b8204169063ffffffff600160c01b8204811691600160e01b90041685565b604080516001600160401b0396871681529486166020860152929094169183019190915263ffffffff9081166060830152909116608082015260a00161011c565b3480156102d8575f80fd5b506101446102e7366004610f46565b61094f565b3480156102f7575f80fd5b506101446109c7565b34801561030b575f80fd5b5061014461031a366004610e96565b6109da565b34801561032a575f80fd5b505f546001600160a01b03165b6040516001600160a01b03909116815260200161011c565b34801561035a575f80fd5b50610144610369366004610f61565b610a97565b348015610379575f80fd5b50610144610388366004610e96565b610be7565b348015610398575f80fd5b506101446103a7366004610f46565b610bf4565b3480156103b7575f80fd5b506103377f0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb81565b6103e7610c6a565b6002805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b610414610c6a565b6040805160a0810182526001600160401b03968716808252958716602082018190529490961690860181905263ffffffff92831660608701819052919092166080909501859052600280546fffffffffffffffffffffffffffffffff1916909417600160401b909302929092176bffffffffffffffffffffffff60801b1916600160801b90910263ffffffff60c01b191617600160c01b909102176001600160e01b0316600160e01b909202919091179055565b6104d0610c6a565b6104d8610cc3565b6005545f036104fa5760405163058ebc1760e11b815260040160405180910390fd5b5f5b8181101561063e575f83838381811061051757610517610fc7565b602090810292909201355f81815260038452604090819020815160608101835290546001600160a01b038116808352600160a01b82046001600160401b031696830196909652600160e01b900460ff161515918101919091529093509190506105935760405163c6388ef760e01b815260040160405180910390fd5b8060400151156105b657604051639a83650b60e01b815260040160405180910390fd5b5f8281526003602090815260408220805460ff60e01b1916600160e01b179055600554908301516105f091906001600160401b0316610fef565b90508015610630575f610606835f015183610d1c565b90508061062e57604051630b288dc560e21b8152600481018590526024015b60405180910390fd5b505b8360010193505050506104fc565b5061064860018055565b5050565b6040805160a0810182526002546001600160401b038082168352600160401b820481166020840152600160801b8204169282019290925263ffffffff600160c01b830481166060830152600160e01b909204909116608082018190525f919082036106c057516001600160401b0316919050565b5f816080015163ffffffff16426106d79190610fef565b90505f826060015163ffffffff16826106f09190611002565b90505f83604001516001600160401b03168261070c9190611021565b90508360200151845f0151036001600160401b031681111561073d57505050602001516001600160401b0316919050565b92516001600160401b0316929092039392505050565b61075b610cc3565b32331461077b57604051639f8129d160e01b815260040160405180910390fd5b600254600160e01b900463ffffffff165f036107aa576040516301dff5d560e71b815260040160405180910390fd5b60038111156107cc57604051631bb8629b60e21b815260040160405180910390fd5b5f6107d561064c565b90505f6107e28383611021565b9050803410156108055760405163d548170360e01b815260040160405180910390fd5b6004545f5b8481101561091f575f61081d8284611038565b60408051606081018252338082526001600160401b0389811660208085019182525f858701818152888252600390925286902094518554925191511515600160e01b0260ff60e01b1992909416600160a01b026001600160e01b03199093166001600160a01b039182161792909217169190911790925591516323b872dd60e01b81523060048201526024810192909252604482018390529192507f0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb909116906323b872dd906064015f604051808303815f87803b1580156108fd575f80fd5b505af115801561090f573d5f803e3d5ffd5b505050508160010191505061080a565b5060048054850190553482810390831461093f5761093d3382610d1c565b505b5050505061094c60018055565b50565b610957610c6a565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f81146109a0576040519150601f19603f3d011682016040523d82523d5f602084013e6109a5565b606091505b505090508061064857604051631d42c86760e21b815260040160405180910390fd5b6109cf610c6a565b6109d85f610d98565b565b6109e2610c6a565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb1690636352211e90602401602060405180830381865afa158015610a47573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6b919061104b565b6001600160a01b031614610a9257604051630713c5a160e51b815260040160405180910390fd5b600455565b610a9f610c6a565b828114610abe5760405162a80fb560e51b815260040160405180910390fd5b5f5b83811015610be0575f858583818110610adb57610adb610fc7565b9050602002016020810190610af09190610f46565b90505f848484818110610b0557610b05610fc7565b9050602002016020810190610b1a9190611066565b6004549091505f5b8261ffff168161ffff161015610bc5576040516323b872dd60e01b81523060048201526001600160a01b03858116602483015261ffff8316840160448301527f0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb16906323b872dd906064015f604051808303815f87803b158015610ba4575f80fd5b505af1158015610bb6573d5f803e3d5ffd5b50505050806001019050610b22565b50506004805461ffff90921691909101905550600101610ac0565b5050505050565b610bef610c6a565b600555565b610bfc610c6a565b6001600160a01b038116610c615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610625565b61094c81610d98565b5f546001600160a01b031633146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610625565b600260015403610d155760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610625565b6002600155565b604080515f8082526020820190925281906001600160a01b03851690617530908590604051610d4b9190611087565b5f60405180830381858888f193505050503d805f8114610d86576040519150601f19603f3d011682016040523d82523d5f602084013e610d8b565b606091505b5090925050505b92915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803563ffffffff81168114610dfa575f80fd5b919050565b5f60208284031215610e0f575f80fd5b610e1882610de7565b9392505050565b80356001600160401b0381168114610dfa575f80fd5b5f805f805f60a08688031215610e49575f80fd5b610e5286610e1f565b9450610e6060208701610e1f565b9350610e6e60408701610e1f565b9250610e7c60608701610de7565b9150610e8a60808701610de7565b90509295509295909350565b5f60208284031215610ea6575f80fd5b5035919050565b5f8083601f840112610ebd575f80fd5b5081356001600160401b03811115610ed3575f80fd5b6020830191508360208260051b8501011115610eed575f80fd5b9250929050565b5f8060208385031215610f05575f80fd5b82356001600160401b03811115610f1a575f80fd5b610f2685828601610ead565b90969095509350505050565b6001600160a01b038116811461094c575f80fd5b5f60208284031215610f56575f80fd5b8135610e1881610f32565b5f805f8060408587031215610f74575f80fd5b84356001600160401b0380821115610f8a575f80fd5b610f9688838901610ead565b90965094506020870135915080821115610fae575f80fd5b50610fbb87828801610ead565b95989497509550505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b81810381811115610d9257610d92610fdb565b5f8261101c57634e487b7160e01b5f52601260045260245ffd5b500490565b8082028115828204841417610d9257610d92610fdb565b80820180821115610d9257610d92610fdb565b5f6020828403121561105b575f80fd5b8151610e1881610f32565b5f60208284031215611076575f80fd5b813561ffff81168114610e18575f80fd5b5f82515f5b818110156110a6576020818601810151858301520161108c565b505f92019182525091905056fea26469706673582212207b7deb6c1e40cfd1ddd58769f554e2347362089698628e104e4119d8570f4b5e64736f6c63430008140033

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

0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb00000000000000000000000000000000000000000000000007a1fe1602770000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000000002580000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _capsuleAddress (address): 0x6c952aF158EC8D0FD94908E389C084394d9AeBBb
Arg [1] : _startPrice (uint64): 550000000000000000
Arg [2] : _endPrice (uint64): 100000000000000000
Arg [3] : _decay (uint64): 50000000000000000
Arg [4] : _step (uint32): 600
Arg [5] : _startTime (uint32): 0

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c952af158ec8d0fd94908e389c084394d9aebbb
Arg [1] : 00000000000000000000000000000000000000000000000007a1fe1602770000
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000


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.