ERC-20
Overview
Max Total Supply
8,999,999,999.999999991 FOA
Holders
1
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MkToken
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.2; import "IERC20.sol"; import "ERC20.sol"; import "IERC721.sol"; /* * ,_, * (',') * {/"\} * -"-"- */ contract MkToken is ERC20("Fragments of the Abyss", "FOA") { uint256 constant public BASE_RATE = 6_849315068_000000000 ; uint256 constant public END = 1955491200; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; IERC721 public mkContracts; event RewardPaid(address indexed user, uint256 reward); constructor(address _mk, address _receiver) public{ mkContracts = IERC721(_mk); _mint(_receiver, 9_000_000_000 ether); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } // called on transfers function updateReward(address _from, address _to, uint256 _tokenId) external { require(msg.sender == address(mkContracts)); uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; if (timerFrom > 0) rewards[_from] += mkContracts.balanceOf(_from) * BASE_RATE * (time - timerFrom) / 86400; if (timerFrom != END) lastUpdate[_from] = time; if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; if (timerTo > 0) rewards[_to] += mkContracts.balanceOf(_to) * BASE_RATE * (time - timerFrom) / 86400; if (timerTo != END) lastUpdate[_to] = time; } } function getReward(address _to) external { require(msg.sender == address(mkContracts)); uint256 reward = rewards[_to]; if (reward > 0) { rewards[_to] = 0; _mint(_to, reward); emit RewardPaid(_to, reward); } } function burn(uint256 _amount) external { _burn(msg.sender, _amount); } function burnFor(address _user, uint256 _amount) external { uint256 currentAllowance = allowance(_user, msg.sender); _approve(_user, msg.sender, currentAllowance - _amount); _burn(_user, _amount); } function getTotalClaimable(address _user) external view returns(uint256) { uint256 time = min(block.timestamp, END); uint256 pending = mkContracts.balanceOf(_user) * BASE_RATE * (time - lastUpdate[_user]) / 86400; return rewards[_user] + pending; } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "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 { 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 defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All three 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 * overloaded; * * 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 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"); _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"); _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"); _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: * * - `to` 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"); _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 { } }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_mk","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mkContracts","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620014e1380380620014e183398101604081905262000034916200029d565b6040518060400160405280601681526020017f467261676d656e7473206f66207468652041627973730000000000000000000081525060405180604001604052806003815260200162464f4160e81b81525081600390805190602001906200009e929190620001da565b508051620000b4906004906020840190620001da565b5050600780546001600160a01b0319166001600160a01b03851617905550620000ea816b1d14a0219e54822428000000620000f2565b505062000336565b6001600160a01b0382166200014d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001619190620002d4565b90915550506001600160a01b0382166000908152602081905260408120805483929062000190908490620002d4565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001e890620002f9565b90600052602060002090601f0160209004810192826200020c576000855562000257565b82601f106200022757805160ff191683800117855562000257565b8280016001018555821562000257579182015b82811115620002575782518255916020019190600101906200023a565b506200026592915062000269565b5090565b5b808211156200026557600081556001016200026a565b80516001600160a01b03811681146200029857600080fd5b919050565b60008060408385031215620002b0578182fd5b620002bb8362000280565b9150620002cb6020840162000280565b90509250929050565b60008219821115620002f457634e487b7160e01b81526011600452602481fd5b500190565b6002810460018216806200030e57607f821691505b602082108114156200033057634e487b7160e01b600052602260045260246000fd5b50919050565b61119b80620003466000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806341910f90116100b8578063a457c2d71161007c578063a457c2d7146102a1578063a9059cbb146102b4578063c00007b0146102c7578063cb03fb1e146102da578063dd62ed3e146102fa578063efe7a5041461033357610137565b806341910f901461022357806342966c681461023257806370a08231146102455780638335fa151461026e57806395d89b411461029957610137565b806323b872dd116100ff57806323b872dd146101c8578063267e8ab6146101db5780632c8e8dfa146101ee578063313ce56714610201578063395093511461021057610137565b806306fdde031461013c5780630700037d1461015a578063095ea7b31461018857806318160ddd146101ab5780631dd319cb146101b3575b600080fd5b61014461033e565b6040516101519190611053565b60405180910390f35b61017a610168366004610f73565b60056020526000908152604090205481565b604051908152602001610151565b61019b610196366004610ffa565b6103d0565b6040519015158152602001610151565b60025461017a565b6101c66101c1366004610ffa565b6103e6565b005b61019b6101d6366004610fbf565b61042f565b61017a6101e9366004610f73565b6104e0565b6101c66101fc366004610fbf565b6105f1565b60405160128152602001610151565b61019b61021e366004610ffa565b61087d565b61017a675f0da7c3deded80081565b6101c6610240366004611023565b6108b4565b61017a610253366004610f73565b6001600160a01b031660009081526020819052604090205490565b600754610281906001600160a01b031681565b6040516001600160a01b039091168152602001610151565b6101446108c1565b61019b6102af366004610ffa565b6108d0565b61019b6102c2366004610ffa565b61096b565b6101c66102d5366004610f73565b610978565b61017a6102e8366004610f73565b60066020526000908152604090205481565b61017a610308366004610f8d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61017a63748e6d8081565b60606003805461034d90611114565b80601f016020809104026020016040519081016040528092919081815260200182805461037990611114565b80156103c65780601f1061039b576101008083540402835291602001916103c6565b820191906000526020600020905b8154815290600101906020018083116103a957829003601f168201915b5050505050905090565b60006103dd338484610a19565b50600192915050565b6001600160a01b03821660009081526001602090815260408083203384529091528120549050610420833361041b85856110fd565b610a19565b61042a8383610b3e565b505050565b600061043c848484610c8d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104c65760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104d5853361041b86856110fd565b506001949350505050565b6000806104f14263748e6d80610e65565b6001600160a01b03841660009081526006602052604081205491925090620151809061051d90846110fd565b6007546040516370a0823160e01b81526001600160a01b038881166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b15801561056a57600080fd5b505afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061103b565b6105ac91906110de565b6105b691906110de565b6105c091906110be565b6001600160a01b0385166000908152600560205260409020549091506105e79082906110a6565b925050505b919050565b6007546001600160a01b0316331461060857600080fd5b60006106184263748e6d80610e65565b6001600160a01b0385166000908152600660205260409020549091508015610719576201518061064882846110fd565b6007546040516370a0823160e01b81526001600160a01b038981166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b15801561069557600080fd5b505afa1580156106a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cd919061103b565b6106d791906110de565b6106e191906110de565b6106eb91906110be565b6001600160a01b038616600090815260056020526040812080549091906107139084906110a6565b90915550505b63748e6d808114610740576001600160a01b03851660009081526006602052604090208290555b6001600160a01b03841615610876576001600160a01b038416600090815260066020526040902054801561084d576201518061077c83856110fd565b6007546040516370a0823160e01b81526001600160a01b038981166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b1580156107c957600080fd5b505afa1580156107dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610801919061103b565b61080b91906110de565b61081591906110de565b61081f91906110be565b6001600160a01b038616600090815260056020526040812080549091906108479084906110a6565b90915550505b63748e6d808114610874576001600160a01b03851660009081526006602052604090208390555b505b5050505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103dd91859061041b9086906110a6565b6108be3382610b3e565b50565b60606004805461034d90611114565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156109525760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104bd565b610961338561041b86856110fd565b5060019392505050565b60006103dd338484610c8d565b6007546001600160a01b0316331461098f57600080fd5b6001600160a01b0381166000908152600560205260409020548015610a15576001600160a01b0382166000908152600560205260408120556109d18282610e7d565b816001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610a0c91815260200190565b60405180910390a25b5050565b6001600160a01b038316610a7b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104bd565b6001600160a01b038216610adc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104bd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610b9e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104bd565b6001600160a01b03821660009081526020819052604090205481811015610c125760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104bd565b610c1c82826110fd565b6001600160a01b03841660009081526020819052604081209190915560028054849290610c4a9084906110fd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610b31565b6001600160a01b038316610cf15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104bd565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104bd565b6001600160a01b03831660009081526020819052604090205481811015610dcb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104bd565b610dd582826110fd565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610e0b9084906110a6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e5791815260200190565b60405180910390a350505050565b6000818310610e745781610e76565b825b9392505050565b6001600160a01b038216610ed35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104bd565b8060026000828254610ee591906110a6565b90915550506001600160a01b03821660009081526020819052604081208054839290610f129084906110a6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80356001600160a01b03811681146105ec57600080fd5b600060208284031215610f84578081fd5b610e7682610f5c565b60008060408385031215610f9f578081fd5b610fa883610f5c565b9150610fb660208401610f5c565b90509250929050565b600080600060608486031215610fd3578081fd5b610fdc84610f5c565b9250610fea60208501610f5c565b9150604084013590509250925092565b6000806040838503121561100c578182fd5b61101583610f5c565b946020939093013593505050565b600060208284031215611034578081fd5b5035919050565b60006020828403121561104c578081fd5b5051919050565b6000602080835283518082850152825b8181101561107f57858101830151858201604001528201611063565b818111156110905783604083870101525b50601f01601f1916929092016040019392505050565b600082198211156110b9576110b961114f565b500190565b6000826110d957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156110f8576110f861114f565b500290565b60008282101561110f5761110f61114f565b500390565b60028104600182168061112857607f821691505b6020821081141561114957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220679512bb1bd98a6edbf30cdf0445810fb9e7853e793ca6e7da8cfd5e1913456f64736f6c634300080200330000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e00000000000000000000000083d82244da1c86958b551c9f51812e20f1c14b26
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c806341910f90116100b8578063a457c2d71161007c578063a457c2d7146102a1578063a9059cbb146102b4578063c00007b0146102c7578063cb03fb1e146102da578063dd62ed3e146102fa578063efe7a5041461033357610137565b806341910f901461022357806342966c681461023257806370a08231146102455780638335fa151461026e57806395d89b411461029957610137565b806323b872dd116100ff57806323b872dd146101c8578063267e8ab6146101db5780632c8e8dfa146101ee578063313ce56714610201578063395093511461021057610137565b806306fdde031461013c5780630700037d1461015a578063095ea7b31461018857806318160ddd146101ab5780631dd319cb146101b3575b600080fd5b61014461033e565b6040516101519190611053565b60405180910390f35b61017a610168366004610f73565b60056020526000908152604090205481565b604051908152602001610151565b61019b610196366004610ffa565b6103d0565b6040519015158152602001610151565b60025461017a565b6101c66101c1366004610ffa565b6103e6565b005b61019b6101d6366004610fbf565b61042f565b61017a6101e9366004610f73565b6104e0565b6101c66101fc366004610fbf565b6105f1565b60405160128152602001610151565b61019b61021e366004610ffa565b61087d565b61017a675f0da7c3deded80081565b6101c6610240366004611023565b6108b4565b61017a610253366004610f73565b6001600160a01b031660009081526020819052604090205490565b600754610281906001600160a01b031681565b6040516001600160a01b039091168152602001610151565b6101446108c1565b61019b6102af366004610ffa565b6108d0565b61019b6102c2366004610ffa565b61096b565b6101c66102d5366004610f73565b610978565b61017a6102e8366004610f73565b60066020526000908152604090205481565b61017a610308366004610f8d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61017a63748e6d8081565b60606003805461034d90611114565b80601f016020809104026020016040519081016040528092919081815260200182805461037990611114565b80156103c65780601f1061039b576101008083540402835291602001916103c6565b820191906000526020600020905b8154815290600101906020018083116103a957829003601f168201915b5050505050905090565b60006103dd338484610a19565b50600192915050565b6001600160a01b03821660009081526001602090815260408083203384529091528120549050610420833361041b85856110fd565b610a19565b61042a8383610b3e565b505050565b600061043c848484610c8d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104c65760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104d5853361041b86856110fd565b506001949350505050565b6000806104f14263748e6d80610e65565b6001600160a01b03841660009081526006602052604081205491925090620151809061051d90846110fd565b6007546040516370a0823160e01b81526001600160a01b038881166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b15801561056a57600080fd5b505afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061103b565b6105ac91906110de565b6105b691906110de565b6105c091906110be565b6001600160a01b0385166000908152600560205260409020549091506105e79082906110a6565b925050505b919050565b6007546001600160a01b0316331461060857600080fd5b60006106184263748e6d80610e65565b6001600160a01b0385166000908152600660205260409020549091508015610719576201518061064882846110fd565b6007546040516370a0823160e01b81526001600160a01b038981166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b15801561069557600080fd5b505afa1580156106a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cd919061103b565b6106d791906110de565b6106e191906110de565b6106eb91906110be565b6001600160a01b038616600090815260056020526040812080549091906107139084906110a6565b90915550505b63748e6d808114610740576001600160a01b03851660009081526006602052604090208290555b6001600160a01b03841615610876576001600160a01b038416600090815260066020526040902054801561084d576201518061077c83856110fd565b6007546040516370a0823160e01b81526001600160a01b038981166004830152675f0da7c3deded8009216906370a082319060240160206040518083038186803b1580156107c957600080fd5b505afa1580156107dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610801919061103b565b61080b91906110de565b61081591906110de565b61081f91906110be565b6001600160a01b038616600090815260056020526040812080549091906108479084906110a6565b90915550505b63748e6d808114610874576001600160a01b03851660009081526006602052604090208390555b505b5050505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103dd91859061041b9086906110a6565b6108be3382610b3e565b50565b60606004805461034d90611114565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156109525760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104bd565b610961338561041b86856110fd565b5060019392505050565b60006103dd338484610c8d565b6007546001600160a01b0316331461098f57600080fd5b6001600160a01b0381166000908152600560205260409020548015610a15576001600160a01b0382166000908152600560205260408120556109d18282610e7d565b816001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610a0c91815260200190565b60405180910390a25b5050565b6001600160a01b038316610a7b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104bd565b6001600160a01b038216610adc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104bd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610b9e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104bd565b6001600160a01b03821660009081526020819052604090205481811015610c125760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104bd565b610c1c82826110fd565b6001600160a01b03841660009081526020819052604081209190915560028054849290610c4a9084906110fd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610b31565b6001600160a01b038316610cf15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104bd565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104bd565b6001600160a01b03831660009081526020819052604090205481811015610dcb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104bd565b610dd582826110fd565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610e0b9084906110a6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e5791815260200190565b60405180910390a350505050565b6000818310610e745781610e76565b825b9392505050565b6001600160a01b038216610ed35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104bd565b8060026000828254610ee591906110a6565b90915550506001600160a01b03821660009081526020819052604081208054839290610f129084906110a6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80356001600160a01b03811681146105ec57600080fd5b600060208284031215610f84578081fd5b610e7682610f5c565b60008060408385031215610f9f578081fd5b610fa883610f5c565b9150610fb660208401610f5c565b90509250929050565b600080600060608486031215610fd3578081fd5b610fdc84610f5c565b9250610fea60208501610f5c565b9150604084013590509250925092565b6000806040838503121561100c578182fd5b61101583610f5c565b946020939093013593505050565b600060208284031215611034578081fd5b5035919050565b60006020828403121561104c578081fd5b5051919050565b6000602080835283518082850152825b8181101561107f57858101830151858201604001528201611063565b818111156110905783604083870101525b50601f01601f1916929092016040019392505050565b600082198211156110b9576110b961114f565b500190565b6000826110d957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156110f8576110f861114f565b500290565b60008282101561110f5761110f61114f565b500390565b60028104600182168061112857607f821691505b6020821081141561114957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220679512bb1bd98a6edbf30cdf0445810fb9e7853e793ca6e7da8cfd5e1913456f64736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e00000000000000000000000083d82244da1c86958b551c9f51812e20f1c14b26
-----Decoded View---------------
Arg [0] : _mk (address): 0x8009250878eD378050eF5D2a48c70E24EB2edE7E
Arg [1] : _receiver (address): 0x83D82244da1C86958B551C9F51812e20f1C14B26
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008009250878ed378050ef5d2a48c70e24eb2ede7e
Arg [1] : 00000000000000000000000083d82244da1c86958b551c9f51812e20f1c14b26
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.