Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- MintableToken
- Optimization enabled
- true
- Compiler version
- v0.8.19+commit.7dd6d404
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2025-08-25T20:40:18.477842Z
contracts/Mine.sol
// SPDX-License-Identifier: MIT
/*
This token serves to reward users with an ETH balance on DBK Chain
It is a simple Proof of Balance check that can be repeated every minute
The amount of tokens-per-ETH generated halves every 210k tokens minted
*/
// OpenZeppelin Contracts (last updated v4.9.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;
}
}
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
/**
* @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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
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);
}
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way in which tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts 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 {approve}.
*
* NOTE: {_} is an array of function parameters that are not used in the function
* but are kept for compatibility with the original OpenZeppelin interface.
*/
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}.
*
* 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 default value returned by this function, unless
* it's 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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
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}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
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}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This 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:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
*/
function _transfer(address from, address to, uint256 value) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, value);
uint256 fromBalance = _balances[from];
require(fromBalance >= value, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - value;
}
_balances[to] += value;
emit Transfer(from, to, value);
_afterTokenTransfer(from, to, value);
}
/** @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relines on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, value);
_totalSupply += value;
_balances[account] += value;
emit Transfer(address(0), account, value);
_afterTokenTransfer(address(0), account, value);
}
/**
* @dev Destroys `value` amount of tokens from `account`, by transferring it to address(0).
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), value);
uint256 accountBalance = _balances[account];
require(accountBalance >= value, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - value;
}
_totalSupply -= value;
emit Transfer(account, address(0), value);
_afterTokenTransfer(account, address(0), value);
}
/**
* @dev Sets `value` 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 value) 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] = value;
emit Approval(owner, spender, value);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= value, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - value);
}
}
}
/**
* @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, `value` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `value` tokens will be minted for `to`.
* - when `to` is zero, `value` 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 value) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `value` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `value` tokens will be minted for `to`.
* - when `to` is zero, `value` 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 _afterTokenTransfer(address from, address to, uint256 value) internal virtual {}
}
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
if (_status == _ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}
contract MintableToken is ERC20, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 21000000 * 10**18; // 21 million tokens
uint256 public constant MIN_ETH_BALANCE = 0.01 ether;
uint256 public constant MINT_COOLDOWN = 60 seconds; // 1 minute
uint256 public constant INITIAL_MULTIPLIER = 65536;
uint256 public constant HALVING_INTERVAL = 210000 * 10**18; // Halve every 210k tokens minted
uint256 public currentMultiplier = INITIAL_MULTIPLIER;
uint256 public nextHalvingThreshold = HALVING_INTERVAL;
uint256 public totalMinted = 0;
mapping(address => uint256) public lastMintTime;
event Halving(uint256 newMultiplier, uint256 nextThreshold);
constructor() ERC20("Mine on DBK Chain", "MINE") {}
function mint() external nonReentrant {
require(totalSupply() < MAX_SUPPLY, "Max supply reached");
require(msg.sender.balance >= MIN_ETH_BALANCE, "Insufficient ETH balance");
require(block.timestamp >= lastMintTime[msg.sender] + MINT_COOLDOWN, "Mint cooldown active");
// Calculate mint amount based on ETH balance and current multiplier
uint256 ethBalance = msg.sender.balance;
uint256 mintAmount = ethBalance * currentMultiplier;
// Check if we need to halve the multiplier
if (totalMinted + mintAmount >= nextHalvingThreshold && currentMultiplier > 1) {
_halveMultiplier();
}
// Ensure we don't exceed max supply
uint256 remainingSupply = MAX_SUPPLY - totalSupply();
if (mintAmount > remainingSupply) {
mintAmount = remainingSupply;
}
lastMintTime[msg.sender] = block.timestamp;
totalMinted += mintAmount;
_mint(msg.sender, mintAmount);
}
function _halveMultiplier() internal {
// Halve the multiplier (minimum 1)
uint256 newMultiplier = currentMultiplier / 2;
if (newMultiplier < 1) {
newMultiplier = 1;
}
currentMultiplier = newMultiplier;
nextHalvingThreshold += HALVING_INTERVAL;
emit Halving(newMultiplier, nextHalvingThreshold);
}
// Helper function to check if an address can mint
function canMint(address account) external view returns (bool) {
return block.timestamp >= lastMintTime[account] + MINT_COOLDOWN &&
account.balance >= MIN_ETH_BALANCE &&
totalSupply() < MAX_SUPPLY;
}
// Helper function to get next mint time for an address
function getNextMintTime(address account) external view returns (uint256) {
return lastMintTime[account] + MINT_COOLDOWN;
}
// Helper function to calculate mint amount for an address
function getMintAmount(address account) external view returns (uint256) {
uint256 ethBalance = account.balance;
uint256 mintAmount = ethBalance * currentMultiplier;
uint256 remainingSupply = MAX_SUPPLY - totalSupply();
return mintAmount > remainingSupply ? remainingSupply : mintAmount;
}
// Get current emission details
function getEmissionInfo() external view returns (
uint256 multiplier,
uint256 nextHalvingAt,
uint256 tokensUntilHalving,
uint256 halvingCount
) {
multiplier = currentMultiplier;
nextHalvingAt = nextHalvingThreshold;
tokensUntilHalving = nextHalvingThreshold > totalMinted ? nextHalvingThreshold - totalMinted : 0;
halvingCount = (nextHalvingThreshold - HALVING_INTERVAL) / HALVING_INTERVAL;
}
// Override to prevent transfers to zero address
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
require(to != address(0), "MintableToken: transfer to the zero address");
}
}
Compiler Settings
{"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Halving","inputs":[{"type":"uint256","name":"newMultiplier","internalType":"uint256","indexed":false},{"type":"uint256","name":"nextThreshold","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"HALVING_INTERVAL","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"INITIAL_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_SUPPLY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MINT_COOLDOWN","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_ETH_BALANCE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"canMint","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentMultiplier","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"multiplier","internalType":"uint256"},{"type":"uint256","name":"nextHalvingAt","internalType":"uint256"},{"type":"uint256","name":"tokensUntilHalving","internalType":"uint256"},{"type":"uint256","name":"halvingCount","internalType":"uint256"}],"name":"getEmissionInfo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMintAmount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNextMintTime","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastMintTime","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nextHalvingThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalMinted","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]}]
Contract Creation Code
0x608060405262010000600655692c781f708c509f40000060075560006008553480156200002b57600080fd5b506040518060400160405280601181526020017026b4b7329037b7102221259021b430b4b760791b815250604051806040016040528060048152602001634d494e4560e01b815250816003908162000084919062000146565b50600462000093828262000146565b505060016005555062000212565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000cc57607f821691505b602082108103620000ed57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200014157600081815260208120601f850160051c810160208610156200011c5750805b601f850160051c820191505b818110156200013d5782815560010162000128565b5050505b505050565b81516001600160401b03811115620001625762000162620000a1565b6200017a81620001738454620000b7565b84620000f3565b602080601f831160018114620001b25760008415620001995750858301515b600019600386901b1c1916600185901b1785556200013d565b600085815260208120601f198616915b82811015620001e357888601518255948401946001909101908401620001c2565b5085821015620002025787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610ed080620002226000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80636fbaaa1e116100c3578063a9059cbb1161007c578063a9059cbb14610295578063c2ba4744146102a8578063d12ececf146102bb578063dd62ed3e146102e3578063f7ee7a431461031c578063fcf85bb41461032457600080fd5b80636fbaaa1e1461022c57806370a082311461023557806395d89b411461025e5780639db78604146102665780639fcbf58114610279578063a2309ff81461028c57600080fd5b80632895f1c1116101155780632895f1c1146101c2578063313ce567146101d057806332cb6b0c146101df5780635fd9491d146101f15780636aa71d18146102025780636f0b8fe81461022257600080fd5b806306fdde0314610152578063095ea7b3146101705780631249c58b1461019357806318160ddd1461019d57806323b872dd146101af575b600080fd5b61015a61032d565b6040516101679190610cc6565b60405180910390f35b61018361017e366004610d30565b6103bf565b6040519015158152602001610167565b61019b6103d9565b005b6002545b604051908152602001610167565b6101836101bd366004610d5a565b6105ab565b6101a1662386f26fc1000081565b60405160128152602001610167565b6101a16a115eec47f6cf7e3500000081565b6101a1692c781f708c509f40000081565b6101a1610210366004610d96565b60096020526000908152604090205481565b6101a16201000081565b6101a160065481565b6101a1610243366004610d96565b6001600160a01b031660009081526020819052604090205490565b61015a6105cf565b6101a1610274366004610d96565b6105de565b6101a1610287366004610d96565b610603565b6101a160085481565b6101836102a3366004610d30565b61065d565b6101836102b6366004610d96565b61066b565b6102c36106d3565b604080519485526020850193909352918301526060820152608001610167565b6101a16102f1366004610db8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101a1603c81565b6101a160075481565b60606003805461033c90610deb565b80601f016020809104026020016040519081016040528092919081815260200182805461036890610deb565b80156103b55780601f1061038a576101008083540402835291602001916103b5565b820191906000526020600020905b81548152906001019060200180831161039857829003601f168201915b5050505050905090565b6000336103cd81858561072b565b60019150505b92915050565b6103e161084f565b6a115eec47f6cf7e350000006103f660025490565b1061043d5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064015b60405180910390fd5b662386f26fc10000333110156104955760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482062616c616e636500000000000000006044820152606401610434565b336000908152600960205260409020546104b190603c90610e3b565b4210156104f75760405162461bcd60e51b81526020600482015260146024820152734d696e7420636f6f6c646f776e2061637469766560601b6044820152606401610434565b60065433319060009061050a9083610e4e565b90506007548160085461051d9190610e3b565b1015801561052d57506001600654115b1561053a5761053a610879565b600061054560025490565b61055a906a115eec47f6cf7e35000000610e65565b905080821115610568578091505b3360009081526009602052604081204290556008805484929061058c908490610e3b565b9091555061059c90503383610901565b5050506105a96001600555565b565b6000336105b98582856109ec565b6105c4858585610a7e565b506001949350505050565b60606004805461033c90610deb565b6001600160a01b0381166000908152600960205260408120546103d390603c90610e3b565b6006546000906001600160a01b038316319082906106219083610e4e565b9050600061062e60025490565b610643906a115eec47f6cf7e35000000610e65565b90508082116106525781610654565b805b95945050505050565b6000336103cd818585610a7e565b6001600160a01b03811660009081526009602052604081205461069090603c90610e3b565b42101580156106b05750662386f26fc10000826001600160a01b03163110155b80156103d357506a115eec47f6cf7e350000006106cc60025490565b1092915050565b600654600754600854600090819083116106ee5760006106fe565b6008546007546106fe9190610e65565b9150692c781f708c509f400000806007546107199190610e65565b6107239190610e78565b905090919293565b6001600160a01b03831661078d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610434565b6001600160a01b0382166107ee5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610434565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60026005540361087257604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b6000600260065461088a9190610e78565b90506001811015610899575060015b80600681905550692c781f708c509f400000600760008282546108bc9190610e3b565b90915550506007546040805183815260208101929092527f394823b0bcaf78cd8f5876a52c05dbab91512a05f5da2a31e239a11ab66d605f910160405180910390a150565b6001600160a01b0382166109575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610434565b61096360008383610c57565b80600260008282546109759190610e3b565b90915550506001600160a01b038216600090815260208190526040812080548392906109a2908490610e3b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a785781811015610a6b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610434565b610a78848484840361072b565b50505050565b6001600160a01b038316610ae25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610434565b6001600160a01b038216610b445760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610434565b610b4f838383610c57565b6001600160a01b03831660009081526020819052604090205481811015610bc75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610434565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610bfe908490610e3b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c4a91815260200190565b60405180910390a3610a78565b6001600160a01b038216610cc15760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c65546f6b656e3a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b6064820152608401610434565b505050565b600060208083528351808285015260005b81811015610cf357858101830151858201604001528201610cd7565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d2b57600080fd5b919050565b60008060408385031215610d4357600080fd5b610d4c83610d14565b946020939093013593505050565b600080600060608486031215610d6f57600080fd5b610d7884610d14565b9250610d8660208501610d14565b9150604084013590509250925092565b600060208284031215610da857600080fd5b610db182610d14565b9392505050565b60008060408385031215610dcb57600080fd5b610dd483610d14565b9150610de260208401610d14565b90509250929050565b600181811c90821680610dff57607f821691505b602082108103610e1f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d3576103d3610e25565b80820281158282048414176103d3576103d3610e25565b818103818111156103d3576103d3610e25565b600082610e9557634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122080d37c9aa0dd1dc015922528ca8bc24f1bb4b930d14ced4427c150572ac0831e64736f6c63430008130033
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80636fbaaa1e116100c3578063a9059cbb1161007c578063a9059cbb14610295578063c2ba4744146102a8578063d12ececf146102bb578063dd62ed3e146102e3578063f7ee7a431461031c578063fcf85bb41461032457600080fd5b80636fbaaa1e1461022c57806370a082311461023557806395d89b411461025e5780639db78604146102665780639fcbf58114610279578063a2309ff81461028c57600080fd5b80632895f1c1116101155780632895f1c1146101c2578063313ce567146101d057806332cb6b0c146101df5780635fd9491d146101f15780636aa71d18146102025780636f0b8fe81461022257600080fd5b806306fdde0314610152578063095ea7b3146101705780631249c58b1461019357806318160ddd1461019d57806323b872dd146101af575b600080fd5b61015a61032d565b6040516101679190610cc6565b60405180910390f35b61018361017e366004610d30565b6103bf565b6040519015158152602001610167565b61019b6103d9565b005b6002545b604051908152602001610167565b6101836101bd366004610d5a565b6105ab565b6101a1662386f26fc1000081565b60405160128152602001610167565b6101a16a115eec47f6cf7e3500000081565b6101a1692c781f708c509f40000081565b6101a1610210366004610d96565b60096020526000908152604090205481565b6101a16201000081565b6101a160065481565b6101a1610243366004610d96565b6001600160a01b031660009081526020819052604090205490565b61015a6105cf565b6101a1610274366004610d96565b6105de565b6101a1610287366004610d96565b610603565b6101a160085481565b6101836102a3366004610d30565b61065d565b6101836102b6366004610d96565b61066b565b6102c36106d3565b604080519485526020850193909352918301526060820152608001610167565b6101a16102f1366004610db8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101a1603c81565b6101a160075481565b60606003805461033c90610deb565b80601f016020809104026020016040519081016040528092919081815260200182805461036890610deb565b80156103b55780601f1061038a576101008083540402835291602001916103b5565b820191906000526020600020905b81548152906001019060200180831161039857829003601f168201915b5050505050905090565b6000336103cd81858561072b565b60019150505b92915050565b6103e161084f565b6a115eec47f6cf7e350000006103f660025490565b1061043d5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064015b60405180910390fd5b662386f26fc10000333110156104955760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482062616c616e636500000000000000006044820152606401610434565b336000908152600960205260409020546104b190603c90610e3b565b4210156104f75760405162461bcd60e51b81526020600482015260146024820152734d696e7420636f6f6c646f776e2061637469766560601b6044820152606401610434565b60065433319060009061050a9083610e4e565b90506007548160085461051d9190610e3b565b1015801561052d57506001600654115b1561053a5761053a610879565b600061054560025490565b61055a906a115eec47f6cf7e35000000610e65565b905080821115610568578091505b3360009081526009602052604081204290556008805484929061058c908490610e3b565b9091555061059c90503383610901565b5050506105a96001600555565b565b6000336105b98582856109ec565b6105c4858585610a7e565b506001949350505050565b60606004805461033c90610deb565b6001600160a01b0381166000908152600960205260408120546103d390603c90610e3b565b6006546000906001600160a01b038316319082906106219083610e4e565b9050600061062e60025490565b610643906a115eec47f6cf7e35000000610e65565b90508082116106525781610654565b805b95945050505050565b6000336103cd818585610a7e565b6001600160a01b03811660009081526009602052604081205461069090603c90610e3b565b42101580156106b05750662386f26fc10000826001600160a01b03163110155b80156103d357506a115eec47f6cf7e350000006106cc60025490565b1092915050565b600654600754600854600090819083116106ee5760006106fe565b6008546007546106fe9190610e65565b9150692c781f708c509f400000806007546107199190610e65565b6107239190610e78565b905090919293565b6001600160a01b03831661078d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610434565b6001600160a01b0382166107ee5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610434565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60026005540361087257604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b6000600260065461088a9190610e78565b90506001811015610899575060015b80600681905550692c781f708c509f400000600760008282546108bc9190610e3b565b90915550506007546040805183815260208101929092527f394823b0bcaf78cd8f5876a52c05dbab91512a05f5da2a31e239a11ab66d605f910160405180910390a150565b6001600160a01b0382166109575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610434565b61096360008383610c57565b80600260008282546109759190610e3b565b90915550506001600160a01b038216600090815260208190526040812080548392906109a2908490610e3b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a785781811015610a6b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610434565b610a78848484840361072b565b50505050565b6001600160a01b038316610ae25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610434565b6001600160a01b038216610b445760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610434565b610b4f838383610c57565b6001600160a01b03831660009081526020819052604090205481811015610bc75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610434565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610bfe908490610e3b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c4a91815260200190565b60405180910390a3610a78565b6001600160a01b038216610cc15760405162461bcd60e51b815260206004820152602b60248201527f4d696e7461626c65546f6b656e3a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b6064820152608401610434565b505050565b600060208083528351808285015260005b81811015610cf357858101830151858201604001528201610cd7565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d2b57600080fd5b919050565b60008060408385031215610d4357600080fd5b610d4c83610d14565b946020939093013593505050565b600080600060608486031215610d6f57600080fd5b610d7884610d14565b9250610d8660208501610d14565b9150604084013590509250925092565b600060208284031215610da857600080fd5b610db182610d14565b9392505050565b60008060408385031215610dcb57600080fd5b610dd483610d14565b9150610de260208401610d14565b90509250929050565b600181811c90821680610dff57607f821691505b602082108103610e1f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d3576103d3610e25565b80820281158282048414176103d3576103d3610e25565b818103818111156103d3576103d3610e25565b600082610e9557634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122080d37c9aa0dd1dc015922528ca8bc24f1bb4b930d14ced4427c150572ac0831e64736f6c63430008130033