BscScan - Sponsored slots available. Book your slot here!
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 299,254 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 92415853 | 23 secs ago | IN | 0 BNB | 0.00000179 | ||||
| Approve | 92415807 | 43 secs ago | IN | 0 BNB | 0.00000308 | ||||
| Approve | 92415787 | 52 secs ago | IN | 0 BNB | 0.00000308 | ||||
| Transfer | 92415654 | 1 min ago | IN | 0 BNB | 0.00000242 | ||||
| Approve | 92415529 | 2 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Transfer | 92415483 | 3 mins ago | IN | 0 BNB | 0.00000211 | ||||
| Approve | 92415468 | 3 mins ago | IN | 0 BNB | 0.00000308 | ||||
| Approve | 92415436 | 3 mins ago | IN | 0 BNB | 0.00000308 | ||||
| Transfer | 92415399 | 3 mins ago | IN | 0 BNB | 0.00000242 | ||||
| Approve | 92415381 | 3 mins ago | IN | 0 BNB | 0.00000308 | ||||
| Approve | 92415353 | 4 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Transfer | 92415315 | 4 mins ago | IN | 0 BNB | 0.00000354 | ||||
| Approve | 92415173 | 5 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Approve | 92415075 | 6 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Approve | 92415030 | 6 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Approve | 92414918 | 7 mins ago | IN | 0 BNB | 0.00000308 | ||||
| Approve | 92414646 | 9 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Approve | 92414336 | 11 mins ago | IN | 0 BNB | 0.00000199 | ||||
| Approve | 92414111 | 13 mins ago | IN | 0 BNB | 0.00000308 | ||||
| Approve | 92413996 | 14 mins ago | IN | 0 BNB | 0.00000312 | ||||
| Approve | 92413888 | 15 mins ago | IN | 0 BNB | 0.00000311 | ||||
| Approve | 92413858 | 15 mins ago | IN | 0 BNB | 0.00000312 | ||||
| Approve | 92413779 | 15 mins ago | IN | 0 BNB | 0.00000181 | ||||
| Approve | 92413724 | 16 mins ago | IN | 0 BNB | 0.00000181 | ||||
| Approve | 92413628 | 17 mins ago | IN | 0 BNB | 0.00000333 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TSR
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
contract TSR is ERC20, Ownable,AccessControl {
uint256 public constant MAX_SUPPLY = 100_000_000 * 10**18;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor() ERC20("TSR", "TSR") Ownable(msg.sender){
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(MINTER_ROLE, msg.sender);
}
function mint(address to, uint256 amount) external onlyRole(MINTER_ROLE) {
require(totalSupply() + amount <= MAX_SUPPLY, "Minting exceeds max supply");
_mint(to, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)
pragma solidity >=0.8.4;
/**
* @dev External interface of AccessControl declared to support ERC-165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted to signal this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
* Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)
pragma solidity >=0.8.4;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both values are immutable: they can only be set once during construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/// @inheritdoc IERC20
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/// @inheritdoc IERC20
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/// @inheritdoc IERC20
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner`'s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity >=0.6.2;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC-20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 200,
"details": {
"yulDetails": {
"optimizerSteps": "u"
}
}
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234620000265762000014620000fe565b60405161115862000605823961115890f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f191681019081106001600160401b038211176200006357604052565b6200002b565b90620000806200007860405190565b928362000041565b565b6001600160401b0381116200006357602090601f01601f19160190565b90620000b5620000af8362000082565b62000069565b918252565b620000c660036200009f565b622a29a960e91b602082015290565b620000df620000ba565b90565b620000df620000df620000df9290565b620000df6000620000e2565b62000160336200012362000111620000d5565b6200011b620000d5565b908362000163565b620001388162000132620000f2565b620004a0565b507f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6620004a0565b50565b62000080928392839283929190620001be565b62000186620000df620000df9290565b6001600160a01b031690565b620000df9062000176565b620001a89062000186565b9052565b6020810192916200008091906200019d565b91620001ca9162000419565b620001d6600062000192565b620001e18162000186565b620001ec8362000186565b14620001fe57506200008090620005a2565b62000224906200020d60405190565b631e4fbdf760e01b815291829160048301620001ac565b0390fd5b634e487b7160e01b600052602260045260246000fd5b906001600283049216801562000261575b60208310146200025b57565b62000228565b91607f16916200024f565b9160001960089290920291821b911b5b9181191691161790565b91906200029b620000df620002a493620000e2565b9083546200026c565b9055565b620000809160009162000286565b818110620002c2575050565b80620002d26000600193620002a8565b01620002b6565b9190601f8111620002e957505050565b620002fd6200008093600052602060002090565b906020601f84018190048301931062000321575b6020601f909101040190620002b6565b909150819062000311565b9062000336815190565b906001600160401b03821162000063576200035e826200035785546200023e565b85620002d9565b602090601f83116001146200039d57620002a492916000918362000391575b5050600019600883021c1916906002021790565b0151905038806200037d565b601f19831691620003b385600052602060002090565b9260005b818110620003f457509160029391856001969410620003da575b50505002019055565b01516000196008601f8516021c19169055388080620003d1565b91936020600181928787015181550195019201620003b7565b9062000080916200032c565b906200042b620000809260036200040d565b60046200040d565b905b600052602052604060002090565b620000df9062000186906001600160a01b031682565b620000df9062000443565b620000df9062000459565b90620004359062000464565b9060ff906200027c565b9062000498620000df620002a492151590565b82546200047b565b620004b4620004b0838362000536565b1590565b156200052f57600191620004e383620004dd836000620004d687600662000433565b016200046f565b62000485565b33906200051d62000516620005167f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9590565b9262000464565b926200052860405190565b600090a490565b5050600090565b620000df916000620004d662000558936200054f600090565b50600662000433565b5460ff1690565b620000df9062000186565b620000df90546200055f565b906001600160a01b03906200027c565b906200059a620000df620002a49262000464565b825462000576565b620005ae60056200056a565b90620005bc81600562000586565b620005f3620005ec7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09362000464565b9162000464565b91620005fe60405190565b600090a356fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461017257806306fdde031461016d578063095ea7b31461016857806318160ddd1461016357806323b872dd1461015e578063248a9ca3146101595780632f2ff15d14610154578063313ce5671461014f57806332cb6b0c1461014a57806336568abe1461014557806340c10f191461014057806370a082311461013b578063715018a6146101365780638da5cb5b1461013157806391d148541461012c57806395d89b4114610127578063a217fddf14610122578063a9059cbb1461011d578063d539139314610118578063d547741f14610113578063dd62ed3e1461010e5763f2fde38b0361018a5761060f565b6105f3565b6105c0565b610587565b61056b565b610550565b610523565b610507565b6104d2565b6104ba565b61049f565b610472565b610459565b61043e565b6103e6565b6103c8565b61038a565b61035a565b6102fe565b6102e2565b61025d565b6101b5565b6001600160e01b031981165b0361018a57565b600080fd5b9050359061019c82610177565b565b9060208282031261018a576101b29161018f565b90565b3461018a576101e26101d06101cb36600461019e565b610627565b60405191829182901515815260200190565b0390f35b600091031261018a57565b60005b8381106102045750506000910152565b81810151838201526020016101f4565b61023561023e60209361024893610229815190565b80835293849260200190565b958691016101f1565b601f01601f191690565b0190565b60208082526101b292910190610214565b3461018a5761026d3660046101e6565b6101e2610278610bdb565b6040519182918261024c565b6001600160a01b031690565b6001600160a01b038116610183565b9050359061019c82610290565b80610183565b9050359061019c826102ac565b919060408382031261018a576101b2906102d9818561029f565b936020016102b2565b3461018a576101e26101d06102f83660046102bf565b90610c61565b3461018a5761030e3660046101e6565b6101e2610319610c06565b6040515b9182918290815260200190565b909160608284031261018a576101b2610343848461029f565b93610351816020860161029f565b936040016102b2565b3461018a576101e26101d061037036600461032a565b91610c6c565b9060208282031261018a576101b2916102b2565b3461018a576101e26103196103a0366004610376565b6106ef565b919060408382031261018a576101b2906103bf81856102b2565b9360200161029f565b3461018a576103e16103db3660046103a5565b90610729565b604051005b3461018a576103f63660046101e6565b6101e2610401610bfc565b6040519182918260ff909116815260200190565b6101b26101b26101b29290565b6101b26a52b7d2dcc80cd2e4000000610415565b6101b2610422565b3461018a5761044e3660046101e6565b6101e2610319610436565b3461018a576103e161046c3660046103a5565b906107c4565b3461018a576103e16104853660046102bf565b906110db565b9060208282031261018a576101b29161029f565b3461018a576101e26103196104b536600461048b565b610c10565b3461018a576104ca3660046101e6565b6103e161095c565b3461018a576104e23660046101e6565b6101e26104ed61091a565b604051918291826001600160a01b03909116815260200190565b3461018a576101e26101d061051d3660046103a5565b906106b6565b3461018a576105333660046101e6565b6101e2610278610be5565b6101b26000610415565b6101b261053e565b3461018a576105603660046101e6565b6101e2610319610548565b3461018a576101e26101d06105813660046102bf565b90610c2c565b3461018a576105973660046101e6565b6101e27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610319565b3461018a576103e16105d33660046103a5565b906107ba565b919060408382031261018a576101b2906103bf818561029f565b3461018a576101e26103196106093660046105d9565b90610c41565b3461018a576103e161062236600461048b565b610a1c565b637965db0b60e01b6001600160e01b0319821614908115610646575090565b6101b291506001600160e01b0319166301ffc9a760e01b1490565b905b600052602052604060002090565b6101b290610284906001600160a01b031682565b6101b290610671565b6101b290610685565b906106639061068e565b6101b2905b60ff1690565b6101b290546106a1565b6101b29160006106d36106d9936106cb600090565b506006610661565b01610697565b6106ac565b6101b29081565b6101b290546106de565b60016107006101b2926106cb600090565b016106e5565b9061019c9161071c610717826106ef565b610733565b9061072691610822565b50565b9061019c91610706565b61019c90339061075f565b6001600160a01b03909116815260408101929161019c9160200152565b0152565b9061077161076d82846106b6565b1590565b610779575050565b61079b61078560405190565b63e2517d3f60e01b81529283926004840161073e565b0390fd5b9061019c916107b0610717826106ef565b906107269161089f565b9061019c9161079f565b906107ce33610284565b6001600160a01b038216036107e6576107269161089f565b60405163334bd91960e11b8152600490fd5b9060ff905b9181191691161790565b906108176101b261081e92151590565b82546107f8565b9055565b61082f61076d83836106b6565b15610898576001916108518361084c8360006106d3876006610661565b610807565b33906108876108816108817f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9590565b9261068e565b9261089160405190565b600090a490565b5050600090565b906108aa81836106b6565b15610898576108c4600061084c83826106d3876006610661565b33906108f46108816108817ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9590565b926108fe60405190565b600090a4600190565b6101b290610284565b6101b29054610907565b6101b26005610910565b61092c610964565b61019c61094a565b6102846101b26101b29290565b6101b290610934565b61019c6109576000610941565b610a4b565b61019c610924565b61096c61091a565b339081906001600160a01b0316036109815750565b61079b9061098e60405190565b63118cdaa760e01b8152918291600483016001600160a01b03909116815260200190565b61019c906109be610964565b6109c86000610941565b6001600160a01b0381166001600160a01b038316146109eb575061019c90610a4b565b61079b906109f860405190565b631e4fbdf760e01b8152918291600483016001600160a01b03909116815260200190565b61019c906109b2565b906001600160a01b03906107fd565b90610a446101b261081e9261068e565b8254610a25565b610a556005610910565b90610a61816005610a34565b610a94610a8e7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09361068e565b9161068e565b91610a9e60405190565b80805b0390a3565b634e487b7160e01b600052602260045260246000fd5b9060016002830492168015610adc575b6020831014610ad757565b610aa6565b91607f1691610acc565b80546000939291610b03610af983610abc565b8085529360200190565b9160018116908115610b555750600114610b1c57505050565b610b2f9192939450600052602060002090565b916000925b818410610b415750500190565b805484840152602090930192600101610b34565b92949550505060ff1916825215156020020190565b906101b291610ae6565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff821117610bac57604052565b610b74565b9061019c610bcb92610bc260405190565b93848092610b6a565b0383610b8a565b6101b290610bb1565b6101b26003610bd2565b6101b26004610bd2565b6106a66101b26101b29290565b6101b26012610bef565b6101b260026106e5565b610c276101b291610c1f600090565b506000610697565b6106e5565b610c3c919033610c7d565b610c7d565b600190565b6101b291610c5c610c2792610c54600090565b506001610697565b610697565b610c3c919033610ec7565b610c3c929190610c37833383610fbf565b929190610c8a6000610941565b936001600160a01b0385166001600160a01b03821614610cf9576001600160a01b0385166001600160a01b03831614610cc85761019c939450610d9a565b61079b85610cd560405190565b63ec442f0560e01b8152918291600483016001600160a01b03909116815260200190565b61079b85610d0660405190565b634b637e8f60e11b8152918291600483016001600160a01b03909116815260200190565b6001600160a01b03909116815260608101939261019c92909160409161075b906020830152565b90600019906107fd565b90610d6b6101b261081e92610415565b8254610d51565b634e487b7160e01b600052601160045260246000fd5b91908201809211610d9557565b610d72565b816000610da681610941565b6001600160a01b0381166001600160a01b03851603610e6b57610de090610284610dd988610dd460026106e5565b610d88565b6002610d5b565b6001600160a01b03831603610e46575050610e06610dd984610e0260026106e5565b0390565b610aa1610e3c610e367fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9361068e565b9361068e565b9361031d60405190565b610e6691610e5391610697565b610e6085610248836106e5565b90610d5b565b610e06565b909150610e7b610c278484610697565b858110610ea357849291610284610e9488610de0940390565b610e9e8786610697565b610d5b565b8361079b87610eb160405190565b63391434e360e21b815293849360048501610d2a565b909161019c926001925b909192610ede6000610941565b6001600160a01b0381166001600160a01b03841614610f8e576001600160a01b0381166001600160a01b03851614610f5d5750610f2484610e9e85610c5c866001610697565b610f2d57505050565b610aa1610e3c610e367f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259361068e565b61079b90610f6a60405190565b634a1406b160e11b8152918291600483016001600160a01b03909116815260200190565b61079b90610f9b60405190565b63e602df0560e01b8152918291600483016001600160a01b03909116815260200190565b90929192610fcd8183610c41565b936000198510610fdf575b5050509050565b80851061100557610ff390610ffc94950390565b90600092610ed1565b80388080610fd8565b9061079b859261101460405190565b637dc7a0d960e11b815293849360048501610d2a565b61019c91906110587f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610733565b6110a9565b1561106457565b60405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e672065786365656473206d617820737570706c790000000000006044820152606490fd5b9061019c916110d66110bd83610dd4610c06565b6110cf6110cb6101b2610422565b9190565b111561105d565b6110e5565b9061019c9161102a565b91906110f16000610941565b926001600160a01b0384166001600160a01b038216146111155761019c9293610d9a565b61079b84610cd56040519056fea26469706673582212206349a40a8bdc657616e749de33b45bd86c45022643a42aa1ebf47f975716d9fd64736f6c63430008140033
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461017257806306fdde031461016d578063095ea7b31461016857806318160ddd1461016357806323b872dd1461015e578063248a9ca3146101595780632f2ff15d14610154578063313ce5671461014f57806332cb6b0c1461014a57806336568abe1461014557806340c10f191461014057806370a082311461013b578063715018a6146101365780638da5cb5b1461013157806391d148541461012c57806395d89b4114610127578063a217fddf14610122578063a9059cbb1461011d578063d539139314610118578063d547741f14610113578063dd62ed3e1461010e5763f2fde38b0361018a5761060f565b6105f3565b6105c0565b610587565b61056b565b610550565b610523565b610507565b6104d2565b6104ba565b61049f565b610472565b610459565b61043e565b6103e6565b6103c8565b61038a565b61035a565b6102fe565b6102e2565b61025d565b6101b5565b6001600160e01b031981165b0361018a57565b600080fd5b9050359061019c82610177565b565b9060208282031261018a576101b29161018f565b90565b3461018a576101e26101d06101cb36600461019e565b610627565b60405191829182901515815260200190565b0390f35b600091031261018a57565b60005b8381106102045750506000910152565b81810151838201526020016101f4565b61023561023e60209361024893610229815190565b80835293849260200190565b958691016101f1565b601f01601f191690565b0190565b60208082526101b292910190610214565b3461018a5761026d3660046101e6565b6101e2610278610bdb565b6040519182918261024c565b6001600160a01b031690565b6001600160a01b038116610183565b9050359061019c82610290565b80610183565b9050359061019c826102ac565b919060408382031261018a576101b2906102d9818561029f565b936020016102b2565b3461018a576101e26101d06102f83660046102bf565b90610c61565b3461018a5761030e3660046101e6565b6101e2610319610c06565b6040515b9182918290815260200190565b909160608284031261018a576101b2610343848461029f565b93610351816020860161029f565b936040016102b2565b3461018a576101e26101d061037036600461032a565b91610c6c565b9060208282031261018a576101b2916102b2565b3461018a576101e26103196103a0366004610376565b6106ef565b919060408382031261018a576101b2906103bf81856102b2565b9360200161029f565b3461018a576103e16103db3660046103a5565b90610729565b604051005b3461018a576103f63660046101e6565b6101e2610401610bfc565b6040519182918260ff909116815260200190565b6101b26101b26101b29290565b6101b26a52b7d2dcc80cd2e4000000610415565b6101b2610422565b3461018a5761044e3660046101e6565b6101e2610319610436565b3461018a576103e161046c3660046103a5565b906107c4565b3461018a576103e16104853660046102bf565b906110db565b9060208282031261018a576101b29161029f565b3461018a576101e26103196104b536600461048b565b610c10565b3461018a576104ca3660046101e6565b6103e161095c565b3461018a576104e23660046101e6565b6101e26104ed61091a565b604051918291826001600160a01b03909116815260200190565b3461018a576101e26101d061051d3660046103a5565b906106b6565b3461018a576105333660046101e6565b6101e2610278610be5565b6101b26000610415565b6101b261053e565b3461018a576105603660046101e6565b6101e2610319610548565b3461018a576101e26101d06105813660046102bf565b90610c2c565b3461018a576105973660046101e6565b6101e27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610319565b3461018a576103e16105d33660046103a5565b906107ba565b919060408382031261018a576101b2906103bf818561029f565b3461018a576101e26103196106093660046105d9565b90610c41565b3461018a576103e161062236600461048b565b610a1c565b637965db0b60e01b6001600160e01b0319821614908115610646575090565b6101b291506001600160e01b0319166301ffc9a760e01b1490565b905b600052602052604060002090565b6101b290610284906001600160a01b031682565b6101b290610671565b6101b290610685565b906106639061068e565b6101b2905b60ff1690565b6101b290546106a1565b6101b29160006106d36106d9936106cb600090565b506006610661565b01610697565b6106ac565b6101b29081565b6101b290546106de565b60016107006101b2926106cb600090565b016106e5565b9061019c9161071c610717826106ef565b610733565b9061072691610822565b50565b9061019c91610706565b61019c90339061075f565b6001600160a01b03909116815260408101929161019c9160200152565b0152565b9061077161076d82846106b6565b1590565b610779575050565b61079b61078560405190565b63e2517d3f60e01b81529283926004840161073e565b0390fd5b9061019c916107b0610717826106ef565b906107269161089f565b9061019c9161079f565b906107ce33610284565b6001600160a01b038216036107e6576107269161089f565b60405163334bd91960e11b8152600490fd5b9060ff905b9181191691161790565b906108176101b261081e92151590565b82546107f8565b9055565b61082f61076d83836106b6565b15610898576001916108518361084c8360006106d3876006610661565b610807565b33906108876108816108817f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9590565b9261068e565b9261089160405190565b600090a490565b5050600090565b906108aa81836106b6565b15610898576108c4600061084c83826106d3876006610661565b33906108f46108816108817ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9590565b926108fe60405190565b600090a4600190565b6101b290610284565b6101b29054610907565b6101b26005610910565b61092c610964565b61019c61094a565b6102846101b26101b29290565b6101b290610934565b61019c6109576000610941565b610a4b565b61019c610924565b61096c61091a565b339081906001600160a01b0316036109815750565b61079b9061098e60405190565b63118cdaa760e01b8152918291600483016001600160a01b03909116815260200190565b61019c906109be610964565b6109c86000610941565b6001600160a01b0381166001600160a01b038316146109eb575061019c90610a4b565b61079b906109f860405190565b631e4fbdf760e01b8152918291600483016001600160a01b03909116815260200190565b61019c906109b2565b906001600160a01b03906107fd565b90610a446101b261081e9261068e565b8254610a25565b610a556005610910565b90610a61816005610a34565b610a94610a8e7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09361068e565b9161068e565b91610a9e60405190565b80805b0390a3565b634e487b7160e01b600052602260045260246000fd5b9060016002830492168015610adc575b6020831014610ad757565b610aa6565b91607f1691610acc565b80546000939291610b03610af983610abc565b8085529360200190565b9160018116908115610b555750600114610b1c57505050565b610b2f9192939450600052602060002090565b916000925b818410610b415750500190565b805484840152602090930192600101610b34565b92949550505060ff1916825215156020020190565b906101b291610ae6565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff821117610bac57604052565b610b74565b9061019c610bcb92610bc260405190565b93848092610b6a565b0383610b8a565b6101b290610bb1565b6101b26003610bd2565b6101b26004610bd2565b6106a66101b26101b29290565b6101b26012610bef565b6101b260026106e5565b610c276101b291610c1f600090565b506000610697565b6106e5565b610c3c919033610c7d565b610c7d565b600190565b6101b291610c5c610c2792610c54600090565b506001610697565b610697565b610c3c919033610ec7565b610c3c929190610c37833383610fbf565b929190610c8a6000610941565b936001600160a01b0385166001600160a01b03821614610cf9576001600160a01b0385166001600160a01b03831614610cc85761019c939450610d9a565b61079b85610cd560405190565b63ec442f0560e01b8152918291600483016001600160a01b03909116815260200190565b61079b85610d0660405190565b634b637e8f60e11b8152918291600483016001600160a01b03909116815260200190565b6001600160a01b03909116815260608101939261019c92909160409161075b906020830152565b90600019906107fd565b90610d6b6101b261081e92610415565b8254610d51565b634e487b7160e01b600052601160045260246000fd5b91908201809211610d9557565b610d72565b816000610da681610941565b6001600160a01b0381166001600160a01b03851603610e6b57610de090610284610dd988610dd460026106e5565b610d88565b6002610d5b565b6001600160a01b03831603610e46575050610e06610dd984610e0260026106e5565b0390565b610aa1610e3c610e367fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9361068e565b9361068e565b9361031d60405190565b610e6691610e5391610697565b610e6085610248836106e5565b90610d5b565b610e06565b909150610e7b610c278484610697565b858110610ea357849291610284610e9488610de0940390565b610e9e8786610697565b610d5b565b8361079b87610eb160405190565b63391434e360e21b815293849360048501610d2a565b909161019c926001925b909192610ede6000610941565b6001600160a01b0381166001600160a01b03841614610f8e576001600160a01b0381166001600160a01b03851614610f5d5750610f2484610e9e85610c5c866001610697565b610f2d57505050565b610aa1610e3c610e367f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259361068e565b61079b90610f6a60405190565b634a1406b160e11b8152918291600483016001600160a01b03909116815260200190565b61079b90610f9b60405190565b63e602df0560e01b8152918291600483016001600160a01b03909116815260200190565b90929192610fcd8183610c41565b936000198510610fdf575b5050509050565b80851061100557610ff390610ffc94950390565b90600092610ed1565b80388080610fd8565b9061079b859261101460405190565b637dc7a0d960e11b815293849360048501610d2a565b61019c91906110587f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610733565b6110a9565b1561106457565b60405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e672065786365656473206d617820737570706c790000000000006044820152606490fd5b9061019c916110d66110bd83610dd4610c06565b6110cf6110cb6101b2610422565b9190565b111561105d565b6110e5565b9061019c9161102a565b91906110f16000610941565b926001600160a01b0384166001600160a01b038216146111155761019c9293610d9a565b61079b84610cd56040519056fea26469706673582212206349a40a8bdc657616e749de33b45bd86c45022643a42aa1ebf47f975716d9fd64736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.