Contract 0x808a84063a586e680b7699be20a4ec958adfdf86

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x941ea98b98c182884d7e4ab2c2b67a38a91f65e42113bd7d2cbddc11be8a616eWithdraw Rewards339767032022-10-30 19:41:0736 days 1 hr agoJones DAO: Deployer IN  0x808a84063a586e680b7699be20a4ec958adfdf860 ETH0.00001487
0xeeed60627a3886edd9b3c6e58997aa43a6137aae4bcf291b9198dc8e610115f0Transfer Ownersh...112644762022-05-05 16:34:16214 days 5 hrs agoJones DAO: Deployer IN  0x808a84063a586e680b7699be20a4ec958adfdf860 ETH0.000313418166 ETH
0x5cbd9bcbcfc7c1a34ce576ff13930e7b44c13150fe2e35633e3e61844b292c0eUpdate Milliner112644732022-05-05 16:34:16214 days 5 hrs agoJones DAO: Deployer IN  0x808a84063a586e680b7699be20a4ec958adfdf860 ETH0.000346455804 ETH
0x20a7843181a4c6419eddfcd5b666fe92e2e2708c03a7e52d04ef5e381ba3ac620x60806040112644252022-05-05 16:33:27214 days 5 hrs agoJones DAO: Deployer IN  Create: HatDistributionCenter0 ETH0.00565718774 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x941ea98b98c182884d7e4ab2c2b67a38a91f65e42113bd7d2cbddc11be8a616e339767032022-10-30 19:41:0736 days 1 hr ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x72fe89bf7db89a26421b16dae908c8cb07e91a5bd38a0d69a0c6f6debfd2ecba339765462022-10-30 19:40:1036 days 1 hr ago Jones DAO: Protocol Treasury Multisig 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x026cd4a2870c256a0a4bc14c407bd5581e010f8e85c0ce0b3f0a713a49ecd72e339635372022-10-30 18:32:1136 days 3 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x026cd4a2870c256a0a4bc14c407bd5581e010f8e85c0ce0b3f0a713a49ecd72e339635372022-10-30 18:32:1136 days 3 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x5bb4726d885338d93776ba7f9b787ba136f90a42dc9ba70f8e5ad79142904989339491762022-10-30 17:19:5636 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x5bb4726d885338d93776ba7f9b787ba136f90a42dc9ba70f8e5ad79142904989339491762022-10-30 17:19:5636 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x0550b77aadb66787d63cf6b0bfd155a5b5871be5ee39c2bfe4f2525ba8424dba339436392022-10-30 16:54:0336 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x0550b77aadb66787d63cf6b0bfd155a5b5871be5ee39c2bfe4f2525ba8424dba339436392022-10-30 16:54:0336 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0xce4ef3676fa1078a89d28077b4c7bcec2b538fe35d0624b83abd4ebd0b1c3f7f339434262022-10-30 16:53:0236 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0xce4ef3676fa1078a89d28077b4c7bcec2b538fe35d0624b83abd4ebd0b1c3f7f339434262022-10-30 16:53:0236 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x4f124a8c2668ff873d54cbfc3c0012caa118c3c67052f374890713d4e683d7d6339434012022-10-30 16:52:5536 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x4f124a8c2668ff873d54cbfc3c0012caa118c3c67052f374890713d4e683d7d6339434012022-10-30 16:52:5536 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x6e2a93a8b22a8747612be25841db79ac2149c013d0b1e0f273501dda370caf20339411702022-10-30 16:42:5036 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x6e2a93a8b22a8747612be25841db79ac2149c013d0b1e0f273501dda370caf20339411702022-10-30 16:42:5036 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x84bc7b8a737a5812635744cc4b641ff4f32de21fd73e2c932458e2e933e197ff339406502022-10-30 16:40:4136 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x84bc7b8a737a5812635744cc4b641ff4f32de21fd73e2c932458e2e933e197ff339406502022-10-30 16:40:4136 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x9a2d2113f705db343b97f0d1dad0b3ab7c4f49b57d83918ca868d6ce8c4dbe35339401032022-10-30 16:37:5936 days 4 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x9a2d2113f705db343b97f0d1dad0b3ab7c4f49b57d83918ca868d6ce8c4dbe35339401032022-10-30 16:37:5936 days 4 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x052f02856a546354c4439ec6440097dbfd83a500ba7bb9887e1060bb3848c5ec339390862022-10-30 16:33:3436 days 5 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x052f02856a546354c4439ec6440097dbfd83a500ba7bb9887e1060bb3848c5ec339390862022-10-30 16:33:3436 days 5 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x33addb899a0764ef66385b2f64655362086417c4b69b4c70f1c67d2f5147c2e8339284952022-10-30 15:46:3536 days 5 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0x33addb899a0764ef66385b2f64655362086417c4b69b4c70f1c67d2f5147c2e8339284952022-10-30 15:46:3536 days 5 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0xe2eab905b4d576118541df5ef52bbbf4d9d4e3bb370f2dc28c1e8d5cbc291366339247872022-10-30 15:30:0536 days 6 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
0xe2eab905b4d576118541df5ef52bbbf4d9d4e3bb370f2dc28c1e8d5cbc291366339247872022-10-30 15:30:0536 days 6 hrs ago 0xb94d1959084081c5a11c460012ab522f5a0fd756 0x808a84063a586e680b7699be20a4ec958adfdf860 ETH
0x1066f41b5a665bab234c3f50a57883c04505cbe82bf0ce71ad07c387e59e57c6339041812022-10-30 13:57:4136 days 7 hrs ago 0x808a84063a586e680b7699be20a4ec958adfdf86 Jones DAO: JONES Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HatDistributionCenter

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : HatDistributionCenter.sol
// SPDX-License-Identifier: GPL-3.0
/*                            ******@@@@@@@@@**@*                               
                        ***@@@@@@@@@@@@@@@@@@@@@@**                             
                     *@@@@@@**@@@@@@@@@@@@@@@@@*@@@*                            
                  *@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@@*@**                          
                 *@@@@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@*                         
                **@@@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@**                       
                **@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@*                      
                **@@@@@@@@@@@@@@@@*************************                    
                **@@@@@@@@***********************************                   
                 *@@@***********************&@@@@@@@@@@@@@@@****,    ******@@@@*
           *********************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@************* 
      ***@@@@@@@@@@@@@@@*****@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@****@@*********      
   **@@@@@**********************@@@@*****************#@@@@**********            
  *@@******************************************************                     
 *@************************************                                         
 @*******************************                                               
 *@*************************                                                    
   ********************* 
   
    /$$$$$                                               /$$$$$$$   /$$$$$$   /$$$$$$ 
   |__  $$                                              | $$__  $$ /$$__  $$ /$$__  $$
      | $$  /$$$$$$  /$$$$$$$   /$$$$$$   /$$$$$$$      | $$  \ $$| $$  \ $$| $$  \ $$
      | $$ /$$__  $$| $$__  $$ /$$__  $$ /$$_____/      | $$  | $$| $$$$$$$$| $$  | $$
 /$$  | $$| $$  \ $$| $$  \ $$| $$$$$$$$|  $$$$$$       | $$  | $$| $$__  $$| $$  | $$
| $$  | $$| $$  | $$| $$  | $$| $$_____/ \____  $$      | $$  | $$| $$  | $$| $$  | $$
|  $$$$$$/|  $$$$$$/| $$  | $$|  $$$$$$$ /$$$$$$$/      | $$$$$$$/| $$  | $$|  $$$$$$/
 \______/  \______/ |__/  |__/ \_______/|_______/       |_______/ |__/  |__/ \______/                                      
*/

pragma solidity ^0.8.2;

// Libraries
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

// Interfaces
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/* Reponsible for the distribution of hats produced by the Milliner */
contract HatDistributionCenter is Ownable {
    using SafeERC20 for IERC20;

    address public milliner;
    IERC20 public rewardToken;

    constructor(address _rewardToken) {
        rewardToken = IERC20(_rewardToken);
    }

    // ============================== Milliner Functions ==============================

    function sendRewards(uint256 _amount, address _user) public onlyMilliner {
        rewardToken.safeTransfer(_user, _amount);
        emit Shipped(_user, _amount);
    }

    // ============================== Admin Functions ==============================

    function updateMilliner(address _milliner) public onlyOwner {
        milliner = _milliner;
    }

    function withdrawRewards(uint256 _amount, address _destination)
        public
        onlyOwner
    {
        rewardToken.safeTransfer(_destination, _amount);
    }

    // ============================== Modifiers ==============================

    modifier onlyMilliner() {
        if (msg.sender != milliner) {
            revert Only_Milliner();
        }
        _;
    }

    // ============================== Erors ==============================

    error Only_Milliner(); // Only milliner
    error Zero_Address(); // Zero address

    // ============================== Events ==============================

    event Shipped(address user, uint256 amount);
}

File 2 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 4 of 6 : 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 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Only_Milliner","type":"error"},{"inputs":[],"name":"Zero_Address","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Shipped","type":"event"},{"inputs":[],"name":"milliner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"sendRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_milliner","type":"address"}],"name":"updateMilliner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_destination","type":"address"}],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620011fe380380620011fe8339818101604052810190620000379190620001d5565b620000576200004b6200009f60201b60201c565b620000a760201b60201c565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000207565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200019d8262000170565b9050919050565b620001af8162000190565b8114620001bb57600080fd5b50565b600081519050620001cf81620001a4565b92915050565b600060208284031215620001ee57620001ed6200016b565b5b6000620001fe84828501620001be565b91505092915050565b610fe780620002176000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063ee5651af1161005b578063ee5651af146100ed578063f2fde38b1461010b578063f3301f6b14610127578063f7c618c11461014357610088565b8063715018a61461008d57806385a9e759146100975780638da5cb5b146100b3578063d1168db6146100d1575b600080fd5b610095610161565b005b6100b160048036038101906100ac9190610a26565b6101e9565b005b6100bb6102a9565b6040516100c89190610a62565b60405180910390f35b6100eb60048036038101906100e69190610ab3565b6102d2565b005b6100f56103e3565b6040516101029190610a62565b60405180910390f35b61012560048036038101906101209190610a26565b610409565b005b610141600480360381019061013c9190610ab3565b610501565b005b61014b6105ce565b6040516101589190610b52565b60405180910390f35b6101696105f4565b73ffffffffffffffffffffffffffffffffffffffff166101876102a9565b73ffffffffffffffffffffffffffffffffffffffff16146101dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101d490610bca565b60405180910390fd5b6101e760006105fc565b565b6101f16105f4565b73ffffffffffffffffffffffffffffffffffffffff1661020f6102a9565b73ffffffffffffffffffffffffffffffffffffffff1614610265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025c90610bca565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610359576040517f100d7fce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103a68183600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166106c09092919063ffffffff16565b7f79075bc8e01a054a9d98a26a8da0ef5a887c4bbf1241ac94cc7c69a0d62ac39c81836040516103d7929190610bf9565b60405180910390a15050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6104116105f4565b73ffffffffffffffffffffffffffffffffffffffff1661042f6102a9565b73ffffffffffffffffffffffffffffffffffffffff1614610485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047c90610bca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ec90610c94565b60405180910390fd5b6104fe816105fc565b50565b6105096105f4565b73ffffffffffffffffffffffffffffffffffffffff166105276102a9565b73ffffffffffffffffffffffffffffffffffffffff161461057d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057490610bca565b60405180910390fd5b6105ca8183600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166106c09092919063ffffffff16565b5050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6107418363a9059cbb60e01b84846040516024016106df929190610bf9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610746565b505050565b60006107a8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661080d9092919063ffffffff16565b905060008151111561080857808060200190518101906107c89190610cec565b610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90610d8b565b60405180910390fd5b5b505050565b606061081c8484600085610825565b90509392505050565b60608247101561086a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086190610e1d565b60405180910390fd5b61087385610939565b6108b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a990610e89565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516108db9190610f23565b60006040518083038185875af1925050503d8060008114610918576040519150601f19603f3d011682016040523d82523d6000602084013e61091d565b606091505b509150915061092d82828661095c565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561096c578290506109bc565b60008351111561097f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b39190610f8f565b60405180910390fd5b9392505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109f3826109c8565b9050919050565b610a03816109e8565b8114610a0e57600080fd5b50565b600081359050610a20816109fa565b92915050565b600060208284031215610a3c57610a3b6109c3565b5b6000610a4a84828501610a11565b91505092915050565b610a5c816109e8565b82525050565b6000602082019050610a776000830184610a53565b92915050565b6000819050919050565b610a9081610a7d565b8114610a9b57600080fd5b50565b600081359050610aad81610a87565b92915050565b60008060408385031215610aca57610ac96109c3565b5b6000610ad885828601610a9e565b9250506020610ae985828601610a11565b9150509250929050565b6000819050919050565b6000610b18610b13610b0e846109c8565b610af3565b6109c8565b9050919050565b6000610b2a82610afd565b9050919050565b6000610b3c82610b1f565b9050919050565b610b4c81610b31565b82525050565b6000602082019050610b676000830184610b43565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610bb4602083610b6d565b9150610bbf82610b7e565b602082019050919050565b60006020820190508181036000830152610be381610ba7565b9050919050565b610bf381610a7d565b82525050565b6000604082019050610c0e6000830185610a53565b610c1b6020830184610bea565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610c7e602683610b6d565b9150610c8982610c22565b604082019050919050565b60006020820190508181036000830152610cad81610c71565b9050919050565b60008115159050919050565b610cc981610cb4565b8114610cd457600080fd5b50565b600081519050610ce681610cc0565b92915050565b600060208284031215610d0257610d016109c3565b5b6000610d1084828501610cd7565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000610d75602a83610b6d565b9150610d8082610d19565b604082019050919050565b60006020820190508181036000830152610da481610d68565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000610e07602683610b6d565b9150610e1282610dab565b604082019050919050565b60006020820190508181036000830152610e3681610dfa565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000610e73601d83610b6d565b9150610e7e82610e3d565b602082019050919050565b60006020820190508181036000830152610ea281610e66565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015610edd578082015181840152602081019050610ec2565b83811115610eec576000848401525b50505050565b6000610efd82610ea9565b610f078185610eb4565b9350610f17818560208601610ebf565b80840191505092915050565b6000610f2f8284610ef2565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000610f6182610f3a565b610f6b8185610b6d565b9350610f7b818560208601610ebf565b610f8481610f45565b840191505092915050565b60006020820190508181036000830152610fa98184610f56565b90509291505056fea2646970667358221220ffaa6146b3e288a88233b1630db181f1132df7d229a8706f5732c0d86d12dba764736f6c634300080a003300000000000000000000000010393c20975cf177a3513071bc110f7962cd67da

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

00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x10393c20975cf177a3513071bc110f7962cd67da

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.