ETH Price: $3,316.78 (-1.72%)

Contract

0xd48c6a5c3046A29a57dAd9B6453769c674B7d22F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer*167389032023-03-02 5:47:35631 days ago1677736055IN
0xd48c6a5c...674B7d22F
0 ETH0.0006409530
Transfer*147168232022-05-05 10:48:28932 days ago1651747708IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147168232022-05-05 10:48:28932 days ago1651747708IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147168232022-05-05 10:48:28932 days ago1651747708IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147168232022-05-05 10:48:28932 days ago1651747708IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*147167222022-05-05 10:24:27932 days ago1651746267IN
0xd48c6a5c...674B7d22F
0 ETH0.0004700322
Transfer*143826712022-03-14 4:46:28984 days ago1647233188IN
0xd48c6a5c...674B7d22F
0 ETH0.0003330815.59
Transfer*143585992022-03-10 10:34:00988 days ago1646908440IN
0xd48c6a5c...674B7d22F
0 ETH0.0003117114.59
Transfer*143585542022-03-10 10:23:37988 days ago1646907817IN
0xd48c6a5c...674B7d22F
0 ETH0.0003117114.59
Transfer*143585542022-03-10 10:23:37988 days ago1646907817IN
0xd48c6a5c...674B7d22F
0 ETH0.0003117114.59
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:
GasPriceBasedMinter

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : GasPriceBasedMinter.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

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

contract BellCurveParametersStorage {
    
    uint256 immutable public a;
    uint256 immutable public b;
    uint256 immutable public c;
    uint256 immutable public d;

    uint256 constant SIG_DIGITS = 3;

    constructor(uint256 _a, uint256 _b, uint256 _c, uint256 _d) {
      a = _a;
      b = _b;
      c = _c;
      d = _d;
    }

    function bellCurve(uint256 x) internal view returns (uint256 y) {
      uint256 decimals = 10 ** SIG_DIGITS;
      // since it is all uints, we will use a ternary to keep it positive 
      uint256 xDiffC = x > c ? (x - c) : (c - x);
      // this complex set of math gets us a bell curve with the ouput in SIG_DIGITS worth of decimals
      return (10 ** (18 - SIG_DIGITS)) * ((d * decimals * decimals) / (decimals + (((xDiffC * decimals) / a))**(2 * b) / decimals));
    }
}

contract GasPriceBasedMinter is BellCurveParametersStorage, Context, Ownable {
    ERC20Mintable public erc20;

    uint256 immutable public blockNumberUpTo;
    bytes32 constant ZERO_HASH = 0xbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a;

    constructor(uint256 _blockNumberUpTo, uint256 _a, uint256 _b, uint256 _c, uint256 _d) BellCurveParametersStorage(_a, _b, _c, _d) {
      blockNumberUpTo = _blockNumberUpTo;
    }

    function setErc20(address _erc20) public onlyOwner {
      erc20 = ERC20Mintable(_erc20);
    }

    function mintableTokenAtGasPrice(uint256 gasPrice)
      public
      view
      returns (uint256 amount)
    {
      amount = bellCurve(gasPrice);
    }

    fallback() external payable {
      require(block.number < blockNumberUpTo, "CAN'T $MINT ANYMORE");
      require(keccak256(msg.data) == ZERO_HASH, "CAN'T $MINT FROM MACHINE");
      require(msg.value == 0, "DON'T DONATE");
      uint256 amount = mintableTokenAtGasPrice(tx.gasprice);
      // mint amount to _msgSender
      erc20.mint(_msgSender(), amount);
    }
}

File 2 of 7 : ERC20Mintable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC20.sol";
import "./Ownable.sol";

contract ERC20Mintable is Ownable, ERC20 {
    address public minter;

    constructor (address minter_, string memory name_, string memory symbol_) ERC20(name_, symbol_) {
      minter = minter_;
    }

    function setMinter(address _minter) public onlyOwner {
      minter = _minter;
    }

    modifier onlyMinter() {
        require(minter == _msgSender(), "Only minter can call.");
        _;
    }


    function mint(address account, uint256 amount) onlyMinter public {
        _mint(account, amount);
    }
}

File 3 of 7 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 4 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interface/IERC20.sol";
import "./interface/IERC20Metadata.sol";
import "./utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

File 7 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_blockNumberUpTo","type":"uint256"},{"internalType":"uint256","name":"_a","type":"uint256"},{"internalType":"uint256","name":"_b","type":"uint256"},{"internalType":"uint256","name":"_c","type":"uint256"},{"internalType":"uint256","name":"_d","type":"uint256"}],"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"a","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"b","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockNumberUpTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"c","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"d","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20","outputs":[{"internalType":"contract ERC20Mintable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gasPrice","type":"uint256"}],"name":"mintableTokenAtGasPrice","outputs":[{"internalType":"uint256","name":"amount","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":"_erc20","type":"address"}],"name":"setErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040523480156200001257600080fd5b50604051620014b6380380620014b6833981810160405281019062000038919062000143565b8383838383608081815250508260a081815250508160c081815250508060e08181525050505050506000620000726200012460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508461010081815250505050505050620001e9565b600033905090565b6000815190506200013d81620001cf565b92915050565b600080600080600060a086880312156200015c57600080fd5b60006200016c888289016200012c565b95505060206200017f888289016200012c565b945050604062000192888289016200012c565b9350506060620001a5888289016200012c565b9250506080620001b8888289016200012c565b9150509295509295909350565b6000819050919050565b620001da81620001c5565b8114620001e657600080fd5b50565b60805160a05160c05160e051610100516112586200025e6000396000818160a3015261068a0152600081816106190152610a6b0152600081816106660152818161095e0152818161098601526109b601526000818161047c01526109e60152600081816104580152610a1301526112586000f3fe6080604052600436106100a05760003560e01c80638a054ac2116100645780638a054ac21461033e5780638da5cb5b14610369578063c3da42b814610394578063e7df9c33146103bf578063ee9b80a4146103ea578063f2fde38b14610413576100a1565b80630dbe671f146102695780634df7e3d0146102945780636ce4e908146102bf578063715018a6146102fc578063785e9e8614610313576100a1565b5b7f00000000000000000000000000000000000000000000000000000000000000004310610103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100fa90610cea565b60405180910390fd5b7fbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a60001b600036604051610138929190610c52565b604051809103902014610180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017790610d0a565b60405180910390fd5b600034146101c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ba90610d4a565b60405180910390fd5b60006101ce3a61043c565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961021661044e565b836040518363ffffffff1660e01b8152600401610234929190610c86565b600060405180830381600087803b15801561024e57600080fd5b505af1158015610262573d6000803e3d6000fd5b5050505050005b34801561027557600080fd5b5061027e610456565b60405161028b9190610d6a565b60405180910390f35b3480156102a057600080fd5b506102a961047a565b6040516102b69190610d6a565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190610b28565b61043c565b6040516102f39190610d6a565b60405180910390f35b34801561030857600080fd5b5061031161049e565b005b34801561031f57600080fd5b506103286105f1565b6040516103359190610caf565b60405180910390f35b34801561034a57600080fd5b50610353610617565b6040516103609190610d6a565b60405180910390f35b34801561037557600080fd5b5061037e61063b565b60405161038b9190610c6b565b60405180910390f35b3480156103a057600080fd5b506103a9610664565b6040516103b69190610d6a565b60405180910390f35b3480156103cb57600080fd5b506103d4610688565b6040516103e19190610d6a565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c9190610aff565b6106ac565b005b34801561041f57600080fd5b5061043a60048036038101906104359190610aff565b610785565b005b600061044782610947565b9050919050565b600033905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6104a661044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052a90610d2a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106b461044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073890610d2a565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61078d61044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081190610d2a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561088a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088190610cca565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806003600a6109589190610e7b565b905060007f000000000000000000000000000000000000000000000000000000000000000084116109b457837f00000000000000000000000000000000000000000000000000000000000000006109af9190610ff3565b6109e1565b7f0000000000000000000000000000000000000000000000000000000000000000846109e09190610ff3565b5b9050817f00000000000000000000000000000000000000000000000000000000000000006002610a119190610f99565b7f00000000000000000000000000000000000000000000000000000000000000008484610a3e9190610f99565b610a489190610df7565b610a529190610e7b565b610a5c9190610df7565b82610a679190610da1565b82837f0000000000000000000000000000000000000000000000000000000000000000610a949190610f99565b610a9e9190610f99565b610aa89190610df7565b60036012610ab69190610ff3565b600a610ac29190610e7b565b610acc9190610f99565b92505050919050565b600081359050610ae4816111f4565b92915050565b600081359050610af98161120b565b92915050565b600060208284031215610b1157600080fd5b6000610b1f84828501610ad5565b91505092915050565b600060208284031215610b3a57600080fd5b6000610b4884828501610aea565b91505092915050565b610b5a81611027565b82525050565b6000610b6c8385610d85565b9350610b79838584611087565b82840190509392505050565b610b8e81611063565b82525050565b6000610ba1602683610d90565b9150610bac82611101565b604082019050919050565b6000610bc4601383610d90565b9150610bcf82611150565b602082019050919050565b6000610be7601883610d90565b9150610bf282611179565b602082019050919050565b6000610c0a602083610d90565b9150610c15826111a2565b602082019050919050565b6000610c2d600c83610d90565b9150610c38826111cb565b602082019050919050565b610c4c81611059565b82525050565b6000610c5f828486610b60565b91508190509392505050565b6000602082019050610c806000830184610b51565b92915050565b6000604082019050610c9b6000830185610b51565b610ca86020830184610c43565b9392505050565b6000602082019050610cc46000830184610b85565b92915050565b60006020820190508181036000830152610ce381610b94565b9050919050565b60006020820190508181036000830152610d0381610bb7565b9050919050565b60006020820190508181036000830152610d2381610bda565b9050919050565b60006020820190508181036000830152610d4381610bfd565b9050919050565b60006020820190508181036000830152610d6381610c20565b9050919050565b6000602082019050610d7f6000830184610c43565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610dac82611059565b9150610db783611059565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610dec57610deb611096565b5b828201905092915050565b6000610e0282611059565b9150610e0d83611059565b925082610e1d57610e1c6110c5565b5b828204905092915050565b6000808291508390505b6001851115610e7257808604811115610e4e57610e4d611096565b5b6001851615610e5d5780820291505b8081029050610e6b856110f4565b9450610e32565b94509492505050565b6000610e8682611059565b9150610e9183611059565b9250610ebe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610ec6565b905092915050565b600082610ed65760019050610f92565b81610ee45760009050610f92565b8160018114610efa5760028114610f0457610f33565b6001915050610f92565b60ff841115610f1657610f15611096565b5b8360020a915084821115610f2d57610f2c611096565b5b50610f92565b5060208310610133831016604e8410600b8410161715610f685782820a905083811115610f6357610f62611096565b5b610f92565b610f758484846001610e28565b92509050818404811115610f8c57610f8b611096565b5b81810290505b9392505050565b6000610fa482611059565b9150610faf83611059565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610fe857610fe7611096565b5b828202905092915050565b6000610ffe82611059565b915061100983611059565b92508282101561101c5761101b611096565b5b828203905092915050565b600061103282611039565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061106e82611075565b9050919050565b600061108082611039565b9050919050565b82818337600083830152505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008160011c9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43414e275420244d494e5420414e594d4f524500000000000000000000000000600082015250565b7f43414e275420244d494e542046524f4d204d414348494e450000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f444f4e275420444f4e4154450000000000000000000000000000000000000000600082015250565b6111fd81611027565b811461120857600080fd5b50565b61121481611059565b811461121f57600080fd5b5056fea2646970667358221220720fd6b93a1e203b449d25577faad519c57ed4b49410fb987b2e1663204a325764736f6c634300080400330000000000000000000000000000000000000000000000000000000000c5d4880000000000000000000000000000000000000000000000000000000165a0bc00000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000003a13c85800000000000000000000000000000000000000000000000000000000000000617

Deployed Bytecode

0x6080604052600436106100a05760003560e01c80638a054ac2116100645780638a054ac21461033e5780638da5cb5b14610369578063c3da42b814610394578063e7df9c33146103bf578063ee9b80a4146103ea578063f2fde38b14610413576100a1565b80630dbe671f146102695780634df7e3d0146102945780636ce4e908146102bf578063715018a6146102fc578063785e9e8614610313576100a1565b5b7f0000000000000000000000000000000000000000000000000000000000c5d4884310610103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100fa90610cea565b60405180910390fd5b7fbc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a60001b600036604051610138929190610c52565b604051809103902014610180576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017790610d0a565b60405180910390fd5b600034146101c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ba90610d4a565b60405180910390fd5b60006101ce3a61043c565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961021661044e565b836040518363ffffffff1660e01b8152600401610234929190610c86565b600060405180830381600087803b15801561024e57600080fd5b505af1158015610262573d6000803e3d6000fd5b5050505050005b34801561027557600080fd5b5061027e610456565b60405161028b9190610d6a565b60405180910390f35b3480156102a057600080fd5b506102a961047a565b6040516102b69190610d6a565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190610b28565b61043c565b6040516102f39190610d6a565b60405180910390f35b34801561030857600080fd5b5061031161049e565b005b34801561031f57600080fd5b506103286105f1565b6040516103359190610caf565b60405180910390f35b34801561034a57600080fd5b50610353610617565b6040516103609190610d6a565b60405180910390f35b34801561037557600080fd5b5061037e61063b565b60405161038b9190610c6b565b60405180910390f35b3480156103a057600080fd5b506103a9610664565b6040516103b69190610d6a565b60405180910390f35b3480156103cb57600080fd5b506103d4610688565b6040516103e19190610d6a565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c9190610aff565b6106ac565b005b34801561041f57600080fd5b5061043a60048036038101906104359190610aff565b610785565b005b600061044782610947565b9050919050565b600033905090565b7f0000000000000000000000000000000000000000000000000000000165a0bc0081565b7f000000000000000000000000000000000000000000000000000000000000000181565b6104a661044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052a90610d2a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000061781565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f00000000000000000000000000000000000000000000000000000003a13c858081565b7f0000000000000000000000000000000000000000000000000000000000c5d48881565b6106b461044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073890610d2a565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61078d61044e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081190610d2a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561088a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088190610cca565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806003600a6109589190610e7b565b905060007f00000000000000000000000000000000000000000000000000000003a13c858084116109b457837f00000000000000000000000000000000000000000000000000000003a13c85806109af9190610ff3565b6109e1565b7f00000000000000000000000000000000000000000000000000000003a13c8580846109e09190610ff3565b5b9050817f00000000000000000000000000000000000000000000000000000000000000016002610a119190610f99565b7f0000000000000000000000000000000000000000000000000000000165a0bc008484610a3e9190610f99565b610a489190610df7565b610a529190610e7b565b610a5c9190610df7565b82610a679190610da1565b82837f0000000000000000000000000000000000000000000000000000000000000617610a949190610f99565b610a9e9190610f99565b610aa89190610df7565b60036012610ab69190610ff3565b600a610ac29190610e7b565b610acc9190610f99565b92505050919050565b600081359050610ae4816111f4565b92915050565b600081359050610af98161120b565b92915050565b600060208284031215610b1157600080fd5b6000610b1f84828501610ad5565b91505092915050565b600060208284031215610b3a57600080fd5b6000610b4884828501610aea565b91505092915050565b610b5a81611027565b82525050565b6000610b6c8385610d85565b9350610b79838584611087565b82840190509392505050565b610b8e81611063565b82525050565b6000610ba1602683610d90565b9150610bac82611101565b604082019050919050565b6000610bc4601383610d90565b9150610bcf82611150565b602082019050919050565b6000610be7601883610d90565b9150610bf282611179565b602082019050919050565b6000610c0a602083610d90565b9150610c15826111a2565b602082019050919050565b6000610c2d600c83610d90565b9150610c38826111cb565b602082019050919050565b610c4c81611059565b82525050565b6000610c5f828486610b60565b91508190509392505050565b6000602082019050610c806000830184610b51565b92915050565b6000604082019050610c9b6000830185610b51565b610ca86020830184610c43565b9392505050565b6000602082019050610cc46000830184610b85565b92915050565b60006020820190508181036000830152610ce381610b94565b9050919050565b60006020820190508181036000830152610d0381610bb7565b9050919050565b60006020820190508181036000830152610d2381610bda565b9050919050565b60006020820190508181036000830152610d4381610bfd565b9050919050565b60006020820190508181036000830152610d6381610c20565b9050919050565b6000602082019050610d7f6000830184610c43565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610dac82611059565b9150610db783611059565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610dec57610deb611096565b5b828201905092915050565b6000610e0282611059565b9150610e0d83611059565b925082610e1d57610e1c6110c5565b5b828204905092915050565b6000808291508390505b6001851115610e7257808604811115610e4e57610e4d611096565b5b6001851615610e5d5780820291505b8081029050610e6b856110f4565b9450610e32565b94509492505050565b6000610e8682611059565b9150610e9183611059565b9250610ebe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484610ec6565b905092915050565b600082610ed65760019050610f92565b81610ee45760009050610f92565b8160018114610efa5760028114610f0457610f33565b6001915050610f92565b60ff841115610f1657610f15611096565b5b8360020a915084821115610f2d57610f2c611096565b5b50610f92565b5060208310610133831016604e8410600b8410161715610f685782820a905083811115610f6357610f62611096565b5b610f92565b610f758484846001610e28565b92509050818404811115610f8c57610f8b611096565b5b81810290505b9392505050565b6000610fa482611059565b9150610faf83611059565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610fe857610fe7611096565b5b828202905092915050565b6000610ffe82611059565b915061100983611059565b92508282101561101c5761101b611096565b5b828203905092915050565b600061103282611039565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061106e82611075565b9050919050565b600061108082611039565b9050919050565b82818337600083830152505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008160011c9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f43414e275420244d494e5420414e594d4f524500000000000000000000000000600082015250565b7f43414e275420244d494e542046524f4d204d414348494e450000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f444f4e275420444f4e4154450000000000000000000000000000000000000000600082015250565b6111fd81611027565b811461120857600080fd5b50565b61121481611059565b811461121f57600080fd5b5056fea2646970667358221220720fd6b93a1e203b449d25577faad519c57ed4b49410fb987b2e1663204a325764736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000c5d4880000000000000000000000000000000000000000000000000000000165a0bc00000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000003a13c85800000000000000000000000000000000000000000000000000000000000000617

-----Decoded View---------------
Arg [0] : _blockNumberUpTo (uint256): 12965000
Arg [1] : _a (uint256): 6000000000
Arg [2] : _b (uint256): 1
Arg [3] : _c (uint256): 15590000000
Arg [4] : _d (uint256): 1559

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000c5d488
Arg [1] : 0000000000000000000000000000000000000000000000000000000165a0bc00
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 00000000000000000000000000000000000000000000000000000003a13c8580
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000617


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.