Address Contract Partially Verified
Address
0xCeDefE438860D2789dA6419b3a19cEcE2A41038d
Balance
0 ETH
Nonce
1
Code Size
6459 bytes
Creator
0x4b9c6933...71D2 at tx 0x6d0e2264...c30c44
Indexed Transactions
0
Contract Bytecode
6459 bytes
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c578063a457c2d711610066578063a457c2d714610228578063a9059cbb14610258578063dd62ed3e14610288578063fb86a404146102b8576100cf565b806342966c68146101be57806370a08231146101da57806395d89b411461020a576100cf565b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461012257806323b872dd14610140578063313ce56714610170578063395093511461018e575b600080fd5b6100dc6102d6565b6040516100e99190610e72565b60405180910390f35b61010c60048036038101906101079190610f2d565b610368565b6040516101199190610f88565b60405180910390f35b61012a610386565b6040516101379190610fb2565b60405180910390f35b61015a60048036038101906101559190610fcd565b610390565b6040516101679190610f88565b60405180910390f35b610178610488565b604051610185919061103c565b60405180910390f35b6101a860048036038101906101a39190610f2d565b610491565b6040516101b59190610f88565b60405180910390f35b6101d860048036038101906101d39190611057565b61053d565b005b6101f460048036038101906101ef9190611084565b610551565b6040516102019190610fb2565b60405180910390f35b610212610599565b60405161021f9190610e72565b60405180910390f35b610242600480360381019061023d9190610f2d565b61062b565b60405161024f9190610f88565b60405180910390f35b610272600480360381019061026d9190610f2d565b610716565b60405161027f9190610f88565b60405180910390f35b6102a2600480360381019061029d91906110b1565b610734565b6040516102af9190610fb2565b60405180910390f35b6102c06107bb565b6040516102cd9190610fb2565b60405180910390f35b6060600380546102e590611120565b80601f016020809104026020016040519081016040528092919081815260200182805461031190611120565b801561035e5780601f106103335761010080835404028352916020019161035e565b820191906000526020600020905b81548152906001019060200180831161034157829003601f168201915b5050505050905090565b600061037c6103756107dc565b84846107e4565b6001905092915050565b6000600254905090565b600061039d8484846109af565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006103e86107dc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045f906111c4565b60405180910390fd5b61047c856104746107dc565b8584036107e4565b60019150509392505050565b60006012905090565b600061053361049e6107dc565b8484600160006104ac6107dc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461052e9190611213565b6107e4565b6001905092915050565b61054e6105486107dc565b82610c1a565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546105a890611120565b80601f01602080910402602001604051908101604052809291908181526020018280546105d490611120565b80156106215780601f106105f657610100808354040283529160200191610621565b820191906000526020600020905b81548152906001019060200180831161060457829003601f168201915b5050505050905090565b6000806001600061063a6107dc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ee906112db565b60405180910390fd5b61070b6107026107dc565b858584036107e4565b600191505092915050565b600061072a6107236107dc565b84846109af565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6012600a6107c9919061142e565b64174876e8006107d99190611479565b81565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90611545565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb906115d7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516109a29190610fb2565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1690611669565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a86906116fb565b60405180910390fd5b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0c9061178d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610ba89190611213565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c0c9190610fb2565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c819061181f565b60405180910390fd5b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d07906118b1565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254610d6791906118d1565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610dcc9190610fb2565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610e13578082015181840152602081019050610df8565b83811115610e22576000848401525b50505050565b6000601f19601f8301169050919050565b6000610e4482610dd9565b610e4e8185610de4565b9350610e5e818560208601610df5565b610e6781610e28565b840191505092915050565b60006020820190508181036000830152610e8c8184610e39565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ec482610e99565b9050919050565b610ed481610eb9565b8114610edf57600080fd5b50565b600081359050610ef181610ecb565b92915050565b6000819050919050565b610f0a81610ef7565b8114610f1557600080fd5b50565b600081359050610f2781610f01565b92915050565b60008060408385031215610f4457610f43610e94565b5b6000610f5285828601610ee2565b9250506020610f6385828601610f18565b9150509250929050565b60008115159050919050565b610f8281610f6d565b82525050565b6000602082019050610f9d6000830184610f79565b92915050565b610fac81610ef7565b82525050565b6000602082019050610fc76000830184610fa3565b92915050565b600080600060608486031215610fe657610fe5610e94565b5b6000610ff486828701610ee2565b935050602061100586828701610ee2565b925050604061101686828701610f18565b9150509250925092565b600060ff82169050919050565b61103681611020565b82525050565b6000602082019050611051600083018461102d565b92915050565b60006020828403121561106d5761106c610e94565b5b600061107b84828501610f18565b91505092915050565b60006020828403121561109a57611099610e94565b5b60006110a884828501610ee2565b91505092915050565b600080604083850312156110c8576110c7610e94565b5b60006110d685828601610ee2565b92505060206110e785828601610ee2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061113857607f821691505b6020821081141561114c5761114b6110f1565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b60006111ae602883610de4565b91506111b982611152565b604082019050919050565b600060208201905081810360008301526111dd816111a1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061121e82610ef7565b915061122983610ef7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561125e5761125d6111e4565b5b828201905092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006112c5602583610de4565b91506112d082611269565b604082019050919050565b600060208201905081810360008301526112f4816112b8565b9050919050565b60008160011c9050919050565b6000808291508390505b60018511156113525780860481111561132e5761132d6111e4565b5b600185161561133d5780820291505b808102905061134b856112fb565b9450611312565b94509492505050565b60008261136b5760019050611427565b816113795760009050611427565b816001811461138f5760028114611399576113c8565b6001915050611427565b60ff8411156113ab576113aa6111e4565b5b8360020a9150848211156113c2576113c16111e4565b5b50611427565b5060208310610133831016604e8410600b84101617156113fd5782820a9050838111156113f8576113f76111e4565b5b611427565b61140a8484846001611308565b92509050818404811115611421576114206111e4565b5b81810290505b9392505050565b600061143982610ef7565b915061144483611020565b92506114717fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461135b565b905092915050565b600061148482610ef7565b915061148f83610ef7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156114c8576114c76111e4565b5b828202905092915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061152f602483610de4565b915061153a826114d3565b604082019050919050565b6000602082019050818103600083015261155e81611522565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006115c1602283610de4565b91506115cc82611565565b604082019050919050565b600060208201905081810360008301526115f0816115b4565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000611653602583610de4565b915061165e826115f7565b604082019050919050565b6000602082019050818103600083015261168281611646565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006116e5602383610de4565b91506116f082611689565b604082019050919050565b60006020820190508181036000830152611714816116d8565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000611777602683610de4565b91506117828261171b565b604082019050919050565b600060208201905081810360008301526117a68161176a565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000611809602183610de4565b9150611814826117ad565b604082019050919050565b60006020820190508181036000830152611838816117fc565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061189b602283610de4565b91506118a68261183f565b604082019050919050565b600060208201905081810360008301526118ca8161188e565b9050919050565b60006118dc82610ef7565b91506118e783610ef7565b9250828210156118fa576118f96111e4565b5b82820390509291505056fea2646970667358221220fe5ad00dea18c944b4418619b4e20684f701daa3150b5c9c550f153344ac30d364736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
main.sol 334 lines
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023.
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @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);
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: Token.sol
pragma solidity 0.8.9;
contract Token is Context, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private constant _decimals = 18;
uint256 public constant hardCap = 100_000_000_000 * (10**_decimals); //100 billion
constructor(
string memory name_,
string memory symbol_,
address _to
) {
require(_to != address(0), "Zero to address");
_name = name_;
_symbol = symbol_;
_mint(_to, hardCap);
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
function transfer(address recipient, uint256 amount)
public
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address from, address to)
public
view
virtual
override
returns (uint256)
{
return _allowances[from][to];
}
function approve(address to, uint256 amount)
public
virtual
override
returns (bool)
{
_approve(_msgSender(), to, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address to, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(_msgSender(), to, _allowances[_msgSender()][to] + addedValue);
return true;
}
function decreaseAllowance(address to, uint256 subtractedValue)
public
virtual
returns (bool)
{
uint256 currentAllowance = _allowances[_msgSender()][to];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), to, currentAllowance - subtractedValue);
}
return true;
}
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");
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
}
function burn(uint256 amount) external {
_burn(_msgSender(), amount);
}
function _approve(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: approve from the zero address");
require(to != address(0), "ERC20: approve to the zero address");
_allowances[from][to] = amount;
emit Approval(from, to, amount);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
hardCap 0xfb86a404 → uint256
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address to
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address to
uint256 addedValue
returns: bool
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address