Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 12 from a total of 12 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 20255960 | 483 days ago | IN | 0 ETH | 0.000358 | ||||
| Approve | 20255952 | 483 days ago | IN | 0 ETH | 0.00027149 | ||||
| Approve | 20255951 | 483 days ago | IN | 0 ETH | 0.00020485 | ||||
| Approve | 20255949 | 483 days ago | IN | 0 ETH | 0.00058819 | ||||
| Approve | 20255946 | 483 days ago | IN | 0 ETH | 0.00021083 | ||||
| Approve | 20255945 | 483 days ago | IN | 0 ETH | 0.00020997 | ||||
| Approve | 20255945 | 483 days ago | IN | 0 ETH | 0.00028229 | ||||
| Approve | 20255945 | 483 days ago | IN | 0 ETH | 0.00020997 | ||||
| Approve | 20255944 | 483 days ago | IN | 0 ETH | 0.00028228 | ||||
| Approve | 20255944 | 483 days ago | IN | 0 ETH | 0.00378152 | ||||
| Approve | 20255887 | 483 days ago | IN | 0 ETH | 0.00022714 | ||||
| Set Fee Percent | 20255656 | 483 days ago | IN | 0 ETH | 0.00006692 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CBCoin
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2024-07-07
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
/**
* @dev Provides tracking nonces for addresses. Nonces will only increment.
*/
abstract contract Nonces {
/**
* @dev The nonce used for an `account` is not the expected current nonce.
*/
error InvalidAccountNonce(address account, uint256 currentNonce);
mapping(address account => uint256) private _nonces;
/**
* @dev Returns the next unused nonce for an address.
*/
function nonces(address owner) public view virtual returns (uint256) {
return _nonces[owner];
}
/**
* @dev Consumes a nonce.
*
* Returns the current value and increments nonce.
*/
function _useNonce(address owner) internal virtual returns (uint256) {
// For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be
// decremented or reset. This guarantees that the nonce never overflows.
unchecked {
// It is important to do x++ and not ++x here.
return _nonces[owner]++;
}
}
/**
* @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
*/
function _useCheckedNonce(address owner, uint256 nonce) internal virtual {
uint256 current = _useNonce(owner);
if (nonce != current) {
revert InvalidAccountNonce(owner, current);
}
}
}
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*
* @custom:oz-upgrades-unsafe-allow state-variable-immutable
*/
abstract contract EIP712 is IERC5267 {
using ShortStrings for *;
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
ShortString private immutable _name;
ShortString private immutable _version;
string private _nameFallback;
string private _versionFallback;
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
_name = name.toShortStringWithFallback(_nameFallback);
_version = version.toShortStringWithFallback(_versionFallback);
_hashedName = keccak256(bytes(name));
_hashedVersion = keccak256(bytes(version));
_cachedChainId = block.chainid;
_cachedDomainSeparator = _buildDomainSeparator();
_cachedThis = address(this);
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
return _cachedDomainSeparator;
} else {
return _buildDomainSeparator();
}
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
}
/**
* @dev See {IERC-5267}.
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: By default this function reads _name which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Name() internal view returns (string memory) {
return _name.toStringWithFallback(_nameFallback);
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: By default this function reads _version which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Version() internal view returns (string memory) {
return _version.toStringWithFallback(_versionFallback);
}
}
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError, bytes32) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of 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.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
/**
* @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 {
/**
* @dev Destroys a `value` amount of tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
/**
* @dev Destroys a `value` amount of 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
* `value`.
*/
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}
/**
* @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces {
bytes32 private constant PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
/**
* @dev Permit deadline has expired.
*/
error ERC2612ExpiredSignature(uint256 deadline);
/**
* @dev Mismatched signature.
*/
error ERC2612InvalidSigner(address signer, address owner);
/**
* @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
*
* It's a good idea to use the same `name` that is defined as the ERC20 token name.
*/
constructor(string memory name) EIP712(name, "1") {}
/**
* @inheritdoc IERC20Permit
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
if (block.timestamp > deadline) {
revert ERC2612ExpiredSignature(deadline);
}
bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));
bytes32 hash = _hashTypedDataV4(structHash);
address signer = ECDSA.recover(hash, v, r, s);
if (signer != owner) {
revert ERC2612InvalidSigner(signer, owner);
}
_approve(owner, spender, value);
}
/**
* @inheritdoc IERC20Permit
*/
function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) {
return super.nonces(owner);
}
/**
* @inheritdoc IERC20Permit
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {
return _domainSeparatorV4();
}
}
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
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.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @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. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
* ShortString private immutable _name;
* string private _nameFallback;
*
* constructor(string memory contractName) {
* _name = contractName.toShortStringWithFallback(_nameFallback);
* }
*
* function name() external view returns (string memory) {
* return _name.toStringWithFallback(_nameFallback);
* }
* }
* ```
*/
library ShortStrings {
// Used as an identifier for strings longer than 31 bytes.
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
/**
* @dev Encode a string of at most 31 chars into a `ShortString`.
*
* This will trigger a `StringTooLong` error is the input string is too long.
*/
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory bstr = bytes(str);
if (bstr.length > 31) {
revert StringTooLong(str);
}
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
}
/**
* @dev Decode a `ShortString` back to a "normal" string.
*/
function toString(ShortString sstr) internal pure returns (string memory) {
uint256 len = byteLength(sstr);
// using `new string(len)` would work locally but is not memory safe.
string memory str = new string(32);
/// @solidity memory-safe-assembly
assembly {
mstore(str, len)
mstore(add(str, 0x20), sstr)
}
return str;
}
/**
* @dev Return the length of a `ShortString`.
*/
function byteLength(ShortString sstr) internal pure returns (uint256) {
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
if (result > 31) {
revert InvalidShortString();
}
return result;
}
/**
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
*/
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
if (bytes(value).length < 32) {
return toShortString(value);
} else {
StorageSlot.getStringSlot(store).value = value;
return ShortString.wrap(FALLBACK_SENTINEL);
}
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return toString(value);
} else {
return store;
}
}
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
*/
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return byteLength(value);
} else {
return bytes(store).length;
}
}
}
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}
contract CBCoin is ERC20, ERC20Permit, ERC20Burnable, Ownable {
address private feeAccount;
uint8 private decimalsNum;
uint8 public feePercent;
uint256 public maxFee;
constructor(
address initialOwner,
address _feeAccount,
uint8 _initialTaxMintPercent,
uint8 _feePercent,
uint256 _maxFee,
uint256 _numberOfTokens,
uint8 _decimals,
string memory _name,
string memory _symbol)
ERC20(_name, _symbol)
ERC20Permit(_name)
Ownable(initialOwner) {
feeAccount = _feeAccount;
feePercent = _feePercent;
decimalsNum = _decimals;
uint256 initialNumberOfTokens = _numberOfTokens * (10 ** uint256(decimalsNum));
maxFee = _maxFee * (10 ** uint256(decimalsNum));
if (_initialTaxMintPercent > 0){
uint256 initialTax = (initialNumberOfTokens * _initialTaxMintPercent) / 100;
_mint(_feeAccount, initialTax);
initialNumberOfTokens = initialNumberOfTokens - initialTax;
}
_mint(msg.sender, initialNumberOfTokens);
}
function decimals() public view virtual override returns (uint8) {
return decimalsNum;
}
function setFeeAccount(address _feeAccount) external onlyOwner {
feeAccount = _feeAccount;
}
function setFeePercent(uint8 _feePercent) external onlyOwner {
if (_feePercent > 25){
_feePercent = 25;
}
feePercent = _feePercent;
}
function setMaxFeeValue(uint256 _maxFee) external onlyOwner {
maxFee = _maxFee * (10 ** uint256(decimals()));
}
function _update(address from, address to, uint256 value) internal virtual override {
address owner = owner();
if (from == feeAccount || to == feeAccount || feePercent == 0 || from == owner || to == owner){
super._update(from, to, value);
}else{
uint256 feeAmount = (value * feePercent) / 100;
if (feeAmount > maxFee){
feeAmount = maxFee;
}
uint256 amountAfterFee = value - feeAmount;
super._update(from, feeAccount, feeAmount);
super._update(from, to, amountAfterFee);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"_feeAccount","type":"address"},{"internalType":"uint8","name":"_initialTaxMintPercent","type":"uint8"},{"internalType":"uint8","name":"_feePercent","type":"uint8"},{"internalType":"uint256","name":"_maxFee","type":"uint256"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"ERC2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC2612InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"value","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAccount","type":"address"}],"name":"setFeeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_feePercent","type":"uint8"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFee","type":"uint256"}],"name":"setMaxFeeValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
610160604052348015610010575f80fd5b5060405161393a38038061393a83398181016040528101906100329190610b96565b8882806040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508585816003908161007c9190610e96565b50806004908161008c9190610e96565b5050506100a36005836102f560201b90919060201c565b61012081815250506100bf6006826102f560201b90919060201c565b6101408181525050818051906020012060e08181525050808051906020012061010081815250504660a081815250506100fc61034260201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250505050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101aa575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101a19190610f74565b60405180910390fd5b6101b98161039c60201b60201c565b508760095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600960156101000a81548160ff021916908360ff16021790555082600960146101000a81548160ff021916908360ff1602179055505f600960149054906101000a900460ff1660ff16600a61025091906110e9565b8561025b9190611133565b9050600960149054906101000a900460ff1660ff16600a61027c91906110e9565b866102879190611133565b600a819055505f8860ff1611156102d6575f60648960ff16836102aa9190611133565b6102b491906111a1565b90506102c68a8261045f60201b60201c565b80826102d291906111d1565b9150505b6102e6338261045f60201b60201c565b505050505050505050506113f8565b5f6020835110156103165761030f836104e460201b60201c565b905061033c565b826103268361054960201b60201c565b5f0190816103349190610e96565b5060ff5f1b90505b92915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60e05161010051463060405160200161038195949392919061122b565b60405160208183030381529060405280519060200120905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036104cf575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016104c69190610f74565b60405180910390fd5b6104e05f838361055260201b60201c565b5050565b5f80829050601f8151111561053057826040517f305a27a900000000000000000000000000000000000000000000000000000000815260040161052791906112c4565b60405180910390fd5b80518161053c90611311565b5f1c175f1b915050919050565b5f819050919050565b5f61056161074560201b60201c565b905060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061060a575060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b8061062657505f600960159054906101000a900460ff1660ff16145b8061065c57508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8061069257508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156106ad576106a884848461076d60201b60201c565b61073f565b5f6064600960159054906101000a900460ff1660ff16846106ce9190611133565b6106d891906111a1565b9050600a548111156106ea57600a5490505b5f81846106f791906111d1565b905061072b8660095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461076d60201b60201c565b61073c86868361076d60201b60201c565b50505b50505050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107bd578060025f8282546107b19190611377565b9250508190555061088b565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610846578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161083d939291906113aa565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108d2578060025f828254039250508190555061091c565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161097991906113df565b60405180910390a3505050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6109c082610997565b9050919050565b6109d0816109b6565b81146109da575f80fd5b50565b5f815190506109eb816109c7565b92915050565b5f60ff82169050919050565b610a06816109f1565b8114610a10575f80fd5b50565b5f81519050610a21816109fd565b92915050565b5f819050919050565b610a3981610a27565b8114610a43575f80fd5b50565b5f81519050610a5481610a30565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610aa882610a62565b810181811067ffffffffffffffff82111715610ac757610ac6610a72565b5b80604052505050565b5f610ad9610986565b9050610ae58282610a9f565b919050565b5f67ffffffffffffffff821115610b0457610b03610a72565b5b610b0d82610a62565b9050602081019050919050565b8281835e5f83830152505050565b5f610b3a610b3584610aea565b610ad0565b905082815260208101848484011115610b5657610b55610a5e565b5b610b61848285610b1a565b509392505050565b5f82601f830112610b7d57610b7c610a5a565b5b8151610b8d848260208601610b28565b91505092915050565b5f805f805f805f805f6101208a8c031215610bb457610bb361098f565b5b5f610bc18c828d016109dd565b9950506020610bd28c828d016109dd565b9850506040610be38c828d01610a13565b9750506060610bf48c828d01610a13565b9650506080610c058c828d01610a46565b95505060a0610c168c828d01610a46565b94505060c0610c278c828d01610a13565b93505060e08a015167ffffffffffffffff811115610c4857610c47610993565b5b610c548c828d01610b69565b9250506101008a015167ffffffffffffffff811115610c7657610c75610993565b5b610c828c828d01610b69565b9150509295985092959850929598565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680610ce057607f821691505b602082108103610cf357610cf2610c9c565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302610d557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610d1a565b610d5f8683610d1a565b95508019841693508086168417925050509392505050565b5f819050919050565b5f610d9a610d95610d9084610a27565b610d77565b610a27565b9050919050565b5f819050919050565b610db383610d80565b610dc7610dbf82610da1565b848454610d26565b825550505050565b5f90565b610ddb610dcf565b610de6818484610daa565b505050565b5b81811015610e0957610dfe5f82610dd3565b600181019050610dec565b5050565b601f821115610e4e57610e1f81610cf9565b610e2884610d0b565b81016020851015610e37578190505b610e4b610e4385610d0b565b830182610deb565b50505b505050565b5f82821c905092915050565b5f610e6e5f1984600802610e53565b1980831691505092915050565b5f610e868383610e5f565b9150826002028217905092915050565b610e9f82610c92565b67ffffffffffffffff811115610eb857610eb7610a72565b5b610ec28254610cc9565b610ecd828285610e0d565b5f60209050601f831160018114610efe575f8415610eec578287015190505b610ef68582610e7b565b865550610f5d565b601f198416610f0c86610cf9565b5f5b82811015610f3357848901518255600182019150602085019450602081019050610f0e565b86831015610f505784890151610f4c601f891682610e5f565b8355505b6001600288020188555050505b505050505050565b610f6e816109b6565b82525050565b5f602082019050610f875f830184610f65565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b600185111561100f57808604811115610feb57610fea610f8d565b5b6001851615610ffa5780820291505b808102905061100885610fba565b9450610fcf565b94509492505050565b5f8261102757600190506110e2565b81611034575f90506110e2565b816001811461104a576002811461105457611083565b60019150506110e2565b60ff84111561106657611065610f8d565b5b8360020a91508482111561107d5761107c610f8d565b5b506110e2565b5060208310610133831016604e8410600b84101617156110b85782820a9050838111156110b3576110b2610f8d565b5b6110e2565b6110c58484846001610fc6565b925090508184048111156110dc576110db610f8d565b5b81810290505b9392505050565b5f6110f382610a27565b91506110fe83610a27565b925061112b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611018565b905092915050565b5f61113d82610a27565b915061114883610a27565b925082820261115681610a27565b9150828204841483151761116d5761116c610f8d565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6111ab82610a27565b91506111b683610a27565b9250826111c6576111c5611174565b5b828204905092915050565b5f6111db82610a27565b91506111e683610a27565b92508282039050818111156111fe576111fd610f8d565b5b92915050565b5f819050919050565b61121681611204565b82525050565b61122581610a27565b82525050565b5f60a08201905061123e5f83018861120d565b61124b602083018761120d565b611258604083018661120d565b611265606083018561121c565b6112726080830184610f65565b9695505050505050565b5f82825260208201905092915050565b5f61129682610c92565b6112a0818561127c565b93506112b0818560208601610b1a565b6112b981610a62565b840191505092915050565b5f6020820190508181035f8301526112dc818461128c565b905092915050565b5f81519050919050565b5f819050602082019050919050565b5f6113088251611204565b80915050919050565b5f61131b826112e4565b82611325846112ee565b9050611330816112fd565b925060208210156113705761136b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802610d1a565b831692505b5050919050565b5f61138182610a27565b915061138c83610a27565b92508282019050808211156113a4576113a3610f8d565b5b92915050565b5f6060820190506113bd5f830186610f65565b6113ca602083018561121c565b6113d7604083018461121c565b949350505050565b5f6020820190506113f25f83018461121c565b92915050565b60805160a05160c05160e0516101005161012051610140516124f16114495f395f610f3701525f610efc01525f6113f201525f6113d101525f610c3101525f610c8701525f610cb001526124f15ff3fe608060405234801561000f575f80fd5b506004361061014b575f3560e01c806379cc6790116100c1578063a9059cbb1161007a578063a9059cbb14610381578063be385cdd146103b1578063d505accf146103cd578063dd62ed3e146103e9578063f2fde38b14610419578063f4838176146104355761014b565b806379cc6790146102b75780637ecebe00146102d35780637fd6f15c1461030357806384b0196e146103215780638da5cb5b1461034557806395d89b41146103635761014b565b8063313ce56711610113578063313ce567146102095780633644e5151461022757806342966c68146102455780634b023cf81461026157806370a082311461027d578063715018a6146102ad5761014b565b806301f59d161461014f57806306fdde031461016d578063095ea7b31461018b57806318160ddd146101bb57806323b872dd146101d9575b5f80fd5b610157610451565b6040516101649190611a69565b60405180910390f35b610175610457565b6040516101829190611af2565b60405180910390f35b6101a560048036038101906101a09190611b9a565b6104e7565b6040516101b29190611bf2565b60405180910390f35b6101c3610509565b6040516101d09190611a69565b60405180910390f35b6101f360048036038101906101ee9190611c0b565b610512565b6040516102009190611bf2565b60405180910390f35b610211610540565b60405161021e9190611c76565b60405180910390f35b61022f610556565b60405161023c9190611ca7565b60405180910390f35b61025f600480360381019061025a9190611cc0565b610564565b005b61027b60048036038101906102769190611ceb565b610578565b005b61029760048036038101906102929190611ceb565b6105c3565b6040516102a49190611a69565b60405180910390f35b6102b5610608565b005b6102d160048036038101906102cc9190611b9a565b61061b565b005b6102ed60048036038101906102e89190611ceb565b61063b565b6040516102fa9190611a69565b60405180910390f35b61030b61064c565b6040516103189190611c76565b60405180910390f35b61032961065f565b60405161033c9796959493929190611e16565b60405180910390f35b61034d610704565b60405161035a9190611e98565b60405180910390f35b61036b61072c565b6040516103789190611af2565b60405180910390f35b61039b60048036038101906103969190611b9a565b6107bc565b6040516103a89190611bf2565b60405180910390f35b6103cb60048036038101906103c69190611cc0565b6107de565b005b6103e760048036038101906103e29190611f05565b610811565b005b61040360048036038101906103fe9190611fa2565b610956565b6040516104109190611a69565b60405180910390f35b610433600480360381019061042e9190611ceb565b6109d8565b005b61044f600480360381019061044a9190611fe0565b610a5c565b005b600a5481565b60606003805461046690612038565b80601f016020809104026020016040519081016040528092919081815260200182805461049290612038565b80156104dd5780601f106104b4576101008083540402835291602001916104dd565b820191905f5260205f20905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b5f806104f1610a93565b90506104fe818585610a9a565b600191505092915050565b5f600254905090565b5f8061051c610a93565b9050610529858285610aac565b610534858585610b3e565b60019150509392505050565b5f600960149054906101000a900460ff16905090565b5f61055f610c2e565b905090565b61057561056f610a93565b82610ce4565b50565b610580610d63565b8060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610610610d63565b6106195f610dea565b565b61062d82610627610a93565b83610aac565b6106378282610ce4565b5050565b5f61064582610ead565b9050919050565b600960159054906101000a900460ff1681565b5f6060805f805f6060610670610ef3565b610678610f2e565b46305f801b5f67ffffffffffffffff81111561069757610696612068565b5b6040519080825280602002602001820160405280156106c55781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461073b90612038565b80601f016020809104026020016040519081016040528092919081815260200182805461076790612038565b80156107b25780601f10610789576101008083540402835291602001916107b2565b820191905f5260205f20905b81548152906001019060200180831161079557829003601f168201915b5050505050905090565b5f806107c6610a93565b90506107d3818585610b3e565b600191505092915050565b6107e6610d63565b6107ee610540565b60ff16600a6107fd91906121f1565b81610808919061223b565b600a8190555050565b8342111561085657836040517f6279130200000000000000000000000000000000000000000000000000000000815260040161084d9190611a69565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886108848c610f69565b8960405160200161089a9695949392919061227c565b6040516020818303038152906040528051906020012090505f6108bc82610fbc565b90505f6108cb82878787610fd5565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461093f57808a6040517f4b800e460000000000000000000000000000000000000000000000000000000081526004016109369291906122db565b60405180910390fd5b61094a8a8a8a610a9a565b50505050505050505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6109e0610d63565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a50575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a479190611e98565b60405180910390fd5b610a5981610dea565b50565b610a64610d63565b60198160ff161115610a7557601990505b80600960156101000a81548160ff021916908360ff16021790555050565b5f33905090565b610aa78383836001611003565b505050565b5f610ab78484610956565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b385781811015610b29578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b2093929190612302565b60405180910390fd5b610b3784848484035f611003565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bae575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ba59190611e98565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c1e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c159190611e98565b60405180910390fd5b610c298383836111d2565b505050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015610ca957507f000000000000000000000000000000000000000000000000000000000000000046145b15610cd6577f00000000000000000000000000000000000000000000000000000000000000009050610ce1565b610cde6113ad565b90505b90565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d54575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610d4b9190611e98565b60405180910390fd5b610d5f825f836111d2565b5050565b610d6b610a93565b73ffffffffffffffffffffffffffffffffffffffff16610d89610704565b73ffffffffffffffffffffffffffffffffffffffff1614610de857610dac610a93565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610ddf9190611e98565b60405180910390fd5b565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6060610f2960057f000000000000000000000000000000000000000000000000000000000000000061144290919063ffffffff16565b905090565b6060610f6460067f000000000000000000000000000000000000000000000000000000000000000061144290919063ffffffff16565b905090565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190600101919050559050919050565b5f610fce610fc8610c2e565b836114ef565b9050919050565b5f805f80610fe58888888861152f565b925092509250610ff58282611616565b829350505050949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611073575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161106a9190611e98565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e3575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016110da9190611e98565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156111cc578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111c39190611a69565b60405180910390a35b50505050565b5f6111db610704565b905060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611284575060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b806112a057505f600960159054906101000a900460ff1660ff16145b806112d657508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8061130c57508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156113215761131c848484611778565b6113a7565b5f6064600960159054906101000a900460ff1660ff1684611342919061223b565b61134c9190612364565b9050600a5481111561135e57600a5490505b5f818461136b9190612394565b90506113998660095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611778565b6113a4868683611778565b50505b50505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000046306040516020016114279594939291906123c7565b60405160208183030381529060405280519060200120905090565b606060ff5f1b831461145e5761145783611991565b90506114e9565b81805461146a90612038565b80601f016020809104026020016040519081016040528092919081815260200182805461149690612038565b80156114e15780601f106114b8576101008083540402835291602001916114e1565b820191905f5260205f20905b8154815290600101906020018083116114c457829003601f168201915b505050505090505b92915050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c111561156b575f60038592509250925061160c565b5f6001888888886040515f815260200160405260405161158e9493929190612418565b6020604051602081039080840390855afa1580156115ae573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ff575f60015f801b9350935093505061160c565b805f805f1b935093509350505b9450945094915050565b5f60038111156116295761162861245b565b5b82600381111561163c5761163b61245b565b5b031561177457600160038111156116565761165561245b565b5b8260038111156116695761166861245b565b5b036116a0576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260038111156116b4576116b361245b565b5b8260038111156116c7576116c661245b565b5b0361170b57805f1c6040517ffce698f70000000000000000000000000000000000000000000000000000000081526004016117029190611a69565b60405180910390fd5b60038081111561171e5761171d61245b565b5b8260038111156117315761173061245b565b5b0361177357806040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260040161176a9190611ca7565b60405180910390fd5b5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117c8578060025f8282546117bc9190612488565b92505081905550611896565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611851578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161184893929190612302565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118dd578060025f8282540392505081905550611927565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119849190611a69565b60405180910390a3505050565b60605f61199d83611a03565b90505f602067ffffffffffffffff8111156119bb576119ba612068565b5b6040519080825280601f01601f1916602001820160405280156119ed5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b5f8060ff835f1c169050601f811115611a48576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b5f819050919050565b611a6381611a51565b82525050565b5f602082019050611a7c5f830184611a5a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ac482611a82565b611ace8185611a8c565b9350611ade818560208601611a9c565b611ae781611aaa565b840191505092915050565b5f6020820190508181035f830152611b0a8184611aba565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b3f82611b16565b9050919050565b611b4f81611b35565b8114611b59575f80fd5b50565b5f81359050611b6a81611b46565b92915050565b611b7981611a51565b8114611b83575f80fd5b50565b5f81359050611b9481611b70565b92915050565b5f8060408385031215611bb057611baf611b12565b5b5f611bbd85828601611b5c565b9250506020611bce85828601611b86565b9150509250929050565b5f8115159050919050565b611bec81611bd8565b82525050565b5f602082019050611c055f830184611be3565b92915050565b5f805f60608486031215611c2257611c21611b12565b5b5f611c2f86828701611b5c565b9350506020611c4086828701611b5c565b9250506040611c5186828701611b86565b9150509250925092565b5f60ff82169050919050565b611c7081611c5b565b82525050565b5f602082019050611c895f830184611c67565b92915050565b5f819050919050565b611ca181611c8f565b82525050565b5f602082019050611cba5f830184611c98565b92915050565b5f60208284031215611cd557611cd4611b12565b5b5f611ce284828501611b86565b91505092915050565b5f60208284031215611d0057611cff611b12565b5b5f611d0d84828501611b5c565b91505092915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b611d4a81611d16565b82525050565b611d5981611b35565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611d9181611a51565b82525050565b5f611da28383611d88565b60208301905092915050565b5f602082019050919050565b5f611dc482611d5f565b611dce8185611d69565b9350611dd983611d79565b805f5b83811015611e09578151611df08882611d97565b9750611dfb83611dae565b925050600181019050611ddc565b5085935050505092915050565b5f60e082019050611e295f83018a611d41565b8181036020830152611e3b8189611aba565b90508181036040830152611e4f8188611aba565b9050611e5e6060830187611a5a565b611e6b6080830186611d50565b611e7860a0830185611c98565b81810360c0830152611e8a8184611dba565b905098975050505050505050565b5f602082019050611eab5f830184611d50565b92915050565b611eba81611c5b565b8114611ec4575f80fd5b50565b5f81359050611ed581611eb1565b92915050565b611ee481611c8f565b8114611eee575f80fd5b50565b5f81359050611eff81611edb565b92915050565b5f805f805f805f60e0888a031215611f2057611f1f611b12565b5b5f611f2d8a828b01611b5c565b9750506020611f3e8a828b01611b5c565b9650506040611f4f8a828b01611b86565b9550506060611f608a828b01611b86565b9450506080611f718a828b01611ec7565b93505060a0611f828a828b01611ef1565b92505060c0611f938a828b01611ef1565b91505092959891949750929550565b5f8060408385031215611fb857611fb7611b12565b5b5f611fc585828601611b5c565b9250506020611fd685828601611b5c565b9150509250929050565b5f60208284031215611ff557611ff4611b12565b5b5f61200284828501611ec7565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061204f57607f821691505b6020821081036120625761206161200b565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b6001851115612117578086048111156120f3576120f2612095565b5b60018516156121025780820291505b8081029050612110856120c2565b94506120d7565b94509492505050565b5f8261212f57600190506121ea565b8161213c575f90506121ea565b8160018114612152576002811461215c5761218b565b60019150506121ea565b60ff84111561216e5761216d612095565b5b8360020a91508482111561218557612184612095565b5b506121ea565b5060208310610133831016604e8410600b84101617156121c05782820a9050838111156121bb576121ba612095565b5b6121ea565b6121cd84848460016120ce565b925090508184048111156121e4576121e3612095565b5b81810290505b9392505050565b5f6121fb82611a51565b915061220683611a51565b92506122337fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612120565b905092915050565b5f61224582611a51565b915061225083611a51565b925082820261225e81611a51565b9150828204841483151761227557612274612095565b5b5092915050565b5f60c08201905061228f5f830189611c98565b61229c6020830188611d50565b6122a96040830187611d50565b6122b66060830186611a5a565b6122c36080830185611a5a565b6122d060a0830184611a5a565b979650505050505050565b5f6040820190506122ee5f830185611d50565b6122fb6020830184611d50565b9392505050565b5f6060820190506123155f830186611d50565b6123226020830185611a5a565b61232f6040830184611a5a565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61236e82611a51565b915061237983611a51565b92508261238957612388612337565b5b828204905092915050565b5f61239e82611a51565b91506123a983611a51565b92508282039050818111156123c1576123c0612095565b5b92915050565b5f60a0820190506123da5f830188611c98565b6123e76020830187611c98565b6123f46040830186611c98565b6124016060830185611a5a565b61240e6080830184611d50565b9695505050505050565b5f60808201905061242b5f830187611c98565b6124386020830186611c67565b6124456040830185611c98565b6124526060830184611c98565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f61249282611a51565b915061249d83611a51565b92508282019050808211156124b5576124b4612095565b5b9291505056fea26469706673582212202a8ef43ee96de0bb734ca8c7190934708c920db2a023e77b4db09b4ec90dd67164736f6c634300081a00330000000000000000000000009cb7dfe5381167480bb9a4e30acf1487f7538ab4000000000000000000000000f52d4b0b7b99b7a24227518723e59c83bd84c183000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e437962657242756e6e79436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034342430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061014b575f3560e01c806379cc6790116100c1578063a9059cbb1161007a578063a9059cbb14610381578063be385cdd146103b1578063d505accf146103cd578063dd62ed3e146103e9578063f2fde38b14610419578063f4838176146104355761014b565b806379cc6790146102b75780637ecebe00146102d35780637fd6f15c1461030357806384b0196e146103215780638da5cb5b1461034557806395d89b41146103635761014b565b8063313ce56711610113578063313ce567146102095780633644e5151461022757806342966c68146102455780634b023cf81461026157806370a082311461027d578063715018a6146102ad5761014b565b806301f59d161461014f57806306fdde031461016d578063095ea7b31461018b57806318160ddd146101bb57806323b872dd146101d9575b5f80fd5b610157610451565b6040516101649190611a69565b60405180910390f35b610175610457565b6040516101829190611af2565b60405180910390f35b6101a560048036038101906101a09190611b9a565b6104e7565b6040516101b29190611bf2565b60405180910390f35b6101c3610509565b6040516101d09190611a69565b60405180910390f35b6101f360048036038101906101ee9190611c0b565b610512565b6040516102009190611bf2565b60405180910390f35b610211610540565b60405161021e9190611c76565b60405180910390f35b61022f610556565b60405161023c9190611ca7565b60405180910390f35b61025f600480360381019061025a9190611cc0565b610564565b005b61027b60048036038101906102769190611ceb565b610578565b005b61029760048036038101906102929190611ceb565b6105c3565b6040516102a49190611a69565b60405180910390f35b6102b5610608565b005b6102d160048036038101906102cc9190611b9a565b61061b565b005b6102ed60048036038101906102e89190611ceb565b61063b565b6040516102fa9190611a69565b60405180910390f35b61030b61064c565b6040516103189190611c76565b60405180910390f35b61032961065f565b60405161033c9796959493929190611e16565b60405180910390f35b61034d610704565b60405161035a9190611e98565b60405180910390f35b61036b61072c565b6040516103789190611af2565b60405180910390f35b61039b60048036038101906103969190611b9a565b6107bc565b6040516103a89190611bf2565b60405180910390f35b6103cb60048036038101906103c69190611cc0565b6107de565b005b6103e760048036038101906103e29190611f05565b610811565b005b61040360048036038101906103fe9190611fa2565b610956565b6040516104109190611a69565b60405180910390f35b610433600480360381019061042e9190611ceb565b6109d8565b005b61044f600480360381019061044a9190611fe0565b610a5c565b005b600a5481565b60606003805461046690612038565b80601f016020809104026020016040519081016040528092919081815260200182805461049290612038565b80156104dd5780601f106104b4576101008083540402835291602001916104dd565b820191905f5260205f20905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b5f806104f1610a93565b90506104fe818585610a9a565b600191505092915050565b5f600254905090565b5f8061051c610a93565b9050610529858285610aac565b610534858585610b3e565b60019150509392505050565b5f600960149054906101000a900460ff16905090565b5f61055f610c2e565b905090565b61057561056f610a93565b82610ce4565b50565b610580610d63565b8060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610610610d63565b6106195f610dea565b565b61062d82610627610a93565b83610aac565b6106378282610ce4565b5050565b5f61064582610ead565b9050919050565b600960159054906101000a900460ff1681565b5f6060805f805f6060610670610ef3565b610678610f2e565b46305f801b5f67ffffffffffffffff81111561069757610696612068565b5b6040519080825280602002602001820160405280156106c55781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461073b90612038565b80601f016020809104026020016040519081016040528092919081815260200182805461076790612038565b80156107b25780601f10610789576101008083540402835291602001916107b2565b820191905f5260205f20905b81548152906001019060200180831161079557829003601f168201915b5050505050905090565b5f806107c6610a93565b90506107d3818585610b3e565b600191505092915050565b6107e6610d63565b6107ee610540565b60ff16600a6107fd91906121f1565b81610808919061223b565b600a8190555050565b8342111561085657836040517f6279130200000000000000000000000000000000000000000000000000000000815260040161084d9190611a69565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886108848c610f69565b8960405160200161089a9695949392919061227c565b6040516020818303038152906040528051906020012090505f6108bc82610fbc565b90505f6108cb82878787610fd5565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461093f57808a6040517f4b800e460000000000000000000000000000000000000000000000000000000081526004016109369291906122db565b60405180910390fd5b61094a8a8a8a610a9a565b50505050505050505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6109e0610d63565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a50575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610a479190611e98565b60405180910390fd5b610a5981610dea565b50565b610a64610d63565b60198160ff161115610a7557601990505b80600960156101000a81548160ff021916908360ff16021790555050565b5f33905090565b610aa78383836001611003565b505050565b5f610ab78484610956565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b385781811015610b29578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610b2093929190612302565b60405180910390fd5b610b3784848484035f611003565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bae575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ba59190611e98565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c1e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c159190611e98565b60405180910390fd5b610c298383836111d2565b505050565b5f7f00000000000000000000000021404f0618affee2788f48ee95a1aafe50291f7f73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015610ca957507f000000000000000000000000000000000000000000000000000000000000000146145b15610cd6577fabe86adbbe24fa40b171aadf6869b46eae317fa33bb0a61b6b463f60336fbb0e9050610ce1565b610cde6113ad565b90505b90565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d54575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610d4b9190611e98565b60405180910390fd5b610d5f825f836111d2565b5050565b610d6b610a93565b73ffffffffffffffffffffffffffffffffffffffff16610d89610704565b73ffffffffffffffffffffffffffffffffffffffff1614610de857610dac610a93565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610ddf9190611e98565b60405180910390fd5b565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6060610f2960057f437962657242756e6e79436f696e00000000000000000000000000000000000e61144290919063ffffffff16565b905090565b6060610f6460067f310000000000000000000000000000000000000000000000000000000000000161144290919063ffffffff16565b905090565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190600101919050559050919050565b5f610fce610fc8610c2e565b836114ef565b9050919050565b5f805f80610fe58888888861152f565b925092509250610ff58282611616565b829350505050949350505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611073575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161106a9190611e98565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e3575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016110da9190611e98565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156111cc578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111c39190611a69565b60405180910390a35b50505050565b5f6111db610704565b905060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611284575060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b806112a057505f600960159054906101000a900460ff1660ff16145b806112d657508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8061130c57508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156113215761131c848484611778565b6113a7565b5f6064600960159054906101000a900460ff1660ff1684611342919061223b565b61134c9190612364565b9050600a5481111561135e57600a5490505b5f818461136b9190612394565b90506113998660095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611778565b6113a4868683611778565b50505b50505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fc7f6dcc12307128a7f1990834b3b3ff57e07f776c4957999a08dbd0a293b2eea7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016114279594939291906123c7565b60405160208183030381529060405280519060200120905090565b606060ff5f1b831461145e5761145783611991565b90506114e9565b81805461146a90612038565b80601f016020809104026020016040519081016040528092919081815260200182805461149690612038565b80156114e15780601f106114b8576101008083540402835291602001916114e1565b820191905f5260205f20905b8154815290600101906020018083116114c457829003601f168201915b505050505090505b92915050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f805f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c111561156b575f60038592509250925061160c565b5f6001888888886040515f815260200160405260405161158e9493929190612418565b6020604051602081039080840390855afa1580156115ae573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ff575f60015f801b9350935093505061160c565b805f805f1b935093509350505b9450945094915050565b5f60038111156116295761162861245b565b5b82600381111561163c5761163b61245b565b5b031561177457600160038111156116565761165561245b565b5b8260038111156116695761166861245b565b5b036116a0576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260038111156116b4576116b361245b565b5b8260038111156116c7576116c661245b565b5b0361170b57805f1c6040517ffce698f70000000000000000000000000000000000000000000000000000000081526004016117029190611a69565b60405180910390fd5b60038081111561171e5761171d61245b565b5b8260038111156117315761173061245b565b5b0361177357806040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260040161176a9190611ca7565b60405180910390fd5b5b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117c8578060025f8282546117bc9190612488565b92505081905550611896565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611851578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161184893929190612302565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118dd578060025f8282540392505081905550611927565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119849190611a69565b60405180910390a3505050565b60605f61199d83611a03565b90505f602067ffffffffffffffff8111156119bb576119ba612068565b5b6040519080825280601f01601f1916602001820160405280156119ed5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b5f8060ff835f1c169050601f811115611a48576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b5f819050919050565b611a6381611a51565b82525050565b5f602082019050611a7c5f830184611a5a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ac482611a82565b611ace8185611a8c565b9350611ade818560208601611a9c565b611ae781611aaa565b840191505092915050565b5f6020820190508181035f830152611b0a8184611aba565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b3f82611b16565b9050919050565b611b4f81611b35565b8114611b59575f80fd5b50565b5f81359050611b6a81611b46565b92915050565b611b7981611a51565b8114611b83575f80fd5b50565b5f81359050611b9481611b70565b92915050565b5f8060408385031215611bb057611baf611b12565b5b5f611bbd85828601611b5c565b9250506020611bce85828601611b86565b9150509250929050565b5f8115159050919050565b611bec81611bd8565b82525050565b5f602082019050611c055f830184611be3565b92915050565b5f805f60608486031215611c2257611c21611b12565b5b5f611c2f86828701611b5c565b9350506020611c4086828701611b5c565b9250506040611c5186828701611b86565b9150509250925092565b5f60ff82169050919050565b611c7081611c5b565b82525050565b5f602082019050611c895f830184611c67565b92915050565b5f819050919050565b611ca181611c8f565b82525050565b5f602082019050611cba5f830184611c98565b92915050565b5f60208284031215611cd557611cd4611b12565b5b5f611ce284828501611b86565b91505092915050565b5f60208284031215611d0057611cff611b12565b5b5f611d0d84828501611b5c565b91505092915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b611d4a81611d16565b82525050565b611d5981611b35565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611d9181611a51565b82525050565b5f611da28383611d88565b60208301905092915050565b5f602082019050919050565b5f611dc482611d5f565b611dce8185611d69565b9350611dd983611d79565b805f5b83811015611e09578151611df08882611d97565b9750611dfb83611dae565b925050600181019050611ddc565b5085935050505092915050565b5f60e082019050611e295f83018a611d41565b8181036020830152611e3b8189611aba565b90508181036040830152611e4f8188611aba565b9050611e5e6060830187611a5a565b611e6b6080830186611d50565b611e7860a0830185611c98565b81810360c0830152611e8a8184611dba565b905098975050505050505050565b5f602082019050611eab5f830184611d50565b92915050565b611eba81611c5b565b8114611ec4575f80fd5b50565b5f81359050611ed581611eb1565b92915050565b611ee481611c8f565b8114611eee575f80fd5b50565b5f81359050611eff81611edb565b92915050565b5f805f805f805f60e0888a031215611f2057611f1f611b12565b5b5f611f2d8a828b01611b5c565b9750506020611f3e8a828b01611b5c565b9650506040611f4f8a828b01611b86565b9550506060611f608a828b01611b86565b9450506080611f718a828b01611ec7565b93505060a0611f828a828b01611ef1565b92505060c0611f938a828b01611ef1565b91505092959891949750929550565b5f8060408385031215611fb857611fb7611b12565b5b5f611fc585828601611b5c565b9250506020611fd685828601611b5c565b9150509250929050565b5f60208284031215611ff557611ff4611b12565b5b5f61200284828501611ec7565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061204f57607f821691505b6020821081036120625761206161200b565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b6001851115612117578086048111156120f3576120f2612095565b5b60018516156121025780820291505b8081029050612110856120c2565b94506120d7565b94509492505050565b5f8261212f57600190506121ea565b8161213c575f90506121ea565b8160018114612152576002811461215c5761218b565b60019150506121ea565b60ff84111561216e5761216d612095565b5b8360020a91508482111561218557612184612095565b5b506121ea565b5060208310610133831016604e8410600b84101617156121c05782820a9050838111156121bb576121ba612095565b5b6121ea565b6121cd84848460016120ce565b925090508184048111156121e4576121e3612095565b5b81810290505b9392505050565b5f6121fb82611a51565b915061220683611a51565b92506122337fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612120565b905092915050565b5f61224582611a51565b915061225083611a51565b925082820261225e81611a51565b9150828204841483151761227557612274612095565b5b5092915050565b5f60c08201905061228f5f830189611c98565b61229c6020830188611d50565b6122a96040830187611d50565b6122b66060830186611a5a565b6122c36080830185611a5a565b6122d060a0830184611a5a565b979650505050505050565b5f6040820190506122ee5f830185611d50565b6122fb6020830184611d50565b9392505050565b5f6060820190506123155f830186611d50565b6123226020830185611a5a565b61232f6040830184611a5a565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61236e82611a51565b915061237983611a51565b92508261238957612388612337565b5b828204905092915050565b5f61239e82611a51565b91506123a983611a51565b92508282039050818111156123c1576123c0612095565b5b92915050565b5f60a0820190506123da5f830188611c98565b6123e76020830187611c98565b6123f46040830186611c98565b6124016060830185611a5a565b61240e6080830184611d50565b9695505050505050565b5f60808201905061242b5f830187611c98565b6124386020830186611c67565b6124456040830185611c98565b6124526060830184611c98565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f61249282611a51565b915061249d83611a51565b92508282019050808211156124b5576124b4612095565b5b9291505056fea26469706673582212202a8ef43ee96de0bb734ca8c7190934708c920db2a023e77b4db09b4ec90dd67164736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009cb7dfe5381167480bb9a4e30acf1487f7538ab4000000000000000000000000f52d4b0b7b99b7a24227518723e59c83bd84c183000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000e437962657242756e6e79436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034342430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialOwner (address): 0x9CB7dFe5381167480bb9a4E30Acf1487F7538ab4
Arg [1] : _feeAccount (address): 0xf52d4b0b7b99B7A24227518723e59c83bD84c183
Arg [2] : _initialTaxMintPercent (uint8): 10
Arg [3] : _feePercent (uint8): 7
Arg [4] : _maxFee (uint256): 200000
Arg [5] : _numberOfTokens (uint256): 1000000000
Arg [6] : _decimals (uint8): 9
Arg [7] : _name (string): CyberBunnyCoin
Arg [8] : _symbol (string): CBC
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000009cb7dfe5381167480bb9a4e30acf1487f7538ab4
Arg [1] : 000000000000000000000000f52d4b0b7b99b7a24227518723e59c83bd84c183
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 0000000000000000000000000000000000000000000000000000000000030d40
Arg [5] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [10] : 437962657242756e6e79436f696e000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 4342430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
79312:2331:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79478:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;32268:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;34561:190;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;33370:99;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;35329:249;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;80469:102;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;44890:114;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;41988:89;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;80579:106;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;33532:118;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;66246:103;;;:::i;:::-;;42406:161;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;44632:145;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;79448:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;14013:580;;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;65571:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;32478:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;33855:182;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;80879:125;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;43878:695;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;34100:142;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;66504:220;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;80693:178;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;79478:21;;;;:::o;32268:91::-;32313:13;32346:5;32339:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32268:91;:::o;34561:190::-;34634:4;34651:13;34667:12;:10;:12::i;:::-;34651:28;;34690:31;34699:5;34706:7;34715:5;34690:8;:31::i;:::-;34739:4;34732:11;;;34561:190;;;;:::o;33370:99::-;33422:7;33449:12;;33442:19;;33370:99;:::o;35329:249::-;35416:4;35433:15;35451:12;:10;:12::i;:::-;35433:30;;35474:37;35490:4;35496:7;35505:5;35474:15;:37::i;:::-;35522:26;35532:4;35538:2;35542:5;35522:9;:26::i;:::-;35566:4;35559:11;;;35329:249;;;;;:::o;80469:102::-;80527:5;80552:11;;;;;;;;;;;80545:18;;80469:102;:::o;44890:114::-;44949:7;44976:20;:18;:20::i;:::-;44969:27;;44890:114;:::o;41988:89::-;42043:26;42049:12;:10;:12::i;:::-;42063:5;42043;:26::i;:::-;41988:89;:::o;80579:106::-;65457:13;:11;:13::i;:::-;80666:11:::1;80653:10;;:24;;;;;;;;;;;;;;;;;;80579:106:::0;:::o;33532:118::-;33597:7;33624:9;:18;33634:7;33624:18;;;;;;;;;;;;;;;;33617:25;;33532:118;;;:::o;66246:103::-;65457:13;:11;:13::i;:::-;66311:30:::1;66338:1;66311:18;:30::i;:::-;66246:103::o:0;42406:161::-;42482:45;42498:7;42507:12;:10;:12::i;:::-;42521:5;42482:15;:45::i;:::-;42538:21;42544:7;42553:5;42538;:21::i;:::-;42406:161;;:::o;44632:145::-;44723:7;44750:19;44763:5;44750:12;:19::i;:::-;44743:26;;44632:145;;;:::o;79448:23::-;;;;;;;;;;;;;:::o;14013:580::-;14116:13;14144:18;14177:21;14213:15;14243:25;14283:12;14310:27;14418:13;:11;:13::i;:::-;14446:16;:14;:16::i;:::-;14477:13;14513:4;14541:1;14533:10;;14572:1;14558:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14365:220;;;;;;;;;;;;;;;;;;;;;14013:580;;;;;;;:::o;65571:87::-;65617:7;65644:6;;;;;;;;;;;65637:13;;65571:87;:::o;32478:95::-;32525:13;32558:7;32551:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32478:95;:::o;33855:182::-;33924:4;33941:13;33957:12;:10;:12::i;:::-;33941:28;;33980:27;33990:5;33997:2;34001:5;33980:9;:27::i;:::-;34025:4;34018:11;;;33855:182;;;;:::o;80879:125::-;65457:13;:11;:13::i;:::-;80984:10:::1;:8;:10::i;:::-;80976:19;;80970:2;:25;;;;:::i;:::-;80959:7;:37;;;;:::i;:::-;80950:6;:46;;;;80879:125:::0;:::o;43878:695::-;44108:8;44090:15;:26;44086:99;;;44164:8;44140:33;;;;;;;;;;;:::i;:::-;;;;;;;;44086:99;44197:18;43198:95;44256:5;44263:7;44272:5;44279:16;44289:5;44279:9;:16::i;:::-;44297:8;44228:78;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;44218:89;;;;;;44197:110;;44320:12;44335:28;44352:10;44335:16;:28::i;:::-;44320:43;;44376:14;44393:28;44407:4;44413:1;44416;44419;44393:13;:28::i;:::-;44376:45;;44446:5;44436:15;;:6;:15;;;44432:90;;44496:6;44504:5;44475:35;;;;;;;;;;;;:::i;:::-;;;;;;;;44432:90;44534:31;44543:5;44550:7;44559:5;44534:8;:31::i;:::-;44075:498;;;43878:695;;;;;;;:::o;34100:142::-;34180:7;34207:11;:18;34219:5;34207:18;;;;;;;;;;;;;;;:27;34226:7;34207:27;;;;;;;;;;;;;;;;34200:34;;34100:142;;;;:::o;66504:220::-;65457:13;:11;:13::i;:::-;66609:1:::1;66589:22;;:8;:22;;::::0;66585:93:::1;;66663:1;66635:31;;;;;;;;;;;:::i;:::-;;;;;;;;66585:93;66688:28;66707:8;66688:18;:28::i;:::-;66504:220:::0;:::o;80693:178::-;65457:13;:11;:13::i;:::-;80783:2:::1;80769:11;:16;;;80765:64;;;80815:2;80801:16;;80765:64;80852:11;80839:10;;:24;;;;;;;;;;;;;;;;;;80693:178:::0;:::o;16069:98::-;16122:7;16149:10;16142:17;;16069:98;:::o;39388:130::-;39473:37;39482:5;39489:7;39498:5;39505:4;39473:8;:37::i;:::-;39388:130;;;:::o;41104:487::-;41204:24;41231:25;41241:5;41248:7;41231:9;:25::i;:::-;41204:52;;41291:17;41271:16;:37;41267:317;;41348:5;41329:16;:24;41325:132;;;41408:7;41417:16;41435:5;41381:60;;;;;;;;;;;;;:::i;:::-;;;;;;;;41325:132;41500:57;41509:5;41516:7;41544:5;41525:16;:24;41551:5;41500:8;:57::i;:::-;41267:317;41193:398;41104:487;;;:::o;35963:308::-;36063:1;36047:18;;:4;:18;;;36043:88;;36116:1;36089:30;;;;;;;;;;;:::i;:::-;;;;;;;;36043:88;36159:1;36145:16;;:2;:16;;;36141:88;;36214:1;36185:32;;;;;;;;;;;:::i;:::-;;;;;;;;36141:88;36239:24;36247:4;36253:2;36257:5;36239:7;:24::i;:::-;35963:308;;;:::o;12680:268::-;12733:7;12774:11;12757:28;;12765:4;12757:28;;;:63;;;;;12806:14;12789:13;:31;12757:63;12753:188;;;12844:22;12837:29;;;;12753:188;12906:23;:21;:23::i;:::-;12899:30;;12680:268;;:::o;38624:211::-;38714:1;38695:21;;:7;:21;;;38691:91;;38767:1;38740:30;;;;;;;;;;;:::i;:::-;;;;;;;;38691:91;38792:35;38800:7;38817:1;38821:5;38792:7;:35::i;:::-;38624:211;;:::o;65736:166::-;65807:12;:10;:12::i;:::-;65796:23;;:7;:5;:7::i;:::-;:23;;;65792:103;;65870:12;:10;:12::i;:::-;65843:40;;;;;;;;;;;:::i;:::-;;;;;;;;65792:103;65736:166::o;66884:191::-;66958:16;66977:6;;;;;;;;;;;66958:25;;67003:8;66994:6;;:17;;;;;;;;;;;;;;;;;;67058:8;67027:40;;67048:8;67027:40;;;;;;;;;;;;66947:128;66884:191;:::o;8099:109::-;8159:7;8186;:14;8194:5;8186:14;;;;;;;;;;;;;;;;8179:21;;8099:109;;;:::o;14922:128::-;14968:13;15001:41;15028:13;15001:5;:26;;:41;;;;:::i;:::-;14994:48;;14922:128;:::o;15385:137::-;15434:13;15467:47;15497:16;15467:8;:29;;:47;;;;:::i;:::-;15460:54;;15385:137;:::o;8329:402::-;8389:7;8696;:14;8704:5;8696:14;;;;;;;;;;;;;;;;:16;;;;;;;;;;;;8689:23;;8329:402;;;:::o;13779:178::-;13856:7;13883:66;13916:20;:18;:20::i;:::-;13938:10;13883:32;:66::i;:::-;13876:73;;13779:178;;;:::o;29544:264::-;29629:7;29650:17;29669:18;29689:16;29709:25;29720:4;29726:1;29729;29732;29709:10;:25::i;:::-;29649:85;;;;;;29745:28;29757:5;29764:8;29745:11;:28::i;:::-;29791:9;29784:16;;;;;29544:264;;;;;;:::o;40369:443::-;40499:1;40482:19;;:5;:19;;;40478:91;;40554:1;40525:32;;;;;;;;;;;:::i;:::-;;;;;;;;40478:91;40602:1;40583:21;;:7;:21;;;40579:92;;40656:1;40628:31;;;;;;;;;;;:::i;:::-;;;;;;;;40579:92;40711:5;40681:11;:18;40693:5;40681:18;;;;;;;;;;;;;;;:27;40700:7;40681:27;;;;;;;;;;;;;;;:35;;;;40731:9;40727:78;;;40778:7;40762:31;;40771:5;40762:31;;;40787:5;40762:31;;;;;;:::i;:::-;;;;;;;;40727:78;40369:443;;;;:::o;81012:628::-;81107:13;81123:7;:5;:7::i;:::-;81107:23;;81153:10;;;;;;;;;;;81145:18;;:4;:18;;;:38;;;;81173:10;;;;;;;;;;;81167:16;;:2;:16;;;81145:38;:57;;;;81201:1;81187:10;;;;;;;;;;;:15;;;81145:57;:74;;;;81214:5;81206:13;;:4;:13;;;81145:74;:89;;;;81229:5;81223:11;;:2;:11;;;81145:89;81141:492;;;81250:30;81264:4;81270:2;81274:5;81250:13;:30::i;:::-;81141:492;;;81311:17;81354:3;81340:10;;;;;;;;;;;81332:18;;:5;:18;;;;:::i;:::-;81331:26;;;;:::i;:::-;81311:46;;81390:6;;81378:9;:18;81374:76;;;81428:6;;81416:18;;81374:76;81466:22;81499:9;81491:5;:17;;;;:::i;:::-;81466:42;;81525;81539:4;81545:10;;;;;;;;;;;81557:9;81525:13;:42::i;:::-;81582:39;81596:4;81602:2;81606:14;81582:13;:39::i;:::-;81296:337;;81141:492;81096:544;81012:628;;;:::o;12956:181::-;13011:7;10872:95;13070:11;13083:14;13099:13;13122:4;13048:80;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;13038:91;;;;;;13031:98;;12956:181;:::o;70380:273::-;70474:13;68326:66;70533:17;;70523:5;70504:46;70500:146;;70574:15;70583:5;70574:8;:15::i;:::-;70567:22;;;;70500:146;70629:5;70622:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70380:273;;;;;:::o;63643:410::-;63736:14;63848:4;63842:11;63879:10;63874:3;63867:23;63927:15;63920:4;63915:3;63911:14;63904:39;63980:10;63973:4;63968:3;63964:14;63957:34;64030:4;64025:3;64015:20;64005:30;;63816:230;63643:410;;;;:::o;27849:1556::-;27980:7;27989:12;28003:7;28923:66;28918:1;28910:10;;:79;28906:166;;;29022:1;29026:30;29058:1;29006:54;;;;;;;;28906:166;29169:14;29186:24;29196:4;29202:1;29205;29208;29186:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29169:41;;29243:1;29225:20;;:6;:20;;;29221:115;;29278:1;29282:29;29321:1;29313:10;;29262:62;;;;;;;;;29221:115;29356:6;29364:20;29394:1;29386:10;;29348:49;;;;;;;27849:1556;;;;;;;;;:::o;29946:542::-;30042:20;30033:29;;;;;;;;:::i;:::-;;:5;:29;;;;;;;;:::i;:::-;;;30029:452;30079:7;30029:452;30140:29;30131:38;;;;;;;;:::i;:::-;;:5;:38;;;;;;;;:::i;:::-;;;30127:354;;30193:23;;;;;;;;;;;;;;30127:354;30247:35;30238:44;;;;;;;;:::i;:::-;;:5;:44;;;;;;;;:::i;:::-;;;30234:247;;30342:8;30334:17;;30306:46;;;;;;;;;;;:::i;:::-;;;;;;;;30234:247;30383:30;30374:39;;;;;;;;:::i;:::-;;:5;:39;;;;;;;;:::i;:::-;;;30370:111;;30460:8;30437:32;;;;;;;;;;;:::i;:::-;;;;;;;;30370:111;29946:542;;;:::o;36595:1135::-;36701:1;36685:18;;:4;:18;;;36681:552;;36839:5;36823:12;;:21;;;;;;;:::i;:::-;;;;;;;;36681:552;;;36877:19;36899:9;:15;36909:4;36899:15;;;;;;;;;;;;;;;;36877:37;;36947:5;36933:11;:19;36929:117;;;37005:4;37011:11;37024:5;36980:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;36929:117;37201:5;37187:11;:19;37169:9;:15;37179:4;37169:15;;;;;;;;;;;;;;;:37;;;;36862:371;36681:552;37263:1;37249:16;;:2;:16;;;37245:435;;37431:5;37415:12;;:21;;;;;;;;;;;37245:435;;;37648:5;37631:9;:13;37641:2;37631:13;;;;;;;;;;;;;;;;:22;;;;;;;;;;;37245:435;37712:2;37697:25;;37706:4;37697:25;;;37716:5;37697:25;;;;;;:::i;:::-;;;;;;;;36595:1135;;;:::o;69035:415::-;69094:13;69120:11;69134:16;69145:4;69134:10;:16::i;:::-;69120:30;;69240:17;69271:2;69260:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69240:34;;69365:3;69360;69353:16;69406:4;69399;69394:3;69390:14;69383:28;69439:3;69432:10;;;;69035:415;;;:::o;69527:251::-;69588:7;69608:14;69661:4;69652;69625:33;;:40;69608:57;;69689:2;69680:6;:11;69676:71;;;69715:20;;;;;;;;;;;;;;69676:71;69764:6;69757:13;;;69527:251;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;442:99::-;494:6;528:5;522:12;512:22;;442:99;;;:::o;547:169::-;631:11;665:6;660:3;653:19;705:4;700:3;696:14;681:29;;547:169;;;;:::o;722:139::-;811:6;806:3;801;795:23;852:1;843:6;838:3;834:16;827:27;722:139;;;:::o;867:102::-;908:6;959:2;955:7;950:2;943:5;939:14;935:28;925:38;;867:102;;;:::o;975:377::-;1063:3;1091:39;1124:5;1091:39;:::i;:::-;1146:71;1210:6;1205:3;1146:71;:::i;:::-;1139:78;;1226:65;1284:6;1279:3;1272:4;1265:5;1261:16;1226:65;:::i;:::-;1316:29;1338:6;1316:29;:::i;:::-;1311:3;1307:39;1300:46;;1067:285;975:377;;;;:::o;1358:313::-;1471:4;1509:2;1498:9;1494:18;1486:26;;1558:9;1552:4;1548:20;1544:1;1533:9;1529:17;1522:47;1586:78;1659:4;1650:6;1586:78;:::i;:::-;1578:86;;1358:313;;;;:::o;1758:117::-;1867:1;1864;1857:12;2004:126;2041:7;2081:42;2074:5;2070:54;2059:65;;2004:126;;;:::o;2136:96::-;2173:7;2202:24;2220:5;2202:24;:::i;:::-;2191:35;;2136:96;;;:::o;2238:122::-;2311:24;2329:5;2311:24;:::i;:::-;2304:5;2301:35;2291:63;;2350:1;2347;2340:12;2291:63;2238:122;:::o;2366:139::-;2412:5;2450:6;2437:20;2428:29;;2466:33;2493:5;2466:33;:::i;:::-;2366:139;;;;:::o;2511:122::-;2584:24;2602:5;2584:24;:::i;:::-;2577:5;2574:35;2564:63;;2623:1;2620;2613:12;2564:63;2511:122;:::o;2639:139::-;2685:5;2723:6;2710:20;2701:29;;2739:33;2766:5;2739:33;:::i;:::-;2639:139;;;;:::o;2784:474::-;2852:6;2860;2909:2;2897:9;2888:7;2884:23;2880:32;2877:119;;;2915:79;;:::i;:::-;2877:119;3035:1;3060:53;3105:7;3096:6;3085:9;3081:22;3060:53;:::i;:::-;3050:63;;3006:117;3162:2;3188:53;3233:7;3224:6;3213:9;3209:22;3188:53;:::i;:::-;3178:63;;3133:118;2784:474;;;;;:::o;3264:90::-;3298:7;3341:5;3334:13;3327:21;3316:32;;3264:90;;;:::o;3360:109::-;3441:21;3456:5;3441:21;:::i;:::-;3436:3;3429:34;3360:109;;:::o;3475:210::-;3562:4;3600:2;3589:9;3585:18;3577:26;;3613:65;3675:1;3664:9;3660:17;3651:6;3613:65;:::i;:::-;3475:210;;;;:::o;3691:619::-;3768:6;3776;3784;3833:2;3821:9;3812:7;3808:23;3804:32;3801:119;;;3839:79;;:::i;:::-;3801:119;3959:1;3984:53;4029:7;4020:6;4009:9;4005:22;3984:53;:::i;:::-;3974:63;;3930:117;4086:2;4112:53;4157:7;4148:6;4137:9;4133:22;4112:53;:::i;:::-;4102:63;;4057:118;4214:2;4240:53;4285:7;4276:6;4265:9;4261:22;4240:53;:::i;:::-;4230:63;;4185:118;3691:619;;;;;:::o;4316:86::-;4351:7;4391:4;4384:5;4380:16;4369:27;;4316:86;;;:::o;4408:112::-;4491:22;4507:5;4491:22;:::i;:::-;4486:3;4479:35;4408:112;;:::o;4526:214::-;4615:4;4653:2;4642:9;4638:18;4630:26;;4666:67;4730:1;4719:9;4715:17;4706:6;4666:67;:::i;:::-;4526:214;;;;:::o;4746:77::-;4783:7;4812:5;4801:16;;4746:77;;;:::o;4829:118::-;4916:24;4934:5;4916:24;:::i;:::-;4911:3;4904:37;4829:118;;:::o;4953:222::-;5046:4;5084:2;5073:9;5069:18;5061:26;;5097:71;5165:1;5154:9;5150:17;5141:6;5097:71;:::i;:::-;4953:222;;;;:::o;5181:329::-;5240:6;5289:2;5277:9;5268:7;5264:23;5260:32;5257:119;;;5295:79;;:::i;:::-;5257:119;5415:1;5440:53;5485:7;5476:6;5465:9;5461:22;5440:53;:::i;:::-;5430:63;;5386:117;5181:329;;;;:::o;5516:::-;5575:6;5624:2;5612:9;5603:7;5599:23;5595:32;5592:119;;;5630:79;;:::i;:::-;5592:119;5750:1;5775:53;5820:7;5811:6;5800:9;5796:22;5775:53;:::i;:::-;5765:63;;5721:117;5516:329;;;;:::o;5851:149::-;5887:7;5927:66;5920:5;5916:78;5905:89;;5851:149;;;:::o;6006:115::-;6091:23;6108:5;6091:23;:::i;:::-;6086:3;6079:36;6006:115;;:::o;6127:118::-;6214:24;6232:5;6214:24;:::i;:::-;6209:3;6202:37;6127:118;;:::o;6251:114::-;6318:6;6352:5;6346:12;6336:22;;6251:114;;;:::o;6371:184::-;6470:11;6504:6;6499:3;6492:19;6544:4;6539:3;6535:14;6520:29;;6371:184;;;;:::o;6561:132::-;6628:4;6651:3;6643:11;;6681:4;6676:3;6672:14;6664:22;;6561:132;;;:::o;6699:108::-;6776:24;6794:5;6776:24;:::i;:::-;6771:3;6764:37;6699:108;;:::o;6813:179::-;6882:10;6903:46;6945:3;6937:6;6903:46;:::i;:::-;6981:4;6976:3;6972:14;6958:28;;6813:179;;;;:::o;6998:113::-;7068:4;7100;7095:3;7091:14;7083:22;;6998:113;;;:::o;7147:732::-;7266:3;7295:54;7343:5;7295:54;:::i;:::-;7365:86;7444:6;7439:3;7365:86;:::i;:::-;7358:93;;7475:56;7525:5;7475:56;:::i;:::-;7554:7;7585:1;7570:284;7595:6;7592:1;7589:13;7570:284;;;7671:6;7665:13;7698:63;7757:3;7742:13;7698:63;:::i;:::-;7691:70;;7784:60;7837:6;7784:60;:::i;:::-;7774:70;;7630:224;7617:1;7614;7610:9;7605:14;;7570:284;;;7574:14;7870:3;7863:10;;7271:608;;;7147:732;;;;:::o;7885:1215::-;8234:4;8272:3;8261:9;8257:19;8249:27;;8286:69;8352:1;8341:9;8337:17;8328:6;8286:69;:::i;:::-;8402:9;8396:4;8392:20;8387:2;8376:9;8372:18;8365:48;8430:78;8503:4;8494:6;8430:78;:::i;:::-;8422:86;;8555:9;8549:4;8545:20;8540:2;8529:9;8525:18;8518:48;8583:78;8656:4;8647:6;8583:78;:::i;:::-;8575:86;;8671:72;8739:2;8728:9;8724:18;8715:6;8671:72;:::i;:::-;8753:73;8821:3;8810:9;8806:19;8797:6;8753:73;:::i;:::-;8836;8904:3;8893:9;8889:19;8880:6;8836:73;:::i;:::-;8957:9;8951:4;8947:20;8941:3;8930:9;8926:19;8919:49;8985:108;9088:4;9079:6;8985:108;:::i;:::-;8977:116;;7885:1215;;;;;;;;;;:::o;9106:222::-;9199:4;9237:2;9226:9;9222:18;9214:26;;9250:71;9318:1;9307:9;9303:17;9294:6;9250:71;:::i;:::-;9106:222;;;;:::o;9334:118::-;9405:22;9421:5;9405:22;:::i;:::-;9398:5;9395:33;9385:61;;9442:1;9439;9432:12;9385:61;9334:118;:::o;9458:135::-;9502:5;9540:6;9527:20;9518:29;;9556:31;9581:5;9556:31;:::i;:::-;9458:135;;;;:::o;9599:122::-;9672:24;9690:5;9672:24;:::i;:::-;9665:5;9662:35;9652:63;;9711:1;9708;9701:12;9652:63;9599:122;:::o;9727:139::-;9773:5;9811:6;9798:20;9789:29;;9827:33;9854:5;9827:33;:::i;:::-;9727:139;;;;:::o;9872:1199::-;9983:6;9991;9999;10007;10015;10023;10031;10080:3;10068:9;10059:7;10055:23;10051:33;10048:120;;;10087:79;;:::i;:::-;10048:120;10207:1;10232:53;10277:7;10268:6;10257:9;10253:22;10232:53;:::i;:::-;10222:63;;10178:117;10334:2;10360:53;10405:7;10396:6;10385:9;10381:22;10360:53;:::i;:::-;10350:63;;10305:118;10462:2;10488:53;10533:7;10524:6;10513:9;10509:22;10488:53;:::i;:::-;10478:63;;10433:118;10590:2;10616:53;10661:7;10652:6;10641:9;10637:22;10616:53;:::i;:::-;10606:63;;10561:118;10718:3;10745:51;10788:7;10779:6;10768:9;10764:22;10745:51;:::i;:::-;10735:61;;10689:117;10845:3;10872:53;10917:7;10908:6;10897:9;10893:22;10872:53;:::i;:::-;10862:63;;10816:119;10974:3;11001:53;11046:7;11037:6;11026:9;11022:22;11001:53;:::i;:::-;10991:63;;10945:119;9872:1199;;;;;;;;;;:::o;11077:474::-;11145:6;11153;11202:2;11190:9;11181:7;11177:23;11173:32;11170:119;;;11208:79;;:::i;:::-;11170:119;11328:1;11353:53;11398:7;11389:6;11378:9;11374:22;11353:53;:::i;:::-;11343:63;;11299:117;11455:2;11481:53;11526:7;11517:6;11506:9;11502:22;11481:53;:::i;:::-;11471:63;;11426:118;11077:474;;;;;:::o;11557:325::-;11614:6;11663:2;11651:9;11642:7;11638:23;11634:32;11631:119;;;11669:79;;:::i;:::-;11631:119;11789:1;11814:51;11857:7;11848:6;11837:9;11833:22;11814:51;:::i;:::-;11804:61;;11760:115;11557:325;;;;:::o;11888:180::-;11936:77;11933:1;11926:88;12033:4;12030:1;12023:15;12057:4;12054:1;12047:15;12074:320;12118:6;12155:1;12149:4;12145:12;12135:22;;12202:1;12196:4;12192:12;12223:18;12213:81;;12279:4;12271:6;12267:17;12257:27;;12213:81;12341:2;12333:6;12330:14;12310:18;12307:38;12304:84;;12360:18;;:::i;:::-;12304:84;12125:269;12074:320;;;:::o;12400:180::-;12448:77;12445:1;12438:88;12545:4;12542:1;12535:15;12569:4;12566:1;12559:15;12586:180;12634:77;12631:1;12624:88;12731:4;12728:1;12721:15;12755:4;12752:1;12745:15;12772:102;12814:8;12861:5;12858:1;12854:13;12833:34;;12772:102;;;:::o;12880:848::-;12941:5;12948:4;12972:6;12963:15;;12996:5;12987:14;;13010:712;13031:1;13021:8;13018:15;13010:712;;;13126:4;13121:3;13117:14;13111:4;13108:24;13105:50;;;13135:18;;:::i;:::-;13105:50;13185:1;13175:8;13171:16;13168:451;;;13600:4;13593:5;13589:16;13580:25;;13168:451;13650:4;13644;13640:15;13632:23;;13680:32;13703:8;13680:32;:::i;:::-;13668:44;;13010:712;;;12880:848;;;;;;;:::o;13734:1073::-;13788:5;13979:8;13969:40;;14000:1;13991:10;;14002:5;;13969:40;14028:4;14018:36;;14045:1;14036:10;;14047:5;;14018:36;14114:4;14162:1;14157:27;;;;14198:1;14193:191;;;;14107:277;;14157:27;14175:1;14166:10;;14177:5;;;14193:191;14238:3;14228:8;14225:17;14222:43;;;14245:18;;:::i;:::-;14222:43;14294:8;14291:1;14287:16;14278:25;;14329:3;14322:5;14319:14;14316:40;;;14336:18;;:::i;:::-;14316:40;14369:5;;;14107:277;;14493:2;14483:8;14480:16;14474:3;14468:4;14465:13;14461:36;14443:2;14433:8;14430:16;14425:2;14419:4;14416:12;14412:35;14396:111;14393:246;;;14549:8;14543:4;14539:19;14530:28;;14584:3;14577:5;14574:14;14571:40;;;14591:18;;:::i;:::-;14571:40;14624:5;;14393:246;14664:42;14702:3;14692:8;14686:4;14683:1;14664:42;:::i;:::-;14649:57;;;;14738:4;14733:3;14729:14;14722:5;14719:25;14716:51;;;14747:18;;:::i;:::-;14716:51;14796:4;14789:5;14785:16;14776:25;;13734:1073;;;;;;:::o;14813:285::-;14873:5;14897:23;14915:4;14897:23;:::i;:::-;14889:31;;14941:27;14959:8;14941:27;:::i;:::-;14929:39;;14987:104;15024:66;15014:8;15008:4;14987:104;:::i;:::-;14978:113;;14813:285;;;;:::o;15104:410::-;15144:7;15167:20;15185:1;15167:20;:::i;:::-;15162:25;;15201:20;15219:1;15201:20;:::i;:::-;15196:25;;15256:1;15253;15249:9;15278:30;15296:11;15278:30;:::i;:::-;15267:41;;15457:1;15448:7;15444:15;15441:1;15438:22;15418:1;15411:9;15391:83;15368:139;;15487:18;;:::i;:::-;15368:139;15152:362;15104:410;;;;:::o;15520:775::-;15753:4;15791:3;15780:9;15776:19;15768:27;;15805:71;15873:1;15862:9;15858:17;15849:6;15805:71;:::i;:::-;15886:72;15954:2;15943:9;15939:18;15930:6;15886:72;:::i;:::-;15968;16036:2;16025:9;16021:18;16012:6;15968:72;:::i;:::-;16050;16118:2;16107:9;16103:18;16094:6;16050:72;:::i;:::-;16132:73;16200:3;16189:9;16185:19;16176:6;16132:73;:::i;:::-;16215;16283:3;16272:9;16268:19;16259:6;16215:73;:::i;:::-;15520:775;;;;;;;;;:::o;16301:332::-;16422:4;16460:2;16449:9;16445:18;16437:26;;16473:71;16541:1;16530:9;16526:17;16517:6;16473:71;:::i;:::-;16554:72;16622:2;16611:9;16607:18;16598:6;16554:72;:::i;:::-;16301:332;;;;;:::o;16639:442::-;16788:4;16826:2;16815:9;16811:18;16803:26;;16839:71;16907:1;16896:9;16892:17;16883:6;16839:71;:::i;:::-;16920:72;16988:2;16977:9;16973:18;16964:6;16920:72;:::i;:::-;17002;17070:2;17059:9;17055:18;17046:6;17002:72;:::i;:::-;16639:442;;;;;;:::o;17087:180::-;17135:77;17132:1;17125:88;17232:4;17229:1;17222:15;17256:4;17253:1;17246:15;17273:185;17313:1;17330:20;17348:1;17330:20;:::i;:::-;17325:25;;17364:20;17382:1;17364:20;:::i;:::-;17359:25;;17403:1;17393:35;;17408:18;;:::i;:::-;17393:35;17450:1;17447;17443:9;17438:14;;17273:185;;;;:::o;17464:194::-;17504:4;17524:20;17542:1;17524:20;:::i;:::-;17519:25;;17558:20;17576:1;17558:20;:::i;:::-;17553:25;;17602:1;17599;17595:9;17587:17;;17626:1;17620:4;17617:11;17614:37;;;17631:18;;:::i;:::-;17614:37;17464:194;;;;:::o;17664:664::-;17869:4;17907:3;17896:9;17892:19;17884:27;;17921:71;17989:1;17978:9;17974:17;17965:6;17921:71;:::i;:::-;18002:72;18070:2;18059:9;18055:18;18046:6;18002:72;:::i;:::-;18084;18152:2;18141:9;18137:18;18128:6;18084:72;:::i;:::-;18166;18234:2;18223:9;18219:18;18210:6;18166:72;:::i;:::-;18248:73;18316:3;18305:9;18301:19;18292:6;18248:73;:::i;:::-;17664:664;;;;;;;;:::o;18334:545::-;18507:4;18545:3;18534:9;18530:19;18522:27;;18559:71;18627:1;18616:9;18612:17;18603:6;18559:71;:::i;:::-;18640:68;18704:2;18693:9;18689:18;18680:6;18640:68;:::i;:::-;18718:72;18786:2;18775:9;18771:18;18762:6;18718:72;:::i;:::-;18800;18868:2;18857:9;18853:18;18844:6;18800:72;:::i;:::-;18334:545;;;;;;;:::o;18885:180::-;18933:77;18930:1;18923:88;19030:4;19027:1;19020:15;19054:4;19051:1;19044:15;19071:191;19111:3;19130:20;19148:1;19130:20;:::i;:::-;19125:25;;19164:20;19182:1;19164:20;:::i;:::-;19159:25;;19207:1;19204;19200:9;19193:16;;19228:3;19225:1;19222:10;19219:36;;;19235:18;;:::i;:::-;19219:36;19071:191;;;;:::o
Swarm Source
ipfs://2a8ef43ee96de0bb734ca8c7190934708c920db2a023e77b4db09b4ec90dd671
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.