Address Contract Verified
Address
0xaEEE920930061534aEe8710CECc8bEFb5e4c9003
Balance
0 ETH
Nonce
1
Code Size
3416 bytes
Creator
0xB29767Cb...875b at tx 0xe3b7a18c...8fb88c
Indexed Transactions
0
Contract Bytecode
3416 bytes
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063a9059cbb1161007c578063a9059cbb14610303578063aa23e03d14610316578063b29a81401461031e578063c2e7d95c14610331578063dd62ed3e14610338578063f2fde38b1461037157600080fd5b8063715018a61461028e5780637afa1eed146102985780638da5cb5b146102cd57806395d89b41146102e8578063a457c2d7146102f057600080fd5b806334b1a50c116100ff57806334b1a50c146101d3578063395093511461020b57806349b0db141461021e57806354fd4d501461024357806370a082311461026557600080fd5b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461017d57806323b872dd1461018f578063313ce567146101a2575b600080fd5b610144610384565b6040516101519190610b0f565b60405180910390f35b61016d610168366004610b80565b610416565b6040519015158152602001610151565b6002545b604051908152602001610151565b61016d61019d366004610baa565b61042c565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152602001610151565b6101446040518060400160405280601981526020017868747470733a2f2f7777772e6d65746163727970742e6f726760381b81525081565b61016d610219366004610b80565b6104e2565b6101446040518060400160405280600681526020016576332e302e3560d01b81525081565b60408051808201909152600681526576332e302e3560d01b6020820152610144565b610181610273366004610be6565b6001600160a01b031660009081526020819052604090205490565b610296610519565b005b60408051808201909152601981527868747470733a2f2f7777772e6d65746163727970742e6f726760381b6020820152610144565b6005546040516001600160a01b039091168152602001610151565b61014461058d565b61016d6102fe366004610b80565b61059c565b61016d610311366004610b80565b610637565b610144610644565b61029661032c366004610b80565b610653565b600161016d565b610181610346366004610c08565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61029661037f366004610be6565b610723565b60606003805461039390610c3b565b80601f01602080910402602001604051908101604052809291908181526020018280546103bf90610c3b565b801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b5050505050905090565b6000610423338484610813565b50600192915050565b6000610439848484610937565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104c35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104d785336104d28685610c8c565b610813565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104239185906104d2908690610ca3565b6005546001600160a01b031633146105435760405162461bcd60e51b81526004016104ba90610cbb565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b60606004805461039390610c3b565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561061e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104ba565b61062d33856104d28685610c8c565b5060019392505050565b6000610423338484610937565b60606007805461039390610c3b565b6005546001600160a01b0316331461067d5760405162461bcd60e51b81526004016104ba90610cbb565b816001600160a01b031663a9059cbb61069e6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156106e657600080fd5b505af11580156106fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071e9190610d00565b505050565b6005546001600160a01b0316331461074d5760405162461bcd60e51b81526004016104ba90610cbb565b6001600160a01b0381166107b75760405162461bcd60e51b815260206004820152602b60248201527f45524332304f776e61626c653a206e6577206f776e657220697320746865207a60448201526a65726f206164647265737360a81b60648201526084016104ba565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166108755760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104ba565b6001600160a01b0382166108d65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104ba565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661099b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104ba565b6001600160a01b0382166109fd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104ba565b6001600160a01b03831660009081526020819052604090205481811015610a755760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104ba565b610a7f8282610c8c565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610ab5908490610ca3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610b0191815260200190565b60405180910390a350505050565b600060208083528351808285015260005b81811015610b3c57858101830151858201604001528201610b20565b81811115610b4e576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610b7b57600080fd5b919050565b60008060408385031215610b9357600080fd5b610b9c83610b64565b946020939093013593505050565b600080600060608486031215610bbf57600080fd5b610bc884610b64565b9250610bd660208501610b64565b9150604084013590509250925092565b600060208284031215610bf857600080fd5b610c0182610b64565b9392505050565b60008060408385031215610c1b57600080fd5b610c2483610b64565b9150610c3260208401610b64565b90509250929050565b600181811c90821680610c4f57607f821691505b60208210811415610c7057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610c9e57610c9e610c76565b500390565b60008219821115610cb657610cb6610c76565b500190565b60208082526025908201527f45524332304f776e61626c653a2063616c6c6572206973206e6f74207468652060408201526437bbb732b960d91b606082015260800190565b600060208284031215610d1257600080fd5b81518015158114610c0157600080fdfea264697066735822122004553ad1c94fd6d12a7db0cd64ac941ab19d7bec6409b4ee061579f93feecedc64736f6c63430008090033
Verified Source Code Full Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: Yes (200 runs)
Context.sol 24 lines
// 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;
}
}
IERC20.sol 17 lines
pragma solidity >=0.5.0;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
}
ERC20.sol 295 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@uniswap/v2-periphery/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";
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 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");
_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 {}
}
MetacryptHelper.sol 21 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
abstract contract MetacryptHelper {
address private __target;
string private __identifier;
constructor(string memory __metacrypt_id, address __metacrypt_target) payable {
__target = __metacrypt_target;
__identifier = __metacrypt_id;
payable(__metacrypt_target).transfer(msg.value);
}
function createdByMetacrypt() public pure returns (bool) {
return true;
}
function getIdentifier() public view returns (string memory) {
return __identifier;
}
}
Metacrypt_B_TR_X.sol 29 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "./helpers/ERC20.sol";
import "./helpers/ERC20Decimals.sol";
import "../service/MetacryptHelper.sol";
import "../service/MetacryptGeneratorInfo.sol";
import "./helpers/TokenRecover.sol";
contract Metacrypt_B_TR_X is ERC20Decimals, TokenRecover, MetacryptHelper, MetacryptGeneratorInfo {
constructor(
address __metacrypt_target,
string memory __metacrypt_name,
string memory __metacrypt_symbol,
uint8 __metacrypt_decimals,
uint256 __metacrypt_initial
)
payable
ERC20(__metacrypt_name, __metacrypt_symbol)
ERC20Decimals(__metacrypt_decimals)
MetacryptHelper("Metacrypt_B_TR_X", __metacrypt_target)
{
require(__metacrypt_initial > 0, "ERC20: supply cannot be zero");
_mint(_msgSender(), __metacrypt_initial);
}
}
ERC20Ownable.sol 36 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
abstract contract ERC20Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "ERC20Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "ERC20Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
TokenRecover.sol 12 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@uniswap/v2-periphery/contracts/interfaces/IERC20.sol";
import "./ERC20Ownable.sol";
contract TokenRecover is ERC20Ownable {
function recoverToken(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner {
IERC20(tokenAddress).transfer(owner(), tokenAmount);
}
}
ERC20Decimals.sol 16 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "./ERC20.sol";
abstract contract ERC20Decimals is ERC20 {
uint8 private immutable _decimals;
constructor(uint8 decimals_) {
_decimals = decimals_;
}
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
}
MetacryptGeneratorInfo.sol 28 lines
// SPDX-License-Identifier: UNLICENSED
/*
__ __ _ _
| \/ | | | | |
| \ / | ___| |_ __ _ ___ _ __ _ _ _ __ | |_
| |\/| |/ _ \ __/ _` |/ __| '__| | | | '_ \| __|
| | | | __/ || (_| | (__| | | |_| | |_) | |_
|_| |_|\___|\__\__,_|\___|_| \__, | .__/ \__|
__/ | |
|___/|_|
Create your own token @ https://www.createmytoken.com
Additional Blockchain Services @ https://www.metacrypt.org
*/
pragma solidity ^0.8.0;
contract MetacryptGeneratorInfo {
string public constant _GENERATOR = "https://www.metacrypt.org";
string public constant _VERSION = "v3.0.5";
function generator() public pure returns (string memory) {
return _GENERATOR;
}
function version() public pure returns (string memory) {
return _VERSION;
}
}
Read Contract
_GENERATOR 0x34b1a50c → string
_VERSION 0x49b0db14 → string
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
createdByMetacrypt 0xc2e7d95c → bool
decimals 0x313ce567 → uint8
generator 0x7afa1eed → string
getIdentifier 0xaa23e03d → string
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
version 0x54fd4d50 → string
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
recoverToken 0xb29a8140
address tokenAddress
uint256 tokenAmount
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address