ERC-20
Source Code
Overview
Max Total Supply
250,001,375.8125 TWMT
Holders
9
Transfers
-
0
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
TheWatchmakerToken
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
///////////////////////////////////////////////////////////////
// KYL // THE WATCHMAKER TOKEN // TWMT ERC-20 TOKEN // 2023 //
/////////////////////////////////////////////////////////////
// producer: KYL WATCHES LTD // Instagram: @kylwatchesltd //
///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// ___ _______ __ _______ _______ ___ __ __ _______ ///
// | || || || | | || || |_| || | ///
// | ||_ _||__|| _____| |_ _|| || || ___| ///
// | | | | | |_____ | | | || || |___ ///
// | | | | |_____ | | | | || || ___| ///
// | | | | _____| | | | | || ||_|| || |___ ///
// |___| |___| |_______| |___| |___||_| |_||_______| ///
// ///
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ///
// ./%@@@@@@@#, ///
// .*(%&@@@@&&%%%##%%%&&@@@@%#*. ,#@@&#/*,,.....,#@&, ///
// *%&@@&(*,.......................,*#@@@@#*******,%@@@@@@@@@@( ///
// ,&@@&*.................................... (@@#,******,,,*/#@@@# ///
// ,%@@#,............................................%@%*****/(//*,,..&&. ///
// ,&@%*.,,,.............................................,%@#****//((#&@@@%. ///
// (@&*,,,,,,,,..............................................,@&******,.../@&. ///
// /@@,,,,,,,,,,,,...............................................%@(,/%#/,,..,%@, ///
// .*%@@@@&&&&%%%@@/,,,,,,,,,,,,,,,..............................................#@#,**#@@/,.*@@. ///
// (@@(,.........,&@*.,,,,,,,,,,,,,,,,............................(@(.............. (@(,**,&@,.,%@* ///
// .&@/..,/%&(.....#@/.,,,,,,,,,,,,,,,,,,.....................,(%@&/,..................#@(,**(@&.,%@* ///
// #@#&@@@@%,......&&,,,,,,,,,,,,,,,,,,,,,,.......... .*#@@@&(. ............... .......&@/**(@@&*&@. ///
// .#&(#@&,.../&#*,*@#.,,,,,,,,,,,,,,,,,,,,,,,*/#&@@&%(*..................,/%@@@@@(*.....,@&*,#@*/@&, ///
// %@*.,(@@#*,,.*@#.,,,,,,,,,.%&&&@@@&%%#/*,,......................*&@&#*...,@&#@&,..../@#*@% ///
// (@&@@%*******/@#.,,,,,,,,,,,,,,,,,,,,,,,,,....................#@&*.#@@@&/..,&@*......%@@&. ///
// @&****,(@@*&&.,,,,,,,,,,,,,,,,,,,,,,,,,,..................%@*.,&@@@@@@@@@@@@%* ...(@/ ///
// .@&****@@/,.#@*.,,,,,,,,,,,,,,,,,,,,,,,,,,..............*@@%*(@@@@@@@@&&&&&@@@@@@&*,&@, ///
// %@/**/@@*,./@%.,,,,/%&@@@@&%%%&&@@&/,,.,,..............&&(@@@@@%@@####%##(((((%@@@@@@%. ///
// &@**,#@#,.,%@*.,,*%@@%************#@@@@#,............,&@@@@#(#&@@@&%###%@@@@#(((&@@@@( ///
// .%@#,/@@%,*(@%,,,%@@/,**,,/%@@@@@@@@@&#&@#.......... #@@@#(%@@%*/%@@@@@@&(/#@@%((#@@@@. ///
// ,@&/@&&@#*%@(,,,./@&&@@@@@@@&&@&&&@@@@@@@(......../@@@((&@&/%@@@@@@@* *%@&(((@@@& ///
// .((. .%@&@@*,,,#@@@@#/%*,,,*@(.,,,#/*%@@@&,.....%@@%(%@@/&@@@@@@@@(. ,%&/&@%((&@@@* ///
// .(@@*/@@@&,,,,,&#.,,(*..*@/.,,,*@@@#....(@@&(%@&/@@@@@@@@@@@@@@@@/&@#((@@@@% ///
// *@@@@@#%@%,.,,,,,,,,,,,,.. /@@/@@@%%@@@@@@%(&@%%@@@@@@@@@@@@@@/&@&((&@@@@& ///
// #@@@(.,,.,,,,.,,,*(%&%/, . ,@@@&#/,.#@@&(&@@#&@@@@@@@@@@#%@@#((@@@&/@& ///
// %@@&.***,*##(*.&@@@@&, ,,,,,@@@,.....*@@@&(#@@@&&&%%&&@@@&((#@@@@/.(@( ///
// &@@@. #@/*. .. *@@&........,%@@@&#(((####(((#&@@@@&*..,&@. ///
// (@@@* (, @% #, %@@(............%@@@@@@@@@@@@@@@#......(@/ ///
// #@@@((#, (, (&@@@#,...........*#&@%,,*//**............@% ///
// *@@@@( ,&* .&* %( .#@@@&%*...............#@/./#&@@@&&@@@&%/,%@* ///
// .&@@@@&%, .@/ .#@@@@@#@@,,,.............,%@@%/,...%@%/...,*(%@@@&#* ///
// /@@@@@@@@@@@@@@@@@@&*.,#@*.,,............(@%.,,&@/...../&@@@(.,#@@@( ///
// /@&*..,*****,..,*(#%&&@@@&(*.........(@@*.....*&@#...,#@@(&@%, ///
// /@@/.,,,,*%@@%(/,...,,.,*#&@@@@@@@&(,.........*&@&&&/../@( ///
// ,&@%,(@@(,#@#,*,&@/*,**,................,(&@@(......,@&. ///
// %@@*,(@&/**,#@#*****,..,,,.*,.....#@@&* .........&@* ////
// .%@%**/@@%//**#@@%(*********//((#&@@%*..*,.........#@( /////
// .@@@@@@@@&%@@#(#(,.,/%%%%###((/**,.....,(@%,....... (@/ //////
// *@@(,,,,,,,,,,,,,(@&&&&@@@#/...........%@/ ///////
// %@@,.,,,,,,,,,,,,,,,,,........... /@@. ////////
// *&@%,,,,,,,,,,,,,,.........,/&@@#. /////////
// ,%@&(,........,,*/#%@@@%(, //////////
// *%@@@@@@@&%(*,. ///////////
// ////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ////////
// ████████╗██╗ ██╗███████╗ ██╗ ██╗ █████╗ ████████╗ ██████╗██╗ ██╗███╗ ███╗ █████╗ ██╗ ██╗███████╗██████╗ ///
// ╚══██╔══╝██║ ██║██╔════╝ ██║ ██║██╔══██╗╚══██╔══╝██╔════╝██║ ██║████╗ ████║██╔══██╗██║ ██╔╝██╔════╝██╔══██╗ ///
// ██║ ███████║█████╗ ██║ █╗ ██║███████║ ██║ ██║ ███████║██╔████╔██║███████║█████╔╝ █████╗ ██████╔╝ ///
// ██║ ██╔══██║██╔══╝ ██║███╗██║██╔══██║ ██║ ██║ ██╔══██║██║╚██╔╝██║██╔══██║██╔═██╗ ██╔══╝ ██╔══██╗ ///
// ██║ ██║ ██║███████╗ ╚███╔███╔╝██║ ██║ ██║ ╚██████╗██║ ██║██║ ╚═╝ ██║██║ ██║██║ ██╗███████╗██║ ██║ ///
// ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ///
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/**
* @dev Interface for checking active staked balance of a user.
*/
interface ITWMTSource {
function getAccumulatedAmount(
address staker
) external view returns (uint256);
}
/**
* @dev Implementation of the {IERC20} interface.
*/
contract TheWatchmakerToken is ERC20, Ownable, ReentrancyGuard {
ITWMTSource public TWMTSource;
uint256 public constant MAX_TAX_VALUE = 100;
uint256 public spendTaxAmount;
uint256 public withdrawTaxAmount;
uint256 public bribesDistributed;
uint256 public activeTaxCollectedAmount;
bool public withdrawTaxCollectionStopped;
bool public spendTaxCollectionStopped;
bool public isPaused;
bool public isDepositPaused;
bool public isWithdrawPaused;
bool public isTransferPaused;
mapping(address => bool) private _isAuthorised;
address[] public authorisedLog;
mapping(address => uint256) public depositedAmount;
mapping(address => uint256) public spentAmount;
modifier onlyAuthorised() {
require(_isAuthorised[_msgSender()], "Not Authorised");
_;
}
modifier whenNotPaused() {
require(!isPaused, "Transfers paused!");
_;
}
event Withdraw(address indexed userAddress, uint256 amount, uint256 tax);
event Deposit(address indexed userAddress, uint256 amount);
event DepositFor(
address indexed caller,
address indexed userAddress,
uint256 amount
);
event Spend(
address indexed caller,
address indexed userAddress,
uint256 amount,
uint256 tax
);
event ClaimTax(
address indexed caller,
address indexed userAddress,
uint256 amount
);
event InternalTransfer(
address indexed from,
address indexed to,
uint256 amount
);
constructor(address _source) ERC20("The Watchmaker Token", "TWMT") {
_isAuthorised[_msgSender()] = true;
isPaused = true;
isTransferPaused = true;
withdrawTaxAmount = 25;
spendTaxAmount = 25;
TWMTSource = ITWMTSource(_source);
uint256 initialSupply = 250e6 * 1e18; //initial supply is 250M
_mint(_msgSender(), initialSupply);
}
/**
* @dev Returnes current spendable balance of a specific user. This balance can be spent by user for other collections without
* withdrawal to ERC-20 TWMT OR can be withdrawn to ERC-20 TWMT.
*/
function getUserBalance(address user) public view returns (uint256) {
return (TWMTSource.getAccumulatedAmount(user) +
depositedAmount[user] -
spentAmount[user]);
}
/**
* @dev Function to deposit ERC-20 TWMT to the game balance.
*/
function depositTWMT(uint256 amount) public nonReentrant whenNotPaused {
require(!isDepositPaused, "Deposit Paused");
require(balanceOf(_msgSender()) >= amount, "Insufficient balance");
_burn(_msgSender(), amount);
depositedAmount[_msgSender()] += amount;
emit Deposit(_msgSender(), amount);
}
/**
* @dev Function to withdraw game TWMT to ERC-20 TWMT.
*/
function withdrawTWMT(uint256 amount) public nonReentrant whenNotPaused {
require(!isWithdrawPaused, "Withdraw Paused");
require(getUserBalance(_msgSender()) >= amount, "Insufficient balance");
uint256 tax = withdrawTaxCollectionStopped
? 0
: (amount * withdrawTaxAmount) / 100;
spentAmount[_msgSender()] += amount;
activeTaxCollectedAmount += tax;
_mint(_msgSender(), (amount - tax));
emit Withdraw(_msgSender(), amount, tax);
}
/**
* @dev Function to transfer game TWMT from one account to another.
*/
function transferTWMT(
address to,
uint256 amount
) public nonReentrant whenNotPaused {
require(!isTransferPaused, "Transfer Paused");
require(getUserBalance(_msgSender()) >= amount, "Insufficient balance");
spentAmount[_msgSender()] += amount;
depositedAmount[to] += amount;
emit InternalTransfer(_msgSender(), to, amount);
}
/**
* @dev Function to spend user balance. Can be called by other authorised contracts. To be used for internal purchases of other NFTs, etc.
*/
function spendTWMT(
address user,
uint256 amount
) external onlyAuthorised nonReentrant {
require(getUserBalance(user) >= amount, "Insufficient balance");
uint256 tax = spendTaxCollectionStopped
? 0
: (amount * spendTaxAmount) / 100;
spentAmount[user] += amount;
activeTaxCollectedAmount += tax;
emit Spend(_msgSender(), user, amount, tax);
}
/**
* @dev Function to deposit tokens to a user balance. Can be only called by an authorised contracts.
*/
function depositTWMTFor(
address user,
uint256 amount
) public onlyAuthorised nonReentrant {
_depositTWMTFor(user, amount);
}
/**
* @dev Function to tokens to the user balances. Can be only called by an authorised users.
*/
function distributeTWMT(
address[] memory user,
uint256[] memory amount
) public onlyAuthorised nonReentrant {
require(user.length == amount.length, "Wrong arrays passed");
for (uint256 i; i < user.length; i++) {
_depositTWMTFor(user[i], amount[i]);
}
}
function _depositTWMTFor(address user, uint256 amount) internal {
require(user != address(0), "Deposit to 0 address");
depositedAmount[user] += amount;
emit DepositFor(_msgSender(), user, amount);
}
/**
* @dev Function to mint tokens to a user balance. Can be only called by an authorised contracts.
*/
function mintFor(
address user,
uint256 amount
) external onlyAuthorised nonReentrant {
_mint(user, amount);
}
/**
* @dev Function to burn tokens to a user balance.
*/
function burn(
uint256 amount
) external {
_burn(_msgSender(), amount);
}
/**
* @dev Function to claim tokens from the tax accumulated pot. Can be only called by an authorised contracts.
*/
function claimTWMTTax(
address user,
uint256 amount
) public onlyAuthorised nonReentrant {
require(activeTaxCollectedAmount >= amount, "Insufficiend tax balance");
activeTaxCollectedAmount -= amount;
depositedAmount[user] += amount;
bribesDistributed += amount;
emit ClaimTax(_msgSender(), user, amount);
}
/*
ADMIN FUNCTIONS
*/
/**
* @dev Function allows admin add authorised address. The function also logs what addresses were authorised for transparancy.
*/
function authorise(address addressToAuth) public onlyOwner {
_isAuthorised[addressToAuth] = true;
authorisedLog.push(addressToAuth);
}
/**
* @dev Function allows admin add unauthorised address.
*/
function unauthorise(address addressToUnAuth) public onlyOwner {
_isAuthorised[addressToUnAuth] = false;
}
/**
* @dev Function allows admin update the address of staking address.
*/
function changeTWMTSourceContract(address _source) public onlyOwner {
TWMTSource = ITWMTSource(_source);
authorise(_source);
}
/**
* @dev Function allows admin to update limmit of tax on withdraw.
*/
function updateWithdrawTaxAmount(uint256 _taxAmount) public onlyOwner {
require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed");
withdrawTaxAmount = _taxAmount;
}
/**
* @dev Function allows admin to update tax amount on spend.
*/
function updateSpendTaxAmount(uint256 _taxAmount) public onlyOwner {
require(_taxAmount < MAX_TAX_VALUE, "Wrong value passed");
spendTaxAmount = _taxAmount;
}
/**
* @dev Function allows admin to stop tax collection on withdraw.
*/
function stopTaxCollectionOnWithdraw(bool _stop) public onlyOwner {
withdrawTaxCollectionStopped = _stop;
}
/**
* @dev Function allows admin to stop tax collection on spend.
*/
function stopTaxCollectionOnSpend(bool _stop) public onlyOwner {
spendTaxCollectionStopped = _stop;
}
/**
* @dev Function allows admin to pause all in game TWMT transfactions.
*/
function pauseGameTWMT(bool _pause) public onlyOwner {
isPaused = _pause;
}
/**
* @dev Function allows admin to pause in game TWMT transfers.
*/
function pauseTransfers(bool _pause) public onlyOwner {
isTransferPaused = _pause;
}
/**
* @dev Function allows admin to pause in game TWMT withdraw.
*/
function pauseWithdraw(bool _pause) public onlyOwner {
isWithdrawPaused = _pause;
}
/**
* @dev Function allows admin to pause in game TWMT deposit.
*/
function pauseDeposits(bool _pause) public onlyOwner {
isDepositPaused = _pause;
}
/**
* @dev Function allows admin to withdraw ETH accidentally dropped to the contract.
*/
function rescue() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../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.
*
* 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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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 {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}{
"optimizer": {
"enabled": true,
"runs": 500
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_source","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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositFor","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":"amount","type":"uint256"}],"name":"InternalTransfer","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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Spend","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":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tax","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_TAX_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TWMTSource","outputs":[{"internalType":"contract ITWMTSource","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activeTaxCollectedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bribesDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_source","type":"address"}],"name":"changeTWMTSourceContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimTWMTTax","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":"uint256","name":"amount","type":"uint256"}],"name":"depositTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTWMTFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"user","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"distributeTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isDepositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTransferPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintFor","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":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseGameTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spendTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spendTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"spendTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnSpend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stop","type":"bool"}],"name":"stopTaxCollectionOnWithdraw","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addressToUnAuth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateSpendTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxAmount","type":"uint256"}],"name":"updateWithdrawTaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTWMT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTaxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTaxCollectionStopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50604051620025be380380620025be833981016040819052620000349162000264565b6040518060400160405280601481526020017f5468652057617463686d616b657220546f6b656e000000000000000000000000815250604051806040016040528060048152602001631515d35560e21b81525081600390816200009891906200033a565b506004620000a782826200033a565b505050620000c4620000be6200014360201b60201c565b62000147565b60016006819055336000818152600d60205260409020805460ff1916909217909155600c805465ff0000ff000019166501000001000017905560196009819055600855600780546001600160a01b0319166001600160a01b0384161790556acecb8f27f4200f3a000000906200013b908262000199565b50506200042e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001f45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000208919062000406565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6000602082840312156200027757600080fd5b81516001600160a01b03811681146200028f57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002c157607f821691505b602082108103620002e257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025f57600081815260208120601f850160051c81016020861015620003115750805b601f850160051c820191505b8181101562000332578281556001016200031d565b505050505050565b81516001600160401b0381111562000356576200035662000296565b6200036e81620003678454620002ac565b84620002e8565b602080601f831160018114620003a657600084156200038d5750858301515b600019600386901b1c1916600185901b17855562000332565b600085815260208120601f198616915b82811015620003d757888601518255948401946001909101908401620003b6565b5085821015620003f65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200042857634e487b7160e01b600052601160045260246000fd5b92915050565b612180806200043e6000396000f3fe608060405234801561001057600080fd5b50600436106103415760003560e01c8063710cf8e6116101bd578063b75d8462116100f9578063e6bcc16e116100a2578063f2fde38b1161007c578063f2fde38b146106f7578063f560d0b21461070a578063fac9e2e91461071e578063fec061531461073157600080fd5b8063e6bcc16e146106be578063ebd462cb146106d1578063f11aafe1146106e457600080fd5b8063c82bc61d116100d3578063c82bc61d1461065f578063da1919b314610672578063dd62ed3e1461068557600080fd5b8063b75d846214610626578063baf09a7414610639578063c6a0bb571461064c57600080fd5b806395d89b4111610166578063a457c2d711610140578063a457c2d7146105e4578063a9059cbb146105f7578063aa3a8f671461060a578063b187bd261461061357600080fd5b806395d89b41146105bd5780639a25ad7c146105c5578063a1a1ef43146105ce57600080fd5b80637e22e39d116101975780637e22e39d1461057357806380833d78146105855780638da5cb5b1461059857600080fd5b8063710cf8e61461054b578063715018a614610558578063738b62e51461056057600080fd5b8063395093511161028c578063662c664d1161023557806367800b5f1161020f57806367800b5f146104da5780636d031d0a146104ef5780636f92a74a1461050f57806370a082311461052257600080fd5b8063662c664d146104a157806366e6c8af146104b4578063676251c5146104c757600080fd5b80634a4643f7116102665780634a4643f71461045b57806351a255661461047b57806359d7d9de1461048e57600080fd5b8063395093511461042257806342966c6814610435578063477348921461044857600080fd5b806320076ee6116102ee5780632885b840116102c85780632885b840146103ed578063313ce5671461040057806333c1547a1461040f57600080fd5b806320076ee6146103c95780632041baf1146103d157806323b872dd146103da57600080fd5b806319ab80df1161031f57806319ab80df146103995780631d35b2ae146103ae5780631fbe1979146103c157600080fd5b806306fdde0314610346578063095ea7b31461036457806318160ddd14610387575b600080fd5b61034e61073a565b60405161035b9190611d5d565b60405180910390f35b610377610372366004611dc7565b6107cc565b604051901515815260200161035b565b6002545b60405190815260200161035b565b6103ac6103a7366004611dc7565b6107e6565b005b6103ac6103bc366004611df1565b610966565b6103ac610ad5565b61038b606481565b61038b600b5481565b6103776103e8366004611e0a565b610b16565b6103ac6103fb366004611dc7565b610b3a565b6040516012815260200161035b565b6103ac61041d366004611dc7565b610cd6565b610377610430366004611dc7565b610d42565b6103ac610443366004611df1565b610d81565b61038b610456366004611e46565b610d8a565b61038b610469366004611e46565b600f6020526000908152604090205481565b6103ac610489366004611e68565b610e2c565b6103ac61049c366004611e68565b610e47565b6103ac6104af366004611df1565b610e69565b6103ac6104c2366004611e46565b611033565b6103ac6104d5366004611f60565b6110a1565b600c5461037790640100000000900460ff1681565b61038b6104fd366004611e46565b60106020526000908152604090205481565b6103ac61051d366004611df1565b6111af565b61038b610530366004611e46565b6001600160a01b031660009081526020819052604090205490565b600c546103779060ff1681565b6103ac611201565b6103ac61056e366004611e68565b611215565b600c5461037790610100900460ff1681565b6103ac610593366004611e46565b61123b565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161035b565b61034e611264565b61038b60095481565b600c546103779065010000000000900460ff1681565b6103776105f2366004611dc7565b611273565b610377610605366004611dc7565b611305565b61038b600a5481565b600c546103779062010000900460ff1681565b6103ac610634366004611dc7565b611313565b6103ac610647366004611e46565b611457565b6007546105a5906001600160a01b031681565b6105a561066d366004611df1565b611483565b6103ac610680366004611dc7565b6114ad565b61038b610693366004612020565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103ac6106cc366004611df1565b61150f565b6103ac6106df366004611e68565b611561565b6103ac6106f2366004611e68565b611589565b6103ac610705366004611e46565b6115b3565b600c54610377906301000000900460ff1681565b6103ac61072c366004611e68565b611629565b61038b60085481565b60606003805461074990612053565b80601f016020809104026020016040519081016040528092919081815260200182805461077590612053565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b5050505050905090565b6000336107da81858561164d565b60019150505b92915050565b336000908152600d602052604090205460ff1661083b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b60448201526064015b60405180910390fd5b610843611772565b8061084d83610d8a565b10156108925760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b600c54600090610100900460ff166108c3576064600854836108b491906120a3565b6108be91906120ba565b6108c6565b60005b6001600160a01b0384166000908152601060205260408120805492935084929091906108f39084906120dc565b9250508190555080600b600082825461090c91906120dc565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a3506109626001600655565b5050565b61096e611772565b600c5462010000900460ff16156109bb5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c546301000000900460ff1615610a155760405162461bcd60e51b815260206004820152600e60248201527f4465706f736974205061757365640000000000000000000000000000000000006044820152606401610832565b80610a1f33610530565b1015610a645760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b610a6f335b826117cb565b336000908152600f602052604081208054839290610a8e9084906120dc565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2610ad26001600655565b50565b610add6118f5565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad2573d6000803e3d6000fd5b600033610b2485828561194f565b610b2f8585856119e1565b506001949350505050565b610b42611772565b600c5462010000900460ff1615610b8f5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c5465010000000000900460ff1615610beb5760405162461bcd60e51b815260206004820152600f60248201527f5472616e736665722050617573656400000000000000000000000000000000006044820152606401610832565b80610bf533610d8a565b1015610c3a5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b3360009081526010602052604081208054839290610c599084906120dc565b90915550506001600160a01b0382166000908152600f602052604081208054839290610c869084906120dc565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020015b60405180910390a36109626001600655565b336000908152600d602052604090205460ff16610d265760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b610d2e611772565b610d388282611b85565b6109626001600655565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107da9082908690610d7c9087906120dc565b61164d565b610ad233610a69565b6001600160a01b03818116600081815260106020908152604080832054600f909252808320546007549151630412966760e01b8152600481019590955292949193911690630412966790602401602060405180830381865afa158015610df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1891906120ef565b610e2291906120dc565b6107e09190612108565b610e346118f5565b600c805460ff1916911515919091179055565b610e4f6118f5565b600c80549115156101000261ff0019909216919091179055565b610e71611772565b600c5462010000900460ff1615610ebe5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c54640100000000900460ff1615610f195760405162461bcd60e51b815260206004820152600f60248201527f57697468647261772050617573656400000000000000000000000000000000006044820152606401610832565b80610f2333610d8a565b1015610f685760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b600c5460009060ff16610f9457606460095483610f8591906120a3565b610f8f91906120ba565b610f97565b60005b33600090815260106020526040812080549293508492909190610fbb9084906120dc565b9250508190555080600b6000828254610fd491906120dc565b90915550610fed905033610fe88385612108565b611c4c565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250610ad26001600655565b61103b6118f5565b6001600160a01b03166000818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319169091179055565b336000908152600d602052604090205460ff166110f15760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b6110f9611772565b805182511461114a5760405162461bcd60e51b815260206004820152601360248201527f57726f6e672061727261797320706173736564000000000000000000000000006044820152606401610832565b60005b82518110156111a45761119283828151811061116b5761116b61211b565b60200260200101518383815181106111855761118561211b565b6020026020010151611b85565b8061119c81612131565b91505061114d565b506109626001600655565b6111b76118f5565b606481106111fc5760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600855565b6112096118f5565b6112136000611d0b565b565b61121d6118f5565b600c805491151563010000000263ff00000019909216919091179055565b6112436118f5565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b60606004805461074990612053565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610832565b610b2f828686840361164d565b6000336107da8185856119e1565b336000908152600d602052604090205460ff166113635760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b61136b611772565b80600b5410156113bd5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e64207461782062616c616e636500000000000000006044820152606401610832565b80600b60008282546113cf9190612108565b90915550506001600160a01b0382166000908152600f6020526040812080548392906113fc9084906120dc565b9250508190555080600a600082825461141591906120dc565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d90602001610cc4565b61145f6118f5565b600780546001600160a01b0319166001600160a01b038316179055610ad281611033565b600e818154811061149357600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152600d602052604090205460ff166114fd5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b611505611772565b610d388282611c4c565b6115176118f5565b6064811061155c5760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600955565b6115696118f5565b600c80549115156401000000000264ff0000000019909216919091179055565b6115916118f5565b600c8054911515650100000000000265ff000000000019909216919091179055565b6115bb6118f5565b6001600160a01b0381166116205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610832565b610ad281611d0b565b6116316118f5565b600c8054911515620100000262ff000019909216919091179055565b6001600160a01b0383166116af5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610832565b6001600160a01b0382166117105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610832565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600654036117c45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610832565b6002600655565b6001600160a01b03821661182b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610832565b6001600160a01b0382166000908152602081905260409020548181101561189f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610832565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611765565b6005546001600160a01b031633146112135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610832565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146119db57818110156119ce5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610832565b6119db848484840361164d565b50505050565b6001600160a01b038316611a455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610832565b6001600160a01b038216611aa75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610832565b6001600160a01b03831660009081526020819052604090205481811015611b1f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610832565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36119db565b6001600160a01b038216611bdb5760405162461bcd60e51b815260206004820152601460248201527f4465706f73697420746f203020616464726573730000000000000000000000006044820152606401610832565b6001600160a01b0382166000908152600f602052604081208054839290611c039084906120dc565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a09060200160405180910390a35050565b6001600160a01b038216611ca25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610832565b8060026000828254611cb491906120dc565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b81811015611d8a57858101830151858201604001528201611d6e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611dc257600080fd5b919050565b60008060408385031215611dda57600080fd5b611de383611dab565b946020939093013593505050565b600060208284031215611e0357600080fd5b5035919050565b600080600060608486031215611e1f57600080fd5b611e2884611dab565b9250611e3660208501611dab565b9150604084013590509250925092565b600060208284031215611e5857600080fd5b611e6182611dab565b9392505050565b600060208284031215611e7a57600080fd5b81358015158114611e6157600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611ec957611ec9611e8a565b604052919050565b600067ffffffffffffffff821115611eeb57611eeb611e8a565b5060051b60200190565b600082601f830112611f0657600080fd5b81356020611f1b611f1683611ed1565b611ea0565b82815260059290921b84018101918181019086841115611f3a57600080fd5b8286015b84811015611f555780358352918301918301611f3e565b509695505050505050565b60008060408385031215611f7357600080fd5b823567ffffffffffffffff80821115611f8b57600080fd5b818501915085601f830112611f9f57600080fd5b81356020611faf611f1683611ed1565b82815260059290921b84018101918181019089841115611fce57600080fd5b948201945b83861015611ff357611fe486611dab565b82529482019490820190611fd3565b9650508601359250508082111561200957600080fd5b5061201685828601611ef5565b9150509250929050565b6000806040838503121561203357600080fd5b61203c83611dab565b915061204a60208401611dab565b90509250929050565b600181811c9082168061206757607f821691505b60208210810361208757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107e0576107e061208d565b6000826120d757634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156107e0576107e061208d565b60006020828403121561210157600080fd5b5051919050565b818103818111156107e0576107e061208d565b634e487b7160e01b600052603260045260246000fd5b6000600182016121435761214361208d565b506001019056fea26469706673582212207fea9057b386c3b26a3de879811e522fab91f257f4642554b64f5ccc93f4dfbf64736f6c634300081100330000000000000000000000008030d42d81409e9737a3e025a412c24b3f252fc2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103415760003560e01c8063710cf8e6116101bd578063b75d8462116100f9578063e6bcc16e116100a2578063f2fde38b1161007c578063f2fde38b146106f7578063f560d0b21461070a578063fac9e2e91461071e578063fec061531461073157600080fd5b8063e6bcc16e146106be578063ebd462cb146106d1578063f11aafe1146106e457600080fd5b8063c82bc61d116100d3578063c82bc61d1461065f578063da1919b314610672578063dd62ed3e1461068557600080fd5b8063b75d846214610626578063baf09a7414610639578063c6a0bb571461064c57600080fd5b806395d89b4111610166578063a457c2d711610140578063a457c2d7146105e4578063a9059cbb146105f7578063aa3a8f671461060a578063b187bd261461061357600080fd5b806395d89b41146105bd5780639a25ad7c146105c5578063a1a1ef43146105ce57600080fd5b80637e22e39d116101975780637e22e39d1461057357806380833d78146105855780638da5cb5b1461059857600080fd5b8063710cf8e61461054b578063715018a614610558578063738b62e51461056057600080fd5b8063395093511161028c578063662c664d1161023557806367800b5f1161020f57806367800b5f146104da5780636d031d0a146104ef5780636f92a74a1461050f57806370a082311461052257600080fd5b8063662c664d146104a157806366e6c8af146104b4578063676251c5146104c757600080fd5b80634a4643f7116102665780634a4643f71461045b57806351a255661461047b57806359d7d9de1461048e57600080fd5b8063395093511461042257806342966c6814610435578063477348921461044857600080fd5b806320076ee6116102ee5780632885b840116102c85780632885b840146103ed578063313ce5671461040057806333c1547a1461040f57600080fd5b806320076ee6146103c95780632041baf1146103d157806323b872dd146103da57600080fd5b806319ab80df1161031f57806319ab80df146103995780631d35b2ae146103ae5780631fbe1979146103c157600080fd5b806306fdde0314610346578063095ea7b31461036457806318160ddd14610387575b600080fd5b61034e61073a565b60405161035b9190611d5d565b60405180910390f35b610377610372366004611dc7565b6107cc565b604051901515815260200161035b565b6002545b60405190815260200161035b565b6103ac6103a7366004611dc7565b6107e6565b005b6103ac6103bc366004611df1565b610966565b6103ac610ad5565b61038b606481565b61038b600b5481565b6103776103e8366004611e0a565b610b16565b6103ac6103fb366004611dc7565b610b3a565b6040516012815260200161035b565b6103ac61041d366004611dc7565b610cd6565b610377610430366004611dc7565b610d42565b6103ac610443366004611df1565b610d81565b61038b610456366004611e46565b610d8a565b61038b610469366004611e46565b600f6020526000908152604090205481565b6103ac610489366004611e68565b610e2c565b6103ac61049c366004611e68565b610e47565b6103ac6104af366004611df1565b610e69565b6103ac6104c2366004611e46565b611033565b6103ac6104d5366004611f60565b6110a1565b600c5461037790640100000000900460ff1681565b61038b6104fd366004611e46565b60106020526000908152604090205481565b6103ac61051d366004611df1565b6111af565b61038b610530366004611e46565b6001600160a01b031660009081526020819052604090205490565b600c546103779060ff1681565b6103ac611201565b6103ac61056e366004611e68565b611215565b600c5461037790610100900460ff1681565b6103ac610593366004611e46565b61123b565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161035b565b61034e611264565b61038b60095481565b600c546103779065010000000000900460ff1681565b6103776105f2366004611dc7565b611273565b610377610605366004611dc7565b611305565b61038b600a5481565b600c546103779062010000900460ff1681565b6103ac610634366004611dc7565b611313565b6103ac610647366004611e46565b611457565b6007546105a5906001600160a01b031681565b6105a561066d366004611df1565b611483565b6103ac610680366004611dc7565b6114ad565b61038b610693366004612020565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103ac6106cc366004611df1565b61150f565b6103ac6106df366004611e68565b611561565b6103ac6106f2366004611e68565b611589565b6103ac610705366004611e46565b6115b3565b600c54610377906301000000900460ff1681565b6103ac61072c366004611e68565b611629565b61038b60085481565b60606003805461074990612053565b80601f016020809104026020016040519081016040528092919081815260200182805461077590612053565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b5050505050905090565b6000336107da81858561164d565b60019150505b92915050565b336000908152600d602052604090205460ff1661083b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b60448201526064015b60405180910390fd5b610843611772565b8061084d83610d8a565b10156108925760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b600c54600090610100900460ff166108c3576064600854836108b491906120a3565b6108be91906120ba565b6108c6565b60005b6001600160a01b0384166000908152601060205260408120805492935084929091906108f39084906120dc565b9250508190555080600b600082825461090c91906120dc565b909155505060408051838152602081018390526001600160a01b0385169133917fed8cfe3600cacf009dc67354491d44da19a77f26a4aed42181ba6824ccb35d72910160405180910390a3506109626001600655565b5050565b61096e611772565b600c5462010000900460ff16156109bb5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c546301000000900460ff1615610a155760405162461bcd60e51b815260206004820152600e60248201527f4465706f736974205061757365640000000000000000000000000000000000006044820152606401610832565b80610a1f33610530565b1015610a645760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b610a6f335b826117cb565b336000908152600f602052604081208054839290610a8e9084906120dc565b909155505060405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2610ad26001600655565b50565b610add6118f5565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad2573d6000803e3d6000fd5b600033610b2485828561194f565b610b2f8585856119e1565b506001949350505050565b610b42611772565b600c5462010000900460ff1615610b8f5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c5465010000000000900460ff1615610beb5760405162461bcd60e51b815260206004820152600f60248201527f5472616e736665722050617573656400000000000000000000000000000000006044820152606401610832565b80610bf533610d8a565b1015610c3a5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b3360009081526010602052604081208054839290610c599084906120dc565b90915550506001600160a01b0382166000908152600f602052604081208054839290610c869084906120dc565b90915550506040518181526001600160a01b0383169033907fe2080c8fc8d86c864d8dc081fadaebf2be7191086615e786f954420f13ed122a906020015b60405180910390a36109626001600655565b336000908152600d602052604090205460ff16610d265760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b610d2e611772565b610d388282611b85565b6109626001600655565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906107da9082908690610d7c9087906120dc565b61164d565b610ad233610a69565b6001600160a01b03818116600081815260106020908152604080832054600f909252808320546007549151630412966760e01b8152600481019590955292949193911690630412966790602401602060405180830381865afa158015610df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1891906120ef565b610e2291906120dc565b6107e09190612108565b610e346118f5565b600c805460ff1916911515919091179055565b610e4f6118f5565b600c80549115156101000261ff0019909216919091179055565b610e71611772565b600c5462010000900460ff1615610ebe5760405162461bcd60e51b81526020600482015260116024820152705472616e7366657273207061757365642160781b6044820152606401610832565b600c54640100000000900460ff1615610f195760405162461bcd60e51b815260206004820152600f60248201527f57697468647261772050617573656400000000000000000000000000000000006044820152606401610832565b80610f2333610d8a565b1015610f685760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610832565b600c5460009060ff16610f9457606460095483610f8591906120a3565b610f8f91906120ba565b610f97565b60005b33600090815260106020526040812080549293508492909190610fbb9084906120dc565b9250508190555080600b6000828254610fd491906120dc565b90915550610fed905033610fe88385612108565b611c4c565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a250610ad26001600655565b61103b6118f5565b6001600160a01b03166000818152600d60205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319169091179055565b336000908152600d602052604090205460ff166110f15760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b6110f9611772565b805182511461114a5760405162461bcd60e51b815260206004820152601360248201527f57726f6e672061727261797320706173736564000000000000000000000000006044820152606401610832565b60005b82518110156111a45761119283828151811061116b5761116b61211b565b60200260200101518383815181106111855761118561211b565b6020026020010151611b85565b8061119c81612131565b91505061114d565b506109626001600655565b6111b76118f5565b606481106111fc5760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600855565b6112096118f5565b6112136000611d0b565b565b61121d6118f5565b600c805491151563010000000263ff00000019909216919091179055565b6112436118f5565b6001600160a01b03166000908152600d60205260409020805460ff19169055565b60606004805461074990612053565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610832565b610b2f828686840361164d565b6000336107da8185856119e1565b336000908152600d602052604090205460ff166113635760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b61136b611772565b80600b5410156113bd5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e64207461782062616c616e636500000000000000006044820152606401610832565b80600b60008282546113cf9190612108565b90915550506001600160a01b0382166000908152600f6020526040812080548392906113fc9084906120dc565b9250508190555080600a600082825461141591906120dc565b90915550506040518181526001600160a01b0383169033907f1ad2283cc65e3e122c0a874bda25abbd844e8ae88fa9512b4849ee1b58b6570d90602001610cc4565b61145f6118f5565b600780546001600160a01b0319166001600160a01b038316179055610ad281611033565b600e818154811061149357600080fd5b6000918252602090912001546001600160a01b0316905081565b336000908152600d602052604090205460ff166114fd5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5cd95960921b6044820152606401610832565b611505611772565b610d388282611c4c565b6115176118f5565b6064811061155c5760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c81d985b1d59481c185cdcd95960721b6044820152606401610832565b600955565b6115696118f5565b600c80549115156401000000000264ff0000000019909216919091179055565b6115916118f5565b600c8054911515650100000000000265ff000000000019909216919091179055565b6115bb6118f5565b6001600160a01b0381166116205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610832565b610ad281611d0b565b6116316118f5565b600c8054911515620100000262ff000019909216919091179055565b6001600160a01b0383166116af5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610832565b6001600160a01b0382166117105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610832565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600654036117c45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610832565b6002600655565b6001600160a01b03821661182b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610832565b6001600160a01b0382166000908152602081905260409020548181101561189f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610832565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611765565b6005546001600160a01b031633146112135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610832565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146119db57818110156119ce5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610832565b6119db848484840361164d565b50505050565b6001600160a01b038316611a455760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610832565b6001600160a01b038216611aa75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610832565b6001600160a01b03831660009081526020819052604090205481811015611b1f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610832565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36119db565b6001600160a01b038216611bdb5760405162461bcd60e51b815260206004820152601460248201527f4465706f73697420746f203020616464726573730000000000000000000000006044820152606401610832565b6001600160a01b0382166000908152600f602052604081208054839290611c039084906120dc565b90915550506040518181526001600160a01b0383169033907f6b64443f4cc3aac2df66fff76675a29dc321ce9efebffb006f528db1690179a09060200160405180910390a35050565b6001600160a01b038216611ca25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610832565b8060026000828254611cb491906120dc565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b81811015611d8a57858101830151858201604001528201611d6e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611dc257600080fd5b919050565b60008060408385031215611dda57600080fd5b611de383611dab565b946020939093013593505050565b600060208284031215611e0357600080fd5b5035919050565b600080600060608486031215611e1f57600080fd5b611e2884611dab565b9250611e3660208501611dab565b9150604084013590509250925092565b600060208284031215611e5857600080fd5b611e6182611dab565b9392505050565b600060208284031215611e7a57600080fd5b81358015158114611e6157600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611ec957611ec9611e8a565b604052919050565b600067ffffffffffffffff821115611eeb57611eeb611e8a565b5060051b60200190565b600082601f830112611f0657600080fd5b81356020611f1b611f1683611ed1565b611ea0565b82815260059290921b84018101918181019086841115611f3a57600080fd5b8286015b84811015611f555780358352918301918301611f3e565b509695505050505050565b60008060408385031215611f7357600080fd5b823567ffffffffffffffff80821115611f8b57600080fd5b818501915085601f830112611f9f57600080fd5b81356020611faf611f1683611ed1565b82815260059290921b84018101918181019089841115611fce57600080fd5b948201945b83861015611ff357611fe486611dab565b82529482019490820190611fd3565b9650508601359250508082111561200957600080fd5b5061201685828601611ef5565b9150509250929050565b6000806040838503121561203357600080fd5b61203c83611dab565b915061204a60208401611dab565b90509250929050565b600181811c9082168061206757607f821691505b60208210810361208757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107e0576107e061208d565b6000826120d757634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156107e0576107e061208d565b60006020828403121561210157600080fd5b5051919050565b818103818111156107e0576107e061208d565b634e487b7160e01b600052603260045260246000fd5b6000600182016121435761214361208d565b506001019056fea26469706673582212207fea9057b386c3b26a3de879811e522fab91f257f4642554b64f5ccc93f4dfbf64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008030d42d81409e9737a3e025a412c24b3f252fc2
-----Decoded View---------------
Arg [0] : _source (address): 0x8030D42D81409E9737a3e025A412c24B3F252fc2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008030d42d81409e9737a3e025a412c24b3f252fc2
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)