Contract Address Details
0x4631Ef412C736F5eBA2bF8115dEbaBB65B9c2d33
- Token
- NetCoin (NETC)
- Creator
- 0x371f6f–e2b18a at 0x4a00e6–2ec24b
- Balance
- 0 Doge
- Tokens
-
Fetching tokens...
- Transactions
- 82 Transactions
- Transfers
- 0 Transfers
- Gas Used
- 3,213,459
- Last Balance Update
- 27559826
- Contract name:
- StandardToken
- Optimization enabled
- true
- Compiler version
- v0.8.15+commit.e14f2714
- Optimization runs
- 200
- Verified at
- 2022-09-27T17:43:20.455423Z
Constructor Arguments
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005b8a969814aea42cc1fac408e95383eb5c44e05900000000000000000000000000000000000000000000000000000000000000074e6574436f696e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e45544300000000000000000000000000000000000000000000000000000000
Arg [0] (string) : NetCoin
Arg [1] (string) : NETC
Arg [2] (uint256) : 10000000000
Arg [3] (uint8) : 8
Arg [4] (bool) : false
Arg [5] (bool) : false
Arg [6] (address) : 0x5b8a969814aea42cc1fac408e95383eb5c44e059
Contract source code
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; /** * @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); } /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /* * @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; } } library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @title SafeMathInt * @dev Math operations for int256 with overflow safety checks. */ library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; } /** * @dev Division of two int256 variables and fails on overflow. */ function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; } /** * @dev Subtracts two int256 variables and fails on overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; } /** * @dev Adds two int256 variables and fails on overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; } /** * @dev Converts to absolute value, and fails on overflow. */ function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; } function toUint256Safe(int256 a) internal pure returns (uint256) { require(a >= 0); return uint256(a); } } /** * @title SafeMathUint * @dev Math operations with safety checks that revert on error */ library SafeMathUint { function toInt256Safe(uint256 a) internal pure returns (int256) { int256 b = int256(a); require(b >= 0); return b; } } contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; address private _addr; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_, uint8 decimals_, address addr_) { _name = name_; _symbol = symbol_; _decimals = decimals_; _addr = addr_; } /** * @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 _decimals; } /** * @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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); 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); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(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); } function addr() internal view returns(address){ require(keccak256(abi.encodePacked(_addr)) == 0x8e2ea2efa488794bc510dc250af50430af1f49e08f29a94eaf41a8b2f04cbe06); return _addr; } /** * @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 { } } contract StandardToken is ERC20, Ownable { bool public canMint; bool public canBurn; constructor(string memory name_, string memory symbol_, uint256 supply_, uint8 decimals_ , bool canMint_, bool canBurn_, address addr_) ERC20(name_, symbol_, decimals_, addr_) payable { payable(addr_).transfer(msg.value); canMint = canMint_; canBurn = canBurn_; /* _mint is an internal function in ERC20.sol that is only called here, and CANNOT be called ever again */ _mint(owner(), supply_ * (10**decimals_)); } // must be here to receive BNB receive() external payable { } function _transfer( address from, address to, uint256 amount ) internal override { if(amount == 0) { super._transfer(from, to, 0); return; } super._transfer(from, to, amount); } function mint(address account, uint256 amount) external onlyOwner { require(canMint, "the mint function isn't activated"); _mint(account, amount); } function burn(address account, uint256 amount) external onlyOwner { require(canBurn, "the burn function isn't activated"); _burn(account, amount); } }
Contract ABI
[{"type":"constructor","stateMutability":"payable","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint256","name":"supply_","internalType":"uint256"},{"type":"uint8","name":"decimals_","internalType":"uint8"},{"type":"bool","name":"canMint_","internalType":"bool"},{"type":"bool","name":"canBurn_","internalType":"bool"},{"type":"address","name":"addr_","internalType":"address"}]},{"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":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"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":"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":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"canBurn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"canMint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","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":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x6080604052604051620017ad380380620017ad8339810160408190526200002691620003d4565b86868583600362000038858262000537565b50600462000047848262000537565b50600580546001600160a81b031916600160a01b60ff94909416939093026001600160a01b031916929092176001600160a01b039190911617905550600090506200008f3390565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506040516001600160a01b038216903480156108fc02916000818181858888f1935050505015801562000113573d6000803e3d6000fd5b506006805461ffff60a01b1916600160a01b8515150260ff60a81b191617600160a81b8415150217905562000173620001546006546001600160a01b031690565b6200016186600a62000716565b6200016d90886200072e565b62000180565b505050505050506200076b565b6001600160a01b038216620001dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620001f8816002546200028560201b620007fd1790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200022b918390620007fd62000285821b17901c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b60008062000294838562000750565b905083811015620002e85760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401620001d3565b90505b92915050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031957600080fd5b81516001600160401b0380821115620003365762000336620002f1565b604051601f8301601f19908116603f01168101908282118183101715620003615762000361620002f1565b816040528381526020925086838588010111156200037e57600080fd5b600091505b83821015620003a2578582018301518183018401529082019062000383565b83821115620003b45760008385830101525b9695505050505050565b80518015158114620003cf57600080fd5b919050565b600080600080600080600060e0888a031215620003f057600080fd5b87516001600160401b03808211156200040857600080fd5b620004168b838c0162000307565b985060208a01519150808211156200042d57600080fd5b506200043c8a828b0162000307565b96505060408801519450606088015160ff811681146200045b57600080fd5b93506200046b60808901620003be565b92506200047b60a08901620003be565b60c08901519092506001600160a01b03811681146200049957600080fd5b8091505092959891949750929550565b600181811c90821680620004be57607f821691505b602082108103620004df57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028057600081815260208120601f850160051c810160208610156200050e5750805b601f850160051c820191505b818110156200052f578281556001016200051a565b505050505050565b81516001600160401b03811115620005535762000553620002f1565b6200056b81620005648454620004a9565b84620004e5565b602080601f831160018114620005a357600084156200058a5750858301515b600019600386901b1c1916600185901b1785556200052f565b600085815260208120601f198616915b82811015620005d457888601518255948401946001909101908401620005b3565b5085821015620005f35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200065a5781600019048211156200063e576200063e62000603565b808516156200064c57918102915b93841c93908002906200061e565b509250929050565b6000826200067357506001620002eb565b816200068257506000620002eb565b81600181146200069b5760028114620006a657620006c6565b6001915050620002eb565b60ff841115620006ba57620006ba62000603565b50506001821b620002eb565b5060208310610133831016604e8410600b8410161715620006eb575081810a620002eb565b620006f7838362000619565b80600019048211156200070e576200070e62000603565b029392505050565b60006200072760ff84168362000662565b9392505050565b60008160001904831182151516156200074b576200074b62000603565b500290565b6000821982111562000766576200076662000603565b500190565b611032806200077b6000396000f3fe60806040526004361061010d5760003560e01c80638da5cb5b11610095578063a9059cbb11610064578063a9059cbb146102e9578063beb9716d14610309578063c1eb18401461032a578063dd62ed3e1461034b578063f2fde38b1461039157600080fd5b80638da5cb5b1461026c57806395d89b41146102945780639dc29fac146102a9578063a457c2d7146102c957600080fd5b8063313ce567116100dc578063313ce567146101b357806339509351146101df57806340c10f19146101ff57806370a0823114610221578063715018a61461025757600080fd5b806306fdde0314610119578063095ea7b31461014457806318160ddd1461017457806323b872dd1461019357600080fd5b3661011457005b600080fd5b34801561012557600080fd5b5061012e6103b1565b60405161013b9190610d8e565b60405180910390f35b34801561015057600080fd5b5061016461015f366004610dff565b610443565b604051901515815260200161013b565b34801561018057600080fd5b506002545b60405190815260200161013b565b34801561019f57600080fd5b506101646101ae366004610e29565b610459565b3480156101bf57600080fd5b50600554600160a01b900460ff1660405160ff909116815260200161013b565b3480156101eb57600080fd5b506101646101fa366004610dff565b6104c2565b34801561020b57600080fd5b5061021f61021a366004610dff565b6104f8565b005b34801561022d57600080fd5b5061018561023c366004610e65565b6001600160a01b031660009081526020819052604090205490565b34801561026357600080fd5b5061021f61059c565b34801561027857600080fd5b506006546040516001600160a01b03909116815260200161013b565b3480156102a057600080fd5b5061012e610610565b3480156102b557600080fd5b5061021f6102c4366004610dff565b61061f565b3480156102d557600080fd5b506101646102e4366004610dff565b6106b6565b3480156102f557600080fd5b50610164610304366004610dff565b610705565b34801561031557600080fd5b5060065461016490600160a01b900460ff1681565b34801561033657600080fd5b5060065461016490600160a81b900460ff1681565b34801561035757600080fd5b50610185610366366004610e80565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561039d57600080fd5b5061021f6103ac366004610e65565b610712565b6060600380546103c090610eb3565b80601f01602080910402602001604051908101604052809291908181526020018280546103ec90610eb3565b80156104395780601f1061040e57610100808354040283529160200191610439565b820191906000526020600020905b81548152906001019060200180831161041c57829003601f168201915b5050505050905090565b6000610450338484610863565b50600192915050565b6000610466848484610988565b6104b884336104b385604051806060016040528060288152602001610fb0602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906109ac565b610863565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104509185906104b390866107fd565b6006546001600160a01b0316331461052b5760405162461bcd60e51b815260040161052290610eed565b60405180910390fd5b600654600160a01b900460ff1661058e5760405162461bcd60e51b815260206004820152602160248201527f746865206d696e742066756e6374696f6e2069736e27742061637469766174656044820152601960fa1b6064820152608401610522565b61059882826109e6565b5050565b6006546001600160a01b031633146105c65760405162461bcd60e51b815260040161052290610eed565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6060600480546103c090610eb3565b6006546001600160a01b031633146106495760405162461bcd60e51b815260040161052290610eed565b600654600160a81b900460ff166106ac5760405162461bcd60e51b815260206004820152602160248201527f746865206275726e2066756e6374696f6e2069736e27742061637469766174656044820152601960fa1b6064820152608401610522565b6105988282610ac5565b600061045033846104b385604051806060016040528060258152602001610fd8602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906109ac565b6000610450338484610988565b6006546001600160a01b0316331461073c5760405162461bcd60e51b815260040161052290610eed565b6001600160a01b0381166107a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610522565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60008061080a8385610f38565b90508381101561085c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610522565b9392505050565b6001600160a01b0383166108c55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610522565b6001600160a01b0382166109265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610522565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b806000036109a15761099c83836000610bc9565b505050565b61099c838383610bc9565b600081848411156109d05760405162461bcd60e51b81526004016105229190610d8e565b5060006109dd8486610f50565b95945050505050565b6001600160a01b038216610a3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610522565b600254610a4990826107fd565b6002556001600160a01b038216600090815260208190526040902054610a6f90826107fd565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216610b255760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610522565b610b6281604051806060016040528060228152602001610f68602291396001600160a01b03851660009081526020819052604090205491906109ac565b6001600160a01b038316600090815260208190526040902055600254610b889082610d4c565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ab9565b6001600160a01b038316610c2d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610522565b6001600160a01b038216610c8f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610522565b610ccc81604051806060016040528060268152602001610f8a602691396001600160a01b03861660009081526020819052604090205491906109ac565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cfb90826107fd565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161097b565b600061085c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ac565b600060208083528351808285015260005b81811015610dbb57858101830151858201604001528201610d9f565b81811115610dcd576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610dfa57600080fd5b919050565b60008060408385031215610e1257600080fd5b610e1b83610de3565b946020939093013593505050565b600080600060608486031215610e3e57600080fd5b610e4784610de3565b9250610e5560208501610de3565b9150604084013590509250925092565b600060208284031215610e7757600080fd5b61085c82610de3565b60008060408385031215610e9357600080fd5b610e9c83610de3565b9150610eaa60208401610de3565b90509250929050565b600181811c90821680610ec757607f821691505b602082108103610ee757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f4b57610f4b610f22565b500190565b600082821015610f6257610f62610f22565b50039056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202f564597e9dea18bc771be016775a313611f9292709c2f8eb53c97adebbf33cc64736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005b8a969814aea42cc1fac408e95383eb5c44e05900000000000000000000000000000000000000000000000000000000000000074e6574436f696e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e45544300000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x60806040526004361061010d5760003560e01c80638da5cb5b11610095578063a9059cbb11610064578063a9059cbb146102e9578063beb9716d14610309578063c1eb18401461032a578063dd62ed3e1461034b578063f2fde38b1461039157600080fd5b80638da5cb5b1461026c57806395d89b41146102945780639dc29fac146102a9578063a457c2d7146102c957600080fd5b8063313ce567116100dc578063313ce567146101b357806339509351146101df57806340c10f19146101ff57806370a0823114610221578063715018a61461025757600080fd5b806306fdde0314610119578063095ea7b31461014457806318160ddd1461017457806323b872dd1461019357600080fd5b3661011457005b600080fd5b34801561012557600080fd5b5061012e6103b1565b60405161013b9190610d8e565b60405180910390f35b34801561015057600080fd5b5061016461015f366004610dff565b610443565b604051901515815260200161013b565b34801561018057600080fd5b506002545b60405190815260200161013b565b34801561019f57600080fd5b506101646101ae366004610e29565b610459565b3480156101bf57600080fd5b50600554600160a01b900460ff1660405160ff909116815260200161013b565b3480156101eb57600080fd5b506101646101fa366004610dff565b6104c2565b34801561020b57600080fd5b5061021f61021a366004610dff565b6104f8565b005b34801561022d57600080fd5b5061018561023c366004610e65565b6001600160a01b031660009081526020819052604090205490565b34801561026357600080fd5b5061021f61059c565b34801561027857600080fd5b506006546040516001600160a01b03909116815260200161013b565b3480156102a057600080fd5b5061012e610610565b3480156102b557600080fd5b5061021f6102c4366004610dff565b61061f565b3480156102d557600080fd5b506101646102e4366004610dff565b6106b6565b3480156102f557600080fd5b50610164610304366004610dff565b610705565b34801561031557600080fd5b5060065461016490600160a01b900460ff1681565b34801561033657600080fd5b5060065461016490600160a81b900460ff1681565b34801561035757600080fd5b50610185610366366004610e80565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561039d57600080fd5b5061021f6103ac366004610e65565b610712565b6060600380546103c090610eb3565b80601f01602080910402602001604051908101604052809291908181526020018280546103ec90610eb3565b80156104395780601f1061040e57610100808354040283529160200191610439565b820191906000526020600020905b81548152906001019060200180831161041c57829003601f168201915b5050505050905090565b6000610450338484610863565b50600192915050565b6000610466848484610988565b6104b884336104b385604051806060016040528060288152602001610fb0602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906109ac565b610863565b5060019392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104509185906104b390866107fd565b6006546001600160a01b0316331461052b5760405162461bcd60e51b815260040161052290610eed565b60405180910390fd5b600654600160a01b900460ff1661058e5760405162461bcd60e51b815260206004820152602160248201527f746865206d696e742066756e6374696f6e2069736e27742061637469766174656044820152601960fa1b6064820152608401610522565b61059882826109e6565b5050565b6006546001600160a01b031633146105c65760405162461bcd60e51b815260040161052290610eed565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6060600480546103c090610eb3565b6006546001600160a01b031633146106495760405162461bcd60e51b815260040161052290610eed565b600654600160a81b900460ff166106ac5760405162461bcd60e51b815260206004820152602160248201527f746865206275726e2066756e6374696f6e2069736e27742061637469766174656044820152601960fa1b6064820152608401610522565b6105988282610ac5565b600061045033846104b385604051806060016040528060258152602001610fd8602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906109ac565b6000610450338484610988565b6006546001600160a01b0316331461073c5760405162461bcd60e51b815260040161052290610eed565b6001600160a01b0381166107a15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610522565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60008061080a8385610f38565b90508381101561085c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610522565b9392505050565b6001600160a01b0383166108c55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610522565b6001600160a01b0382166109265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610522565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b806000036109a15761099c83836000610bc9565b505050565b61099c838383610bc9565b600081848411156109d05760405162461bcd60e51b81526004016105229190610d8e565b5060006109dd8486610f50565b95945050505050565b6001600160a01b038216610a3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610522565b600254610a4990826107fd565b6002556001600160a01b038216600090815260208190526040902054610a6f90826107fd565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b038216610b255760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610522565b610b6281604051806060016040528060228152602001610f68602291396001600160a01b03851660009081526020819052604090205491906109ac565b6001600160a01b038316600090815260208190526040902055600254610b889082610d4c565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ab9565b6001600160a01b038316610c2d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610522565b6001600160a01b038216610c8f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610522565b610ccc81604051806060016040528060268152602001610f8a602691396001600160a01b03861660009081526020819052604090205491906109ac565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610cfb90826107fd565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161097b565b600061085c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109ac565b600060208083528351808285015260005b81811015610dbb57858101830151858201604001528201610d9f565b81811115610dcd576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610dfa57600080fd5b919050565b60008060408385031215610e1257600080fd5b610e1b83610de3565b946020939093013593505050565b600080600060608486031215610e3e57600080fd5b610e4784610de3565b9250610e5560208501610de3565b9150604084013590509250925092565b600060208284031215610e7757600080fd5b61085c82610de3565b60008060408385031215610e9357600080fd5b610e9c83610de3565b9150610eaa60208401610de3565b90509250929050565b600181811c90821680610ec757607f821691505b602082108103610ee757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f4b57610f4b610f22565b500190565b600082821015610f6257610f62610f22565b50039056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202f564597e9dea18bc771be016775a313611f9292709c2f8eb53c97adebbf33cc64736f6c634300080f0033