ERC-20
Source Code
Overview
Max Total Supply
21,000,000 TRT
Holders
1,529
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.009143 TRTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
TRUSTAI
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @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 @openzeppelin/contracts/access/[email protected]
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.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.
*
* By default, the owner account will be the one that deploys the contract. 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;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
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 {
_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 {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_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);
}
}
// File @openzeppelin/contracts/token/ERC20/[email protected]
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
/**
* @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/[email protected]
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @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/token/ERC20/[email protected]
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* 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 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 {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The 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_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount)
public
virtual
override
returns (bool)
{
address owner = _msgSender();
_transfer(owner, to, 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}.
*
* NOTE: If `amount` 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 amount)
public
virtual
override
returns (bool)
{
address owner = _msgSender();
_approve(owner, 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}.
*
* 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 `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `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.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(
fromBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, 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 += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(
currentAllowance >= amount,
"ERC20: insufficient allowance"
);
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be 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 {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value)
private
view
returns (bool)
{
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index)
private
view
returns (bytes32)
{
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value)
internal
returns (bool)
{
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value)
internal
returns (bool)
{
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value)
internal
view
returns (bool)
{
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index)
internal
view
returns (bytes32)
{
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set)
internal
view
returns (bytes32[] memory)
{
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value)
internal
returns (bool)
{
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index)
internal
view
returns (address)
{
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set)
internal
view
returns (address[] memory)
{
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index)
internal
view
returns (uint256)
{
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set)
internal
view
returns (uint256[] memory)
{
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
contract TRUSTAI is ERC20, Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
// Fees receivers
address private marketingWallet;
address private devWallet;
address private buyBackWallet;
address private lpWallet;
// Buy Fees
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public buyBuyBackFee;
// Sell Fees
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public sellBuyBackFee;
uint256 private totalFee;
uint256 private MarketingFee;
uint256 private LiquidityFee;
uint256 private DevFee;
uint256 private BuyBackFee;
mapping(address => bool) private isFeeExempt;
EnumerableSet.AddressSet private _pairs;
bool private feesEnabled = true;
event ExcludeFromFeesUpdate(address indexed account, bool isExcluded);
event WalletUpdated(
string walletType,
address indexed newWallet,
address indexed oldWallet
);
event FeesUpdated(
string feeType,
uint256 marketingFee,
uint256 liquidityFee,
uint256 devFee,
uint256 buyBackFee
);
event FeesEnabled(bool enabled);
constructor(address _owner) ERC20("TRUST AI", "TRT") {
uint256 totalSupply = 21000000 * (10**decimals());
buyMarketingFee = 2;
buyLiquidityFee = 0;
buyDevFee = 2;
buyBuyBackFee = 1;
buyTotalFees =
buyMarketingFee +
buyLiquidityFee +
buyDevFee +
buyBuyBackFee;
sellMarketingFee = 2;
sellLiquidityFee = 0;
sellDevFee = 2;
sellBuyBackFee = 1;
sellTotalFees =
sellMarketingFee +
sellLiquidityFee +
sellDevFee +
sellBuyBackFee;
marketingWallet = 0xE45C96e58b6B4001F85Fc206735fDc219AbbCA6A;
devWallet = 0x40F4F5A0B73BD7Dd56504E320549f7dC12B58845;
buyBackWallet = 0xc16E767B25e2fAaDF7A648Ff26aeD1c5Dd009515;
lpWallet = 0x388C3B05628E6C58C43dc8D04C115c80ee108F59;
isFeeExempt[_owner] = true;
isFeeExempt[address(this)] = true;
_mint(_owner, totalSupply);
_transferOwnership(_owner);
}
function buyFees() internal {
MarketingFee = buyMarketingFee;
LiquidityFee = buyLiquidityFee;
DevFee = buyDevFee;
BuyBackFee = buyBuyBackFee;
totalFee = buyTotalFees;
}
function sellFees() internal {
MarketingFee = sellMarketingFee;
LiquidityFee = sellLiquidityFee;
DevFee = sellDevFee;
BuyBackFee = sellBuyBackFee;
totalFee = sellTotalFees;
}
function setSellFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _devFee,
uint256 _buyBackFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _devFee;
sellBuyBackFee = _buyBackFee;
sellTotalFees = _marketingFee + _liquidityFee + _devFee + _buyBackFee;
require(sellTotalFees <= 10, "Must keep fees at 10% or less");
emit FeesUpdated(
"Sell",
_marketingFee,
_liquidityFee,
_devFee,
_buyBackFee
);
}
function setBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _devFee,
uint256 _buyBackFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _devFee;
buyBuyBackFee = _buyBackFee;
buyTotalFees = _marketingFee + _liquidityFee + _devFee + _buyBackFee;
require(buyTotalFees <= 10, "Must keep fees at 10% or less");
emit FeesUpdated(
"Buy",
_marketingFee,
_liquidityFee,
_devFee,
_buyBackFee
);
}
function updateMarketingWallet(address newWallet) external onlyOwner {
require(
newWallet != address(0) && newWallet != address(0xdead),
"TRUSTAI: newMarketingWallet is the zero address or dead address"
);
emit WalletUpdated("Marketing", newWallet, marketingWallet);
marketingWallet = newWallet;
}
function updateDevWallet(address newWallet) external onlyOwner {
require(
newWallet != address(0) && newWallet != address(0xdead),
"TRUSTAI: newWallet is the zero address or dead address"
);
emit WalletUpdated("Dev", newWallet, devWallet);
devWallet = newWallet;
}
function updateBuyBackWallet(address newWallet) external onlyOwner {
require(
newWallet != address(0) && newWallet != address(0xdead),
"TRUSTAI: newWallet is the zero address or dead address"
);
emit WalletUpdated("BuyBack", newWallet, buyBackWallet);
buyBackWallet = newWallet;
}
function updateLpWallet(address newWallet) external onlyOwner {
require(
newWallet != address(0) && newWallet != address(0xdead),
"TRUSTAI: newWallet is the zero address or dead address"
);
emit WalletUpdated("LP", newWallet, lpWallet);
lpWallet = newWallet;
}
function clearStuckEthBalance() external onlyOwner {
uint256 amountETH = address(this).balance;
(bool success, ) = payable(_msgSender()).call{value: amountETH}(
new bytes(0)
);
require(success, "TRUSTAI: ETH_TRANSFER_FAILED");
}
function clearStuckBalance() external onlyOwner {
super.transfer(_msgSender(), balanceOf(address(this)));
}
function setFeesEnabled(bool _feesEnabled) external onlyOwner {
feesEnabled = _feesEnabled;
emit FeesEnabled(_feesEnabled);
}
function excludeFromFees(address account, bool excluded)
external
onlyOwner
{
require(
account != address(0) && account != address(0xdead),
"TRUSTAI: account is the zero address or dead address"
);
isFeeExempt[account] = excluded;
emit ExcludeFromFeesUpdate(account, excluded);
}
function addPair(address pair) external onlyOwner returns (bool) {
require(
pair != address(0) && pair != address(0xdead),
"TRUSTAI: pair is the zero address or dead address"
);
return _pairs.add(pair);
}
function delPair(address pair) external onlyOwner returns (bool) {
require(
pair != address(0) && pair != address(0xdead),
"TRUSTAI: pair is the zero address or dead address"
);
return _pairs.remove(pair);
}
function _transfer(
address from,
address to,
uint256 amount
) internal virtual override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
bool shouldTakeFee = feesEnabled &&
!isFeeExempt[from] &&
!isFeeExempt[to];
if (isPair(from)) {
buyFees();
} else if (isPair(to)) {
sellFees();
} else {
shouldTakeFee = false;
}
uint256 amountReceived = shouldTakeFee ? takeFee(from, amount) : amount;
super._transfer(from, to, amountReceived);
}
function takeFee(address sender, uint256 amount)
internal
returns (uint256)
{
uint256 feeAmount = (amount * totalFee) / (100);
uint256 amountMarketingFee = (amount * MarketingFee) / (100);
uint256 amountLiquidityFee = (amount * LiquidityFee) / (100);
uint256 amountDevFee = (amount * DevFee) / (100);
uint256 amountBuyBackFee = (amount * BuyBackFee) / (100);
if (amountMarketingFee > 0) {
super._transfer(sender, marketingWallet, amountMarketingFee);
}
if (amountLiquidityFee > 0) {
super._transfer(sender, lpWallet, amountLiquidityFee);
}
if (amountDevFee > 0) {
super._transfer(sender, devWallet, amountDevFee);
}
if (amountBuyBackFee > 0) {
super._transfer(sender, buyBackWallet, amountBuyBackFee);
}
return amount - feeAmount;
}
function getMinterLength() external view returns (uint256) {
return _pairs.length();
}
function getPair(uint256 index) external view returns (address) {
require(index <= _pairs.length() - 1, "TRUSTAI: index out of bounds");
return _pairs.at(index);
}
function isExcludedFromFees(address account) external view returns (bool) {
return isFeeExempt[account];
}
function isPair(address account) public view returns (bool) {
return _pairs.contains(account);
}
receive() external payable {}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFeesUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"FeesEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"feeType","type":"string"},{"indexed":false,"internalType":"uint256","name":"marketingFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"devFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyBackFee","type":"uint256"}],"name":"FeesUpdated","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":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"walletType","type":"string"},{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"WalletUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBuyBackFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearStuckBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearStuckEthBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"delPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMinterLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"sellBuyBackFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_buyBackFee","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_feesEnabled","type":"bool"}],"name":"setFeesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_buyBackFee","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","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":"amount","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":"amount","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"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateBuyBackWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateLpWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052601c805460ff191660011790553480156200001e57600080fd5b506040516200242938038062002429833981016040819052620000419162000360565b60405180604001604052806008815260200167545255535420414960c01b8152506040518060400160405280600381526020016215149560ea1b81525081600390816200008f919062000436565b5060046200009e828262000436565b505050620000bb620000b56200023f60201b60201c565b62000243565b6000620000cb6012600a62000617565b620000db906301406f4062000628565b6002600b8190556000600c819055600d8290556001600e81905592935062000104908262000642565b62000110919062000642565b6200011c919062000642565b600a556002601081905560006011819055601282905560016013819055919062000147908262000642565b62000153919062000642565b6200015f919062000642565b600f55600680546001600160a01b031990811673e45c96e58b6b4001f85fc206735fdc219abbca6a179091556007805482167340f4f5a0b73bd7dd56504e320549f7dc12b5884517905560088054821673c16e767b25e2faadf7a648ff26aed1c5dd0095151790556009805490911673388c3b05628e6c58c43dc8d04c115c80ee108f591790556001600160a01b038216600090815260196020526040808220805460ff19908116600190811790925530845291909220805490911690911790556200022c828262000295565b620002378262000243565b505062000658565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002f05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000304919062000642565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6000602082840312156200037357600080fd5b81516001600160a01b03811681146200038b57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003bd57607f821691505b602082108103620003de57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035b57600081815260208120601f850160051c810160208610156200040d5750805b601f850160051c820191505b818110156200042e5782815560010162000419565b505050505050565b81516001600160401b0381111562000452576200045262000392565b6200046a81620004638454620003a8565b84620003e4565b602080601f831160018114620004a25760008415620004895750858301515b600019600386901b1c1916600185901b1785556200042e565b600085815260208120601f198616915b82811015620004d357888601518255948401946001909101908401620004b2565b5085821015620004f25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005595781600019048211156200053d576200053d62000502565b808516156200054b57918102915b93841c93908002906200051d565b509250929050565b600082620005725750600162000611565b81620005815750600062000611565b81600181146200059a5760028114620005a557620005c5565b600191505062000611565b60ff841115620005b957620005b962000502565b50506001821b62000611565b5060208310610133831016604e8410600b8410161715620005ea575081810a62000611565b620005f6838362000518565b80600019048211156200060d576200060d62000502565b0290505b92915050565b60006200038b60ff84168362000561565b808202811582820484141762000611576200061162000502565b8082018082111562000611576200061162000502565b611dc180620006686000396000f3fe60806040526004361061023f5760003560e01c80638da5cb5b1161012e578063bdf391cc116100ab578063dd62ed3e1161006f578063dd62ed3e1461067d578063e5e31b131461069d578063f11a24d3146106bd578063f2fde38b146106d3578063f6374342146106f357600080fd5b8063bdf391cc146105f2578063bfa382b514610612578063c024666814610627578063c2b7bbb614610647578063d85ba0631461066757600080fd5b8063a457c2d7116100f2578063a457c2d714610552578063a5bc508514610572578063a901dd9214610592578063a9059cbb146105b2578063aacebbe3146105d257600080fd5b80638da5cb5b146104c957806392136913146104fb57806395d89b41146105115780639c3b4fdc14610526578063a0d82dc51461053c57600080fd5b8063313ce567116101bc5780636a486a8e116101805780636a486a8e146104325780636c5b28551461044857806370a0823114610468578063715018a61461049e5780637bce5a04146104b357600080fd5b8063313ce56714610388578063364333f4146103a457806339509351146103b95780633d999921146103d95780634fbee193146103f957600080fd5b806318160ddd1161020357806318160ddd146103075780631816467f1461031c5780631a221dbb1461033c5780631fe70a981461035257806323b872dd1461036857600080fd5b80630323aac71461024b57806306e7b14d1461027357806306fdde0314610295578063095ea7b3146102b7578063178d9b8e146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b50610260610709565b6040519081526020015b60405180910390f35b34801561027f57600080fd5b5061029361028e36600461199a565b61071a565b005b3480156102a157600080fd5b506102aa6107de565b60405161026a91906119d9565b3480156102c357600080fd5b506102d76102d2366004611a0c565b610870565b604051901515815260200161026a565b3480156102f357600080fd5b50610293610302366004611a36565b61088a565b34801561031357600080fd5b50600254610260565b34801561032857600080fd5b5061029361033736600461199a565b610983565b34801561034857600080fd5b5061026060135481565b34801561035e57600080fd5b50610260600e5481565b34801561037457600080fd5b506102d7610383366004611a68565b610a3a565b34801561039457600080fd5b506040516012815260200161026a565b3480156103b057600080fd5b50610293610a5e565b3480156103c557600080fd5b506102d76103d4366004611a0c565b610a82565b3480156103e557600080fd5b506102936103f436600461199a565b610aa4565b34801561040557600080fd5b506102d761041436600461199a565b6001600160a01b031660009081526019602052604090205460ff1690565b34801561043e57600080fd5b50610260600f5481565b34801561045457600080fd5b50610293610463366004611a36565b610b5a565b34801561047457600080fd5b5061026061048336600461199a565b6001600160a01b031660009081526020819052604090205490565b3480156104aa57600080fd5b50610293610c4c565b3480156104bf57600080fd5b50610260600b5481565b3480156104d557600080fd5b506005546001600160a01b03165b6040516001600160a01b03909116815260200161026a565b34801561050757600080fd5b5061026060105481565b34801561051d57600080fd5b506102aa610c60565b34801561053257600080fd5b50610260600d5481565b34801561054857600080fd5b5061026060125481565b34801561055e57600080fd5b506102d761056d366004611a0c565b610c6f565b34801561057e57600080fd5b506102d761058d36600461199a565b610cea565b34801561059e57600080fd5b506102936105ad366004611ab4565b610d46565b3480156105be57600080fd5b506102d76105cd366004611a0c565b610d95565b3480156105de57600080fd5b506102936105ed36600461199a565b610da3565b3480156105fe57600080fd5b506104e361060d366004611acf565b610eb6565b34801561061e57600080fd5b50610293610f28565b34801561063357600080fd5b50610293610642366004611ae8565b610fe9565b34801561065357600080fd5b506102d761066236600461199a565b6110dc565b34801561067357600080fd5b50610260600a5481565b34801561068957600080fd5b50610260610698366004611b1b565b611130565b3480156106a957600080fd5b506102d76106b836600461199a565b61115b565b3480156106c957600080fd5b50610260600c5481565b3480156106df57600080fd5b506102936106ee36600461199a565b611168565b3480156106ff57600080fd5b5061026060115481565b6000610715601a6111de565b905090565b6107226111e8565b6001600160a01b0381161580159061074557506001600160a01b03811661dead14155b61076a5760405162461bcd60e51b815260040161076190611b45565b60405180910390fd5b6008546040516001600160a01b0391821691831690600080516020611d6c833981519152906107b4906020808252600790820152664275794261636b60c81b604082015260600190565b60405180910390a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107ed90611b9b565b80601f016020809104026020016040519081016040528092919081815260200182805461081990611b9b565b80156108665780601f1061083b57610100808354040283529160200191610866565b820191906000526020600020905b81548152906001019060200180831161084957829003601f168201915b5050505050905090565b60003361087e818585611242565b60019150505b92915050565b6108926111e8565b600b849055600c839055600d829055600e81905580826108b28587611beb565b6108bc9190611beb565b6108c69190611beb565b600a81815510156109195760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610761565b6040805160a08082526003908201526242757960e81b60c08201526020810186905290810184905260608101839052608081018290527fcc7d769aab9b1bae358245f28bed902ff6c01f19981c2f315c2289966ae76f5b9060e0015b60405180910390a150505050565b61098b6111e8565b6001600160a01b038116158015906109ae57506001600160a01b03811661dead14155b6109ca5760405162461bcd60e51b815260040161076190611b45565b6007546040516001600160a01b0391821691831690600080516020611d6c83398151915290610a10906020808252600390820152622232bb60e91b604082015260600190565b60405180910390a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600033610a48858285611366565b610a538585856113e0565b506001949350505050565b610a666111e8565b610a7f3330600090815260208190526040902054610d95565b50565b60003361087e818585610a958383611130565b610a9f9190611beb565b611242565b610aac6111e8565b6001600160a01b03811615801590610acf57506001600160a01b03811661dead14155b610aeb5760405162461bcd60e51b815260040161076190611b45565b6009546040516001600160a01b0391821691831690600080516020611d6c83398151915290610b309060208082526002908201526104c560f41b604082015260600190565b60405180910390a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b610b626111e8565b60108490556011839055601282905560138190558082610b828587611beb565b610b8c9190611beb565b610b969190611beb565b600f819055600a1015610beb5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610761565b6040805160a08082526004908201526314d95b1b60e21b60c08201526020810186905290810184905260608101839052608081018290527fcc7d769aab9b1bae358245f28bed902ff6c01f19981c2f315c2289966ae76f5b9060e001610975565b610c546111e8565b610c5e6000611517565b565b6060600480546107ed90611b9b565b60003381610c7d8286611130565b905083811015610cdd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610761565b610a538286868403611242565b6000610cf46111e8565b6001600160a01b03821615801590610d1757506001600160a01b03821661dead14155b610d335760405162461bcd60e51b815260040161076190611bfe565b610d3e601a83611569565b90505b919050565b610d4e6111e8565b601c805460ff19168215159081179091556040519081527fa0ecf0a5fbb822896523e7519379813a2d69d92a1d7e408139c60d90041f23ae9060200160405180910390a150565b60003361087e8185856113e0565b610dab6111e8565b6001600160a01b03811615801590610dce57506001600160a01b03811661dead14155b610e405760405162461bcd60e51b815260206004820152603f60248201527f545255535441493a206e65774d61726b6574696e6757616c6c6574206973207460448201527f6865207a65726f2061646472657373206f7220646561642061646472657373006064820152608401610761565b6006546040516001600160a01b0391821691831690600080516020611d6c83398151915290610e8c906020808252600990820152684d61726b6574696e6760b81b604082015260600190565b60405180910390a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001610ec4601a6111de565b610ece9190611c4f565b821115610f1d5760405162461bcd60e51b815260206004820152601c60248201527f545255535441493a20696e646578206f7574206f6620626f756e6473000000006044820152606401610761565b610d3e601a83611585565b610f306111e8565b60408051600080825260208201928390524792909133918491610f5291611c62565b60006040518083038185875af1925050503d8060008114610f8f576040519150601f19603f3d011682016040523d82523d6000602084013e610f94565b606091505b5050905080610fe55760405162461bcd60e51b815260206004820152601c60248201527f545255535441493a204554485f5452414e534645525f4641494c4544000000006044820152606401610761565b5050565b610ff16111e8565b6001600160a01b0382161580159061101457506001600160a01b03821661dead14155b61107d5760405162461bcd60e51b815260206004820152603460248201527f545255535441493a206163636f756e7420697320746865207a65726f2061646460448201527372657373206f722064656164206164647265737360601b6064820152608401610761565b6001600160a01b038216600081815260196020908152604091829020805460ff191685151590811790915591519182527fcd1bac7395c9ee768d9637f450545042ead9d81ba1fa2de5c7804031255f0450910160405180910390a25050565b60006110e66111e8565b6001600160a01b0382161580159061110957506001600160a01b03821661dead14155b6111255760405162461bcd60e51b815260040161076190611bfe565b610d3e601a83611591565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610d3e601a836115a6565b6111706111e8565b6001600160a01b0381166111d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610761565b610a7f81611517565b6000610d3e825490565b6005546001600160a01b03163314610c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6001600160a01b0383166112a45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610761565b6001600160a01b0382166113055760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610761565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006113728484611130565b905060001981146113da57818110156113cd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610761565b6113da8484848403611242565b50505050565b6001600160a01b0383166114065760405162461bcd60e51b815260040161076190611c7e565b6001600160a01b03821661142c5760405162461bcd60e51b815260040161076190611cc3565b601c5460009060ff16801561145a57506001600160a01b03841660009081526019602052604090205460ff16155b801561147f57506001600160a01b03831660009081526019602052604090205460ff16155b905061148a8461115b565b156114b7576114b2600b54601555600c54601655600d54601755600e54601855600a54601455565b6114ec565b6114c08361115b565b156114e8576114b2601054601555601154601655601254601755601354601855600f54601455565b5060005b6000816114f95782611503565b61150385846115c8565b90506115108585836116ed565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061157e836001600160a01b038416611817565b9392505050565b600061157e838361190a565b600061157e836001600160a01b038416611934565b6001600160a01b0381166000908152600183016020526040812054151561157e565b6000806064601454846115db9190611d06565b6115e59190611d1d565b905060006064601554856115f99190611d06565b6116039190611d1d565b905060006064601654866116179190611d06565b6116219190611d1d565b905060006064601754876116359190611d06565b61163f9190611d1d565b905060006064601854886116539190611d06565b61165d9190611d1d565b9050831561167d5760065461167d9089906001600160a01b0316866116ed565b821561169b5760095461169b9089906001600160a01b0316856116ed565b81156116b9576007546116b99089906001600160a01b0316846116ed565b80156116d7576008546116d79089906001600160a01b0316836116ed565b6116e18588611c4f565b98975050505050505050565b6001600160a01b0383166117135760405162461bcd60e51b815260040161076190611c7e565b6001600160a01b0382166117395760405162461bcd60e51b815260040161076190611cc3565b6001600160a01b038316600090815260208190526040902054818110156117b15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610761565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36113da565b6000818152600183016020526040812054801561190057600061183b600183611c4f565b855490915060009061184f90600190611c4f565b90508181146118b457600086600001828154811061186f5761186f611d3f565b906000526020600020015490508087600001848154811061189257611892611d3f565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806118c5576118c5611d55565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610884565b6000915050610884565b600082600001828154811061192157611921611d3f565b9060005260206000200154905092915050565b600081815260018301602052604081205461197b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610884565b506000610884565b80356001600160a01b0381168114610d4157600080fd5b6000602082840312156119ac57600080fd5b61157e82611983565b60005b838110156119d05781810151838201526020016119b8565b50506000910152565b60208152600082518060208401526119f88160408501602087016119b5565b601f01601f19169190910160400192915050565b60008060408385031215611a1f57600080fd5b611a2883611983565b946020939093013593505050565b60008060008060808587031215611a4c57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215611a7d57600080fd5b611a8684611983565b9250611a9460208501611983565b9150604084013590509250925092565b80358015158114610d4157600080fd5b600060208284031215611ac657600080fd5b61157e82611aa4565b600060208284031215611ae157600080fd5b5035919050565b60008060408385031215611afb57600080fd5b611b0483611983565b9150611b1260208401611aa4565b90509250929050565b60008060408385031215611b2e57600080fd5b611b3783611983565b9150611b1260208401611983565b60208082526036908201527f545255535441493a206e657757616c6c657420697320746865207a65726f2061604082015275646472657373206f722064656164206164647265737360501b606082015260800190565b600181811c90821680611baf57607f821691505b602082108103611bcf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561088457610884611bd5565b60208082526031908201527f545255535441493a207061697220697320746865207a65726f2061646472657360408201527073206f722064656164206164647265737360781b606082015260800190565b8181038181111561088457610884611bd5565b60008251611c748184602087016119b5565b9190910192915050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b808202811582820484141761088457610884611bd5565b600082611d3a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfed8e98bff5ae8522235ef48daecff7488b367200bea03a4e8cb4bc98108c6a492a264697066735822122054341bd4a0ee1c025fca008d7e918b108a1b0b8a75bb6ce6304f9f367f96b8fa64736f6c6343000812003300000000000000000000000040f4f5a0b73bd7dd56504e320549f7dc12b58845
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80638da5cb5b1161012e578063bdf391cc116100ab578063dd62ed3e1161006f578063dd62ed3e1461067d578063e5e31b131461069d578063f11a24d3146106bd578063f2fde38b146106d3578063f6374342146106f357600080fd5b8063bdf391cc146105f2578063bfa382b514610612578063c024666814610627578063c2b7bbb614610647578063d85ba0631461066757600080fd5b8063a457c2d7116100f2578063a457c2d714610552578063a5bc508514610572578063a901dd9214610592578063a9059cbb146105b2578063aacebbe3146105d257600080fd5b80638da5cb5b146104c957806392136913146104fb57806395d89b41146105115780639c3b4fdc14610526578063a0d82dc51461053c57600080fd5b8063313ce567116101bc5780636a486a8e116101805780636a486a8e146104325780636c5b28551461044857806370a0823114610468578063715018a61461049e5780637bce5a04146104b357600080fd5b8063313ce56714610388578063364333f4146103a457806339509351146103b95780633d999921146103d95780634fbee193146103f957600080fd5b806318160ddd1161020357806318160ddd146103075780631816467f1461031c5780631a221dbb1461033c5780631fe70a981461035257806323b872dd1461036857600080fd5b80630323aac71461024b57806306e7b14d1461027357806306fdde0314610295578063095ea7b3146102b7578063178d9b8e146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b50610260610709565b6040519081526020015b60405180910390f35b34801561027f57600080fd5b5061029361028e36600461199a565b61071a565b005b3480156102a157600080fd5b506102aa6107de565b60405161026a91906119d9565b3480156102c357600080fd5b506102d76102d2366004611a0c565b610870565b604051901515815260200161026a565b3480156102f357600080fd5b50610293610302366004611a36565b61088a565b34801561031357600080fd5b50600254610260565b34801561032857600080fd5b5061029361033736600461199a565b610983565b34801561034857600080fd5b5061026060135481565b34801561035e57600080fd5b50610260600e5481565b34801561037457600080fd5b506102d7610383366004611a68565b610a3a565b34801561039457600080fd5b506040516012815260200161026a565b3480156103b057600080fd5b50610293610a5e565b3480156103c557600080fd5b506102d76103d4366004611a0c565b610a82565b3480156103e557600080fd5b506102936103f436600461199a565b610aa4565b34801561040557600080fd5b506102d761041436600461199a565b6001600160a01b031660009081526019602052604090205460ff1690565b34801561043e57600080fd5b50610260600f5481565b34801561045457600080fd5b50610293610463366004611a36565b610b5a565b34801561047457600080fd5b5061026061048336600461199a565b6001600160a01b031660009081526020819052604090205490565b3480156104aa57600080fd5b50610293610c4c565b3480156104bf57600080fd5b50610260600b5481565b3480156104d557600080fd5b506005546001600160a01b03165b6040516001600160a01b03909116815260200161026a565b34801561050757600080fd5b5061026060105481565b34801561051d57600080fd5b506102aa610c60565b34801561053257600080fd5b50610260600d5481565b34801561054857600080fd5b5061026060125481565b34801561055e57600080fd5b506102d761056d366004611a0c565b610c6f565b34801561057e57600080fd5b506102d761058d36600461199a565b610cea565b34801561059e57600080fd5b506102936105ad366004611ab4565b610d46565b3480156105be57600080fd5b506102d76105cd366004611a0c565b610d95565b3480156105de57600080fd5b506102936105ed36600461199a565b610da3565b3480156105fe57600080fd5b506104e361060d366004611acf565b610eb6565b34801561061e57600080fd5b50610293610f28565b34801561063357600080fd5b50610293610642366004611ae8565b610fe9565b34801561065357600080fd5b506102d761066236600461199a565b6110dc565b34801561067357600080fd5b50610260600a5481565b34801561068957600080fd5b50610260610698366004611b1b565b611130565b3480156106a957600080fd5b506102d76106b836600461199a565b61115b565b3480156106c957600080fd5b50610260600c5481565b3480156106df57600080fd5b506102936106ee36600461199a565b611168565b3480156106ff57600080fd5b5061026060115481565b6000610715601a6111de565b905090565b6107226111e8565b6001600160a01b0381161580159061074557506001600160a01b03811661dead14155b61076a5760405162461bcd60e51b815260040161076190611b45565b60405180910390fd5b6008546040516001600160a01b0391821691831690600080516020611d6c833981519152906107b4906020808252600790820152664275794261636b60c81b604082015260600190565b60405180910390a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546107ed90611b9b565b80601f016020809104026020016040519081016040528092919081815260200182805461081990611b9b565b80156108665780601f1061083b57610100808354040283529160200191610866565b820191906000526020600020905b81548152906001019060200180831161084957829003601f168201915b5050505050905090565b60003361087e818585611242565b60019150505b92915050565b6108926111e8565b600b849055600c839055600d829055600e81905580826108b28587611beb565b6108bc9190611beb565b6108c69190611beb565b600a81815510156109195760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610761565b6040805160a08082526003908201526242757960e81b60c08201526020810186905290810184905260608101839052608081018290527fcc7d769aab9b1bae358245f28bed902ff6c01f19981c2f315c2289966ae76f5b9060e0015b60405180910390a150505050565b61098b6111e8565b6001600160a01b038116158015906109ae57506001600160a01b03811661dead14155b6109ca5760405162461bcd60e51b815260040161076190611b45565b6007546040516001600160a01b0391821691831690600080516020611d6c83398151915290610a10906020808252600390820152622232bb60e91b604082015260600190565b60405180910390a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600033610a48858285611366565b610a538585856113e0565b506001949350505050565b610a666111e8565b610a7f3330600090815260208190526040902054610d95565b50565b60003361087e818585610a958383611130565b610a9f9190611beb565b611242565b610aac6111e8565b6001600160a01b03811615801590610acf57506001600160a01b03811661dead14155b610aeb5760405162461bcd60e51b815260040161076190611b45565b6009546040516001600160a01b0391821691831690600080516020611d6c83398151915290610b309060208082526002908201526104c560f41b604082015260600190565b60405180910390a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b610b626111e8565b60108490556011839055601282905560138190558082610b828587611beb565b610b8c9190611beb565b610b969190611beb565b600f819055600a1015610beb5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610761565b6040805160a08082526004908201526314d95b1b60e21b60c08201526020810186905290810184905260608101839052608081018290527fcc7d769aab9b1bae358245f28bed902ff6c01f19981c2f315c2289966ae76f5b9060e001610975565b610c546111e8565b610c5e6000611517565b565b6060600480546107ed90611b9b565b60003381610c7d8286611130565b905083811015610cdd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610761565b610a538286868403611242565b6000610cf46111e8565b6001600160a01b03821615801590610d1757506001600160a01b03821661dead14155b610d335760405162461bcd60e51b815260040161076190611bfe565b610d3e601a83611569565b90505b919050565b610d4e6111e8565b601c805460ff19168215159081179091556040519081527fa0ecf0a5fbb822896523e7519379813a2d69d92a1d7e408139c60d90041f23ae9060200160405180910390a150565b60003361087e8185856113e0565b610dab6111e8565b6001600160a01b03811615801590610dce57506001600160a01b03811661dead14155b610e405760405162461bcd60e51b815260206004820152603f60248201527f545255535441493a206e65774d61726b6574696e6757616c6c6574206973207460448201527f6865207a65726f2061646472657373206f7220646561642061646472657373006064820152608401610761565b6006546040516001600160a01b0391821691831690600080516020611d6c83398151915290610e8c906020808252600990820152684d61726b6574696e6760b81b604082015260600190565b60405180910390a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001610ec4601a6111de565b610ece9190611c4f565b821115610f1d5760405162461bcd60e51b815260206004820152601c60248201527f545255535441493a20696e646578206f7574206f6620626f756e6473000000006044820152606401610761565b610d3e601a83611585565b610f306111e8565b60408051600080825260208201928390524792909133918491610f5291611c62565b60006040518083038185875af1925050503d8060008114610f8f576040519150601f19603f3d011682016040523d82523d6000602084013e610f94565b606091505b5050905080610fe55760405162461bcd60e51b815260206004820152601c60248201527f545255535441493a204554485f5452414e534645525f4641494c4544000000006044820152606401610761565b5050565b610ff16111e8565b6001600160a01b0382161580159061101457506001600160a01b03821661dead14155b61107d5760405162461bcd60e51b815260206004820152603460248201527f545255535441493a206163636f756e7420697320746865207a65726f2061646460448201527372657373206f722064656164206164647265737360601b6064820152608401610761565b6001600160a01b038216600081815260196020908152604091829020805460ff191685151590811790915591519182527fcd1bac7395c9ee768d9637f450545042ead9d81ba1fa2de5c7804031255f0450910160405180910390a25050565b60006110e66111e8565b6001600160a01b0382161580159061110957506001600160a01b03821661dead14155b6111255760405162461bcd60e51b815260040161076190611bfe565b610d3e601a83611591565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610d3e601a836115a6565b6111706111e8565b6001600160a01b0381166111d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610761565b610a7f81611517565b6000610d3e825490565b6005546001600160a01b03163314610c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610761565b6001600160a01b0383166112a45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610761565b6001600160a01b0382166113055760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610761565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006113728484611130565b905060001981146113da57818110156113cd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610761565b6113da8484848403611242565b50505050565b6001600160a01b0383166114065760405162461bcd60e51b815260040161076190611c7e565b6001600160a01b03821661142c5760405162461bcd60e51b815260040161076190611cc3565b601c5460009060ff16801561145a57506001600160a01b03841660009081526019602052604090205460ff16155b801561147f57506001600160a01b03831660009081526019602052604090205460ff16155b905061148a8461115b565b156114b7576114b2600b54601555600c54601655600d54601755600e54601855600a54601455565b6114ec565b6114c08361115b565b156114e8576114b2601054601555601154601655601254601755601354601855600f54601455565b5060005b6000816114f95782611503565b61150385846115c8565b90506115108585836116ed565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061157e836001600160a01b038416611817565b9392505050565b600061157e838361190a565b600061157e836001600160a01b038416611934565b6001600160a01b0381166000908152600183016020526040812054151561157e565b6000806064601454846115db9190611d06565b6115e59190611d1d565b905060006064601554856115f99190611d06565b6116039190611d1d565b905060006064601654866116179190611d06565b6116219190611d1d565b905060006064601754876116359190611d06565b61163f9190611d1d565b905060006064601854886116539190611d06565b61165d9190611d1d565b9050831561167d5760065461167d9089906001600160a01b0316866116ed565b821561169b5760095461169b9089906001600160a01b0316856116ed565b81156116b9576007546116b99089906001600160a01b0316846116ed565b80156116d7576008546116d79089906001600160a01b0316836116ed565b6116e18588611c4f565b98975050505050505050565b6001600160a01b0383166117135760405162461bcd60e51b815260040161076190611c7e565b6001600160a01b0382166117395760405162461bcd60e51b815260040161076190611cc3565b6001600160a01b038316600090815260208190526040902054818110156117b15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610761565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36113da565b6000818152600183016020526040812054801561190057600061183b600183611c4f565b855490915060009061184f90600190611c4f565b90508181146118b457600086600001828154811061186f5761186f611d3f565b906000526020600020015490508087600001848154811061189257611892611d3f565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806118c5576118c5611d55565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610884565b6000915050610884565b600082600001828154811061192157611921611d3f565b9060005260206000200154905092915050565b600081815260018301602052604081205461197b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610884565b506000610884565b80356001600160a01b0381168114610d4157600080fd5b6000602082840312156119ac57600080fd5b61157e82611983565b60005b838110156119d05781810151838201526020016119b8565b50506000910152565b60208152600082518060208401526119f88160408501602087016119b5565b601f01601f19169190910160400192915050565b60008060408385031215611a1f57600080fd5b611a2883611983565b946020939093013593505050565b60008060008060808587031215611a4c57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215611a7d57600080fd5b611a8684611983565b9250611a9460208501611983565b9150604084013590509250925092565b80358015158114610d4157600080fd5b600060208284031215611ac657600080fd5b61157e82611aa4565b600060208284031215611ae157600080fd5b5035919050565b60008060408385031215611afb57600080fd5b611b0483611983565b9150611b1260208401611aa4565b90509250929050565b60008060408385031215611b2e57600080fd5b611b3783611983565b9150611b1260208401611983565b60208082526036908201527f545255535441493a206e657757616c6c657420697320746865207a65726f2061604082015275646472657373206f722064656164206164647265737360501b606082015260800190565b600181811c90821680611baf57607f821691505b602082108103611bcf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561088457610884611bd5565b60208082526031908201527f545255535441493a207061697220697320746865207a65726f2061646472657360408201527073206f722064656164206164647265737360781b606082015260800190565b8181038181111561088457610884611bd5565b60008251611c748184602087016119b5565b9190910192915050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b808202811582820484141761088457610884611bd5565b600082611d3a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfed8e98bff5ae8522235ef48daecff7488b367200bea03a4e8cb4bc98108c6a492a264697066735822122054341bd4a0ee1c025fca008d7e918b108a1b0b8a75bb6ce6304f9f367f96b8fa64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000040f4f5a0b73bd7dd56504e320549f7dc12b58845
-----Decoded View---------------
Arg [0] : _owner (address): 0x40F4F5A0B73BD7Dd56504E320549f7dC12B58845
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000040f4f5a0b73bd7dd56504e320549f7dc12b58845
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Add Token to MetaMask (Web3)