ETH Price: $2,625.65 (-5.44%)

Contract

0xa622Fc881EeCf66a53F1Fd021d5002aa31F7Da2e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint198505252024-05-12 0:59:23272 days ago1715475563IN
0xa622Fc88...a31F7Da2e
0 ETH0.000219464.42435429
Mint198505252024-05-12 0:59:23272 days ago1715475563IN
0xa622Fc88...a31F7Da2e
0 ETH0.000219464.42435429
Mint159081082022-11-06 2:51:47825 days ago1667703107IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005057110.19507686
Mint159081012022-11-06 2:50:23825 days ago1667703023IN
0xa622Fc88...a31F7Da2e
0 ETH0.000483999.75715081
Mint159080982022-11-06 2:49:47825 days ago1667702987IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005540411.16937448
Mint159080972022-11-06 2:49:35825 days ago1667702975IN
0xa622Fc88...a31F7Da2e
0 ETH0.000476449.60495872
Mint159080942022-11-06 2:48:59825 days ago1667702939IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005576511.24220288
Mint159080882022-11-06 2:47:47825 days ago1667702867IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005278810.64204341
Mint159080872022-11-06 2:47:35825 days ago1667702855IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005101310.28413078
Set Owner159080862022-11-06 2:47:23825 days ago1667702843IN
0xa622Fc88...a31F7Da2e
0 ETH0.0003483510.28133899
Mint159080742022-11-06 2:44:59825 days ago1667702699IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006358911.80911973
Mint159080742022-11-06 2:44:59825 days ago1667702699IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006358911.80911973
Mint159080702022-11-06 2:44:11825 days ago1667702651IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005775610.72583347
Mint159080682022-11-06 2:43:47825 days ago1667702627IN
0xa622Fc88...a31F7Da2e
0 ETH0.000489849.09673734
Mint159080662022-11-06 2:43:23825 days ago1667702603IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005683210.5542354
Mint159080652022-11-06 2:43:11825 days ago1667702591IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005918910.99204971
Mint159080552022-11-06 2:41:11825 days ago1667702471IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006461912.00041264
Mint159080552022-11-06 2:41:11825 days ago1667702471IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006461912.00041264
Mint159080532022-11-06 2:40:47825 days ago1667702447IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006210811.53408968
Mint159080532022-11-06 2:40:47825 days ago1667702447IN
0xa622Fc88...a31F7Da2e
0 ETH0.0006210811.53408968
Mint159080452022-11-06 2:39:11825 days ago1667702351IN
0xa622Fc88...a31F7Da2e
0 ETH0.000227979.55262368
Mint159080332022-11-06 2:36:47825 days ago1667702207IN
0xa622Fc88...a31F7Da2e
0 ETH0.000578610.74519847
Mint159080332022-11-06 2:36:47825 days ago1667702207IN
0xa622Fc88...a31F7Da2e
0 ETH0.000578610.74519847
Mint159080312022-11-06 2:36:23825 days ago1667702183IN
0xa622Fc88...a31F7Da2e
0 ETH0.0002708111.34770269
Mint159080272022-11-06 2:35:35825 days ago1667702135IN
0xa622Fc88...a31F7Da2e
0 ETH0.0005645110.48351759
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:
HoneyBearOwner

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 3 : HoneyBearOwner.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";

interface IMinter {
    function mintTo(address _to, uint256 _amount) external;

    function setOwner(address _newOwner) external;
}

contract HoneyBearOwner is Ownable {
    IMinter immutable honeyMinter;

    mapping(address => uint) public minted;

    constructor(address _honeyMinter) {
        honeyMinter = IMinter(_honeyMinter);
    }

    function mint(uint _amount) public {
        require(minted[_msgSender()] + _amount < 6, "Max Mint Reached");

        minted[_msgSender()] += _amount;
        honeyMinter.mintTo(_msgSender(), _amount);
    }

    function setOwner(address _newOwner) external onlyOwner {
        honeyMinter.setOwner(_newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

Settings
{
  "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":"_honeyMinter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b5060405161052138038061052183398101604081905261002f91610099565b61003833610049565b6001600160a01b03166080526100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ab57600080fd5b81516001600160a01b03811681146100c257600080fd5b9392505050565b6080516104366100eb6000396000818161011f015261023e01526104366000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806313af4035146100675780631e7269c51461007c578063715018a6146100af5780638da5cb5b146100b7578063a0712d68146100d2578063f2fde38b146100e5575b600080fd5b61007a610075366004610390565b6100f8565b005b61009c61008a366004610390565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b61007a61017f565b6000546040516001600160a01b0390911681526020016100a6565b61007a6100e03660046103c0565b610193565b61007a6100f3366004610390565b61026d565b6101006102e6565b6040516313af403560e01b81526001600160a01b0382811660048301527f000000000000000000000000000000000000000000000000000000000000000016906313af4035906024015b600060405180830381600087803b15801561016457600080fd5b505af1158015610178573d6000803e3d6000fd5b5050505050565b6101876102e6565b6101916000610340565b565b336000908152600160205260409020546006906101b19083906103d9565b106101f65760405162461bcd60e51b815260206004820152601060248201526f13585e08135a5b9d0814995858da195960821b60448201526064015b60405180910390fd5b33600090815260016020526040812080548392906102159084906103d9565b90915550506040516308934a5f60e31b8152336004820152602481018290526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063449a52f89060440161014a565b6102756102e6565b6001600160a01b0381166102da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ed565b6102e381610340565b50565b6000546001600160a01b031633146101915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ed565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103a257600080fd5b81356001600160a01b03811681146103b957600080fd5b9392505050565b6000602082840312156103d257600080fd5b5035919050565b808201808211156103fa57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fc33e4e12d32268310fe8a73f01c2ea0e6c01c0317da6842d7f35208334d647564736f6c634300081100330000000000000000000000003ffdfe1602aa95cf17b12fce2f3179dfb7c8dc1e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c806313af4035146100675780631e7269c51461007c578063715018a6146100af5780638da5cb5b146100b7578063a0712d68146100d2578063f2fde38b146100e5575b600080fd5b61007a610075366004610390565b6100f8565b005b61009c61008a366004610390565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b61007a61017f565b6000546040516001600160a01b0390911681526020016100a6565b61007a6100e03660046103c0565b610193565b61007a6100f3366004610390565b61026d565b6101006102e6565b6040516313af403560e01b81526001600160a01b0382811660048301527f0000000000000000000000003ffdfe1602aa95cf17b12fce2f3179dfb7c8dc1e16906313af4035906024015b600060405180830381600087803b15801561016457600080fd5b505af1158015610178573d6000803e3d6000fd5b5050505050565b6101876102e6565b6101916000610340565b565b336000908152600160205260409020546006906101b19083906103d9565b106101f65760405162461bcd60e51b815260206004820152601060248201526f13585e08135a5b9d0814995858da195960821b60448201526064015b60405180910390fd5b33600090815260016020526040812080548392906102159084906103d9565b90915550506040516308934a5f60e31b8152336004820152602481018290526001600160a01b037f0000000000000000000000003ffdfe1602aa95cf17b12fce2f3179dfb7c8dc1e169063449a52f89060440161014a565b6102756102e6565b6001600160a01b0381166102da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ed565b6102e381610340565b50565b6000546001600160a01b031633146101915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ed565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156103a257600080fd5b81356001600160a01b03811681146103b957600080fd5b9392505050565b6000602082840312156103d257600080fd5b5035919050565b808201808211156103fa57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fc33e4e12d32268310fe8a73f01c2ea0e6c01c0317da6842d7f35208334d647564736f6c63430008110033

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

0000000000000000000000003ffdfe1602aa95cf17b12fce2f3179dfb7c8dc1e

-----Decoded View---------------
Arg [0] : _honeyMinter (address): 0x3FfDfE1602Aa95cf17B12fcE2F3179dfB7C8DC1e

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003ffdfe1602aa95cf17b12fce2f3179dfb7c8dc1e


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.