Overview
Max Total Supply
98,543,756.932608873426251948 CNT
Holders
396 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$0.71
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
521.190954416611307396 CNTValue
$0.00 ( ~0 Eth) [0.0005%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CryptionNetworkToken
Compiler Version
v0.7.6+commit.7338295f
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.7.0; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./lib/NativeMetaTransaction.sol"; // CryptionNetworkToken with Governance. contract CryptionNetworkToken is ERC20Burnable, Ownable, NativeMetaTransaction { using SafeMath for uint256; constructor(address tokenHolder) ERC20("Cryption Network Token", "CNT") { uint256 amount = 100000000e18; _initializeEIP712("Cryption Network Token"); _mint(tokenHolder, amount); _moveDelegates(address(0), _delegates[tokenHolder], amount); } // Copied and modified from SUSHI code: // https://github.com/sushiswap/sushiswap/blob/master/contracts/SushiToken.sol // @notice A record of each accounts delegate mapping(address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping(address => mapping(uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping(address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); bytes32 public constant PERMIT_TYPEHASH = keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ); /// @notice An event thats emitted when an account changes its delegate event DelegateChanged( address indexed delegator, address indexed fromDelegate, address indexed toDelegate ); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged( address indexed delegate, uint256 previousBalance, uint256 newBalance ); function permit( address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s ) external { bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", getDomainSeperator(), keccak256( abi.encode( PERMIT_TYPEHASH, holder, spender, nonce, expiry, allowed ) ) ) ); require(holder == ecrecover(digest, v, r, s), "CNT: INVALID-PERMIT"); require( expiry == 0 || block.timestamp <= expiry, "CNT: PERMIT-EXPIRED" ); require(nonce == nonces[holder]++, "CNT: INVALID-NONCE"); uint256 wad = allowed ? uint256(-1) : 0; _approve(holder, spender, wad); } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 structHash = keccak256( abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry) ); bytes32 digest = keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), structHash) ); address signatory = ecrecover(digest, v, r, s); require( signatory != address(0), "CNT::delegateBySig: invalid signature" ); require( nonce == nonces[signatory]++, "CNT::delegateBySig: invalid nonce" ); require( block.timestamp <= expiry, "CNT::delegateBySig: signature expired" ); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256) { require( blockNumber < block.number, "CNT::getPriorVotes: not yet determined" ); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying CNTs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates( address srcRep, address dstRep, uint256 amount ) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld.sub(amount); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld.add(amount); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32( block.number, "CNT::_writeCheckpoint: block number exceeds 32 bits" ); if ( nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber ) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint( blockNumber, newVotes ); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } // _beforeTokenTransfer hook is used move the delegates aptly whenever tokens are transferred. This is missing in Sushi code. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { _moveDelegates(_delegates[from], _delegates[to], amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
pragma solidity ^0.7.6; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, msg.sender, functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
pragma solidity ^0.7.6; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contractsa that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public pure returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
pragma solidity ^0.7.6; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"tokenHolder","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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","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":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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"}]
Contract Creation Code
60806040526005805460ff60a81b191690553480156200001e57600080fd5b5060405162002f9a38038062002f9a833981810160405260208110156200004457600080fd5b5051604080518082018252601681527f4372797074696f6e204e6574776f726b20546f6b656e000000000000000000006020828101918252835180850190945260038085526210d39560ea1b918501919091528251929392620000a8929062000875565b508051620000be90600490602084019062000875565b50506005805460ff19166012179055506000620000da620001b7565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060408051808201909152601681527f4372797074696f6e204e6574776f726b20546f6b656e0000000000000000000060208201526a52b7d2dcc80cd2e4000000906200017c90620001bb565b6200018882826200022d565b6001600160a01b03808316600090815260086020526040812054620001af9216836200033c565b505062000921565b3390565b600554600160a81b900460ff16156200020c576040805162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015290519081900360640190fd5b6200021781620004ae565b506005805460ff60a81b1916600160a81b179055565b6001600160a01b03821662000289576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002976000838362000573565b620002b381600254620005a760201b620018d91790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002e6918390620018d9620005a7821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b816001600160a01b0316836001600160a01b0316141580156200035f5750600081115b15620004a9576001600160a01b0383161562000407576001600160a01b0383166000908152600a602052604081205463ffffffff169081620003a3576000620003d5565b6001600160a01b038516600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b90506000620003f384836200060960201b620019331790919060201c565b9050620004038684848462000667565b5050505b6001600160a01b03821615620004a9576001600160a01b0382166000908152600a602052604081205463ffffffff1690816200044557600062000477565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b90506000620004958483620005a760201b620018d91790919060201c565b9050620004a58584848462000667565b5050505b505050565b6040518060800160405280604f815260200162002f18604f913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6306200051c620007d2565b60001b60405160200180868152602001858152602001848152602001836001600160a01b03168152602001828152602001955050505050506040516020818303038152906040528051906020012060068190555050565b6001600160a01b03808416600090815260086020526040808220548584168352912054620004a9929182169116836200033c565b60008282018381101562000602576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008282111562000661576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006200068e4360405180606001604052806033815260200162002f6760339139620007d6565b905060008463ffffffff16118015620006d857506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b1562000717576001600160a01b038516600090815260096020908152604080832063ffffffff6000198901168452909152902060010182905562000788565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600984528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600a9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b4690565b60008164010000000084106200086d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200083157818101518382015260200162000817565b50505050905090810190601f1680156200085f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620008ad5760008555620008f8565b82601f10620008c857805160ff1916838001178555620008f8565b82800160010185558215620008f8579182015b82811115620008f8578251825591602001919060010190620008db565b50620009069291506200090a565b5090565b5b808211156200090657600081556001016200090b565b6125e780620009316000396000f3fe6080604052600436106101d85760003560e01c80636fcfff4511610102578063a457c2d711610095578063dd62ed3e11610064578063dd62ed3e1461080b578063e7a324dc14610846578063f1127ed81461085b578063f2fde38b146108ba576101d8565b8063a457c2d714610712578063a9059cbb1461074b578063b4b5ea5714610784578063c3cda520146107b7576101d8565b806379cc6790116100d157806379cc6790146106485780638da5cb5b146106815780638fcbaf0c1461069657806395d89b41146106fd576101d8565b80636fcfff451461057b57806370a08231146105c7578063715018a6146105fa578063782d6fe11461060f576101d8565b80632d0335ab1161017a5780633950935111610149578063395093511461049457806342966c68146104cd578063587cde1e146104f95780635c19a95c14610548576101d8565b80632d0335ab1461040c57806330adf81f1461043f578063313ce567146104545780633408e4701461047f576101d8565b80630f7e5970116101b65780630f7e59701461037857806318160ddd1461038d57806320379ee5146103b457806323b872dd146103c9576101d8565b806306fdde03146101dd578063095ea7b3146102675780630c53c51c146102b4575b600080fd5b3480156101e957600080fd5b506101f26108ed565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022c578181015183820152602001610214565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027357600080fd5b506102a06004803603604081101561028a57600080fd5b506001600160a01b038135169060200135610983565b604080519115158252519081900360200190f35b6101f2600480360360a08110156102ca57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102f557600080fd5b82018360208201111561030757600080fd5b8035906020019184600183028401116401000000008311171561032957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166109a1565b34801561038457600080fd5b506101f2610ca3565b34801561039957600080fd5b506103a2610cc0565b60408051918252519081900360200190f35b3480156103c057600080fd5b506103a2610cc6565b3480156103d557600080fd5b506102a0600480360360608110156103ec57600080fd5b506001600160a01b03813581169160208101359091169060400135610ccc565b34801561041857600080fd5b506103a26004803603602081101561042f57600080fd5b50356001600160a01b0316610d53565b34801561044b57600080fd5b506103a2610d6e565b34801561046057600080fd5b50610469610d92565b6040805160ff9092168252519081900360200190f35b34801561048b57600080fd5b506103a2610d9b565b3480156104a057600080fd5b506102a0600480360360408110156104b757600080fd5b506001600160a01b038135169060200135610d9f565b3480156104d957600080fd5b506104f7600480360360208110156104f057600080fd5b5035610ded565b005b34801561050557600080fd5b5061052c6004803603602081101561051c57600080fd5b50356001600160a01b0316610e01565b604080516001600160a01b039092168252519081900360200190f35b34801561055457600080fd5b506104f76004803603602081101561056b57600080fd5b50356001600160a01b0316610e1f565b34801561058757600080fd5b506105ae6004803603602081101561059e57600080fd5b50356001600160a01b0316610e29565b6040805163ffffffff9092168252519081900360200190f35b3480156105d357600080fd5b506103a2600480360360208110156105ea57600080fd5b50356001600160a01b0316610e41565b34801561060657600080fd5b506104f7610e5c565b34801561061b57600080fd5b506103a26004803603604081101561063257600080fd5b506001600160a01b038135169060200135610f20565b34801561065457600080fd5b506104f76004803603604081101561066b57600080fd5b506001600160a01b038135169060200135611123565b34801561068d57600080fd5b5061052c61117d565b3480156106a257600080fd5b506104f760048036036101008110156106ba57600080fd5b506001600160a01b038135811691602081013590911690604081013590606081013590608081013515159060ff60a0820135169060c08101359060e00135611191565b34801561070957600080fd5b506101f26113f2565b34801561071e57600080fd5b506102a06004803603604081101561073557600080fd5b506001600160a01b038135169060200135611453565b34801561075757600080fd5b506102a06004803603604081101561076e57600080fd5b506001600160a01b0381351690602001356114bb565b34801561079057600080fd5b506103a2600480360360208110156107a757600080fd5b50356001600160a01b03166114cf565b3480156107c357600080fd5b506104f7600480360360c08110156107da57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611533565b34801561081757600080fd5b506103a26004803603604081101561082e57600080fd5b506001600160a01b038135811691602001351661173d565b34801561085257600080fd5b506103a2611768565b34801561086757600080fd5b5061089a6004803603604081101561087e57600080fd5b5080356001600160a01b0316906020013563ffffffff1661178c565b6040805163ffffffff909316835260208301919091528051918290030190f35b3480156108c657600080fd5b506104f7600480360360208110156108dd57600080fd5b50356001600160a01b03166117b9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109795780601f1061094e57610100808354040283529160200191610979565b820191906000526020600020905b81548152906001019060200180831161095c57829003601f168201915b5050505050905090565b6000610997610990611990565b8484611994565b5060015b92915050565b60408051606081810183526001600160a01b038816600081815260076020908152908590205484528301529181018690526109df8782878787611a80565b610a1a5760405162461bcd60e51b81526004018080602001828103825260218152602001806124646021913960400191505060405180910390fd5b6001600160a01b038716600090815260076020526040902054610a3e9060016118d9565b60076000896001600160a01b03166001600160a01b03168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b87338860405180846001600160a01b03168152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ae6578181015183820152602001610ace565b50505050905090810190601f168015610b135780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a1600080306001600160a01b0316888a6040516020018083805190602001908083835b60208310610b635780518252601f199092019160209182019101610b44565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610bd95780518252601f199092019160209182019101610bba565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610c3b576040519150601f19603f3d011682016040523d82523d6000602084013e610c40565b606091505b509150915081610c97576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b60065490565b6000610cd9848484611b5a565b610d4984610ce5611990565b610d448560405180606001604052806028815260200161243c602891396001600160a01b038a16600090815260016020526040812090610d23611990565b6001600160a01b031681526020810191909152604001600020549190611cb5565b611994565b5060019392505050565b6001600160a01b031660009081526007602052604090205490565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b4690565b6000610997610dac611990565b84610d448560016000610dbd611990565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906118d9565b610dfe610df8611990565b82611d4c565b50565b6001600160a01b039081166000908152600860205260409020541690565b610dfe3382611e48565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b610e64611990565b6001600160a01b0316610e7561117d565b6001600160a01b031614610ed0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000438210610f605760405162461bcd60e51b81526004018080602001828103825260268152602001806124a96026913960400191505060405180910390fd5b6001600160a01b0383166000908152600a602052604090205463ffffffff1680610f8e57600091505061099b565b6001600160a01b038416600090815260096020908152604080832063ffffffff600019860181168552925290912054168310610ffd576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522060010154905061099b565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff1683101561103857600091505061099b565b600060001982015b8163ffffffff168163ffffffff1611156110ec576000600263ffffffff848403166001600160a01b038916600090815260096020908152604080832094909304860363ffffffff81811684529482529183902083518085019094528054909416808452600190940154908301529250908714156110c75760200151945061099b9350505050565b805163ffffffff168711156110de578193506110e5565b6001820392505b5050611040565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b600061115a82604051806060016040528060248152602001612485602491396111538661114e611990565b61173d565b9190611cb5565b905061116e83611168611990565b83611994565b6111788383611d4c565b505050565b60055461010090046001600160a01b031690565b600061119b610cc6565b604080517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96020808301919091526001600160a01b03808e16838501528c166060830152608082018b905260a082018a905288151560c0808401919091528351808403909101815260e08301845280519082012061190160f01b610100840152610102830194909452610122808301949094528251808303909401845261014282018084528451948201949094206000909452610162820180845284905260ff88166101828301526101a282018790526101c2820186905291519293506001926101e28083019392601f198301929081900390910190855afa1580156112a5573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b03161461130a576040805162461bcd60e51b815260206004820152601360248201527210d3950e88125395905312510b541154935255606a1b604482015290519081900360640190fd5b8515806113175750854211155b61135e576040805162461bcd60e51b815260206004820152601360248201527210d3950e881411549352550b51561412549151606a1b604482015290519081900360640190fd5b6001600160a01b038916600090815260076020526040902080546001810190915587146113c7576040805162461bcd60e51b8152602060048201526012602482015271434e543a20494e56414c49442d4e4f4e434560701b604482015290519081900360640190fd5b6000856113d55760006113d9565b6000195b90506113e68a8a83611994565b50505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109795780601f1061094e57610100808354040283529160200191610979565b6000610997611460611990565b84610d448560405180606001604052806025815260200161258d602591396001600061148a611990565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611cb5565b60006109976114c8611990565b8484611b5a565b6001600160a01b0381166000908152600a602052604081205463ffffffff16806114fa57600061152c565b6001600160a01b038316600090815260096020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a09092019092528051910120600061159f610cc6565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611638573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661168a5760405162461bcd60e51b81526004018080602001828103825260258152602001806123a76025913960400191505060405180910390fd5b6001600160a01b038116600090815260076020526040902080546001810190915588146116e85760405162461bcd60e51b815260040180806020018281038252602181526020018061256c6021913960400191505060405180910390fd5b864211156117275760405162461bcd60e51b81526004018080602001828103825260258152602001806123f26025913960400191505060405180910390fd5b611731818a611e48565b5050505b505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6117c1611990565b6001600160a01b03166117d261117d565b6001600160a01b03161461182d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166118725760405162461bcd60e51b815260040180806020018281038252602681526020018061235f6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60008282018381101561152c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008282111561198a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b0383166119d95760405162461bcd60e51b81526004018080602001828103825260248152602001806125486024913960400191505060405180910390fd5b6001600160a01b038216611a1e5760405162461bcd60e51b81526004018080602001828103825260228152602001806123856022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b038616611ac75760405162461bcd60e51b81526004018080602001828103825260258152602001806124176025913960400191505060405180910390fd5b6001611ada611ad587611edd565b611f60565b83868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b31573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6001600160a01b038316611b9f5760405162461bcd60e51b81526004018080602001828103825260258152602001806124f06025913960400191505060405180910390fd5b6001600160a01b038216611be45760405162461bcd60e51b81526004018080602001828103825260238152602001806122d76023913960400191505060405180910390fd5b611bef838383611fac565b611c2c816040518060600160405280602681526020016123cc602691396001600160a01b0386166000908152602081905260409020549190611cb5565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611c5b90826118d9565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611d445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d09578181015183820152602001611cf1565b50505050905090810190601f168015611d365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216611d915760405162461bcd60e51b81526004018080602001828103825260218152602001806124cf6021913960400191505060405180910390fd5b611d9d82600083611fac565b611dda816040518060600160405280602281526020016122fa602291396001600160a01b0385166000908152602081905260409020549190611cb5565b6001600160a01b038316600090815260208190526040902055600254611e009082611933565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0380831660009081526008602052604081205490911690611e6f84610e41565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611ed7828483611fda565b50505050565b600060405180608001604052806043815260200161231c60439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000611f6a610cc6565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6001600160a01b03808416600090815260086020526040808220548584168352912054611178929182169116835b816001600160a01b0316836001600160a01b031614158015611ffc5750600081115b15611178576001600160a01b0383161561208e576001600160a01b0383166000908152600a602052604081205463ffffffff16908161203c57600061206e565b6001600160a01b038516600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061207c8285611933565b905061208a86848484612113565b5050505b6001600160a01b03821615611178576001600160a01b0382166000908152600a602052604081205463ffffffff1690816120c95760006120fb565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061210982856118d9565b9050611735858484845b60006121374360405180606001604052806033815260200161251560339139612278565b905060008463ffffffff1611801561218057506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b156121bd576001600160a01b038516600090815260096020908152604080832063ffffffff6000198901168452909152902060010182905561222e565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600984528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600a9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106122ce5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d09578181015183820152602001611cf1565b50919291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373434e543a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365434e543a3a64656c656761746542795369673a207369676e617475726520657870697265644e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e455245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655369676e657220616e64207369676e617475726520646f206e6f74206d6174636845524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365434e543a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373434e543a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373434e543a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c683bb8629b1a9f9a3586fad58855336f5fc2ab6bff6e88b863695316841a49064736f6c63430007060033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429434e543a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974730000000000000000000000002db22df316c80a1d2338ebfacb81ee262fdbe568
Deployed Bytecode
0x6080604052600436106101d85760003560e01c80636fcfff4511610102578063a457c2d711610095578063dd62ed3e11610064578063dd62ed3e1461080b578063e7a324dc14610846578063f1127ed81461085b578063f2fde38b146108ba576101d8565b8063a457c2d714610712578063a9059cbb1461074b578063b4b5ea5714610784578063c3cda520146107b7576101d8565b806379cc6790116100d157806379cc6790146106485780638da5cb5b146106815780638fcbaf0c1461069657806395d89b41146106fd576101d8565b80636fcfff451461057b57806370a08231146105c7578063715018a6146105fa578063782d6fe11461060f576101d8565b80632d0335ab1161017a5780633950935111610149578063395093511461049457806342966c68146104cd578063587cde1e146104f95780635c19a95c14610548576101d8565b80632d0335ab1461040c57806330adf81f1461043f578063313ce567146104545780633408e4701461047f576101d8565b80630f7e5970116101b65780630f7e59701461037857806318160ddd1461038d57806320379ee5146103b457806323b872dd146103c9576101d8565b806306fdde03146101dd578063095ea7b3146102675780630c53c51c146102b4575b600080fd5b3480156101e957600080fd5b506101f26108ed565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561022c578181015183820152602001610214565b50505050905090810190601f1680156102595780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027357600080fd5b506102a06004803603604081101561028a57600080fd5b506001600160a01b038135169060200135610983565b604080519115158252519081900360200190f35b6101f2600480360360a08110156102ca57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102f557600080fd5b82018360208201111561030757600080fd5b8035906020019184600183028401116401000000008311171561032957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff166109a1565b34801561038457600080fd5b506101f2610ca3565b34801561039957600080fd5b506103a2610cc0565b60408051918252519081900360200190f35b3480156103c057600080fd5b506103a2610cc6565b3480156103d557600080fd5b506102a0600480360360608110156103ec57600080fd5b506001600160a01b03813581169160208101359091169060400135610ccc565b34801561041857600080fd5b506103a26004803603602081101561042f57600080fd5b50356001600160a01b0316610d53565b34801561044b57600080fd5b506103a2610d6e565b34801561046057600080fd5b50610469610d92565b6040805160ff9092168252519081900360200190f35b34801561048b57600080fd5b506103a2610d9b565b3480156104a057600080fd5b506102a0600480360360408110156104b757600080fd5b506001600160a01b038135169060200135610d9f565b3480156104d957600080fd5b506104f7600480360360208110156104f057600080fd5b5035610ded565b005b34801561050557600080fd5b5061052c6004803603602081101561051c57600080fd5b50356001600160a01b0316610e01565b604080516001600160a01b039092168252519081900360200190f35b34801561055457600080fd5b506104f76004803603602081101561056b57600080fd5b50356001600160a01b0316610e1f565b34801561058757600080fd5b506105ae6004803603602081101561059e57600080fd5b50356001600160a01b0316610e29565b6040805163ffffffff9092168252519081900360200190f35b3480156105d357600080fd5b506103a2600480360360208110156105ea57600080fd5b50356001600160a01b0316610e41565b34801561060657600080fd5b506104f7610e5c565b34801561061b57600080fd5b506103a26004803603604081101561063257600080fd5b506001600160a01b038135169060200135610f20565b34801561065457600080fd5b506104f76004803603604081101561066b57600080fd5b506001600160a01b038135169060200135611123565b34801561068d57600080fd5b5061052c61117d565b3480156106a257600080fd5b506104f760048036036101008110156106ba57600080fd5b506001600160a01b038135811691602081013590911690604081013590606081013590608081013515159060ff60a0820135169060c08101359060e00135611191565b34801561070957600080fd5b506101f26113f2565b34801561071e57600080fd5b506102a06004803603604081101561073557600080fd5b506001600160a01b038135169060200135611453565b34801561075757600080fd5b506102a06004803603604081101561076e57600080fd5b506001600160a01b0381351690602001356114bb565b34801561079057600080fd5b506103a2600480360360208110156107a757600080fd5b50356001600160a01b03166114cf565b3480156107c357600080fd5b506104f7600480360360c08110156107da57600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611533565b34801561081757600080fd5b506103a26004803603604081101561082e57600080fd5b506001600160a01b038135811691602001351661173d565b34801561085257600080fd5b506103a2611768565b34801561086757600080fd5b5061089a6004803603604081101561087e57600080fd5b5080356001600160a01b0316906020013563ffffffff1661178c565b6040805163ffffffff909316835260208301919091528051918290030190f35b3480156108c657600080fd5b506104f7600480360360208110156108dd57600080fd5b50356001600160a01b03166117b9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109795780601f1061094e57610100808354040283529160200191610979565b820191906000526020600020905b81548152906001019060200180831161095c57829003601f168201915b5050505050905090565b6000610997610990611990565b8484611994565b5060015b92915050565b60408051606081810183526001600160a01b038816600081815260076020908152908590205484528301529181018690526109df8782878787611a80565b610a1a5760405162461bcd60e51b81526004018080602001828103825260218152602001806124646021913960400191505060405180910390fd5b6001600160a01b038716600090815260076020526040902054610a3e9060016118d9565b60076000896001600160a01b03166001600160a01b03168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b87338860405180846001600160a01b03168152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ae6578181015183820152602001610ace565b50505050905090810190601f168015610b135780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a1600080306001600160a01b0316888a6040516020018083805190602001908083835b60208310610b635780518252601f199092019160209182019101610b44565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b60208310610bd95780518252601f199092019160209182019101610bba565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610c3b576040519150601f19603f3d011682016040523d82523d6000602084013e610c40565b606091505b509150915081610c97576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b60065490565b6000610cd9848484611b5a565b610d4984610ce5611990565b610d448560405180606001604052806028815260200161243c602891396001600160a01b038a16600090815260016020526040812090610d23611990565b6001600160a01b031681526020810191909152604001600020549190611cb5565b611994565b5060019392505050565b6001600160a01b031660009081526007602052604090205490565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055460ff1690565b4690565b6000610997610dac611990565b84610d448560016000610dbd611990565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906118d9565b610dfe610df8611990565b82611d4c565b50565b6001600160a01b039081166000908152600860205260409020541690565b610dfe3382611e48565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526020819052604090205490565b610e64611990565b6001600160a01b0316610e7561117d565b6001600160a01b031614610ed0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6000438210610f605760405162461bcd60e51b81526004018080602001828103825260268152602001806124a96026913960400191505060405180910390fd5b6001600160a01b0383166000908152600a602052604090205463ffffffff1680610f8e57600091505061099b565b6001600160a01b038416600090815260096020908152604080832063ffffffff600019860181168552925290912054168310610ffd576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522060010154905061099b565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff1683101561103857600091505061099b565b600060001982015b8163ffffffff168163ffffffff1611156110ec576000600263ffffffff848403166001600160a01b038916600090815260096020908152604080832094909304860363ffffffff81811684529482529183902083518085019094528054909416808452600190940154908301529250908714156110c75760200151945061099b9350505050565b805163ffffffff168711156110de578193506110e5565b6001820392505b5050611040565b506001600160a01b038516600090815260096020908152604080832063ffffffff9094168352929052206001015491505092915050565b600061115a82604051806060016040528060248152602001612485602491396111538661114e611990565b61173d565b9190611cb5565b905061116e83611168611990565b83611994565b6111788383611d4c565b505050565b60055461010090046001600160a01b031690565b600061119b610cc6565b604080517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96020808301919091526001600160a01b03808e16838501528c166060830152608082018b905260a082018a905288151560c0808401919091528351808403909101815260e08301845280519082012061190160f01b610100840152610102830194909452610122808301949094528251808303909401845261014282018084528451948201949094206000909452610162820180845284905260ff88166101828301526101a282018790526101c2820186905291519293506001926101e28083019392601f198301929081900390910190855afa1580156112a5573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b03161461130a576040805162461bcd60e51b815260206004820152601360248201527210d3950e88125395905312510b541154935255606a1b604482015290519081900360640190fd5b8515806113175750854211155b61135e576040805162461bcd60e51b815260206004820152601360248201527210d3950e881411549352550b51561412549151606a1b604482015290519081900360640190fd5b6001600160a01b038916600090815260076020526040902080546001810190915587146113c7576040805162461bcd60e51b8152602060048201526012602482015271434e543a20494e56414c49442d4e4f4e434560701b604482015290519081900360640190fd5b6000856113d55760006113d9565b6000195b90506113e68a8a83611994565b50505050505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109795780601f1061094e57610100808354040283529160200191610979565b6000610997611460611990565b84610d448560405180606001604052806025815260200161258d602591396001600061148a611990565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611cb5565b60006109976114c8611990565b8484611b5a565b6001600160a01b0381166000908152600a602052604081205463ffffffff16806114fa57600061152c565b6001600160a01b038316600090815260096020908152604080832063ffffffff60001986011684529091529020600101545b9392505050565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf6020808301919091526001600160a01b038916828401526060820188905260808083018890528351808403909101815260a09092019092528051910120600061159f610cc6565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611638573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661168a5760405162461bcd60e51b81526004018080602001828103825260258152602001806123a76025913960400191505060405180910390fd5b6001600160a01b038116600090815260076020526040902080546001810190915588146116e85760405162461bcd60e51b815260040180806020018281038252602181526020018061256c6021913960400191505060405180910390fd5b864211156117275760405162461bcd60e51b81526004018080602001828103825260258152602001806123f26025913960400191505060405180910390fd5b611731818a611e48565b5050505b505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60096020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6117c1611990565b6001600160a01b03166117d261117d565b6001600160a01b03161461182d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166118725760405162461bcd60e51b815260040180806020018281038252602681526020018061235f6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60008282018381101561152c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008282111561198a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b6001600160a01b0383166119d95760405162461bcd60e51b81526004018080602001828103825260248152602001806125486024913960400191505060405180910390fd5b6001600160a01b038216611a1e5760405162461bcd60e51b81526004018080602001828103825260228152602001806123856022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b038616611ac75760405162461bcd60e51b81526004018080602001828103825260258152602001806124176025913960400191505060405180910390fd5b6001611ada611ad587611edd565b611f60565b83868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b31573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6001600160a01b038316611b9f5760405162461bcd60e51b81526004018080602001828103825260258152602001806124f06025913960400191505060405180910390fd5b6001600160a01b038216611be45760405162461bcd60e51b81526004018080602001828103825260238152602001806122d76023913960400191505060405180910390fd5b611bef838383611fac565b611c2c816040518060600160405280602681526020016123cc602691396001600160a01b0386166000908152602081905260409020549190611cb5565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611c5b90826118d9565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115611d445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d09578181015183820152602001611cf1565b50505050905090810190601f168015611d365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216611d915760405162461bcd60e51b81526004018080602001828103825260218152602001806124cf6021913960400191505060405180910390fd5b611d9d82600083611fac565b611dda816040518060600160405280602281526020016122fa602291396001600160a01b0385166000908152602081905260409020549190611cb5565b6001600160a01b038316600090815260208190526040902055600254611e009082611933565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0380831660009081526008602052604081205490911690611e6f84610e41565b6001600160a01b0385811660008181526008602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611ed7828483611fda565b50505050565b600060405180608001604052806043815260200161231c60439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b6000611f6a610cc6565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6001600160a01b03808416600090815260086020526040808220548584168352912054611178929182169116835b816001600160a01b0316836001600160a01b031614158015611ffc5750600081115b15611178576001600160a01b0383161561208e576001600160a01b0383166000908152600a602052604081205463ffffffff16908161203c57600061206e565b6001600160a01b038516600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061207c8285611933565b905061208a86848484612113565b5050505b6001600160a01b03821615611178576001600160a01b0382166000908152600a602052604081205463ffffffff1690816120c95760006120fb565b6001600160a01b038416600090815260096020908152604080832063ffffffff60001987011684529091529020600101545b9050600061210982856118d9565b9050611735858484845b60006121374360405180606001604052806033815260200161251560339139612278565b905060008463ffffffff1611801561218057506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b156121bd576001600160a01b038516600090815260096020908152604080832063ffffffff6000198901168452909152902060010182905561222e565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600984528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600a9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b60008164010000000084106122ce5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d09578181015183820152602001611cf1565b50919291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373434e543a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365434e543a3a64656c656761746542795369673a207369676e617475726520657870697265644e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e455245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655369676e657220616e64207369676e617475726520646f206e6f74206d6174636845524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365434e543a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373434e543a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a20617070726f76652066726f6d20746865207a65726f2061646472657373434e543a3a64656c656761746542795369673a20696e76616c6964206e6f6e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c683bb8629b1a9f9a3586fad58855336f5fc2ab6bff6e88b863695316841a49064736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002db22df316c80a1d2338ebfacb81ee262fdbe568
-----Decoded View---------------
Arg [0] : tokenHolder (address): 0x2DB22Df316c80A1d2338EbFACB81ee262fDBe568
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002db22df316c80a1d2338ebfacb81ee262fdbe568
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.