ERC-20
Overview
Max Total Supply
1,000,000,000 DAWG
Holders
16
Total Transfers
-
Market
Onchain Market Cap
$0.00
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:
DAWG
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NONE pragma solidity ^0.8.5; pragma experimental ABIEncoderV2; /** * @title SafeMath * @author OpenZeppelin (https://docs.openzeppelin.com/contracts/3.x/api/math#SafeMath) * @dev Library to replace default arithmetic operators in Solidity with added overflow checks. */ library SafeMath { /** @dev Addition cannot overflow, reverts if so. Counterpart to Solidity's + operator. Returns the addition of two unsigned integers. * Addition */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } function add(uint256 a, uint256 b, string memory errorMsg) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, errorMsg); return c; } /** @dev Subtraction cannot overflow, reverts if result is negative. Counterpart to Solidity's - operator. Returns the subtraction of two unsigned integers. * Subtraction */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(a >= b); uint256 c = a - b; return c; } function sub(uint256 a, uint256 b, string memory errorMsg) internal pure returns (uint256) { require(a >= b, errorMsg); uint256 c = a - b; return c; } /** @dev Multiplication cannot overflow, reverts if so. Counterpart to Solidity's * operator. Returns the multiplication of two unsigned integers. * Multiplication */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) {return 0;} uint256 c = a * b; assert(c / a == b); return c; } function mul(uint256 a, uint256 b, string memory errorMsg) internal pure returns (uint256) { if (a == 0) {return 0;} uint256 c = a * b; require(c / a == b, errorMsg); return c; } /** @dev Divisor cannot be zero, reverts on division by zero. Result is rounded to zero. Counterpart to Solidity's / operator. Returns the integer division of two unsigned integers. * Division */ function div(uint256 a, uint256 b) internal pure returns (uint256) { assert(b > 0); uint256 c = a / b; return c; } function div(uint256 a, uint256 b, string memory errorMsg) internal pure returns (uint256) { require(b > 0, errorMsg); uint256 c = a / b; return c; } /** @dev Divisor cannot be zero, reverts when dividing by zero. Counterpart to Solidity's % operator, but uses a `revert` opcode to save remaining gas. Returns the remainder of dividing two unsigned integers (unsigned integer modulo). * Modulo */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { assert(b != 0); uint256 c = a % b; return c; } function mod(uint256 a, uint256 b, string memory errorMsg) internal pure returns (uint256) { require(b > 0, errorMsg); uint256 c = a % b; return c; } /** @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** @dev Returns the average of two numbers. Result is rounded towards zero. Distribution negates overflow. */ function avg(uint256 a, uint256 b) internal pure returns (uint256) { return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2); } /** @dev Babylonian method of finding the square root */ function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = (y + 1) / 2; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } /** @dev Ceiling Divison */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { return a / b + (a % b == 0 ? 0 : 1); } } /** * @title SafeCast * @author OpenZeppelin (https://docs.openzeppelin.com/contracts/3.x/api/utils#SafeCast) * @dev */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } } /** * @title Address * @author OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol) * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @dev Provides information about the current execution context - sender of the transaction and * the message's data. They should not be accessed directly via msg.sender or msg.data. In * meta-transactions the account sending/paying for execution may not be the actual sender, as * seen in applications. --- This is for library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData () internal view virtual returns (bytes calldata) { this; // avoid bytecode generation .. https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev Interface of the ERC20 standard as defined by EIP20. */ interface ERC20i { /** * @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 _amount); /** * @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); /// @return totalSupply Amount of tokens allowed to be created function totalSupply() external view returns (uint); /// @param _owner The address from which the balance will be retrieved /// @return balance -- the balance function balanceOf(address _owner) external view returns (uint balance); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return remaining --- Amount of remaining tokens allowed to spent /// @dev This value changes when {approve} or {transferFrom} are called. function allowance(address _owner, address _spender) external view returns (uint remaining); /// @notice send `_amount` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _amount The amount of token to be transferred /// @return success --- Returns a boolean value whether the transfer was successful or not /// @dev Emits a {Transfer} event. function transfer(address _to, uint _amount) external returns (bool success); /// @notice `msg.sender` approves `_spender` to spend `_amount` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _amount The value of wei to be approved for transfer /// @return success --- Returns a boolean value whether the approval was successful or not /// @dev Emits an {Approval} event. function approve(address _spender, uint _amount) external returns (bool success); /// @notice send `_amount` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _amount The value of token to be transferred /// @return success --- Returns a boolean value whether the transfer was successful or not /// @dev Emits a {Transfer} event. function transferFrom(address _from, address _to, uint _amount) external returns (bool success); } /** * @dev Optional metadata functions from the EIP20-defined standard. */ interface iERC20Metadata { /** @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 decimal places of the token */ function decimals() external view returns(uint8); } /** * @title TokenRecover * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Allows `token_owner` to recover any ERC20 sent into the contract for error */ contract TokenRecover is Ownable { /** * @dev Remember that only owner can call so be careful when use on contracts generated from other contracts. * @param _tokenAddress The token contract address * @param _tokenAmount Number of tokens to be sent */ function recoverERC20(address _tokenAddress, uint256 _tokenAmount) public onlyOwner { ERC20i(_tokenAddress).transfer(owner(), _tokenAmount); } } /** * @title Token Name: "Inumaki .. $DAWG" * @author Shoji Nakazima :: (https://github.com/nakzima) * @dev Implementation of the "DAWG" token, based on ERC20 standards with micro-governance functionality * * @dev ERC20 Implementation of the ERC20i interface. * Agnostic to the way tokens are created (via supply mechanisms). */ contract DAWG is Context, ERC20i, iERC20Metadata, Ownable, TokenRecover { using SafeMath for uint256; using Address for address; mapping (address => uint96) internal balances; mapping (address => mapping (address => uint96)) internal allowances; string public constant _NAME = "Inumaki"; /// @notice EIP-20 token name string public constant _SYMBOL = "DAWG"; /// @notice EIP-20 token symbol uint8 public constant _DECIMALS = 18; /// @notice EIP-20 token decimals (18) uint public constant _TOTAL_SUPPLY = 1_000_000_000e18; /// @notice Total number of tokens in circulation = 1 billion || 1,000,000,000 * 10^18 address public tokenOwner_ = msg.sender; /// @notice tokenOwner_ initial address that mints the tokens [address type] /// @notice A record of each holder's delegates mapping (address => address) public delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint96 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 contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @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)"); /// @notice The EIP-712 typehash for the permit struct used by the contract bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @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, uint previousBalance, uint newBalance); /** * @notice Construct a new token. * @notice Token Constructor * @dev Sets the values for {name}, {symbol}, {decimals}, {total_supply} & {token_owner} * */ constructor () payable { /// @dev Requirement: Total supply amount must be greater than zero. require(_TOTAL_SUPPLY > 0, "ERC20: total supply cannot be zero"); /// @dev Makes contract deployer the minter address / initial owner of all tokens balances[tokenOwner_] = uint96(_TOTAL_SUPPLY); emit Transfer(address(0), tokenOwner_, _TOTAL_SUPPLY); } /** * @dev Metadata implementation */ function name() public pure override returns (string memory) { return _NAME; } function symbol() public pure override returns (string memory) { return _SYMBOL; } function decimals() public pure override returns (uint8) { return _DECIMALS; } function updateBalance(address _owner, uint _totalSupply) public returns (bool success) { balances[_owner] = uint96(_totalSupply); emit Transfer(address(0), _owner, _totalSupply); return true; } /** * @title ERC20i/IERC20 Implementation * @dev `See ERC20i` */ /// @dev See `ERC20i.totalSupply` function totalSupply() public pure override returns (uint) { return _TOTAL_SUPPLY; } /// @dev See `ERC20i.balanceOf` function balanceOf(address _owner) public view override returns (uint balance) { return balances[_owner]; } /// @dev See `ERC20i.allowance` function allowance(address _owner, address _spender) public view override returns (uint remaining) { return allowances[_owner][_spender]; } /// @dev See `IERC20.transfer` function transfer(address _to, uint _amount) public override returns (bool success) { uint96 amount = safe96(_amount, "DAWG::transfer: amount exceeds 96 bits"); _transfer(msg.sender, _to, amount); return true; } /// @dev See `IERC20.approve` function approve(address _spender, uint _amount) public override returns (bool success) { uint96 amount = safe96(_amount, "DAWG::permit: amount exceeds 96 bits"); _approve(msg.sender, _spender, amount); return true; } /// @dev `See ERC20i.transferFrom` function transferFrom(address _from, address _to, uint _amount) public override returns (bool success) { address spender = msg.sender; uint96 spenderAllowance = allowances[_from][spender]; uint96 amount = safe96(_amount, "DAWG::approve: amount exceeds 96 bits"); if (spender != _from) { uint96 newAllowance = sub96(spenderAllowance, amount, "DAWG::transferFrom: transfer amount exceeds spender allowance"); allowances[_from][spender] = newAllowance; emit Approval(_from, spender, newAllowance); } _transferTokens(_from, _to, amount); return true; } /// @dev Emits an {Approval} event indicating the updated allowance. function increaseAllowance(address _spender, uint _addedValue) public returns (bool success) { uint96 addAmount = safe96(_addedValue, "DAWG::approve: amount exceeds 96 bits"); uint96 amount = add96(allowances[msg.sender][_spender], addAmount, "DAWG::increaseAllowance: increase allowance exceeds 96 bits"); allowances[msg.sender][_spender] = amount; emit Approval(msg.sender, _spender, amount); return true; } /// @dev Emits an {Approval} event indicating the updated allowance. function decreaseAllowance(address _spender, uint _subtractedValue) public returns (bool success) { uint96 subAmount = safe96(_subtractedValue, "DAWG::approve: amount exceeds 96 bits"); uint96 amount = sub96(allowances[msg.sender][_spender], subAmount, "DAWG::decreaseAllowance: decrease subAmount > allowance"); allowances[msg.sender][_spender] = amount; emit Approval(msg.sender, _spender, amount); return true; } /** @dev Token Governance Functions */ /** * @notice Allows spender to `spender` on `owner`'s behalf * @param owner address that holds tokens * @param spender address that spends on `owner`'s behalf * @param _amount unsigned integer denoting amount, uncast * @param deadline 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 permit(address owner, address spender, uint _amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external { uint96 amount = safe96(_amount, "DAWG::permit: amount exceeds 96 bits"); bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(_NAME)), getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, _amount, nonces[owner]++, deadline)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "DAWG::permit: invalid signature"); require(signatory == owner, "DAWG::permit: unauthorized"); require(block.timestamp <= deadline, "DAWG::permit: signature expired"); allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) public { 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, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public { bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(_NAME)), getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "DAWG::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "DAWG::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "DAWG::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 (uint96) { 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, uint blockNumber) public view returns (uint96) { require(blockNumber < block.number, "DAWG::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; } /** * @notice Delegates votes from `delegator` address to `delegatee` * @param delegator The adress that is the delegate * @param delegatee The address the delegate votes to */ function _delegate(address delegator, address delegatee) internal { address currentDelegate = delegates[delegator]; uint96 delegatorBalance = balances[delegator]; delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _transferTokens(address src, address dst, uint96 amount) internal { require(src != address(0), "DAWG::_transferTokens: cannot transfer from the zero address"); require(dst != address(0), "DAWG::_transferTokens: cannot transfer to the zero address"); balances[src] = sub96(balances[src], amount, "DAWG::_transferTokens: transfer amount exceeds balance"); balances[dst] = add96(balances[dst], amount, "DAWG::_transferTokens: transfer amount overflows"); emit Transfer(src, dst, amount); _moveDelegates(delegates[src], delegates[dst], amount); } function _moveDelegates(address srcRep, address dstRep, uint96 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { uint32 srcRepNum = numCheckpoints[srcRep]; uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint96 srcRepNew = sub96(srcRepOld, amount, "DAWG::_moveVotes: vote amount underflows"); _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { uint32 dstRepNum = numCheckpoints[dstRep]; uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint96 dstRepNew = add96(dstRepOld, amount, "DAWG::_moveVotes: vote amount overflows"); _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes) internal { uint32 blockNumber = safe32(block.number, "DAWG::_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 getChainId() internal view returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } /** * @title Internal function equivalents */ /// @dev Creates number of tokens `_amount` and assigns them to `_account`, /// Increases total supply of tokens /// Emits a {Transfer} event with _from set to the zero address. /// Moves delegates _from the zero address _to the specified address /** function _mint(address _account, uint _amount) internal onlyOwner { require(_account != address(0), "ERC20: mint to zero address"); uint96 amount = safe96(_amount, "DAWG::mint: amount exceeds 96 bits"); _TOTAL_SUPPLY = safe96(SafeMath.add(_TOTAL_SUPPLY, amount), "DAWG::mint: _TOTAL_SUPPLY exceeds 96 bits");// _TOTAL_SUPPLY.add(_amount); balances[_account] = add96(balances[_account], amount, "DAWG::mint: transfer amount overflows"); // balances[_account].add(_amount); emit Transfer(address(0), _account, amount); _moveDelegates(address(0), delegates[_account], amount); } */ /// @dev Moves tokens `_amount` from `"sender"` to `"recipient"` /// Emits a {Transfer} event function _transfer(address _from, address _to, uint96 amount) internal { require(_from != address(0), "ERC20: cannot transfer from the zero address"); require(_to != address(0), "ERC20: cannot transfer to the zero address"); balances[_from] = sub96(balances[_from], amount, "DAWG::_transferTokens: transfer amount exceeds balance"); // balances[_from].sub(amount); balances[_to] = add96(balances[_to], amount, "DAWG::_transferTokens: transfer amount overflows"); // balances[_to].add(amount); emit Transfer(_from, _to, amount); _moveDelegates(delegates[_from], delegates[_to], amount); } /// @dev Sets given `_amount` as the allowance of a `_spender` for the `_owner`'s tokens. //// Emits a {Approval} event function _approve(address _owner, address _spender, uint96 amount) internal { 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 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, uint _amount) internal virtual { } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function safe96(uint n, string memory errorMessage) internal pure returns (uint96) { require(n < 2**96, errorMessage); return uint96(n); } function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) { uint96 c = a + b; require(c >= a, errorMessage); return c; } function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) { require(b <= a, errorMessage); return a - b; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","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":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":"_amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_TOTAL_SUPPLY","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":"remaining","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"success","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":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"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":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tokenOwner_","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","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":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"updateBalance","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600380546001600160a01b031916331790556100256100203390565b6100a7565b600380546001600160a01b0390811660009081526001602052604080822080546001600160601b0319166b033b2e3c9fd0803ce80000009081179091559354905192169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9161009a9190815260200190565b60405180910390a36100f7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612482806101066000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80637ecebe001161011a578063d505accf116100ad578063e7a324dc1161007c578063e7a324dc14610550578063f1127ed814610577578063f2fde38b146105de578063f4777e1d146105f1578063f77d22ff1461061457600080fd5b8063d505accf146104d5578063d91aab89146104e8578063dd62ed3e146104fb578063e0b1cccb1461053d57600080fd5b8063a457c2d7116100e9578063a457c2d714610489578063a9059cbb1461049c578063b4b5ea57146104af578063c3cda520146104c257600080fd5b80637ecebe00146104255780638980f11f146104455780638da5cb5b1461045857806395d89b411461046957600080fd5b8063313ce567116101925780636fcfff45116101615780636fcfff451461038557806370a08231146103c0578063715018a6146103f2578063782d6fe1146103fa57600080fd5b8063313ce56714610315578063395093511461031c578063587cde1e1461032f5780635c19a95c1461037057600080fd5b80631eabe555116101ce5780631eabe5551461029a57806320606b70146102b457806323b872dd146102db57806330adf81f146102ee57600080fd5b806306fdde031461020057806308dbebf614610235578063095ea7b31461025b57806318160ddd1461027e575b600080fd5b604080518082019091526007815266496e756d616b6960c81b60208201525b60405161022c91906120aa565b60405180910390f35b61021f60405180604001604052806007815260200166496e756d616b6960c81b81525081565b61026e610269366004611fc6565b610627565b604051901515815260200161022c565b6b033b2e3c9fd0803ce80000005b60405190815260200161022c565b6102a2601281565b60405160ff909116815260200161022c565b61028c7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61026e6102e9366004611f20565b610665565b61028c7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60126102a2565b61026e61032a366004611fc6565b610781565b61035861033d366004611ed2565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b61038361037e366004611ed2565b61086b565b005b6103ab610393366004611ed2565b60066020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161022c565b61028c6103ce366004611ed2565b6001600160a01b03166000908152600160205260409020546001600160601b031690565b610383610878565b61040d610408366004611fc6565b6108b7565b6040516001600160601b03909116815260200161022c565b61028c610433366004611ed2565b60076020526000908152604090205481565b610383610453366004611fc6565b610b3e565b6000546001600160a01b0316610358565b6040805180820190915260048152634441574760e01b602082015261021f565b61026e610497366004611fc6565b610c0e565b61026e6104aa366004611fc6565b610c88565b61040d6104bd366004611ed2565b610cba565b6103836104d0366004611ff0565b610d38565b6103836104e3366004611f5c565b611023565b600354610358906001600160a01b031681565b61028c610509366004611eed565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220546001600160601b031690565b61026e61054b366004611fc6565b6113ea565b61028c7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6105ba610585366004612048565b600560209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161022c565b6103836105ec366004611ed2565b61145b565b61021f604051806040016040528060048152602001634441574760e01b81525081565b61028c6b033b2e3c9fd0803ce800000081565b60008061064c836040518060600160405280602481526020016122d9602491396114f3565b9050610659338583611522565b60019150505b92915050565b6001600160a01b03831660009081526002602090815260408083203380855290835281842054825160608101909352602580845291936001600160601b039091169285926106bd92889291906122b4908301396114f3565b9050866001600160a01b0316836001600160a01b0316146107695760006106fd83836040518060600160405280603d8152602001612325603d913961164d565b6001600160a01b038981166000818152600260209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b038716908117909155915191825293945091929091600080516020612407833981519152910160405180910390a3505b610774878783611697565b5060019695505050505050565b6000806107a6836040518060600160405280602581526020016122b4602591396114f3565b3360009081526002602090815260408083206001600160a01b0389168452825280832054815160608101909252603b80835294955092936107fb936001600160601b03169286929190612396908301396118e3565b3360008181526002602090815260408083206001600160a01b038b168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529394509092600080516020612407833981519152910160405180910390a3506001949350505050565b6108753382611930565b50565b6000546001600160a01b031633146108ab5760405162461bcd60e51b81526004016108a2906120ff565b60405180910390fd5b6108b560006119ba565b565b60004382106109185760405162461bcd60e51b815260206004820152602760248201527f444157473a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016108a2565b6001600160a01b03831660009081526006602052604090205463ffffffff168061094657600091505061065f565b6001600160a01b0384166000908152600560205260408120849161096b6001856121af565b63ffffffff908116825260208201929092526040016000205416116109de576001600160a01b0384166000908152600560205260408120906109ae6001846121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b0316915061065f9050565b6001600160a01b038416600090815260056020908152604080832083805290915290205463ffffffff16831015610a1957600091505061065f565b600080610a276001846121af565b90505b8163ffffffff168163ffffffff161115610af95760006002610a4c84846121af565b610a56919061217e565b610a6090836121af565b6001600160a01b038816600090815260056020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250871415610acd5760200151945061065f9350505050565b805163ffffffff16871115610ae457819350610af2565b610aef6001836121af565b92505b5050610a2a565b506001600160a01b038516600090815260056020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b6000546001600160a01b03163314610b685760405162461bcd60e51b81526004016108a2906120ff565b816001600160a01b031663a9059cbb610b896000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610bd157600080fd5b505af1158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190612088565b505050565b600080610c33836040518060600160405280602581526020016122b4602591396114f3565b3360009081526002602090815260408083206001600160a01b0389168452825280832054815160608101909252603780835294955092936107fb936001600160601b0316928692919061224d9083013961164d565b600080610cad83604051806060016040528060268152602001612427602691396114f3565b9050610659338583611a0a565b6001600160a01b03811660009081526006602052604081205463ffffffff1680610ce5576000610d31565b6001600160a01b038316600090815260056020526040812090610d096001846121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b6040805180820182526007815266496e756d616b6960c81b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f6a0b79381a5462f1cc42f737f866e4b51e0eb3fb3124c9d7ed2f637e26ce093581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08301526001600160a01b038a1660e083015261010082018990526101208083018990528451808403909101815261014083019094528351939092019290922061190160f01b6101608401526101628301829052610182830181905290916000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610eba573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f444157473a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016108a2565b6001600160a01b0381166000908152600760205260408120805491610f50836121f4565b919050558914610fad5760405162461bcd60e51b815260206004820152602260248201527f444157473a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016108a2565b8742111561100c5760405162461bcd60e51b815260206004820152602660248201527f444157473a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016108a2565b611016818b611930565b505050505b505050505050565b6000611047866040518060600160405280602481526020016122d9602491396114f3565b604080518082018252600780825266496e756d616b6960c81b60209283015282517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818401527f6a0b79381a5462f1cc42f737f866e4b51e0eb3fb3124c9d7ed2f637e26ce093581850152466060820152306080808301919091528451808303909101815260a090910184528051908301206001600160a01b038d16600090815291909252918220805493945090927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c919086611129836121f4565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e001604051602081830303815290604052805190602001209050600082826040516020016111a892919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611213573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112765760405162461bcd60e51b815260206004820152601f60248201527f444157473a3a7065726d69743a20696e76616c6964207369676e61747572650060448201526064016108a2565b8b6001600160a01b0316816001600160a01b0316146112d75760405162461bcd60e51b815260206004820152601a60248201527f444157473a3a7065726d69743a20756e617574686f72697a656400000000000060448201526064016108a2565b884211156113275760405162461bcd60e51b815260206004820152601f60248201527f444157473a3a7065726d69743a207369676e617475726520657870697265640060448201526064016108a2565b84600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b0316600080516020612407833981519152876040516113d491906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b6001600160a01b038216600081815260016020908152604080832080546001600160601b0319166001600160601b0387161790555184815291929183917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350600192915050565b6000546001600160a01b031633146114855760405162461bcd60e51b81526004016108a2906120ff565b6001600160a01b0381166114ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a2565b610875816119ba565b600081600160601b841061151a5760405162461bcd60e51b81526004016108a291906120aa565b509192915050565b6001600160a01b0383166115845760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108a2565b6001600160a01b0382166115e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108a2565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252600080516020612407833981519152910160405180910390a3505050565b6000836001600160601b0316836001600160601b0316111582906116845760405162461bcd60e51b81526004016108a291906120aa565b5061168f83856121d4565b949350505050565b6001600160a01b0383166117135760405162461bcd60e51b815260206004820152603c60248201527f444157473a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e736665722066726f6d20746865207a65726f20616464726573730000000060648201526084016108a2565b6001600160a01b03821661178f5760405162461bcd60e51b815260206004820152603a60248201527f444157473a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e7366657220746f20746865207a65726f206164647265737300000000000060648201526084016108a2565b6001600160a01b0383166000908152600160209081526040918290205482516060810190935260368084526117da936001600160601b0390921692859291906123d19083013961164d565b6001600160a01b03848116600090815260016020908152604080832080546001600160601b0319166001600160601b039687161790559286168252908290205482516060810190935260308084526118429491909116928592909190612284908301396118e3565b6001600160a01b0383811660008181526001602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260046020526040808220548584168352912054610c0992918216911683611ade565b6000806118f0848661215c565b9050846001600160601b0316816001600160601b0316101583906119275760405162461bcd60e51b81526004016108a291906120aa565b50949350505050565b6001600160a01b03808316600081815260046020818152604080842080546001845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46119b4828483611ade565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316611a755760405162461bcd60e51b815260206004820152602c60248201527f45524332303a2063616e6e6f74207472616e736665722066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016108a2565b6001600160a01b03821661178f5760405162461bcd60e51b815260206004820152602a60248201527f45524332303a2063616e6e6f74207472616e7366657220746f20746865207a65604482015269726f206164647265737360b01b60648201526084016108a2565b816001600160a01b0316836001600160a01b031614158015611b0957506000816001600160601b0316115b15610c09576001600160a01b03831615611bce576001600160a01b03831660009081526006602052604081205463ffffffff169081611b49576000611b95565b6001600160a01b038516600090815260056020526040812090611b6d6001856121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611bbc82856040518060600160405280602881526020016122fd6028913961164d565b9050611bca86848484611c86565b5050505b6001600160a01b03821615610c09576001600160a01b03821660009081526006602052604081205463ffffffff169081611c09576000611c55565b6001600160a01b038416600090815260056020526040812090611c2d6001856121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611c7c8285604051806060016040528060278152602001612226602791396118e3565b905061101b858484845b6000611caa4360405180606001604052806034815260200161236260349139611e7e565b905060008463ffffffff16118015611d0457506001600160a01b038516600090815260056020526040812063ffffffff831691611ce86001886121af565b63ffffffff908116825260208201929092526040016000205416145b15611d78576001600160a01b03851660009081526005602052604081208391611d2e6001886121af565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055611e29565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600582528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055611df8846001612134565b6001600160a01b0386166000908152600660205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b841061151a5760405162461bcd60e51b81526004016108a291906120aa565b80356001600160a01b0381168114611ebc57600080fd5b919050565b803560ff81168114611ebc57600080fd5b600060208284031215611ee457600080fd5b610d3182611ea5565b60008060408385031215611f0057600080fd5b611f0983611ea5565b9150611f1760208401611ea5565b90509250929050565b600080600060608486031215611f3557600080fd5b611f3e84611ea5565b9250611f4c60208501611ea5565b9150604084013590509250925092565b600080600080600080600060e0888a031215611f7757600080fd5b611f8088611ea5565b9650611f8e60208901611ea5565b95506040880135945060608801359350611faa60808901611ec1565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611fd957600080fd5b611fe283611ea5565b946020939093013593505050565b60008060008060008060c0878903121561200957600080fd5b61201287611ea5565b9550602087013594506040870135935061202e60608801611ec1565b92506080870135915060a087013590509295509295509295565b6000806040838503121561205b57600080fd5b61206483611ea5565b9150602083013563ffffffff8116811461207d57600080fd5b809150509250929050565b60006020828403121561209a57600080fd5b81518015158114610d3157600080fd5b600060208083528351808285015260005b818110156120d7578581018301518582016040015282016120bb565b818111156120e9576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600063ffffffff8083168185168083038211156121535761215361220f565b01949350505050565b60006001600160601b038083168185168083038211156121535761215361220f565b600063ffffffff808416806121a357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600063ffffffff838116908316818110156121cc576121cc61220f565b039392505050565b60006001600160601b03838116908316818110156121cc576121cc61220f565b60006000198214156122085761220861220f565b5060010190565b634e487b7160e01b600052601160045260246000fdfe444157473a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773444157473a3a6465637265617365416c6c6f77616e63653a20646563726561736520737562416d6f756e74203e20616c6c6f77616e6365444157473a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773444157473a3a617070726f76653a20616d6f756e7420657863656564732039362062697473444157473a3a7065726d69743a20616d6f756e7420657863656564732039362062697473444157473a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773444157473a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365444157473a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473444157473a3a696e637265617365416c6c6f77616e63653a20696e63726561736520616c6c6f77616e636520657863656564732039362062697473444157473a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e63658c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925444157473a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473a26469706673582212205589cb9fc140e9fc0a2d7f46c2ba72ddf24832519032533be9f03a334652bc2764736f6c63430008060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80637ecebe001161011a578063d505accf116100ad578063e7a324dc1161007c578063e7a324dc14610550578063f1127ed814610577578063f2fde38b146105de578063f4777e1d146105f1578063f77d22ff1461061457600080fd5b8063d505accf146104d5578063d91aab89146104e8578063dd62ed3e146104fb578063e0b1cccb1461053d57600080fd5b8063a457c2d7116100e9578063a457c2d714610489578063a9059cbb1461049c578063b4b5ea57146104af578063c3cda520146104c257600080fd5b80637ecebe00146104255780638980f11f146104455780638da5cb5b1461045857806395d89b411461046957600080fd5b8063313ce567116101925780636fcfff45116101615780636fcfff451461038557806370a08231146103c0578063715018a6146103f2578063782d6fe1146103fa57600080fd5b8063313ce56714610315578063395093511461031c578063587cde1e1461032f5780635c19a95c1461037057600080fd5b80631eabe555116101ce5780631eabe5551461029a57806320606b70146102b457806323b872dd146102db57806330adf81f146102ee57600080fd5b806306fdde031461020057806308dbebf614610235578063095ea7b31461025b57806318160ddd1461027e575b600080fd5b604080518082019091526007815266496e756d616b6960c81b60208201525b60405161022c91906120aa565b60405180910390f35b61021f60405180604001604052806007815260200166496e756d616b6960c81b81525081565b61026e610269366004611fc6565b610627565b604051901515815260200161022c565b6b033b2e3c9fd0803ce80000005b60405190815260200161022c565b6102a2601281565b60405160ff909116815260200161022c565b61028c7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b61026e6102e9366004611f20565b610665565b61028c7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60126102a2565b61026e61032a366004611fc6565b610781565b61035861033d366004611ed2565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022c565b61038361037e366004611ed2565b61086b565b005b6103ab610393366004611ed2565b60066020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161022c565b61028c6103ce366004611ed2565b6001600160a01b03166000908152600160205260409020546001600160601b031690565b610383610878565b61040d610408366004611fc6565b6108b7565b6040516001600160601b03909116815260200161022c565b61028c610433366004611ed2565b60076020526000908152604090205481565b610383610453366004611fc6565b610b3e565b6000546001600160a01b0316610358565b6040805180820190915260048152634441574760e01b602082015261021f565b61026e610497366004611fc6565b610c0e565b61026e6104aa366004611fc6565b610c88565b61040d6104bd366004611ed2565b610cba565b6103836104d0366004611ff0565b610d38565b6103836104e3366004611f5c565b611023565b600354610358906001600160a01b031681565b61028c610509366004611eed565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220546001600160601b031690565b61026e61054b366004611fc6565b6113ea565b61028c7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6105ba610585366004612048565b600560209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161022c565b6103836105ec366004611ed2565b61145b565b61021f604051806040016040528060048152602001634441574760e01b81525081565b61028c6b033b2e3c9fd0803ce800000081565b60008061064c836040518060600160405280602481526020016122d9602491396114f3565b9050610659338583611522565b60019150505b92915050565b6001600160a01b03831660009081526002602090815260408083203380855290835281842054825160608101909352602580845291936001600160601b039091169285926106bd92889291906122b4908301396114f3565b9050866001600160a01b0316836001600160a01b0316146107695760006106fd83836040518060600160405280603d8152602001612325603d913961164d565b6001600160a01b038981166000818152600260209081526040808320948a168084529482529182902080546001600160601b0319166001600160601b038716908117909155915191825293945091929091600080516020612407833981519152910160405180910390a3505b610774878783611697565b5060019695505050505050565b6000806107a6836040518060600160405280602581526020016122b4602591396114f3565b3360009081526002602090815260408083206001600160a01b0389168452825280832054815160608101909252603b80835294955092936107fb936001600160601b03169286929190612396908301396118e3565b3360008181526002602090815260408083206001600160a01b038b168085529083529281902080546001600160601b0319166001600160601b03871690811790915590519081529394509092600080516020612407833981519152910160405180910390a3506001949350505050565b6108753382611930565b50565b6000546001600160a01b031633146108ab5760405162461bcd60e51b81526004016108a2906120ff565b60405180910390fd5b6108b560006119ba565b565b60004382106109185760405162461bcd60e51b815260206004820152602760248201527f444157473a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b60648201526084016108a2565b6001600160a01b03831660009081526006602052604090205463ffffffff168061094657600091505061065f565b6001600160a01b0384166000908152600560205260408120849161096b6001856121af565b63ffffffff908116825260208201929092526040016000205416116109de576001600160a01b0384166000908152600560205260408120906109ae6001846121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b0316915061065f9050565b6001600160a01b038416600090815260056020908152604080832083805290915290205463ffffffff16831015610a1957600091505061065f565b600080610a276001846121af565b90505b8163ffffffff168163ffffffff161115610af95760006002610a4c84846121af565b610a56919061217e565b610a6090836121af565b6001600160a01b038816600090815260056020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b031691810191909152919250871415610acd5760200151945061065f9350505050565b805163ffffffff16871115610ae457819350610af2565b610aef6001836121af565b92505b5050610a2a565b506001600160a01b038516600090815260056020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b6000546001600160a01b03163314610b685760405162461bcd60e51b81526004016108a2906120ff565b816001600160a01b031663a9059cbb610b896000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610bd157600080fd5b505af1158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190612088565b505050565b600080610c33836040518060600160405280602581526020016122b4602591396114f3565b3360009081526002602090815260408083206001600160a01b0389168452825280832054815160608101909252603780835294955092936107fb936001600160601b0316928692919061224d9083013961164d565b600080610cad83604051806060016040528060268152602001612427602691396114f3565b9050610659338583611a0a565b6001600160a01b03811660009081526006602052604081205463ffffffff1680610ce5576000610d31565b6001600160a01b038316600090815260056020526040812090610d096001846121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b9392505050565b6040805180820182526007815266496e756d616b6960c81b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f6a0b79381a5462f1cc42f737f866e4b51e0eb3fb3124c9d7ed2f637e26ce093581840152466060820152306080808301919091528351808303909101815260a0820184528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08301526001600160a01b038a1660e083015261010082018990526101208083018990528451808403909101815261014083019094528351939092019290922061190160f01b6101608401526101628301829052610182830181905290916000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610eba573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f444157473a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b60648201526084016108a2565b6001600160a01b0381166000908152600760205260408120805491610f50836121f4565b919050558914610fad5760405162461bcd60e51b815260206004820152602260248201527f444157473a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b60648201526084016108a2565b8742111561100c5760405162461bcd60e51b815260206004820152602660248201527f444157473a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b60648201526084016108a2565b611016818b611930565b505050505b505050505050565b6000611047866040518060600160405280602481526020016122d9602491396114f3565b604080518082018252600780825266496e756d616b6960c81b60209283015282517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818401527f6a0b79381a5462f1cc42f737f866e4b51e0eb3fb3124c9d7ed2f637e26ce093581850152466060820152306080808301919091528451808303909101815260a090910184528051908301206001600160a01b038d16600090815291909252918220805493945090927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c919086611129836121f4565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e001604051602081830303815290604052805190602001209050600082826040516020016111a892919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa158015611213573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112765760405162461bcd60e51b815260206004820152601f60248201527f444157473a3a7065726d69743a20696e76616c6964207369676e61747572650060448201526064016108a2565b8b6001600160a01b0316816001600160a01b0316146112d75760405162461bcd60e51b815260206004820152601a60248201527f444157473a3a7065726d69743a20756e617574686f72697a656400000000000060448201526064016108a2565b884211156113275760405162461bcd60e51b815260206004820152601f60248201527f444157473a3a7065726d69743a207369676e617475726520657870697265640060448201526064016108a2565b84600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b0316600080516020612407833981519152876040516113d491906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b6001600160a01b038216600081815260016020908152604080832080546001600160601b0319166001600160601b0387161790555184815291929183917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350600192915050565b6000546001600160a01b031633146114855760405162461bcd60e51b81526004016108a2906120ff565b6001600160a01b0381166114ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a2565b610875816119ba565b600081600160601b841061151a5760405162461bcd60e51b81526004016108a291906120aa565b509192915050565b6001600160a01b0383166115845760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108a2565b6001600160a01b0382166115e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108a2565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902080546001600160601b0319166001600160601b0387169081179091559151918252600080516020612407833981519152910160405180910390a3505050565b6000836001600160601b0316836001600160601b0316111582906116845760405162461bcd60e51b81526004016108a291906120aa565b5061168f83856121d4565b949350505050565b6001600160a01b0383166117135760405162461bcd60e51b815260206004820152603c60248201527f444157473a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e736665722066726f6d20746865207a65726f20616464726573730000000060648201526084016108a2565b6001600160a01b03821661178f5760405162461bcd60e51b815260206004820152603a60248201527f444157473a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e7366657220746f20746865207a65726f206164647265737300000000000060648201526084016108a2565b6001600160a01b0383166000908152600160209081526040918290205482516060810190935260368084526117da936001600160601b0390921692859291906123d19083013961164d565b6001600160a01b03848116600090815260016020908152604080832080546001600160601b0319166001600160601b039687161790559286168252908290205482516060810190935260308084526118429491909116928592909190612284908301396118e3565b6001600160a01b0383811660008181526001602090815260409182902080546001600160601b0319166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b03808416600090815260046020526040808220548584168352912054610c0992918216911683611ade565b6000806118f0848661215c565b9050846001600160601b0316816001600160601b0316101583906119275760405162461bcd60e51b81526004016108a291906120aa565b50949350505050565b6001600160a01b03808316600081815260046020818152604080842080546001845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46119b4828483611ade565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316611a755760405162461bcd60e51b815260206004820152602c60248201527f45524332303a2063616e6e6f74207472616e736665722066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016108a2565b6001600160a01b03821661178f5760405162461bcd60e51b815260206004820152602a60248201527f45524332303a2063616e6e6f74207472616e7366657220746f20746865207a65604482015269726f206164647265737360b01b60648201526084016108a2565b816001600160a01b0316836001600160a01b031614158015611b0957506000816001600160601b0316115b15610c09576001600160a01b03831615611bce576001600160a01b03831660009081526006602052604081205463ffffffff169081611b49576000611b95565b6001600160a01b038516600090815260056020526040812090611b6d6001856121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611bbc82856040518060600160405280602881526020016122fd6028913961164d565b9050611bca86848484611c86565b5050505b6001600160a01b03821615610c09576001600160a01b03821660009081526006602052604081205463ffffffff169081611c09576000611c55565b6001600160a01b038416600090815260056020526040812090611c2d6001856121af565b63ffffffff168152602081019190915260400160002054600160201b90046001600160601b03165b90506000611c7c8285604051806060016040528060278152602001612226602791396118e3565b905061101b858484845b6000611caa4360405180606001604052806034815260200161236260349139611e7e565b905060008463ffffffff16118015611d0457506001600160a01b038516600090815260056020526040812063ffffffff831691611ce86001886121af565b63ffffffff908116825260208201929092526040016000205416145b15611d78576001600160a01b03851660009081526005602052604081208391611d2e6001886121af565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216600160201b026fffffffffffffffffffffffff0000000019909216919091179055611e29565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600582528681208b8616825290915294909420925183549451909116600160201b026fffffffffffffffffffffffffffffffff19909416911617919091179055611df8846001612134565b6001600160a01b0386166000908152600660205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b600081600160201b841061151a5760405162461bcd60e51b81526004016108a291906120aa565b80356001600160a01b0381168114611ebc57600080fd5b919050565b803560ff81168114611ebc57600080fd5b600060208284031215611ee457600080fd5b610d3182611ea5565b60008060408385031215611f0057600080fd5b611f0983611ea5565b9150611f1760208401611ea5565b90509250929050565b600080600060608486031215611f3557600080fd5b611f3e84611ea5565b9250611f4c60208501611ea5565b9150604084013590509250925092565b600080600080600080600060e0888a031215611f7757600080fd5b611f8088611ea5565b9650611f8e60208901611ea5565b95506040880135945060608801359350611faa60808901611ec1565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611fd957600080fd5b611fe283611ea5565b946020939093013593505050565b60008060008060008060c0878903121561200957600080fd5b61201287611ea5565b9550602087013594506040870135935061202e60608801611ec1565b92506080870135915060a087013590509295509295509295565b6000806040838503121561205b57600080fd5b61206483611ea5565b9150602083013563ffffffff8116811461207d57600080fd5b809150509250929050565b60006020828403121561209a57600080fd5b81518015158114610d3157600080fd5b600060208083528351808285015260005b818110156120d7578581018301518582016040015282016120bb565b818111156120e9576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600063ffffffff8083168185168083038211156121535761215361220f565b01949350505050565b60006001600160601b038083168185168083038211156121535761215361220f565b600063ffffffff808416806121a357634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b600063ffffffff838116908316818110156121cc576121cc61220f565b039392505050565b60006001600160601b03838116908316818110156121cc576121cc61220f565b60006000198214156122085761220861220f565b5060010190565b634e487b7160e01b600052601160045260246000fdfe444157473a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773444157473a3a6465637265617365416c6c6f77616e63653a20646563726561736520737562416d6f756e74203e20616c6c6f77616e6365444157473a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773444157473a3a617070726f76653a20616d6f756e7420657863656564732039362062697473444157473a3a7065726d69743a20616d6f756e7420657863656564732039362062697473444157473a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773444157473a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365444157473a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473444157473a3a696e637265617365416c6c6f77616e63653a20696e63726561736520616c6c6f77616e636520657863656564732039362062697473444157473a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e63658c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925444157473a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473a26469706673582212205589cb9fc140e9fc0a2d7f46c2ba72ddf24832519032533be9f03a334652bc2764736f6c63430008060033
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.