ETH Price: $3,261.16 (+2.36%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint138626642021-12-23 17:04:061134 days ago1640279046IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0078979294.1114701
Mint138580862021-12-22 23:56:111135 days ago1640217371IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0064896477.33042644
Mint138467372021-12-21 5:42:161137 days ago1640065336IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0045179653.8358843
Mint138419302021-12-20 12:13:511137 days ago1640002431IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0039430446.98518063
Mint138412632021-12-20 9:36:251137 days ago1639992985IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0035697442.53699086
Mint138392102021-12-20 1:52:121138 days ago1639965132IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0048520657.8171055
Mint138390182021-12-20 1:09:241138 days ago1639962564IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0042992151.22936613
Mint138383672021-12-19 22:53:251138 days ago1639954405IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0042853151.06369568
Mint138383232021-12-19 22:44:551138 days ago1639953895IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0038148357.09035637
Mint138382822021-12-19 22:35:501138 days ago1639953350IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0064869177.29792883
Mint138379442021-12-19 21:19:301138 days ago1639948770IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0037568844.76686448
Mint138379322021-12-19 21:17:531138 days ago1639948673IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0052093562.07452247
Mint138375942021-12-19 19:54:321138 days ago1639943672IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0068736381.9059827
Mint138372042021-12-19 18:23:481138 days ago1639938228IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0050306459.94500663
Mint138371342021-12-19 18:08:331138 days ago1639937313IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0043120351.38202972
Mint138369902021-12-19 17:40:351138 days ago1639935635IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0061226572.95732208
Mint138368652021-12-19 17:08:451138 days ago1639933725IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.00949044113.08788833
Mint138364942021-12-19 15:42:041138 days ago1639928524IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0034743341.4000099
Mint138364912021-12-19 15:41:491138 days ago1639928509IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0027324440.89441326
Mint138364722021-12-19 15:37:471138 days ago1639928267IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0031189237.16502942
Mint138362312021-12-19 14:49:211138 days ago1639925361IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0032025147.92676493
Mint138359792021-12-19 13:52:231138 days ago1639921943IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0028152642.13142519
Mint138359632021-12-19 13:48:281138 days ago1639921708IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0038990546.4609886
Mint138359222021-12-19 13:38:501138 days ago1639921130IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0029899935.62864937
Mint138358522021-12-19 13:25:481138 days ago1639920348IN
0x9C3eDF59...1F2DbB3D3
0 ETH0.0035136541.86863371
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:
HoneySender

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : HoneySender.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";

import "./IHoney.sol";

contract HoneySender is Ownable {
    mapping(address => uint256) wallets;

    IHoney private honeyContract = IHoney(0xe4c1B13dd712f650E34c1bc1D26Ccfa05F71Ee29);

    // how many honey amounts per wallet
    uint256 public txPerWallet = 2;

    constructor() {}

    /**
     * mints $HONEY to a recipient
     */
    function mint(uint256 amount) external {
        require(wallets[msg.sender] + amount <= txPerWallet, "No more $HONEY");
        wallets[msg.sender] += amount;
        honeyContract.mint(msg.sender, amount * 3000 ether);
    }

    function setTxPerWallet(uint256 _tx) external onlyOwner {
        txPerWallet = _tx;
    }
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 4 : IHoney.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.9;

interface IHoney {
    function mint(address to, uint256 amount) external;

    function mintGiveaway(address[] calldata addresses, uint256 amount) external;

    function burn(address from, uint256 amount) external;

    function disableGiveaway() external;

    function addController(address controller) external;

    function removeController(address controller) external;
}

File 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tx","type":"uint256"}],"name":"setTxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"txPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600280546001600160a01b03191673e4c1b13dd712f650e34c1bc1d26ccfa05f71ee2917815560035534801561003957600080fd5b5061004333610048565b610098565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610442806100a76000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638641121c146100715780638da5cb5b14610084578063a0712d68146100a4578063e433a668146100b7578063f2fde38b146100ce575b600080fd5b61006f6100e1565b005b61006f61007f366004610341565b610120565b6000546040516001600160a01b0390911681526020015b60405180910390f35b61006f6100b2366004610341565b61014f565b6100c060035481565b60405190815260200161009b565b61006f6100dc36600461035a565b610256565b6000546001600160a01b031633146101145760405162461bcd60e51b815260040161010b9061038a565b60405180910390fd5b61011e60006102f1565b565b6000546001600160a01b0316331461014a5760405162461bcd60e51b815260040161010b9061038a565b600355565b6003543360009081526001602052604090205461016d9083906103d5565b11156101ac5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f72652024484f4e455960901b604482015260640161010b565b33600090815260016020526040812080548392906101cb9084906103d5565b90915550506002546001600160a01b03166340c10f19336101f58468a2a15d09519be000006103ed565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561023b57600080fd5b505af115801561024f573d6000803e3d6000fd5b5050505050565b6000546001600160a01b031633146102805760405162461bcd60e51b815260040161010b9061038a565b6001600160a01b0381166102e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161010b565b6102ee816102f1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561035357600080fd5b5035919050565b60006020828403121561036c57600080fd5b81356001600160a01b038116811461038357600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156103e8576103e86103bf565b500190565b6000816000190483118215151615610407576104076103bf565b50029056fea2646970667358221220d008b4fc535b9a202de7899687a52e51983c6c120550b836c50ebc1c092429b464736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638641121c146100715780638da5cb5b14610084578063a0712d68146100a4578063e433a668146100b7578063f2fde38b146100ce575b600080fd5b61006f6100e1565b005b61006f61007f366004610341565b610120565b6000546040516001600160a01b0390911681526020015b60405180910390f35b61006f6100b2366004610341565b61014f565b6100c060035481565b60405190815260200161009b565b61006f6100dc36600461035a565b610256565b6000546001600160a01b031633146101145760405162461bcd60e51b815260040161010b9061038a565b60405180910390fd5b61011e60006102f1565b565b6000546001600160a01b0316331461014a5760405162461bcd60e51b815260040161010b9061038a565b600355565b6003543360009081526001602052604090205461016d9083906103d5565b11156101ac5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f72652024484f4e455960901b604482015260640161010b565b33600090815260016020526040812080548392906101cb9084906103d5565b90915550506002546001600160a01b03166340c10f19336101f58468a2a15d09519be000006103ed565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561023b57600080fd5b505af115801561024f573d6000803e3d6000fd5b5050505050565b6000546001600160a01b031633146102805760405162461bcd60e51b815260040161010b9061038a565b6001600160a01b0381166102e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161010b565b6102ee816102f1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561035357600080fd5b5035919050565b60006020828403121561036c57600080fd5b81356001600160a01b038116811461038357600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156103e8576103e86103bf565b500190565b6000816000190483118215151615610407576104076103bf565b50029056fea2646970667358221220d008b4fc535b9a202de7899687a52e51983c6c120550b836c50ebc1c092429b464736f6c63430008090033

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.