ETH Price: $2,977.15 (-2.43%)
Gas: 4 Gwei

Contract

0x397Ef5e56EC4B125Aa93951ed3Ba4A145D62768e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Sell Defi Apes197972272024-05-04 14:05:3564 days ago1714831535IN
0x397Ef5e5...45D62768e
0 ETH0.001080348.31931607
Transfer Ownersh...197837972024-05-02 17:01:4765 days ago1714669307IN
0x397Ef5e5...45D62768e
0 ETH0.0004746516.581664
Withdraw Defi Ap...197837922024-05-02 17:00:4765 days ago1714669247IN
0x397Ef5e5...45D62768e
0 ETH0.0074406217.35467312
Withdraw Defi Ap...197836532024-05-02 16:32:5965 days ago1714667579IN
0x397Ef5e5...45D62768e
0 ETH0.0640974110.72960909
Transfer Ownersh...197836492024-05-02 16:32:1165 days ago1714667531IN
0x397Ef5e5...45D62768e
0 ETH0.0003344411.683651
Buy Defi Apes197811392024-05-02 8:07:1166 days ago1714637231IN
0x397Ef5e5...45D62768e
0 ETH0.000702916.91904046
Buy Defi Apes197733422024-05-01 5:58:4767 days ago1714543127IN
0x397Ef5e5...45D62768e
0 ETH0.000575566.17668797
Sell Defi Apes197620972024-04-29 16:15:5969 days ago1714407359IN
0x397Ef5e5...45D62768e
0 ETH0.0022123717.03815983
Sell Defi Apes196739502024-04-17 8:18:3581 days ago1713341915IN
0x397Ef5e5...45D62768e
0 ETH0.0062631915.16291482
Sell Defi Apes194749742024-03-20 9:17:59109 days ago1710926279IN
0x397Ef5e5...45D62768e
0 ETH0.003327732.77749672
Sell Defi Apes194674762024-03-19 8:01:59110 days ago1710835319IN
0x397Ef5e5...45D62768e
0 ETH0.0027380929.51202379
Sell Defi Apes194672802024-03-19 7:22:23110 days ago1710832943IN
0x397Ef5e5...45D62768e
0 ETH0.0149828438.82128294
Sell Defi Apes194456792024-03-16 6:27:23113 days ago1710570443IN
0x397Ef5e5...45D62768e
0 ETH0.0036156827.84298092
Sell Defi Apes194109272024-03-11 9:21:59118 days ago1710148919IN
0x397Ef5e5...45D62768e
0 ETH0.008667855.22653685
Sell Defi Apes190498662024-01-20 18:27:59168 days ago1705775279IN
0x397Ef5e5...45D62768e
0 ETH0.0033439516.92608782
Sell Defi Apes190339472024-01-18 13:08:23171 days ago1705583303IN
0x397Ef5e5...45D62768e
0 ETH0.0061292431.02063625
Sell Defi Apes190339072024-01-18 13:00:23171 days ago1705582823IN
0x397Ef5e5...45D62768e
0 ETH0.0061857431.31990563
Sell Defi Apes190063202024-01-14 16:28:47175 days ago1705249727IN
0x397Ef5e5...45D62768e
0 ETH0.0055435728.05653663
Adjust Buy Price189589612024-01-08 1:09:35181 days ago1704676175IN
0x397Ef5e5...45D62768e
0 ETH0.0007737625.89569555
Sell Defi Apes189494652024-01-06 16:55:11182 days ago1704560111IN
0x397Ef5e5...45D62768e
0 ETH0.0050156625.38469745
Sell Defi Apes189494572024-01-06 16:53:35182 days ago1704560015IN
0x397Ef5e5...45D62768e
0 ETH0.0054437927.55150505
Sell Defi Apes189417392024-01-05 14:43:35184 days ago1704465815IN
0x397Ef5e5...45D62768e
0 ETH0.0108869632.68937328
Sell Defi Apes189342932024-01-04 13:33:23185 days ago1704375203IN
0x397Ef5e5...45D62768e
0 ETH0.0043163621.84551989
Sell Defi Apes189342812024-01-04 13:30:59185 days ago1704375059IN
0x397Ef5e5...45D62768e
0 ETH0.0044342922.44237279
Sell Defi Apes189342682024-01-04 13:28:23185 days ago1704374903IN
0x397Ef5e5...45D62768e
0 ETH0.0082719824.67943989
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:
ConcreteJungle

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion, MIT license
File 1 of 7 : ConcreteJungle.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

contract ConcreteJungle is Ownable, Pausable {
    IERC721 public immutable defiApes;

    IERC20 public immutable apeFi;

    uint256 public sellPrice = 100_000e18;

    uint256 public buyPrice = 500_000e18;

    event Buy(address indexed buyer, uint256[] tokenIds);
    event Sell(address indexed seller, uint256[] tokenIds);
    event BuyPriceUpdated(uint256 indexed buyPrice);
    event SellPriceUpdated(uint256 indexed sellprice);

    constructor(address defiApes_, address apeFi_) {
        defiApes = IERC721(defiApes_);
        apeFi = IERC20(apeFi_);
    }

    modifier onlyEOA() {
        require(msg.sender == tx.origin, "EOA only");
        _;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function sellDefiApes(uint256[] memory tokenIds) public whenNotPaused onlyEOA {
        for (uint256 i = 0; i < tokenIds.length;) {
            uint256 tokenId = tokenIds[i];
            require(defiApes.ownerOf(tokenId) == msg.sender, "not owner");

            defiApes.transferFrom(msg.sender, address(this), tokenId);

            unchecked {
                i++;
            }
        }

        uint256 amount = tokenIds.length * sellPrice;
        require(apeFi.balanceOf(address(this)) >= amount, "insufficient balance");

        apeFi.transfer(msg.sender, amount);

        emit Sell(msg.sender, tokenIds);
    }

    function buyDefiApes(uint256[] memory tokenIds) public whenNotPaused onlyEOA {
        for (uint256 i = 0; i < tokenIds.length;) {
            uint256 tokenId = tokenIds[i];
            require(defiApes.ownerOf(tokenId) == address(this), "not owner");

            defiApes.transferFrom(address(this), msg.sender, tokenId);

            unchecked {
                i++;
            }
        }

        uint256 amount = tokenIds.length * buyPrice;
        require(apeFi.balanceOf(msg.sender) >= amount, "insufficient balance");

        apeFi.transferFrom(msg.sender, address(this), amount);

        emit Buy(msg.sender, tokenIds);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function pause() external onlyOwner {
        _pause();
    }

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

    function withdrawDefiApes(uint256[] memory tokenIds) external onlyOwner {
        for (uint256 i = 0; i < tokenIds.length;) {
            uint256 tokenId = tokenIds[i];
            require(defiApes.ownerOf(tokenId) == address(this), "not owner");

            defiApes.transferFrom(address(this), owner(), tokenId);

            unchecked {
                i++;
            }
        }
    }

    function withdrawApeFi(uint256 amount) external onlyOwner {
        require(apeFi.balanceOf(address(this)) >= amount, "insufficient balance");

        apeFi.transfer(owner(), amount);
    }

    function adjustSellPrice(uint256 newSellPrice) external onlyOwner {
        require(newSellPrice > 0, "invalid price");

        sellPrice = newSellPrice;

        emit SellPriceUpdated(newSellPrice);
    }

    function adjustBuyPrice(uint256 newBuyPrice) external onlyOwner {
        require(newBuyPrice > 0, "invalid price");

        buyPrice = newBuyPrice;

        emit BuyPriceUpdated(newBuyPrice);
    }
}

File 2 of 7 : 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 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 3 of 7 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 7 : 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 6 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"defiApes_","type":"address"},{"internalType":"address","name":"apeFi_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"buyPrice","type":"uint256"}],"name":"BuyPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Sell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"sellprice","type":"uint256"}],"name":"SellPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"newBuyPrice","type":"uint256"}],"name":"adjustBuyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSellPrice","type":"uint256"}],"name":"adjustSellPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apeFi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"buyDefiApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defiApes","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"sellDefiApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawApeFi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdrawDefiApes","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405269152d02c7e14af68000006001556969e10de76676d080000060025534801561002c57600080fd5b506040516113ad3803806113ad83398101604081905261004b916100e4565b61005433610078565b6000805460ff60a01b191690556001600160a01b039182166080521660a052610117565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100df57600080fd5b919050565b600080604083850312156100f757600080fd5b610100836100c8565b915061010e602084016100c8565b90509250929050565b60805160a05161121d61019060003960008181610215015281816104ff0152818161059f015281816108900152818161092301528181610c3a0152610cdf01526000818161016801528181610389015281816104530152818161069f0152818161075401528181610ac40152610b8e015261121d6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e44596c511610066578063e44596c5146101fd578063ec3b20ea14610210578063f2fde38b14610237578063f6bb9b4d1461024a57600080fd5b80638da5cb5b146101b35780639a6032f6146101c4578063c76f491e146101d7578063c9e0c61b146101ea57600080fd5b8063715018a6116100d3578063715018a61461015b57806375af91f6146101635780638456cb59146101a25780638620410b146101aa57600080fd5b806301462e24146101055780633f4ba83a1461011a5780634b750334146101225780635c975abb1461013e575b600080fd5b610118610113366004610f6d565b61025d565b005b6101186102dd565b61012b60015481565b6040519081526020015b60405180910390f35b600054600160a01b900460ff166040519015158152602001610135565b6101186102ef565b61018a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610135565b610118610301565b61012b60025481565b6000546001600160a01b031661018a565b6101186101d2366004610f9c565b610311565b6101186101e5366004610f9c565b610661565b6101186101f8366004610f6d565b6107f6565b61011861020b366004610f6d565b610871565b61018a7f000000000000000000000000000000000000000000000000000000000000000081565b61011861024536600461106f565b6109d3565b610118610258366004610f9c565b610a4c565b610265610d8e565b600081116102aa5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b60448201526064015b60405180910390fd5b600281905560405181907f93446c60acefc3ffe0b1d147be7677c1bcbab6e22f199efcd96e0ee489993c3390600090a250565b6102e5610d8e565b6102ed610de8565b565b6102f7610d8e565b6102ed6000610e3d565b610309610d8e565b6102ed610e8d565b610319610ed0565b3332146103535760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064016102a1565b60005b81518110156104cb57600082828151811061037357610373611093565b60200260200101519050306001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016103d591815260200190565b602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041691906110a9565b6001600160a01b03161461043c5760405162461bcd60e51b81526004016102a1906110c6565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd9061048c903090339086906004016110e9565b600060405180830381600087803b1580156104a657600080fd5b505af11580156104ba573d6000803e3d6000fd5b505060019093019250610356915050565b50600060025482516104dd919061110d565b6040516370a0823160e01b815233600482015290915081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610546573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056a919061113a565b10156105885760405162461bcd60e51b81526004016102a190611153565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906105d8903390309086906004016110e9565b6020604051808303816000875af11580156105f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061b9190611181565b50336001600160a01b03167fb48e035c83771b4d2631244bdc5b397fac119344e91b7d42c59a0c01803916708360405161065591906111a3565b60405180910390a25050565b610669610d8e565b60005b81518110156107f257600082828151811061068957610689611093565b60200260200101519050306001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016106eb91815260200190565b602060405180830381865afa158015610708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072c91906110a9565b6001600160a01b0316146107525760405162461bcd60e51b81526004016102a1906110c6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd306107946000546001600160a01b031690565b846040518463ffffffff1660e01b81526004016107b3939291906110e9565b600060405180830381600087803b1580156107cd57600080fd5b505af11580156107e1573d6000803e3d6000fd5b50506001909301925061066c915050565b5050565b6107fe610d8e565b6000811161083e5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b60448201526064016102a1565b600181905560405181907f47ba9e2d0afda74c45bf0c1d7014e68fc279010028f7f854ffa5ab1a6156ea5d90600090a250565b610879610d8e565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156108df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610903919061113a565b10156109215760405162461bcd60e51b81526004016102a190611153565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb6109626000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156109af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f29190611181565b6109db610d8e565b6001600160a01b038116610a405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a1565b610a4981610e3d565b50565b610a54610ed0565b333214610a8e5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064016102a1565b60005b8151811015610c06576000828281518110610aae57610aae611093565b60200260200101519050336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e836040518263ffffffff1660e01b8152600401610b1091815260200190565b602060405180830381865afa158015610b2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5191906110a9565b6001600160a01b031614610b775760405162461bcd60e51b81526004016102a1906110c6565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610bc7903390309086906004016110e9565b600060405180830381600087803b158015610be157600080fd5b505af1158015610bf5573d6000803e3d6000fd5b505060019093019250610a91915050565b5060006001548251610c18919061110d565b6040516370a0823160e01b815230600482015290915081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca5919061113a565b1015610cc35760405162461bcd60e51b81526004016102a190611153565b60405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d549190611181565b50336001600160a01b03167fd863f3e9b277f2766716084d82bea6dacaba10c489fe76712269a64fdcfa9c918360405161065591906111a3565b6000546001600160a01b031633146102ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a1565b610df0610f1d565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610e95610ed0565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e203390565b600054600160a01b900460ff16156102ed5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102a1565b600054600160a01b900460ff166102ed5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102a1565b600060208284031215610f7f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610faf57600080fd5b823567ffffffffffffffff80821115610fc757600080fd5b818501915085601f830112610fdb57600080fd5b813581811115610fed57610fed610f86565b8060051b604051601f19603f8301168101818110858211171561101257611012610f86565b60405291825284820192508381018501918883111561103057600080fd5b938501935b8285101561104e57843584529385019392850192611035565b98975050505050505050565b6001600160a01b0381168114610a4957600080fd5b60006020828403121561108157600080fd5b813561108c8161105a565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156110bb57600080fd5b815161108c8161105a565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600081600019048311821515161561113557634e487b7160e01b600052601160045260246000fd5b500290565b60006020828403121561114c57600080fd5b5051919050565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b60006020828403121561119357600080fd5b8151801515811461108c57600080fd5b6020808252825182820181905260009190848201906040850190845b818110156111db578351835292840192918401916001016111bf565b5090969550505050505056fea2646970667358221220b3e4048b5c18b1a9e0c4ce938c925880d62ac06caaf7c3e20f90bc0a0c099bba64736f6c634300080a00330000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68790000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e44596c511610066578063e44596c5146101fd578063ec3b20ea14610210578063f2fde38b14610237578063f6bb9b4d1461024a57600080fd5b80638da5cb5b146101b35780639a6032f6146101c4578063c76f491e146101d7578063c9e0c61b146101ea57600080fd5b8063715018a6116100d3578063715018a61461015b57806375af91f6146101635780638456cb59146101a25780638620410b146101aa57600080fd5b806301462e24146101055780633f4ba83a1461011a5780634b750334146101225780635c975abb1461013e575b600080fd5b610118610113366004610f6d565b61025d565b005b6101186102dd565b61012b60015481565b6040519081526020015b60405180910390f35b600054600160a01b900460ff166040519015158152602001610135565b6101186102ef565b61018a7f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e687981565b6040516001600160a01b039091168152602001610135565b610118610301565b61012b60025481565b6000546001600160a01b031661018a565b6101186101d2366004610f9c565b610311565b6101186101e5366004610f9c565b610661565b6101186101f8366004610f6d565b6107f6565b61011861020b366004610f6d565b610871565b61018a7f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d81565b61011861024536600461106f565b6109d3565b610118610258366004610f9c565b610a4c565b610265610d8e565b600081116102aa5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b60448201526064015b60405180910390fd5b600281905560405181907f93446c60acefc3ffe0b1d147be7677c1bcbab6e22f199efcd96e0ee489993c3390600090a250565b6102e5610d8e565b6102ed610de8565b565b6102f7610d8e565b6102ed6000610e3d565b610309610d8e565b6102ed610e8d565b610319610ed0565b3332146103535760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064016102a1565b60005b81518110156104cb57600082828151811061037357610373611093565b60200260200101519050306001600160a01b03167f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68796001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016103d591815260200190565b602060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041691906110a9565b6001600160a01b03161461043c5760405162461bcd60e51b81526004016102a1906110c6565b6040516323b872dd60e01b81526001600160a01b037f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e687916906323b872dd9061048c903090339086906004016110e9565b600060405180830381600087803b1580156104a657600080fd5b505af11580156104ba573d6000803e3d6000fd5b505060019093019250610356915050565b50600060025482516104dd919061110d565b6040516370a0823160e01b815233600482015290915081906001600160a01b037f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d16906370a0823190602401602060405180830381865afa158015610546573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056a919061113a565b10156105885760405162461bcd60e51b81526004016102a190611153565b6040516323b872dd60e01b81526001600160a01b037f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d16906323b872dd906105d8903390309086906004016110e9565b6020604051808303816000875af11580156105f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061b9190611181565b50336001600160a01b03167fb48e035c83771b4d2631244bdc5b397fac119344e91b7d42c59a0c01803916708360405161065591906111a3565b60405180910390a25050565b610669610d8e565b60005b81518110156107f257600082828151811061068957610689611093565b60200260200101519050306001600160a01b03167f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68796001600160a01b0316636352211e836040518263ffffffff1660e01b81526004016106eb91815260200190565b602060405180830381865afa158015610708573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072c91906110a9565b6001600160a01b0316146107525760405162461bcd60e51b81526004016102a1906110c6565b7f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68796001600160a01b03166323b872dd306107946000546001600160a01b031690565b846040518463ffffffff1660e01b81526004016107b3939291906110e9565b600060405180830381600087803b1580156107cd57600080fd5b505af11580156107e1573d6000803e3d6000fd5b50506001909301925061066c915050565b5050565b6107fe610d8e565b6000811161083e5760405162461bcd60e51b815260206004820152600d60248201526c696e76616c696420707269636560981b60448201526064016102a1565b600181905560405181907f47ba9e2d0afda74c45bf0c1d7014e68fc279010028f7f854ffa5ab1a6156ea5d90600090a250565b610879610d8e565b6040516370a0823160e01b815230600482015281907f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d6001600160a01b0316906370a0823190602401602060405180830381865afa1580156108df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610903919061113a565b10156109215760405162461bcd60e51b81526004016102a190611153565b7f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d6001600160a01b031663a9059cbb6109626000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156109af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f29190611181565b6109db610d8e565b6001600160a01b038116610a405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a1565b610a4981610e3d565b50565b610a54610ed0565b333214610a8e5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064016102a1565b60005b8151811015610c06576000828281518110610aae57610aae611093565b60200260200101519050336001600160a01b03167f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68796001600160a01b0316636352211e836040518263ffffffff1660e01b8152600401610b1091815260200190565b602060405180830381865afa158015610b2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5191906110a9565b6001600160a01b031614610b775760405162461bcd60e51b81526004016102a1906110c6565b6040516323b872dd60e01b81526001600160a01b037f0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e687916906323b872dd90610bc7903390309086906004016110e9565b600060405180830381600087803b158015610be157600080fd5b505af1158015610bf5573d6000803e3d6000fd5b505060019093019250610a91915050565b5060006001548251610c18919061110d565b6040516370a0823160e01b815230600482015290915081906001600160a01b037f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d16906370a0823190602401602060405180830381865afa158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca5919061113a565b1015610cc35760405162461bcd60e51b81526004016102a190611153565b60405163a9059cbb60e01b8152336004820152602481018290527f0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d6001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d549190611181565b50336001600160a01b03167fd863f3e9b277f2766716084d82bea6dacaba10c489fe76712269a64fdcfa9c918360405161065591906111a3565b6000546001600160a01b031633146102ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a1565b610df0610f1d565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610e95610ed0565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e203390565b600054600160a01b900460ff16156102ed5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102a1565b600054600160a01b900460ff166102ed5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102a1565b600060208284031215610f7f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610faf57600080fd5b823567ffffffffffffffff80821115610fc757600080fd5b818501915085601f830112610fdb57600080fd5b813581811115610fed57610fed610f86565b8060051b604051601f19603f8301168101818110858211171561101257611012610f86565b60405291825284820192508381018501918883111561103057600080fd5b938501935b8285101561104e57843584529385019392850192611035565b98975050505050505050565b6001600160a01b0381168114610a4957600080fd5b60006020828403121561108157600080fd5b813561108c8161105a565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156110bb57600080fd5b815161108c8161105a565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600081600019048311821515161561113557634e487b7160e01b600052601160045260246000fd5b500290565b60006020828403121561114c57600080fd5b5051919050565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b60006020828403121561119357600080fd5b8151801515811461108c57600080fd5b6020808252825182820181905260009190848201906040850190845b818110156111db578351835292840192918401916001016111bf565b5090969550505050505056fea2646970667358221220b3e4048b5c18b1a9e0c4ce938c925880d62ac06caaf7c3e20f90bc0a0c099bba64736f6c634300080a0033

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

0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e68790000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d

-----Decoded View---------------
Arg [0] : defiApes_ (address): 0x3C6FBc94288f5af5201085948DdB18aDED2E6879
Arg [1] : apeFi_ (address): 0x4332f8A38f14BD3D8D1553aF27D7c7Ac6C27278D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c6fbc94288f5af5201085948ddb18aded2e6879
Arg [1] : 0000000000000000000000004332f8a38f14bd3d8d1553af27d7c7ac6c27278d


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.