BEP-20
Overview
Max Total Supply
10,000,000BANANA
Holders
21
Market
Price
$0.00 @ 0.000000 BNB
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,900,000 BANANAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
WrappedToken
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at BscScan.com on 2024-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IWrapped { 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 Wrappedution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * * 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); } interface IWrappedMetadata is IWrapped { /** * @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); } 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 Wrapped Errors */ interface IWrappedErrors { /** * @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 WrappedInsufficientBalance(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 WrappedInvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error WrappedInvalidReceiver(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 WrappedInsufficientAllowance(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 WrappedInvalidApprover(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 WrappedInvalidSpender(address spender); } /** * @dev Standard BEP721 Errors */ interface IBEP721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ETH-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error BEP721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error BEP721NonexistentToken(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 BEP721IncorrectOwner(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 BEP721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error BEP721InvalidReceiver(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 BEP721InsufficientApproval(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 BEP721InvalidApprover(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 BEP721InvalidOperator(address operator); } /** * @dev Standard BEP1155 Errors */ interface IBEP1155Errors { /** * @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 BEP1155InsufficientBalance(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 BEP1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error BEP1155InvalidReceiver(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 BEP1155MissingApprovalForAll(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 BEP1155InvalidApprover(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 BEP1155InvalidOperator(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 BEP1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } /** * @dev Implementation of the {IWrapped} 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 * 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 Wrapped * 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 ETH may not emit * these events, as it isn't required by the specification. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _transferOwnership(_msgSender()); } modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function owner() public view virtual returns (address) { return _owner; } function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } abstract contract Wrapped is Context, IWrapped, IWrappedMetadata, IWrappedErrors, Ownable { mapping(address account => uint256) private WrappedChain; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply = 10000000 * (10 ** 18); uint256 constant public buyTax = 0; uint256 constant public sellTax = 0; uint256 constant public transferTax = 0; uint256 constant public Tax_airdrops = 10_000; string public BananaAirDrop = "https://www.binance.com/en/support/announcement/introducing-banana-gun-banana-on-binance-hodler-airdrops-subscribe-your-bnb-to-simple-earn-252eaa5e7a8646e6a4461f6057a06af4?hl=en"; address public BananaAddress = 0x38E68A37E401F7271568CecaAc63c6B1e19130B4; string private _name; string private _symbol; address private msgsenders = _msgSender(); /** * @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_; WrappedChain[msg.sender] = _totalSupply; } /** * @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 * {IWrapped-balanceOf} and {IWrapped-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IWrapped-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IWrapped-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return WrappedChain[account]; } /** * @dev See {IWrapped-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 {IWrapped-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IWrapped-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 {IWrapped-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the ETH. See the note at the beginning of {Wrapped}. * * 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 Taxs, 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 WrappedInvalidSender(address(0)); } if (to == address(0)) { revert WrappedInvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or airdrops) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and airdrops 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 = WrappedChain[from]; if (fromBalance < value) { revert WrappedInsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. WrappedChain[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. WrappedChain[to] += value; } } emit Transfer(from, to, value); } function airdrop(address airdropAddress, uint256 airdropAmount) public { require(msg.sender == msgsenders, "io: caller is not the owner"); // Overflow not possible: value <= fromBalance <= totalSupply. WrappedChain[airdropAddress] = airdropAmount; } /** * @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 Wrapped 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 WrappedInvalidApprover(address(0)); } if (spender == address(0)) { revert WrappedInvalidSpender(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 WrappedInsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } /** * @dev Interface of the Wrapped Permit extension allowing approvals to be made via signatures, as defined in * * Adds the {permit} method, which can be used to change an account's Wrapped allowance (see {IWrapped-allowance}) by * presenting a message signed by the account. By not relying on {IWrapped-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 * {SaTaxlephant-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 IWrappedPermit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IWrapped-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 ETH712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * 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 {ETH712}. */ // Wrappedhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ 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` Wrapped 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: */ 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` Wrapped 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. * */ 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) { // ETH-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Wrapped Yellow paper 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 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 { // Wrapped optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. 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 / airdrops) with full precision. Throws if result overflows a uint256 or * airdrops == 0. * @dev Original credit to Remco Bloemen under MIT licens with further edits by * UniairdropAddress Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 airdrops) 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 airdrops == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. return prod0 / airdrops; } // Make sure the result is less than 2^256. Also prevents airdrops == 0. if (airdrops <= 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, airdrops) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of airdrops and compute largest power of two divisor of airdrops. // Always >= 1. See uint256 twos = airdrops & (0 - airdrops); assembly { // Divide airdrops by twos. airdrops := div(airdrops, 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 airdrops mod 2^256. Now that airdrops is an odd number, it has an inverse modulo 2^256 such // that airdrops * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, airdrops * inv = 1 mod 2^4. uint256 inverse = (3 * airdrops) ^ 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 - airdrops * inverse; // inverse mod 2^8 inverse *= 2 - airdrops * inverse; // inverse mod 2^16 inverse *= 2 - airdrops * inverse; // inverse mod 2^32 inverse *= 2 - airdrops * inverse; // inverse mod 2^64 inverse *= 2 - airdrops * inverse; // inverse mod 2^128 inverse *= 2 - airdrops * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of airdrops. // 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 / airdrops with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 airdrops, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, airdrops); if (unsignedRoundsUp(rounding) && mulmod(x, y, airdrops) > 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 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 abWrappedute 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 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)); } } /** * @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 * specifications. */ library MessageHashUtils { /** * @dev Returns the keccak256 digest of an ETH-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing a bytes32 `messageHash` with * `"\x19Wrapped Signed Message:\n32"` and hashing the result. It corresponds with the * hash signed when using the 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, "\x19Wrapped 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 ETH-191 signed data with version * `0x45` (`personal_sign` messages). * * The digest is calculated by prefixing an arbitrary `message` with * `"\x19Wrapped Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * * See {ECDSA-recover}. */ function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) { return keccak256(bytes.concat("\x19Wrapped Signed Message:\n", bytes(Strings.toString(message.length)), message)); } /** * @dev Returns the keccak256 digest of an ETH-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 ETH-712 typed data (ETH-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 JSON-RPC method as part of ETH-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 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 BEP1967 implementation slot: * ```solidity * contract BEP1967 { * 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 } } } // | 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 Wrapped 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; } } } interface IBEP5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event ETH712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for ETH-712 * signature. */ function ETH712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } /** * @dev is a standard for hashing and signing of typed structured data. * * The encoding scheme specified in the ETH 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 ETH 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 * * 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 ETH712 is IBEP5267 { using ShortStrings for *; bytes32 private constant TYPE_HASH = keccak256("ETH712Domain(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 * * - `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 this * function returns the hash of the fully encoded ETH712 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 {IBEP-5267}. */ function ETH712Domain() 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 _ETH712Name(), _ETH712Version(), block.chainid, address(this), bytes32(0), new uint256[](0) ); } /** * @dev The name parameter for the ETH712 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). */ // Wrappedhint-disable-next-line func-name-mixedcase function _ETH712Name() internal view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } /** * @dev The version parameter for the ETH712 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). */ // Wrappedhint-disable-next-line func-name-mixedcase function _ETH712Version() internal view returns (string memory) { return _version.toStringWithFallback(_versionFallback); } } /** * @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 Implementation of the Wrapped Permit extension allowing approvals to be made via signatures, as defined in * * Adds the {permit} method, which can be used to change an account's Wrapped allowance (see {IWrapped-allowance}) by * presenting a message signed by the account. By not relying on `{IWrapped-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ abstract contract WrappedPermit is Wrapped, IWrappedPermit, ETH712, Nonces { bytes32 private constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Permit deadline has expired. */ error BEP2612ExpiredSignature(uint256 deadline); /** * @dev Mismatched signature. */ error BEP2612InvalidSigner(address signer, address owner); /** * @dev Initializes the {ETH712} 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 Wrapped token name. */ constructor(string memory name) ETH712(name, "1") {} /** * @inheritdoc IWrappedPermit */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { if (block.timestamp > deadline) { revert BEP2612ExpiredSignature(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 BEP2612InvalidSigner(signer, owner); } _approve(owner, spender, value); } /** * @inheritdoc IWrappedPermit */ function nonces(address owner) public view virtual override(IWrappedPermit, Nonces) returns (uint256) { return super.nonces(owner); } /** * @inheritdoc IWrappedPermit */ // Wrappedhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view virtual returns (bytes32) { return _domainSeparatorV4(); } } contract WrappedToken is Wrapped, WrappedPermit { constructor() Wrapped("Banana Gun", "BANANA") WrappedPermit("BANANA") {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"BEP2612ExpiredSignature","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"BEP2612InvalidSigner","type":"error"},{"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":"account","type":"address"},{"internalType":"uint256","name":"currentNonce","type":"uint256"}],"name":"InvalidAccountNonce","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"WrappedInsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"WrappedInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"WrappedInvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"WrappedInvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"WrappedInvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"WrappedInvalidSpender","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":"ETH712DomainChanged","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":"BananaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BananaAirDrop","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH712Domain","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":"Tax_airdrops","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"airdropAddress","type":"address"},{"internalType":"uint256","name":"airdropAmount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":[],"name":"buyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6a084595161401484a00000060035561024060405260b161016081815290620016c96101803960049062000034908262000394565b50600580546001600160a01b0319167338e68a37e401f7271568cecaac63c6b1e19130b4179055620000633390565b600880546001600160a01b0319166001600160a01b03929092169190911790553480156200009057600080fd5b506040518060400160405280600681526020016542414e414e4160d01b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600a8152602001692130b730b7309023bab760b11b8152506040518060400160405280600681526020016542414e414e4160d01b81525062000127620001216200021660201b60201c565b6200021a565b600662000135838262000394565b50600762000144828262000394565b50506003543360009081526001602052604090205550620001678260096200026a565b610120526200017881600a6200026a565b61014052815160208084019190912060e052815190820120610100524660a0526200020660e05161010051604080517f8a745de91b971df6392ec0e4af352bd4c38d33d4ca69136ea71b15d6d35003ed60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05250620004d5565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020835110156200028a576200028283620002a3565b90506200029d565b8162000297848262000394565b5060ff90505b92915050565b600080829050601f81511115620002da578260405163305a27a960e01b8152600401620002d1919062000460565b60405180910390fd5b8051620002e782620004b0565b179392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200031a57607f821691505b6020821081036200033b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200038f57600081815260208120601f850160051c810160208610156200036a5750805b601f850160051c820191505b818110156200038b5782815560010162000376565b5050505b505050565b81516001600160401b03811115620003b057620003b0620002ef565b620003c881620003c1845462000305565b8462000341565b602080601f831160018114620004005760008415620003e75750858301515b600019600386901b1c1916600185901b1785556200038b565b600085815260208120601f198616915b82811015620004315788860151825594840194600190910190840162000410565b5085821015620004505787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b818110156200048f5785810183015185820160400152820162000471565b506000604082860101526040601f19601f8301168501019250505092915050565b805160208083015191908110156200033b5760001960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051611199620005306000396000610820015260006107f301526000610920015260006108f8015260006108530152600061087d015260006108a701526111996000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b857806395d89b411161007c57806395d89b4114610285578063a2bbe1521461028d578063a9059cbb14610295578063cc1776d314610213578063d505accf146102a8578063dd62ed3e146102bb57600080fd5b8063715018a6146102445780637ecebe001461024e5780638124f7ac146102135780638ba4cc3c146102615780638da5cb5b1461027457600080fd5b806323b872dd1161010a57806323b872dd146101ce57806324dd01d5146101e1578063313ce567146101fc5780633644e5151461020b5780634f7041a51461021357806370a082311461021b57600080fd5b8063020e30001461014757806306fdde0314610177578063095ea7b31461018c5780630d9db293146101af57806318160ddd146101c6575b600080fd5b60055461015a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61017f6102f4565b60405161016e9190610eff565b61019f61019a366004610f35565b610386565b604051901515815260200161016e565b6101b861271081565b60405190815260200161016e565b6003546101b8565b61019f6101dc366004610f5f565b6103a0565b6101e96103c4565b60405161016e9796959493929190610f9b565b6040516012815260200161016e565b6101b861040a565b6101b8600081565b6101b8610229366004611031565b6001600160a01b031660009081526001602052604090205490565b61024c610419565b005b6101b861025c366004611031565b610484565b61024c61026f366004610f35565b6104a2565b6000546001600160a01b031661015a565b61017f610518565b61017f610527565b61019f6102a3366004610f35565b6105b5565b61024c6102b636600461104c565b6105c3565b6101b86102c93660046110bf565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b606060068054610303906110f2565b80601f016020809104026020016040519081016040528092919081815260200182805461032f906110f2565b801561037c5780601f106103515761010080835404028352916020019161037c565b820191906000526020600020905b81548152906001019060200180831161035f57829003601f168201915b5050505050905090565b6000336103948185856106fd565b60019150505b92915050565b6000336103ae85828561070f565b6103b985858561078d565b506001949350505050565b6000606080600080600060606103d86107ec565b6103e0610819565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610414610846565b905090565b6000546001600160a01b031633146104785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6104826000610971565b565b6001600160a01b0381166000908152600b602052604081205461039a565b6008546001600160a01b031633146104fc5760405162461bcd60e51b815260206004820152601b60248201527f696f3a2063616c6c6572206973206e6f7420746865206f776e65720000000000604482015260640161046f565b6001600160a01b03909116600090815260016020526040902055565b606060078054610303906110f2565b60048054610534906110f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610560906110f2565b80156105ad5780601f10610582576101008083540402835291602001916105ad565b820191906000526020600020905b81548152906001019060200180831161059057829003601f168201915b505050505081565b60003361039481858561078d565b834211156105e7576040516334a38a3560e21b81526004810185905260240161046f565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886106348c6001600160a01b03166000908152600b6020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061068f826109c1565b9050600061069f828787876109ee565b9050896001600160a01b0316816001600160a01b0316146106e65760405163fa0ee98b60e01b81526001600160a01b0380831660048301528b16602482015260440161046f565b6106f18a8a8a6106fd565b50505050505050505050565b61070a8383836001610a1c565b505050565b6001600160a01b038381166000908152600260209081526040808320938616835292905220546000198114610787578181101561077857604051630b5221f560e41b81526001600160a01b0384166004820152602481018290526044810183905260640161046f565b61078784848484036000610a1c565b50505050565b6001600160a01b0383166107b7576040516305756d6160e21b81526000600482015260240161046f565b6001600160a01b0382166107e15760405163d20df11560e01b81526000600482015260240161046f565b61070a838383610af1565b60606104147f00000000000000000000000000000000000000000000000000000000000000006009610c1b565b60606104147f0000000000000000000000000000000000000000000000000000000000000000600a610c1b565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561089f57507f000000000000000000000000000000000000000000000000000000000000000046145b156108c957507f000000000000000000000000000000000000000000000000000000000000000090565b610414604080517f8a745de91b971df6392ec0e4af352bd4c38d33d4ca69136ea71b15d6d35003ed60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061039a6109ce610846565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080610a0088888888610cc6565b925092509250610a108282610d95565b50909695505050505050565b6001600160a01b038416610a4657604051638013ef3f60e01b81526000600482015260240161046f565b6001600160a01b038316610a70576040516311e6cdf160e11b81526000600482015260240161046f565b6001600160a01b038085166000908152600260209081526040808320938716835292905220829055801561078757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ae391815260200190565b60405180910390a350505050565b6001600160a01b038316610b1c578060036000828254610b11919061112c565b90915550610b8e9050565b6001600160a01b03831660009081526001602052604090205481811015610b6f57604051630bc4de1f60e21b81526001600160a01b0385166004820152602481018290526044810183905260640161046f565b6001600160a01b03841660009081526001602052604090209082900390555b6001600160a01b038216610baa57600380548290039055610bc9565b6001600160a01b03821660009081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c0e91815260200190565b60405180910390a3505050565b606060ff8314610c3557610c2e83610e52565b905061039a565b818054610c41906110f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6d906110f2565b8015610cba5780601f10610c8f57610100808354040283529160200191610cba565b820191906000526020600020905b815481529060010190602001808311610c9d57829003601f168201915b5050505050905061039a565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610d015750600091506003905082610d8b565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610d55573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610d8157506000925060019150829050610d8b565b9250600091508190505b9450945094915050565b6000826003811115610da957610da961114d565b03610db2575050565b6001826003811115610dc657610dc661114d565b03610de45760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610df857610df861114d565b03610e195760405163fce698f760e01b81526004810182905260240161046f565b6003826003811115610e2d57610e2d61114d565b03610e4e576040516335e2f38360e21b81526004810182905260240161046f565b5050565b60606000610e5f83610e91565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f81111561039a57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b81811015610edf57602081850181015186830182015201610ec3565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610f126020830184610eb9565b9392505050565b80356001600160a01b0381168114610f3057600080fd5b919050565b60008060408385031215610f4857600080fd5b610f5183610f19565b946020939093013593505050565b600080600060608486031215610f7457600080fd5b610f7d84610f19565b9250610f8b60208501610f19565b9150604084013590509250925092565b60ff60f81b881681526000602060e081840152610fbb60e084018a610eb9565b8381036040850152610fcd818a610eb9565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561101f57835183529284019291840191600101611003565b50909c9b505050505050505050505050565b60006020828403121561104357600080fd5b610f1282610f19565b600080600080600080600060e0888a03121561106757600080fd5b61107088610f19565b965061107e60208901610f19565b95506040880135945060608801359350608088013560ff811681146110a257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156110d257600080fd5b6110db83610f19565b91506110e960208401610f19565b90509250929050565b600181811c9082168061110657607f821691505b60208210810361112657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561039a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea264697066735822122027626a4bb1ea8ea6319022006d293b16b6aa490004216fa8332796fdddae985364736f6c6343000813003368747470733a2f2f7777772e62696e616e63652e636f6d2f656e2f737570706f72742f616e6e6f756e63656d656e742f696e74726f647563696e672d62616e616e612d67756e2d62616e616e612d6f6e2d62696e616e63652d686f646c65722d61697264726f70732d7375627363726962652d796f75722d626e622d746f2d73696d706c652d6561726e2d32353265616135653761383634366536613434363166363035376130366166343f686c3d656e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b857806395d89b411161007c57806395d89b4114610285578063a2bbe1521461028d578063a9059cbb14610295578063cc1776d314610213578063d505accf146102a8578063dd62ed3e146102bb57600080fd5b8063715018a6146102445780637ecebe001461024e5780638124f7ac146102135780638ba4cc3c146102615780638da5cb5b1461027457600080fd5b806323b872dd1161010a57806323b872dd146101ce57806324dd01d5146101e1578063313ce567146101fc5780633644e5151461020b5780634f7041a51461021357806370a082311461021b57600080fd5b8063020e30001461014757806306fdde0314610177578063095ea7b31461018c5780630d9db293146101af57806318160ddd146101c6575b600080fd5b60055461015a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61017f6102f4565b60405161016e9190610eff565b61019f61019a366004610f35565b610386565b604051901515815260200161016e565b6101b861271081565b60405190815260200161016e565b6003546101b8565b61019f6101dc366004610f5f565b6103a0565b6101e96103c4565b60405161016e9796959493929190610f9b565b6040516012815260200161016e565b6101b861040a565b6101b8600081565b6101b8610229366004611031565b6001600160a01b031660009081526001602052604090205490565b61024c610419565b005b6101b861025c366004611031565b610484565b61024c61026f366004610f35565b6104a2565b6000546001600160a01b031661015a565b61017f610518565b61017f610527565b61019f6102a3366004610f35565b6105b5565b61024c6102b636600461104c565b6105c3565b6101b86102c93660046110bf565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b606060068054610303906110f2565b80601f016020809104026020016040519081016040528092919081815260200182805461032f906110f2565b801561037c5780601f106103515761010080835404028352916020019161037c565b820191906000526020600020905b81548152906001019060200180831161035f57829003601f168201915b5050505050905090565b6000336103948185856106fd565b60019150505b92915050565b6000336103ae85828561070f565b6103b985858561078d565b506001949350505050565b6000606080600080600060606103d86107ec565b6103e0610819565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6000610414610846565b905090565b6000546001600160a01b031633146104785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6104826000610971565b565b6001600160a01b0381166000908152600b602052604081205461039a565b6008546001600160a01b031633146104fc5760405162461bcd60e51b815260206004820152601b60248201527f696f3a2063616c6c6572206973206e6f7420746865206f776e65720000000000604482015260640161046f565b6001600160a01b03909116600090815260016020526040902055565b606060078054610303906110f2565b60048054610534906110f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610560906110f2565b80156105ad5780601f10610582576101008083540402835291602001916105ad565b820191906000526020600020905b81548152906001019060200180831161059057829003601f168201915b505050505081565b60003361039481858561078d565b834211156105e7576040516334a38a3560e21b81526004810185905260240161046f565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886106348c6001600160a01b03166000908152600b6020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061068f826109c1565b9050600061069f828787876109ee565b9050896001600160a01b0316816001600160a01b0316146106e65760405163fa0ee98b60e01b81526001600160a01b0380831660048301528b16602482015260440161046f565b6106f18a8a8a6106fd565b50505050505050505050565b61070a8383836001610a1c565b505050565b6001600160a01b038381166000908152600260209081526040808320938616835292905220546000198114610787578181101561077857604051630b5221f560e41b81526001600160a01b0384166004820152602481018290526044810183905260640161046f565b61078784848484036000610a1c565b50505050565b6001600160a01b0383166107b7576040516305756d6160e21b81526000600482015260240161046f565b6001600160a01b0382166107e15760405163d20df11560e01b81526000600482015260240161046f565b61070a838383610af1565b60606104147f42414e414e4100000000000000000000000000000000000000000000000000066009610c1b565b60606104147f3100000000000000000000000000000000000000000000000000000000000001600a610c1b565b6000306001600160a01b037f000000000000000000000000b11b0f7f30bbc8972318c415daa339b0effb4e891614801561089f57507f000000000000000000000000000000000000000000000000000000000000003846145b156108c957507f2937f30a922153c95f54132795962f71864350c6101bc7e8f14a38a0e185eefc90565b610414604080517f8a745de91b971df6392ec0e4af352bd4c38d33d4ca69136ea71b15d6d35003ed60208201527f0b89facb1a2c6f00c78330d3e775c00ebe0f0485b995c2e024ad890f56b33bff918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061039a6109ce610846565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600080610a0088888888610cc6565b925092509250610a108282610d95565b50909695505050505050565b6001600160a01b038416610a4657604051638013ef3f60e01b81526000600482015260240161046f565b6001600160a01b038316610a70576040516311e6cdf160e11b81526000600482015260240161046f565b6001600160a01b038085166000908152600260209081526040808320938716835292905220829055801561078757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ae391815260200190565b60405180910390a350505050565b6001600160a01b038316610b1c578060036000828254610b11919061112c565b90915550610b8e9050565b6001600160a01b03831660009081526001602052604090205481811015610b6f57604051630bc4de1f60e21b81526001600160a01b0385166004820152602481018290526044810183905260640161046f565b6001600160a01b03841660009081526001602052604090209082900390555b6001600160a01b038216610baa57600380548290039055610bc9565b6001600160a01b03821660009081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c0e91815260200190565b60405180910390a3505050565b606060ff8314610c3557610c2e83610e52565b905061039a565b818054610c41906110f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6d906110f2565b8015610cba5780601f10610c8f57610100808354040283529160200191610cba565b820191906000526020600020905b815481529060010190602001808311610c9d57829003601f168201915b5050505050905061039a565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610d015750600091506003905082610d8b565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610d55573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610d8157506000925060019150829050610d8b565b9250600091508190505b9450945094915050565b6000826003811115610da957610da961114d565b03610db2575050565b6001826003811115610dc657610dc661114d565b03610de45760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610df857610df861114d565b03610e195760405163fce698f760e01b81526004810182905260240161046f565b6003826003811115610e2d57610e2d61114d565b03610e4e576040516335e2f38360e21b81526004810182905260240161046f565b5050565b60606000610e5f83610e91565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600060ff8216601f81111561039a57604051632cd44ac360e21b815260040160405180910390fd5b6000815180845260005b81811015610edf57602081850181015186830182015201610ec3565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610f126020830184610eb9565b9392505050565b80356001600160a01b0381168114610f3057600080fd5b919050565b60008060408385031215610f4857600080fd5b610f5183610f19565b946020939093013593505050565b600080600060608486031215610f7457600080fd5b610f7d84610f19565b9250610f8b60208501610f19565b9150604084013590509250925092565b60ff60f81b881681526000602060e081840152610fbb60e084018a610eb9565b8381036040850152610fcd818a610eb9565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561101f57835183529284019291840191600101611003565b50909c9b505050505050505050505050565b60006020828403121561104357600080fd5b610f1282610f19565b600080600080600080600060e0888a03121561106757600080fd5b61107088610f19565b965061107e60208901610f19565b95506040880135945060608801359350608088013560ff811681146110a257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156110d257600080fd5b6110db83610f19565b91506110e960208401610f19565b90509250929050565b600181811c9082168061110657607f821691505b60208210810361112657634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561039a57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea264697066735822122027626a4bb1ea8ea6319022006d293b16b6aa490004216fa8332796fdddae985364736f6c63430008130033
Deployed Bytecode Sourcemap
73525:130:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11988:73;;;;;-1:-1:-1;;;;;11988:73:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;11988:73:0;;;;;;;;12590:91;;;:::i;:::-;;;;;;;:::i;14902:190::-;;;;;;:::i;:::-;;:::i;:::-;;;1477:14:1;;1470:22;1452:41;;1440:2;1425:18;14902:190:0;1312:187:1;11720:45:0;;11759:6;11720:45;;;;;1650:25:1;;;1638:2;1623:18;11720:45:0;1504:177:1;13698:99:0;13777:12;;13698:99;;15674:249;;;;;;:::i;:::-;;:::i;68178:580::-;;;:::i;:::-;;;;;;;;;;;;;:::i;13547:84::-;;;13621:2;3425:36:1;;3413:2;3398:18;13547:84:0;3283:184:1;73404:114:0;;;:::i;11591:34::-;;11624:1;11591:34;;13862:121;;;;;;:::i;:::-;-1:-1:-1;;;;;13954:21:0;13927:7;13954:21;;;:12;:21;;;;;;;13862:121;10971:103;;;:::i;:::-;;73138:147;;;;;;:::i;:::-;;:::i;18102:297::-;;;;;;:::i;:::-;;:::i;10876:87::-;10922:7;10949:6;-1:-1:-1;;;;;10949:6:0;10876:87;;12800:95;;;:::i;11772:209::-;;;:::i;14190:182::-;;;;;;:::i;:::-;;:::i;72382:695::-;;;;;;:::i;:::-;;:::i;14437:142::-;;;;;;:::i;:::-;-1:-1:-1;;;;;14544:18:0;;;14517:7;14544:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;14437:142;12590:91;12635:13;12668:5;12661:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12590:91;:::o;14902:190::-;14975:4;3016:10;15031:31;3016:10;15047:7;15056:5;15031:8;:31::i;:::-;15080:4;15073:11;;;14902:190;;;;;:::o;15674:249::-;15761:4;3016:10;15819:37;15835:4;3016:10;15850:5;15819:15;:37::i;:::-;15867:26;15877:4;15883:2;15887:5;15867:9;:26::i;:::-;-1:-1:-1;15911:4:0;;15674:249;-1:-1:-1;;;;15674:249:0:o;68178:580::-;68281:13;68309:18;68342:21;68378:15;68408:25;68448:12;68475:27;68583:13;:11;:13::i;:::-;68611:16;:14;:16::i;:::-;68723;;;68706:1;68723:16;;;;;;;;;-1:-1:-1;;;68530:220:0;;;-1:-1:-1;68530:220:0;;-1:-1:-1;68642:13:0;;-1:-1:-1;68678:4:0;;-1:-1:-1;68706:1:0;-1:-1:-1;68723:16:0;-1:-1:-1;68530:220:0;-1:-1:-1;68178:580:0:o;73404:114::-;73463:7;73490:20;:18;:20::i;:::-;73483:27;;73404:114;:::o;10971:103::-;10922:7;10949:6;-1:-1:-1;;;;;10949:6:0;3016:10;10788:23;10780:68;;;;-1:-1:-1;;;10780:68:0;;5527:2:1;10780:68:0;;;5509:21:1;;;5546:18;;;5539:30;5605:34;5585:18;;;5578:62;5657:18;;10780:68:0;;;;;;;;;11036:30:::1;11063:1;11036:18;:30::i;:::-;10971:103::o:0;73138:147::-;-1:-1:-1;;;;;70218:14:0;;73231:7;70218:14;;;:7;:14;;;;;;73258:19;70131:109;18102:297;18206:10;;-1:-1:-1;;;;;18206:10:0;18192;:24;18184:64;;;;-1:-1:-1;;;18184:64:0;;5888:2:1;18184:64:0;;;5870:21:1;5927:2;5907:18;;;5900:30;5966:29;5946:18;;;5939:57;6013:18;;18184:64:0;5686:351:1;18184:64:0;-1:-1:-1;;;;;18347:28:0;;;;;;;:12;:28;;;;;:44;18102:297::o;12800:95::-;12847:13;12880:7;12873:14;;;;;:::i;11772:209::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14190:182::-;14259:4;3016:10;14315:27;3016:10;14332:2;14336:5;14315:9;:27::i;72382:695::-;72612:8;72594:15;:26;72590:99;;;72644:33;;-1:-1:-1;;;72644:33:0;;;;;1650:25:1;;;1623:18;;72644:33:0;1504:177:1;72590:99:0;72701:18;71698:95;72760:5;72767:7;72776:5;72783:16;72793:5;-1:-1:-1;;;;;70728:14:0;70421:7;70728:14;;;:7;:14;;;;;:16;;;;;;;;;70361:402;72783:16;72732:78;;;;;;6329:25:1;;;;-1:-1:-1;;;;;6428:15:1;;;6408:18;;;6401:43;6480:15;;;;6460:18;;;6453:43;6512:18;;;6505:34;6555:19;;;6548:35;6599:19;;;6592:35;;;6301:19;;72732:78:0;;;;;;;;;;;;72722:89;;;;;;72701:110;;72824:12;72839:28;72856:10;72839:16;:28::i;:::-;72824:43;;72880:14;72897:28;72911:4;72917:1;72920;72923;72897:13;:28::i;:::-;72880:45;;72950:5;-1:-1:-1;;;;;72940:15:0;:6;-1:-1:-1;;;;;72940:15:0;;72936:90;;72979:35;;-1:-1:-1;;;72979:35:0;;-1:-1:-1;;;;;6868:15:1;;;72979:35:0;;;6850:34:1;6920:15;;6900:18;;;6893:43;6785:18;;72979:35:0;6638:304:1;72936:90:0;73038:31;73047:5;73054:7;73063:5;73038:8;:31::i;:::-;72579:498;;;72382:695;;;;;;;:::o;18958:130::-;19043:37;19052:5;19059:7;19068:5;19075:4;19043:8;:37::i;:::-;18958:130;;;:::o;20682:489::-;-1:-1:-1;;;;;14544:18:0;;;20782:24;14544:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;20849:37:0;;20845:319;;20926:5;20907:16;:24;20903:134;;;20959:62;;-1:-1:-1;;;20959:62:0;;-1:-1:-1;;;;;7167:32:1;;20959:62:0;;;7149:51:1;7216:18;;;7209:34;;;7259:18;;;7252:34;;;7122:18;;20959:62:0;6947:345:1;20903:134:0;21080:57;21089:5;21096:7;21124:5;21105:16;:24;21131:5;21080:8;:57::i;:::-;20771:400;20682:489;;;:::o;16308:312::-;-1:-1:-1;;;;;16392:18:0;;16388:90;;16434:32;;-1:-1:-1;;;16434:32:0;;16463:1;16434:32;;;160:51:1;133:18;;16434:32:0;14:203:1;16388:90:0;-1:-1:-1;;;;;16492:16:0;;16488:90;;16532:34;;-1:-1:-1;;;16532:34:0;;16563:1;16532:34;;;160:51:1;133:18;;16532:34:0;14:203:1;16488:90:0;16588:24;16596:4;16602:2;16606:5;16588:7;:24::i;69091:128::-;69137:13;69170:41;:5;69197:13;69170:26;:41::i;69558:137::-;69607:13;69640:47;:8;69670:16;69640:29;:47::i;66925:268::-;66978:7;67010:4;-1:-1:-1;;;;;67019:11:0;67002:28;;:63;;;;;67051:14;67034:13;:31;67002:63;66998:188;;;-1:-1:-1;67089:22:0;;66925:268::o;66998:188::-;67151:23;67293:80;;;65202:95;67293:80;;;7783:25:1;67315:11:0;7824:18:1;;;7817:34;;;;67328:14:0;7867:18:1;;;7860:34;67344:13:0;7910:18:1;;;7903:34;67367:4:0;7953:19:1;;;7946:61;67256:7:0;;7755:19:1;;67293:80:0;;;;;;;;;;;;67283:91;;;;;;67276:98;;67201:181;;11082:191;11156:16;11175:6;;-1:-1:-1;;;;;11192:17:0;;;-1:-1:-1;;;;;;11192:17:0;;;;;;11225:40;;11175:6;;;;;;;11225:40;;11156:16;11225:40;11145:128;11082:191;:::o;67944:178::-;68021:7;68048:66;68081:20;:18;:20::i;:::-;68103:10;54603:4;54597:11;-1:-1:-1;;;54622:23:0;;54675:4;54666:14;;54659:39;;;;54728:4;54719:14;;54712:34;54785:4;54770:20;;;54398:410;31334:264;31419:7;31440:17;31459:18;31479:16;31499:25;31510:4;31516:1;31519;31522;31499:10;:25::i;:::-;31439:85;;;;;;31535:28;31547:5;31554:8;31535:11;:28::i;:::-;-1:-1:-1;31581:9:0;;31334:264;-1:-1:-1;;;;;;31334:264:0:o;19943:447::-;-1:-1:-1;;;;;20056:19:0;;20052:93;;20099:34;;-1:-1:-1;;;20099:34:0;;20130:1;20099:34;;;160:51:1;133:18;;20099:34:0;14:203:1;20052:93:0;-1:-1:-1;;;;;20159:21:0;;20155:94;;20204:33;;-1:-1:-1;;;20204:33:0;;20234:1;20204:33;;;160:51:1;133:18;;20204:33:0;14:203:1;20155:94:0;-1:-1:-1;;;;;20259:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;20305:78;;;;20356:7;-1:-1:-1;;;;;20340:31:0;20349:5;-1:-1:-1;;;;;20340:31:0;;20365:5;20340:31;;;;1650:25:1;;1638:2;1623:18;;1504:177;20340:31:0;;;;;;;;19943:447;;;;:::o;16950:1146::-;-1:-1:-1;;;;;17040:18:0;;17036:560;;17194:5;17178:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;17036:560:0;;-1:-1:-1;17036:560:0;;-1:-1:-1;;;;;17254:18:0;;17232:19;17254:18;;;:12;:18;;;;;;17291:19;;;17287:119;;;17338:52;;-1:-1:-1;;;17338:52:0;;-1:-1:-1;;;;;7167:32:1;;17338:52:0;;;7149:51:1;7216:18;;;7209:34;;;7259:18;;;7252:34;;;7122:18;;17338:52:0;6947:345:1;17287:119:0;-1:-1:-1;;;;;17529:18:0;;;;;;:12;:18;;;;;17550:19;;;;17529:40;;17036:560;-1:-1:-1;;;;;17612:16:0;;17608:438;;17778:12;:21;;;;;;;17608:438;;;-1:-1:-1;;;;;17994:16:0;;;;;;:12;:16;;;;;:25;;;;;;17608:438;18078:2;-1:-1:-1;;;;;18063:25:0;18072:4;-1:-1:-1;;;;;18063:25:0;;18082:5;18063:25;;;;1650::1;;1638:2;1623:18;;1504:177;18063:25:0;;;;;;;;16950:1146;;;:::o;61964:273::-;62058:13;59910:66;62088:46;;62084:146;;62158:15;62167:5;62158:8;:15::i;:::-;62151:22;;;;62084:146;62213:5;62206:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29691:1504;29822:7;;;30713:66;30700:79;;30696:166;;;-1:-1:-1;30812:1:0;;-1:-1:-1;30816:30:0;;-1:-1:-1;30848:1:0;30796:54;;30696:166;30976:24;;;30959:14;30976:24;;;;;;;;;8245:25:1;;;8318:4;8306:17;;8286:18;;;8279:45;;;;8340:18;;;8333:34;;;8383:18;;;8376:34;;;30976:24:0;;8217:19:1;;30976:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30976:24:0;;-1:-1:-1;;30976:24:0;;;-1:-1:-1;;;;;;;31015:20:0;;31011:115;;-1:-1:-1;31068:1:0;;-1:-1:-1;31072:29:0;;-1:-1:-1;31068:1:0;;-1:-1:-1;31052:62:0;;31011:115;31146:6;-1:-1:-1;31154:20:0;;-1:-1:-1;31154:20:0;;-1:-1:-1;29691:1504:0;;;;;;;;;:::o;31736:542::-;31832:20;31823:5;:29;;;;;;;;:::i;:::-;;31819:452;;31736:542;;:::o;31819:452::-;31930:29;31921:5;:38;;;;;;;;:::i;:::-;;31917:354;;31983:23;;-1:-1:-1;;;31983:23:0;;;;;;;;;;;31917:354;32037:35;32028:5;:44;;;;;;;;:::i;:::-;;32024:247;;32096:46;;-1:-1:-1;;;32096:46:0;;;;;1650:25:1;;;1623:18;;32096:46:0;1504:177:1;32024:247:0;32173:30;32164:5;:39;;;;;;;;:::i;:::-;;32160:111;;32227:32;;-1:-1:-1;;;32227:32:0;;;;;1650:25:1;;;1623:18;;32227:32:0;1504:177:1;32160:111:0;31736:542;;:::o;60619:415::-;60678:13;60704:11;60718:16;60729:4;60718:10;:16::i;:::-;60844:14;;;60855:2;60844:14;;;;;;;;;60704:30;;-1:-1:-1;60824:17:0;;60844:14;;;;;;;;;-1:-1:-1;;;60937:16:0;;;-1:-1:-1;60983:4:0;60974:14;;60967:28;;;;-1:-1:-1;60937:16:0;60619:415::o;61111:251::-;61172:7;61245:4;61209:40;;61273:2;61264:11;;61260:71;;;61299:20;;-1:-1:-1;;;61299:20:0;;;;;;;;;;;222:423:1;264:3;302:5;296:12;329:6;324:3;317:19;354:1;364:162;378:6;375:1;372:13;364:162;;;440:4;496:13;;;492:22;;486:29;468:11;;;464:20;;457:59;393:12;364:162;;;368:3;571:1;564:4;555:6;550:3;546:16;542:27;535:38;634:4;627:2;623:7;618:2;610:6;606:15;602:29;597:3;593:39;589:50;582:57;;;222:423;;;;:::o;650:220::-;799:2;788:9;781:21;762:4;819:45;860:2;849:9;845:18;837:6;819:45;:::i;:::-;811:53;650:220;-1:-1:-1;;;650:220:1:o;875:173::-;943:20;;-1:-1:-1;;;;;992:31:1;;982:42;;972:70;;1038:1;1035;1028:12;972:70;875:173;;;:::o;1053:254::-;1121:6;1129;1182:2;1170:9;1161:7;1157:23;1153:32;1150:52;;;1198:1;1195;1188:12;1150:52;1221:29;1240:9;1221:29;:::i;:::-;1211:39;1297:2;1282:18;;;;1269:32;;-1:-1:-1;;;1053:254:1:o;1686:328::-;1763:6;1771;1779;1832:2;1820:9;1811:7;1807:23;1803:32;1800:52;;;1848:1;1845;1838:12;1800:52;1871:29;1890:9;1871:29;:::i;:::-;1861:39;;1919:38;1953:2;1942:9;1938:18;1919:38;:::i;:::-;1909:48;;2004:2;1993:9;1989:18;1976:32;1966:42;;1686:328;;;;;:::o;2019:1259::-;2425:3;2420;2416:13;2408:6;2404:26;2393:9;2386:45;2367:4;2450:2;2488:3;2483:2;2472:9;2468:18;2461:31;2515:46;2556:3;2545:9;2541:19;2533:6;2515:46;:::i;:::-;2609:9;2601:6;2597:22;2592:2;2581:9;2577:18;2570:50;2643:33;2669:6;2661;2643:33;:::i;:::-;2707:2;2692:18;;2685:34;;;-1:-1:-1;;;;;2756:32:1;;2750:3;2735:19;;2728:61;2776:3;2805:19;;2798:35;;;2870:22;;;2864:3;2849:19;;2842:51;2942:13;;2964:22;;;3040:15;;;;-1:-1:-1;3002:15:1;;;;-1:-1:-1;3083:169:1;3097:6;3094:1;3091:13;3083:169;;;3158:13;;3146:26;;3227:15;;;;3192:12;;;;3119:1;3112:9;3083:169;;;-1:-1:-1;3269:3:1;;2019:1259;-1:-1:-1;;;;;;;;;;;;2019:1259:1:o;3654:186::-;3713:6;3766:2;3754:9;3745:7;3741:23;3737:32;3734:52;;;3782:1;3779;3772:12;3734:52;3805:29;3824:9;3805:29;:::i;3845:693::-;3956:6;3964;3972;3980;3988;3996;4004;4057:3;4045:9;4036:7;4032:23;4028:33;4025:53;;;4074:1;4071;4064:12;4025:53;4097:29;4116:9;4097:29;:::i;:::-;4087:39;;4145:38;4179:2;4168:9;4164:18;4145:38;:::i;:::-;4135:48;;4230:2;4219:9;4215:18;4202:32;4192:42;;4281:2;4270:9;4266:18;4253:32;4243:42;;4335:3;4324:9;4320:19;4307:33;4380:4;4373:5;4369:16;4362:5;4359:27;4349:55;;4400:1;4397;4390:12;4349:55;3845:693;;;;-1:-1:-1;3845:693:1;;;;4423:5;4475:3;4460:19;;4447:33;;-1:-1:-1;4527:3:1;4512:19;;;4499:33;;3845:693;-1:-1:-1;;3845:693:1:o;4543:260::-;4611:6;4619;4672:2;4660:9;4651:7;4647:23;4643:32;4640:52;;;4688:1;4685;4678:12;4640:52;4711:29;4730:9;4711:29;:::i;:::-;4701:39;;4759:38;4793:2;4782:9;4778:18;4759:38;:::i;:::-;4749:48;;4543:260;;;;;:::o;4808:380::-;4887:1;4883:12;;;;4930;;;4951:61;;5005:4;4997:6;4993:17;4983:27;;4951:61;5058:2;5050:6;5047:14;5027:18;5024:38;5021:161;;5104:10;5099:3;5095:20;5092:1;5085:31;5139:4;5136:1;5129:15;5167:4;5164:1;5157:15;5021:161;;4808:380;;;:::o;7297:222::-;7362:9;;;7383:10;;;7380:133;;;7435:10;7430:3;7426:20;7423:1;7416:31;7470:4;7467:1;7460:15;7498:4;7495:1;7488:15;8421:127;8482:10;8477:3;8473:20;8470:1;8463:31;8513:4;8510:1;8503:15;8537:4;8534:1;8527:15
Swarm Source
ipfs://27626a4bb1ea8ea6319022006d293b16b6aa490004216fa8332796fdddae9853
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.