ERC-20
Source Code
Overview
Max Total Supply
9,402.000000000000001 WSTBT
Holders
3
Transfers
-
0
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
CCWSTBT
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2024-03-28 */ // Sources flattened with hardhat v2.22.2 https://hardhat.org // SPDX-License-Identifier: GPL-3.0 AND MIT // File @chainlink/contracts-ccip/src/v0.8/ccip/libraries/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; // End consumer library. library Client { /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers. struct EVMTokenAmount { address token; // token address on the local chain. uint256 amount; // Amount of tokens. } struct Any2EVMMessage { bytes32 messageId; // MessageId corresponding to ccipSend on source. uint64 sourceChainSelector; // Source chain selector. bytes sender; // abi.decode(sender) if coming from an EVM chain. bytes data; // payload sent in original message. EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation. } // If extraArgs is empty bytes, the default is 200k gas limit. struct EVM2AnyMessage { bytes receiver; // abi.encode(receiver address) for dest EVM chains bytes data; // Data payload EVMTokenAmount[] tokenAmounts; // Token transfers address feeToken; // Address of feeToken. address(0) means you will send msg.value. bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1) } // bytes4(keccak256("CCIP EVMExtraArgsV1")); bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9; struct EVMExtraArgsV1 { uint256 gasLimit; } function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) { return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs); } } // File @chainlink/contracts-ccip/src/v0.8/ccip/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; /// @notice Application contracts that intend to receive messages from /// the router should implement this interface. interface IAny2EVMMessageReceiver { /// @notice Called by the Router to deliver a message. /// If this reverts, any token transfers also revert. The message /// will move to a FAILED state and become available for manual execution. /// @param message CCIP Message /// @dev Note ensure you check the msg.sender is the OffRampRouter function ccipReceive(Client.Any2EVMMessage calldata message) external; } // File @chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @chainlink/contracts-ccip/src/v0.8/ccip/applications/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; /// @title CCIPReceiver - Base contract for CCIP applications that can receive messages. abstract contract CCIPReceiver is IAny2EVMMessageReceiver, IERC165 { address internal immutable i_ccipRouter; constructor(address router) { if (router == address(0)) revert InvalidRouter(address(0)); i_ccipRouter = router; } /// @notice IERC165 supports an interfaceId /// @param interfaceId The interfaceId to check /// @return true if the interfaceId is supported /// @dev Should indicate whether the contract implements IAny2EVMMessageReceiver /// e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId /// This allows CCIP to check if ccipReceive is available before calling it. /// If this returns false or reverts, only tokens are transferred to the receiver. /// If this returns true, tokens are transferred and ccipReceive is called atomically. /// Additionally, if the receiver address does not have code associated with /// it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred. function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) { return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId; } /// @inheritdoc IAny2EVMMessageReceiver function ccipReceive(Client.Any2EVMMessage calldata message) external virtual override onlyRouter { _ccipReceive(message); } /// @notice Override this function in your implementation. /// @param message Any2EVMMessage function _ccipReceive(Client.Any2EVMMessage memory message) internal virtual; ///////////////////////////////////////////////////////////////////// // Plumbing ///////////////////////////////////////////////////////////////////// /// @notice Return the current router /// @return CCIP router address function getRouter() public view returns (address) { return address(i_ccipRouter); } error InvalidRouter(address router); /// @dev only calls from the set router are accepted. modifier onlyRouter() { if (msg.sender != address(i_ccipRouter)) revert InvalidRouter(msg.sender); _; } } // File @chainlink/contracts-ccip/src/v0.8/ccip/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; interface IRouterClient { error UnsupportedDestinationChain(uint64 destChainSelector); error InsufficientFeeTokenAmount(); error InvalidMsgValue(); /// @notice Checks if the given chain ID is supported for sending/receiving. /// @param chainSelector The chain to check. /// @return supported is true if it is supported, false if not. function isChainSupported(uint64 chainSelector) external view returns (bool supported); /// @notice Gets a list of all supported tokens which can be sent or received /// to/from a given chain id. /// @param chainSelector The chainSelector. /// @return tokens The addresses of all tokens that are supported. function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens); /// @param destinationChainSelector The destination chainSelector /// @param message The cross-chain CCIP message including data and/or tokens /// @return fee returns execution fee for the message /// delivery to destination chain, denominated in the feeToken specified in the message. /// @dev Reverts with appropriate reason upon invalid message. function getFee( uint64 destinationChainSelector, Client.EVM2AnyMessage memory message ) external view returns (uint256 fee); /// @notice Request a message to be sent to the destination chain /// @param destinationChainSelector The destination chain ID /// @param message The cross-chain CCIP message including data and/or tokens /// @return messageId The message ID /// @dev Note if msg.value is larger than the required fee (from getFee) we accept /// the overpayment with no refund. /// @dev Reverts with appropriate reason upon invalid message. function ccipSend( uint64 destinationChainSelector, Client.EVM2AnyMessage calldata message ) external payable returns (bytes32); } // File @chainlink/contracts-ccip/src/v0.8/shared/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; interface IOwnable { function owner() external returns (address); function transferOwnership(address recipient) external; function acceptOwnership() external; } // File @chainlink/contracts-ccip/src/v0.8/shared/access/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; /// @title The ConfirmedOwner contract /// @notice A contract with helpers for basic contract ownership. contract ConfirmedOwnerWithProposal is IOwnable { address private s_owner; address private s_pendingOwner; event OwnershipTransferRequested(address indexed from, address indexed to); event OwnershipTransferred(address indexed from, address indexed to); constructor(address newOwner, address pendingOwner) { // solhint-disable-next-line custom-errors require(newOwner != address(0), "Cannot set owner to zero"); s_owner = newOwner; if (pendingOwner != address(0)) { _transferOwnership(pendingOwner); } } /// @notice Allows an owner to begin transferring ownership to a new address. function transferOwnership(address to) public override onlyOwner { _transferOwnership(to); } /// @notice Allows an ownership transfer to be completed by the recipient. function acceptOwnership() external override { // solhint-disable-next-line custom-errors require(msg.sender == s_pendingOwner, "Must be proposed owner"); address oldOwner = s_owner; s_owner = msg.sender; s_pendingOwner = address(0); emit OwnershipTransferred(oldOwner, msg.sender); } /// @notice Get the current owner function owner() public view override returns (address) { return s_owner; } /// @notice validate, transfer ownership, and emit relevant events function _transferOwnership(address to) private { // solhint-disable-next-line custom-errors require(to != msg.sender, "Cannot transfer to self"); s_pendingOwner = to; emit OwnershipTransferRequested(s_owner, to); } /// @notice validate access function _validateOwnership() internal view { // solhint-disable-next-line custom-errors require(msg.sender == s_owner, "Only callable by owner"); } /// @notice Reverts if called by anyone other than the contract owner. modifier onlyOwner() { _validateOwnership(); _; } } // File @chainlink/contracts-ccip/src/v0.8/shared/access/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; /// @title The ConfirmedOwner contract /// @notice A contract with helpers for basic contract ownership. contract ConfirmedOwner is ConfirmedOwnerWithProposal { constructor(address newOwner) ConfirmedOwnerWithProposal(newOwner, address(0)) {} } // File @chainlink/contracts-ccip/src/v0.8/shared/access/[email protected] // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; /// @title The OwnerIsCreator contract /// @notice A contract with helpers for basic contract ownership. contract OwnerIsCreator is ConfirmedOwner { constructor() ConfirmedOwner(msg.sender) {} } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20Metadata.sol) pragma solidity ^0.8.0; // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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 keccak256(bytes(a)) == keccak256(bytes(b)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @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, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { 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); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); 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. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // 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); } return (signer, RecoverError.NoError); } /** * @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) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ 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 } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic 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 their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired 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); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File contracts/CCWSTBTMessager.sol // Original license: SPDX_License_Identifier: MIT pragma solidity 0.8.19; interface ICCIPClient { function getCcSendData(address sender, address receiver, uint256 value) external view returns (bytes memory message); function ccSend(address sender, address recipient, uint256 value) external returns (bytes memory message); function ccReceive(bytes calldata message) external; } contract CCWSTBTMessager is CCIPReceiver, OwnerIsCreator { ICCIPClient public ccipClient; mapping(uint64 => mapping(address => bool)) public allowedPeer; event AllowedPeer(uint64 chainSelector, address messager, bool allowed); event CCReceive(bytes32 indexed messageID, bytes messageData); event CCSend(bytes32 indexed messageID, bytes messageData); error NotAllowlisted(uint64 chainSelector, address messager); constructor( address _router, address _ccipClient ) CCIPReceiver(_router) { ccipClient = ICCIPClient(_ccipClient); } function setAllowedPeer(uint64 chainSelector, address messager, bool allowed) external onlyOwner { allowedPeer[chainSelector][messager] = allowed; } function _ccipReceive( Client.Any2EVMMessage memory any2EvmMessage ) internal override { address sender = abi.decode(any2EvmMessage.sender, (address)); if (!allowedPeer[any2EvmMessage.sourceChainSelector][sender]) { revert NotAllowlisted(any2EvmMessage.sourceChainSelector, sender); } ccipClient.ccReceive(any2EvmMessage.data); emit CCReceive(any2EvmMessage.messageId, any2EvmMessage.data); } function calculateFeeAndMessage( uint64 destinationChainSelector, address messageReceiver, address sender, address recipient, uint value, bytes calldata extraArgs ) public view returns (uint256 fee, Client.EVM2AnyMessage memory evm2AnyMessage) { bytes memory data = ccipClient.getCcSendData(sender, recipient, value); evm2AnyMessage = Client.EVM2AnyMessage({ receiver : abi.encode(messageReceiver), data : data, tokenAmounts : new Client.EVMTokenAmount[](0), extraArgs : extraArgs, feeToken : address(0) }); fee = IRouterClient(getRouter()).getFee(destinationChainSelector, evm2AnyMessage); } function transferToChain( uint64 destinationChainSelector, address messageReceiver, address recipient, uint value, bytes calldata extraArgs ) external payable returns (bytes32 messageId) { if (!allowedPeer[destinationChainSelector][messageReceiver]) { revert NotAllowlisted(destinationChainSelector, messageReceiver); } bytes memory data = ccipClient.ccSend(msg.sender, recipient, value); Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({ receiver : abi.encode(messageReceiver), data : data, tokenAmounts : new Client.EVMTokenAmount[](0), extraArgs : extraArgs, feeToken : address(0) }); uint256 fee = IRouterClient(getRouter()).getFee(destinationChainSelector, evm2AnyMessage); require(msg.value >= fee, "CCWSTBTMessager: INSUFFICIENT_FUNDS"); messageId = IRouterClient(getRouter()).ccipSend{value : fee}( destinationChainSelector, evm2AnyMessage ); if (msg.value - fee > 0) { bool success = payable(msg.sender).send(msg.value - fee); require(success, "CCWSTBTMessager: TRANSFER_FAILED"); } emit CCSend(messageId, data); return messageId; } } // File contracts/interfaces/ISTBT.sol // Original license: SPDX_License_Identifier: GPL-3.0 pragma solidity ^0.8.0; interface IERC1644 is IERC20 { // Controller Events event ControllerTransfer( address _controller, address indexed _from, address indexed _to, uint256 _value, bytes _data, bytes _operatorData ); event ControllerRedemption( address _controller, address indexed _tokenHolder, uint256 _value, bytes _data, bytes _operatorData ); // Controller Operation function isControllable() external view returns (bool); function controllerTransfer(address _from, address _to, uint256 _value, bytes calldata _data, bytes calldata _operatorData) external; function controllerRedeem(address _tokenHolder, uint256 _value, bytes calldata _data, bytes calldata _operatorData) external; } interface IERC1643 { // Document Events event DocumentRemoved(bytes32 indexed _name, string _uri, bytes32 _documentHash); event DocumentUpdated(bytes32 indexed _name, string _uri, bytes32 _documentHash); // Document Management function getDocument(bytes32 _name) external view returns (string memory, bytes32, uint256); function setDocument(bytes32 _name, string calldata _uri, bytes32 _documentHash) external; function removeDocument(bytes32 _name) external; function getAllDocuments() external view returns (bytes32[] memory); } interface IERC1594 is IERC20 { // Issuance / Redemption Events event Issued(address indexed _operator, address indexed _to, uint256 _value, bytes _data); event Redeemed(address indexed _operator, address indexed _from, uint256 _value, bytes _data); // Transfers function transferWithData(address _to, uint256 _value, bytes calldata _data) external; function transferFromWithData(address _from, address _to, uint256 _value, bytes calldata _data) external; // Token Issuance function isIssuable() external view returns (bool); function issue(address _tokenHolder, uint256 _value, bytes calldata _data) external; // Token Redemption function redeem(uint256 _value, bytes calldata _data) external; function redeemFrom(address _tokenHolder, uint256 _value, bytes calldata _data) external; // Transfer Validity function canTransfer(address _to, uint256 _value, bytes calldata _data) external view returns (bool, uint8, bytes32); function canTransferFrom(address _from, address _to, uint256 _value, bytes calldata _data) external view returns (bool, uint8, bytes32); } struct Permission { bool sendAllowed; // default: true bool receiveAllowed; // Address holder’s KYC will be validated till this time, after that the holder needs to re-KYC. uint64 expiryTime; // default:0 validated forever } interface ISTBT is IERC20, IERC20Metadata, IERC1594, IERC1643, IERC1644 { event InterestsDistributed(int interest, uint newTotalSupply, uint interestFromTime, uint interestToTime); event TransferShares(address indexed from, address indexed to, uint256 sharesValue); function issuer() external view returns (address); function controller() external view returns (address); function moderator() external view returns (address); function totalShares() external view returns (uint); function allowance(address _owner, address _spender) external view returns (uint256); function permissions(address addr) external view returns (bool sendAllowed, bool receiveAllowed, uint64 expiryTime); function lastDistributeTime() external view returns (uint64); function minDistributeInterval() external view returns (uint64); function maxDistributeRatio() external view returns (uint64); function setIssuer(address _issuer) external; function setController(address _controller) external; function setModerator(address _moderator) external; function setMinDistributeInterval(uint64 interval) external; function setMaxDistributeRatio(uint64 ratio) external; function setPermission(address addr, Permission calldata permission) external; function distributeInterests(int256 _distributedInterest, uint interestFromTime, uint interestToTime) external; function increaseAllowance(address _spender, uint256 _addedValue) external returns (bool); function decreaseAllowance(address _spender, uint256 _subtractedValue) external returns (bool); function sharesOf(address _account) external view returns (uint256); function getSharesByAmount(uint256 _amount) external view returns (uint256 result); function getSharesByAmountRoundUp(uint256 _amount) external view returns (uint256 result); function getAmountByShares(uint256 _shares) external view returns (uint256 result); } // File contracts/CCWSTBT.sol // Original license: SPDX_License_Identifier: GPL-3.0 pragma solidity ^0.8.0; contract CCWSTBT is ERC20Permit, Ownable, ICCIPClient { address public messager; address public controller; mapping(address => Permission) public permissions; // Address-transfer permissions mapping(address => bool) public localForbidden; // forbidden accounts locally, despite global permission uint128 public priceToSTBT; uint64 public priceToSTBTUpdateTime; bool public sendEnabled; event ControllerTransfer( address indexed _from, address indexed _to, uint256 _value, bytes _data, bytes _operatorData ); constructor(string memory name_, string memory symbol_) ERC20Permit(name_) ERC20(name_, symbol_) {} modifier onlyController() { require(msg.sender == controller, 'CCWSTBT: NOT_CONTROLLER'); _; } modifier onlyMessager() { require(msg.sender == messager, 'CCWSTBT: NOT_MESSAGER'); _; } function setController(address _controller) public onlyOwner { controller = _controller; } function setMessager(address _messager) public onlyOwner { messager = _messager; } function setPermissionAndForbidden(address account, Permission calldata permission, bool b) public onlyController { permissions[account] = permission; localForbidden[account] = b; } function setPermission(address account, Permission calldata permission) public onlyController { permissions[account] = permission; } function setForbidden(address account, bool b) public onlyController { localForbidden[account] = b; } function setSendEnabled(bool b) public onlyOwner { sendEnabled = b; } function transfer(address _recipient, uint256 _amount) public override returns (bool) { _checkSendPermission(msg.sender); _checkReceivePermission(_recipient); require(!localForbidden[msg.sender] && !localForbidden[_recipient], "CCWSTBT: FORBIDDEN"); return super.transfer(_recipient, _amount); } function transferFrom(address _sender, address _recipient, uint256 _amount) public override returns (bool) { _checkSendPermission(_sender); _checkReceivePermission(_recipient); require(!localForbidden[_sender] && !localForbidden[_recipient], "CCWSTBT: FORBIDDEN"); return super.transferFrom(_sender, _recipient, _amount); } function _checkSendPermission(address _sender) private view { Permission memory p = permissions[_sender]; require(p.sendAllowed, 'CCWSTBT: NO_SEND_PERMISSION'); require(p.expiryTime == 0 || p.expiryTime > block.timestamp, 'CCWSTBT: SEND_PERMISSION_EXPIRED'); } function _checkReceivePermission(address _recipient) private view { Permission memory p = permissions[_recipient]; require(p.receiveAllowed, 'CCWSTBT: NO_RECEIVE_PERMISSION'); require(p.expiryTime == 0 || p.expiryTime > block.timestamp, 'CCWSTBT: RECEIVE_PERMISSION_EXPIRED'); } function controllerTransfer(address _from, address _to, uint256 _value, bytes calldata _data, bytes calldata _operatorData) external onlyController { _transfer(_from, _to, _value); emit ControllerTransfer(_from, _to, _value, _data, _operatorData); } // a cc-message always contains the value, the receiver, the sender function ccSend(address sender, address receiver, uint256 value) public onlyMessager returns (bytes memory message) { require(sendEnabled, "CCWSTBT: SEND_DISABLED"); require(value != 0, "CCWSTBT: ZERO_VALUE_FORBIDDEN"); require(!localForbidden[sender], "CCWSTBT: SENDER_FORBIDDEN"); require(!localForbidden[receiver], "CCWSTBT: RECEIVER_FORBIDDEN"); _checkReceivePermission(receiver); _burn(sender, value); return getCcSendData(sender, receiver, value); } function getCcSendData(address sender, address receiver, uint256 value) public pure returns (bytes memory message) { return abi.encode(sender, receiver, value); } function ccReceive(bytes calldata message) public onlyMessager { (uint value, uint receiverAndPermission, uint priceAndUpdateTime) = abi.decode(message, (uint, uint, uint)); Permission memory p; p.expiryTime = uint64(receiverAndPermission); p.receiveAllowed = uint8(receiverAndPermission>>64) != 0; p.sendAllowed = uint8(receiverAndPermission>>72) != 0; address receiver = address(uint160(receiverAndPermission>>80)); uint64 _priceToSTBTUpdateTime = uint64(priceAndUpdateTime); uint128 _priceToSTBT = uint128(priceAndUpdateTime>>64); if(!localForbidden[receiver]) { permissions[receiver] = p; } if(value != 0) { if(localForbidden[receiver]) { receiver = owner(); } _mint(receiver, value); } if(_priceToSTBTUpdateTime > priceToSTBTUpdateTime) { (priceToSTBT, priceToSTBTUpdateTime) = (_priceToSTBT, _priceToSTBTUpdateTime); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"_data","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_operatorData","type":"bytes"}],"name":"ControllerTransfer","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"message","type":"bytes"}],"name":"ccReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"ccSend","outputs":[{"internalType":"bytes","name":"message","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"_operatorData","type":"bytes"}],"name":"controllerTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"getCcSendData","outputs":[{"internalType":"bytes","name":"message","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"localForbidden","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"messager","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"","type":"address"}],"name":"permissions","outputs":[{"internalType":"bool","name":"sendAllowed","type":"bool"},{"internalType":"bool","name":"receiveAllowed","type":"bool"},{"internalType":"uint64","name":"expiryTime","type":"uint64"}],"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":"priceToSTBT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceToSTBTUpdateTime","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sendEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"b","type":"bool"}],"name":"setForbidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_messager","type":"address"}],"name":"setMessager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"components":[{"internalType":"bool","name":"sendAllowed","type":"bool"},{"internalType":"bool","name":"receiveAllowed","type":"bool"},{"internalType":"uint64","name":"expiryTime","type":"uint64"}],"internalType":"struct Permission","name":"permission","type":"tuple"}],"name":"setPermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"components":[{"internalType":"bool","name":"sendAllowed","type":"bool"},{"internalType":"bool","name":"receiveAllowed","type":"bool"},{"internalType":"uint64","name":"expiryTime","type":"uint64"}],"internalType":"struct Permission","name":"permission","type":"tuple"},{"internalType":"bool","name":"b","type":"bool"}],"name":"setPermissionAndForbidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"b","type":"bool"}],"name":"setSendEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101606040523480156200001257600080fd5b5060405162002d0f38038062002d0f8339810160408190526200003591620002e2565b6040805180820190915260018152603160f81b60208201528290819081846003620000618382620003db565b506004620000708282620003db565b5062000082915083905060056200013e565b61012052620000938160066200013e565b61014052815160208084019190912060e052815190820120610100524660a0526200012160e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05250620001363362000177565b505062000501565b60006020835110156200015e576200015683620001c9565b905062000171565b816200016b8482620003db565b5060ff90505b92915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080829050601f8151111562000200578260405163305a27a960e01b8152600401620001f79190620004a7565b60405180910390fd5b80516200020d82620004dc565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002485781810151838201526020016200022e565b50506000910152565b600082601f8301126200026357600080fd5b81516001600160401b038082111562000280576200028062000215565b604051601f8301601f19908116603f01168101908282118183101715620002ab57620002ab62000215565b81604052838152866020858801011115620002c557600080fd5b620002d88460208301602089016200022b565b9695505050505050565b60008060408385031215620002f657600080fd5b82516001600160401b03808211156200030e57600080fd5b6200031c8683870162000251565b935060208501519150808211156200033357600080fd5b50620003428582860162000251565b9150509250929050565b600181811c908216806200036157607f821691505b6020821081036200038257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003d657600081815260208120601f850160051c81016020861015620003b15750805b601f850160051c820191505b81811015620003d257828155600101620003bd565b5050505b505050565b81516001600160401b03811115620003f757620003f762000215565b6200040f816200040884546200034c565b8462000388565b602080601f8311600181146200044757600084156200042e5750858301515b600019600386901b1c1916600185901b178555620003d2565b600085815260208120601f198616915b82811015620004785788860151825594840194600190910190840162000457565b5085821015620004975787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260008251806020840152620004c88160408501602087016200022b565b601f01601f19169190910160400192915050565b80516020808301519190811015620003825760001960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516127b36200055c60003960006108ea015260006108bf01526000611802015260006117da015260006117350152600061175f0152600061178901526127b36000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c806384b0196e11610145578063d505accf116100bd578063f2fde38b1161008c578063f6ec1c4d11610071578063f6ec1c4d146105d7578063f77c4791146105ea578063fbfa0c42146105fd57600080fd5b8063f2fde38b146105b1578063f38fd7c3146105c457600080fd5b8063d505accf1461053e578063dd62ed3e14610551578063f0ff9b761461058a578063f282527a1461059e57600080fd5b806395d89b4111610114578063a457c2d7116100f9578063a457c2d7146104e4578063a9059cbb146104f7578063b69c911a1461050a57600080fd5b806395d89b41146104c9578063a0e271b6146104d157600080fd5b806384b0196e146104775780638da5cb5b146104925780638ec8eda3146104a357806392eefe9b146104b657600080fd5b80633644e515116101d85780636092d225116101a757806370a082311161018c57806370a0823114610433578063715018a61461045c5780637ecebe001461046457600080fd5b80636092d225146103ae5780636e0c2e30146103f657600080fd5b80633644e5151461036b578063395093511461037357806347e640c0146103865780634e782eed1461039b57600080fd5b806323b872dd1161021457806323b872dd146102fb5780632c78311c1461030e578063313ce56714610339578063362a647c1461034857600080fd5b806301e882081461024657806306fdde03146102b1578063095ea7b3146102c657806318160ddd146102e9575b600080fd5b6102856102543660046121bc565b600c6020526000908152604090205460ff8082169161010081049091169062010000900467ffffffffffffffff1683565b604080519315158452911515602084015267ffffffffffffffff16908201526060015b60405180910390f35b6102b9610610565b6040516102a8919061221d565b6102d96102d4366004612230565b6106a2565b60405190151581526020016102a8565b6002545b6040519081526020016102a8565b6102d961030936600461225a565b6106bc565b600a54610321906001600160a01b031681565b6040516001600160a01b0390911681526020016102a8565b604051601281526020016102a8565b6102d96103563660046121bc565b600d6020526000908152604090205460ff1681565b6102ed610776565b6102d9610381366004612230565b610785565b6103996103943660046122a8565b6107c4565b005b6103996103a93660046121bc565b610848565b6102b96103bc36600461225a565b604080516001600160a01b039485166020820152929093168284015260608083019190915282518083039091018152608090910190915290565b600e54610412906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff90911681526020016102a8565b6102ed6104413660046121bc565b6001600160a01b031660009081526020819052604090205490565b61039961087f565b6102ed6104723660046121bc565b610893565b61047f6108b1565b6040516102a897969594939291906122dc565b6009546001600160a01b0316610321565b6102b96104b136600461225a565b610956565b6103996104c43660046121bc565b610b7a565b6102b9610bb1565b6103996104df36600461239c565b610bc0565b6102d96104f2366004612230565b610c6d565b6102d9610505366004612230565b610d22565b600e5461052590600160801b900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102a8565b61039961054c3660046123e4565b610dcc565b6102ed61055f366004612457565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600e546102d990600160c01b900460ff1681565b6103996105ac3660046124ca565b610f30565b6103996105bf3660046121bc565b610ff1565b6103996105d2366004612565565b611081565b6103996105e5366004612582565b6110c2565b600b54610321906001600160a01b031681565b61039961060b3660046125c4565b6112db565b60606003805461061f906125fb565b80601f016020809104026020016040519081016040528092919081815260200182805461064b906125fb565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6000336106b0818585611360565b60019150505b92915050565b60006106c7846114b9565b6106d0836115d5565b6001600160a01b0384166000908152600d602052604090205460ff1615801561071257506001600160a01b0383166000908152600d602052604090205460ff16155b6107635760405162461bcd60e51b815260206004820152601260248201527f434357535442543a20464f5242494444454e000000000000000000000000000060448201526064015b60405180910390fd5b61076e84848461170f565b949350505050565b6000610780611728565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106b090829086906107bf90879061262f565b611360565b600b546001600160a01b0316331461081e5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b0382166000908152600c6020526040902081906108428282612650565b50505050565b610850611853565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610887611853565b61089160006118ad565b565b6001600160a01b0381166000908152600760205260408120546106b6565b6000606080828080836108e57f0000000000000000000000000000000000000000000000000000000000000000600561190c565b6109107f0000000000000000000000000000000000000000000000000000000000000000600661190c565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b600a546060906001600160a01b031633146109b35760405162461bcd60e51b815260206004820152601560248201527f434357535442543a204e4f545f4d455353414745520000000000000000000000604482015260640161075a565b600e54600160c01b900460ff16610a0c5760405162461bcd60e51b815260206004820152601660248201527f434357535442543a2053454e445f44495341424c454400000000000000000000604482015260640161075a565b81600003610a5c5760405162461bcd60e51b815260206004820152601d60248201527f434357535442543a205a45524f5f56414c55455f464f5242494444454e000000604482015260640161075a565b6001600160a01b0384166000908152600d602052604090205460ff1615610ac55760405162461bcd60e51b815260206004820152601960248201527f434357535442543a2053454e4445525f464f5242494444454e00000000000000604482015260640161075a565b6001600160a01b0383166000908152600d602052604090205460ff1615610b2e5760405162461bcd60e51b815260206004820152601b60248201527f434357535442543a2052454345495645525f464f5242494444454e0000000000604482015260640161075a565b610b37836115d5565b610b4184836119b7565b604080516001600160a01b038087166020830152851681830152606080820185905282518083039091018152608090910190915261076e565b610b82611853565b600b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606004805461061f906125fb565b600b546001600160a01b03163314610c1a5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b0383166000908152600c602052604090208290610c3e8282612650565b50506001600160a01b03929092166000908152600d60205260409020805460ff19169215159290921790915550565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610d0a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161075a565b610d178286868403611360565b506001949350505050565b6000610d2d336114b9565b610d36836115d5565b336000908152600d602052604090205460ff16158015610d6f57506001600160a01b0383166000908152600d602052604090205460ff16155b610dbb5760405162461bcd60e51b815260206004820152601260248201527f434357535442543a20464f5242494444454e0000000000000000000000000000604482015260640161075a565b610dc58383611b18565b9392505050565b83421115610e1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161075a565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610e4b8c611b26565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ea682611b4e565b90506000610eb682878787611b96565b9050896001600160a01b0316816001600160a01b031614610f195760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161075a565b610f248a8a8a611360565b50505050505050505050565b600b546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b610f95878787611bbe565b856001600160a01b0316876001600160a01b03167f972cb1430f0b696913796a2e792af07851d26129f187f39d2f5eb1a5174713238787878787604051610fe0959493929190612702565b60405180910390a350505050505050565b610ff9611853565b6001600160a01b0381166110755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161075a565b61107e816118ad565b50565b611089611853565b600e8054911515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600a546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820152601560248201527f434357535442543a204e4f545f4d455353414745520000000000000000000000604482015260640161075a565b6000808061112c8486018661273b565b6040805160608101825267ffffffffffffffff84168183015283821c60ff9081161515602080840191909152604886901c821615158352605086901c6001600160a01b0381166000908152600d90925290849020549699509497509295509385929183901c9116611200576001600160a01b0383166000908152600c602090815260409182902086518154928801519388015167ffffffffffffffff16620100000269ffffffffffffffff0000199415156101000261ff00199215159290921661ffff199094169390931717929092161790555b8615611240576001600160a01b0383166000908152600d602052604090205460ff1615611236576009546001600160a01b031692505b6112408388611dac565b600e5467ffffffffffffffff600160801b909104811690831611156112d057600e80547fffffffffffffffff00000000000000000000000000000000000000000000000016600160801b67ffffffffffffffff8516027fffffffffffffffffffffffffffffffff0000000000000000000000000000000016176fffffffffffffffffffffffffffffffff83161790555b505050505050505050565b600b546001600160a01b031633146113355760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6001600160a01b0383166113db5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0382166114575760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0381166000908152600c60209081526040918290208251606081018452905460ff8082161515808452610100830490911615159383019390935262010000900467ffffffffffffffff169281019290925261155d5760405162461bcd60e51b815260206004820152601b60248201527f434357535442543a204e4f5f53454e445f5045524d495353494f4e0000000000604482015260640161075a565b604081015167ffffffffffffffff161580611585575042816040015167ffffffffffffffff16115b6115d15760405162461bcd60e51b815260206004820181905260248201527f434357535442543a2053454e445f5045524d495353494f4e5f45585049524544604482015260640161075a565b5050565b6001600160a01b0381166000908152600c60209081526040918290208251606081018452905460ff80821615158352610100820416151592820183905262010000900467ffffffffffffffff16928101929092526116755760405162461bcd60e51b815260206004820152601e60248201527f434357535442543a204e4f5f524543454956455f5045524d495353494f4e0000604482015260640161075a565b604081015167ffffffffffffffff16158061169d575042816040015167ffffffffffffffff16115b6115d15760405162461bcd60e51b815260206004820152602360248201527f434357535442543a20524543454956455f5045524d495353494f4e5f4558504960448201527f5245440000000000000000000000000000000000000000000000000000000000606482015260840161075a565b60003361171d858285611e6b565b610d17858585611bbe565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561178157507f000000000000000000000000000000000000000000000000000000000000000046145b156117ab57507f000000000000000000000000000000000000000000000000000000000000000090565b610780604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6009546001600160a01b031633146108915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161075a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff83146119265761191f83611ef7565b90506106b6565b818054611932906125fb565b80601f016020809104026020016040519081016040528092919081815260200182805461195e906125fb565b80156119ab5780601f10611980576101008083540402835291602001916119ab565b820191906000526020600020905b81548152906001019060200180831161198e57829003601f168201915b505050505090506106b6565b6001600160a01b038216611a335760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03821660009081526020819052604090205481811015611ac25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114ac565b6000336106b0818585611bbe565b6001600160a01b03811660009081526007602052604090208054600181018255905b50919050565b60006106b6611b5b611728565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000611ba787878787611f36565b91509150611bb481611ffa565b5095945050505050565b6001600160a01b038316611c3a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b038216611cb65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03831660009081526020819052604090205481811015611d455760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b6001600160a01b038216611e025760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161075a565b8060026000828254611e14919061262f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108425781811015611eea5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161075a565b6108428484848403611360565b60606000611f048361215f565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f6d5750600090506003611ff1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611fc1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fea57600060019250925050611ff1565b9150600090505b94509492505050565b600081600481111561200e5761200e612767565b036120165750565b600181600481111561202a5761202a612767565b036120775760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161075a565b600281600481111561208b5761208b612767565b036120d85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161075a565b60038160048111156120ec576120ec612767565b0361107e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b600060ff8216601f8111156106b6576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b03811681146121b757600080fd5b919050565b6000602082840312156121ce57600080fd5b610dc5826121a0565b6000815180845260005b818110156121fd576020818501810151868301820152016121e1565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610dc560208301846121d7565b6000806040838503121561224357600080fd5b61224c836121a0565b946020939093013593505050565b60008060006060848603121561226f57600080fd5b612278846121a0565b9250612286602085016121a0565b9150604084013590509250925092565b600060608284031215611b4857600080fd5b600080608083850312156122bb57600080fd5b6122c4836121a0565b91506122d38460208501612296565b90509250929050565b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e08184015261231860e084018a6121d7565b838103604085015261232a818a6121d7565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561237c57835183529284019291840191600101612360565b50909c9b505050505050505050505050565b801515811461107e57600080fd5b600080600060a084860312156123b157600080fd5b6123ba846121a0565b92506123c98560208601612296565b915060808401356123d98161238e565b809150509250925092565b600080600080600080600060e0888a0312156123ff57600080fd5b612408886121a0565b9650612416602089016121a0565b95506040880135945060608801359350608088013560ff8116811461243a57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561246a57600080fd5b612473836121a0565b91506122d3602084016121a0565b60008083601f84011261249357600080fd5b50813567ffffffffffffffff8111156124ab57600080fd5b6020830191508360208285010111156124c357600080fd5b9250929050565b600080600080600080600060a0888a0312156124e557600080fd5b6124ee886121a0565b96506124fc602089016121a0565b955060408801359450606088013567ffffffffffffffff8082111561252057600080fd5b61252c8b838c01612481565b909650945060808a013591508082111561254557600080fd5b506125528a828b01612481565b989b979a50959850939692959293505050565b60006020828403121561257757600080fd5b8135610dc58161238e565b6000806020838503121561259557600080fd5b823567ffffffffffffffff8111156125ac57600080fd5b6125b885828601612481565b90969095509350505050565b600080604083850312156125d757600080fd5b6125e0836121a0565b915060208301356125f08161238e565b809150509250929050565b600181811c9082168061260f57607f821691505b602082108103611b4857634e487b7160e01b600052602260045260246000fd5b808201808211156106b657634e487b7160e01b600052601160045260246000fd5b813561265b8161238e565b815460ff19811691151560ff169182178355602084013561267b8161238e565b61ff0090151560081b1661ffff198216831781178455604085013567ffffffffffffffff811681146126ac57600080fd5b69ffffffffffffffff00008160101b168469ffffffffffffffffffff198516178317178555505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b85815260606020820152600061271c6060830186886126d9565b828103604084015261272f8185876126d9565b98975050505050505050565b60008060006060848603121561275057600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d9fed3d1baf636121a5707495dd0d52df015ea358e4ec5d9439d66431fc0066e64736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000c577261707065642053544254000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055753544254000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102415760003560e01c806384b0196e11610145578063d505accf116100bd578063f2fde38b1161008c578063f6ec1c4d11610071578063f6ec1c4d146105d7578063f77c4791146105ea578063fbfa0c42146105fd57600080fd5b8063f2fde38b146105b1578063f38fd7c3146105c457600080fd5b8063d505accf1461053e578063dd62ed3e14610551578063f0ff9b761461058a578063f282527a1461059e57600080fd5b806395d89b4111610114578063a457c2d7116100f9578063a457c2d7146104e4578063a9059cbb146104f7578063b69c911a1461050a57600080fd5b806395d89b41146104c9578063a0e271b6146104d157600080fd5b806384b0196e146104775780638da5cb5b146104925780638ec8eda3146104a357806392eefe9b146104b657600080fd5b80633644e515116101d85780636092d225116101a757806370a082311161018c57806370a0823114610433578063715018a61461045c5780637ecebe001461046457600080fd5b80636092d225146103ae5780636e0c2e30146103f657600080fd5b80633644e5151461036b578063395093511461037357806347e640c0146103865780634e782eed1461039b57600080fd5b806323b872dd1161021457806323b872dd146102fb5780632c78311c1461030e578063313ce56714610339578063362a647c1461034857600080fd5b806301e882081461024657806306fdde03146102b1578063095ea7b3146102c657806318160ddd146102e9575b600080fd5b6102856102543660046121bc565b600c6020526000908152604090205460ff8082169161010081049091169062010000900467ffffffffffffffff1683565b604080519315158452911515602084015267ffffffffffffffff16908201526060015b60405180910390f35b6102b9610610565b6040516102a8919061221d565b6102d96102d4366004612230565b6106a2565b60405190151581526020016102a8565b6002545b6040519081526020016102a8565b6102d961030936600461225a565b6106bc565b600a54610321906001600160a01b031681565b6040516001600160a01b0390911681526020016102a8565b604051601281526020016102a8565b6102d96103563660046121bc565b600d6020526000908152604090205460ff1681565b6102ed610776565b6102d9610381366004612230565b610785565b6103996103943660046122a8565b6107c4565b005b6103996103a93660046121bc565b610848565b6102b96103bc36600461225a565b604080516001600160a01b039485166020820152929093168284015260608083019190915282518083039091018152608090910190915290565b600e54610412906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff90911681526020016102a8565b6102ed6104413660046121bc565b6001600160a01b031660009081526020819052604090205490565b61039961087f565b6102ed6104723660046121bc565b610893565b61047f6108b1565b6040516102a897969594939291906122dc565b6009546001600160a01b0316610321565b6102b96104b136600461225a565b610956565b6103996104c43660046121bc565b610b7a565b6102b9610bb1565b6103996104df36600461239c565b610bc0565b6102d96104f2366004612230565b610c6d565b6102d9610505366004612230565b610d22565b600e5461052590600160801b900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102a8565b61039961054c3660046123e4565b610dcc565b6102ed61055f366004612457565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600e546102d990600160c01b900460ff1681565b6103996105ac3660046124ca565b610f30565b6103996105bf3660046121bc565b610ff1565b6103996105d2366004612565565b611081565b6103996105e5366004612582565b6110c2565b600b54610321906001600160a01b031681565b61039961060b3660046125c4565b6112db565b60606003805461061f906125fb565b80601f016020809104026020016040519081016040528092919081815260200182805461064b906125fb565b80156106985780601f1061066d57610100808354040283529160200191610698565b820191906000526020600020905b81548152906001019060200180831161067b57829003601f168201915b5050505050905090565b6000336106b0818585611360565b60019150505b92915050565b60006106c7846114b9565b6106d0836115d5565b6001600160a01b0384166000908152600d602052604090205460ff1615801561071257506001600160a01b0383166000908152600d602052604090205460ff16155b6107635760405162461bcd60e51b815260206004820152601260248201527f434357535442543a20464f5242494444454e000000000000000000000000000060448201526064015b60405180910390fd5b61076e84848461170f565b949350505050565b6000610780611728565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106b090829086906107bf90879061262f565b611360565b600b546001600160a01b0316331461081e5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b0382166000908152600c6020526040902081906108428282612650565b50505050565b610850611853565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610887611853565b61089160006118ad565b565b6001600160a01b0381166000908152600760205260408120546106b6565b6000606080828080836108e57f577261707065642053544254000000000000000000000000000000000000000c600561190c565b6109107f3100000000000000000000000000000000000000000000000000000000000001600661190c565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b600a546060906001600160a01b031633146109b35760405162461bcd60e51b815260206004820152601560248201527f434357535442543a204e4f545f4d455353414745520000000000000000000000604482015260640161075a565b600e54600160c01b900460ff16610a0c5760405162461bcd60e51b815260206004820152601660248201527f434357535442543a2053454e445f44495341424c454400000000000000000000604482015260640161075a565b81600003610a5c5760405162461bcd60e51b815260206004820152601d60248201527f434357535442543a205a45524f5f56414c55455f464f5242494444454e000000604482015260640161075a565b6001600160a01b0384166000908152600d602052604090205460ff1615610ac55760405162461bcd60e51b815260206004820152601960248201527f434357535442543a2053454e4445525f464f5242494444454e00000000000000604482015260640161075a565b6001600160a01b0383166000908152600d602052604090205460ff1615610b2e5760405162461bcd60e51b815260206004820152601b60248201527f434357535442543a2052454345495645525f464f5242494444454e0000000000604482015260640161075a565b610b37836115d5565b610b4184836119b7565b604080516001600160a01b038087166020830152851681830152606080820185905282518083039091018152608090910190915261076e565b610b82611853565b600b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60606004805461061f906125fb565b600b546001600160a01b03163314610c1a5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b0383166000908152600c602052604090208290610c3e8282612650565b50506001600160a01b03929092166000908152600d60205260409020805460ff19169215159290921790915550565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610d0a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161075a565b610d178286868403611360565b506001949350505050565b6000610d2d336114b9565b610d36836115d5565b336000908152600d602052604090205460ff16158015610d6f57506001600160a01b0383166000908152600d602052604090205460ff16155b610dbb5760405162461bcd60e51b815260206004820152601260248201527f434357535442543a20464f5242494444454e0000000000000000000000000000604482015260640161075a565b610dc58383611b18565b9392505050565b83421115610e1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161075a565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610e4b8c611b26565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610ea682611b4e565b90506000610eb682878787611b96565b9050896001600160a01b0316816001600160a01b031614610f195760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161075a565b610f248a8a8a611360565b50505050505050505050565b600b546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b610f95878787611bbe565b856001600160a01b0316876001600160a01b03167f972cb1430f0b696913796a2e792af07851d26129f187f39d2f5eb1a5174713238787878787604051610fe0959493929190612702565b60405180910390a350505050505050565b610ff9611853565b6001600160a01b0381166110755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161075a565b61107e816118ad565b50565b611089611853565b600e8054911515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600a546001600160a01b0316331461111c5760405162461bcd60e51b815260206004820152601560248201527f434357535442543a204e4f545f4d455353414745520000000000000000000000604482015260640161075a565b6000808061112c8486018661273b565b6040805160608101825267ffffffffffffffff84168183015283821c60ff9081161515602080840191909152604886901c821615158352605086901c6001600160a01b0381166000908152600d90925290849020549699509497509295509385929183901c9116611200576001600160a01b0383166000908152600c602090815260409182902086518154928801519388015167ffffffffffffffff16620100000269ffffffffffffffff0000199415156101000261ff00199215159290921661ffff199094169390931717929092161790555b8615611240576001600160a01b0383166000908152600d602052604090205460ff1615611236576009546001600160a01b031692505b6112408388611dac565b600e5467ffffffffffffffff600160801b909104811690831611156112d057600e80547fffffffffffffffff00000000000000000000000000000000000000000000000016600160801b67ffffffffffffffff8516027fffffffffffffffffffffffffffffffff0000000000000000000000000000000016176fffffffffffffffffffffffffffffffff83161790555b505050505050505050565b600b546001600160a01b031633146113355760405162461bcd60e51b815260206004820152601760248201527f434357535442543a204e4f545f434f4e54524f4c4c4552000000000000000000604482015260640161075a565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6001600160a01b0383166113db5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0382166114575760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0381166000908152600c60209081526040918290208251606081018452905460ff8082161515808452610100830490911615159383019390935262010000900467ffffffffffffffff169281019290925261155d5760405162461bcd60e51b815260206004820152601b60248201527f434357535442543a204e4f5f53454e445f5045524d495353494f4e0000000000604482015260640161075a565b604081015167ffffffffffffffff161580611585575042816040015167ffffffffffffffff16115b6115d15760405162461bcd60e51b815260206004820181905260248201527f434357535442543a2053454e445f5045524d495353494f4e5f45585049524544604482015260640161075a565b5050565b6001600160a01b0381166000908152600c60209081526040918290208251606081018452905460ff80821615158352610100820416151592820183905262010000900467ffffffffffffffff16928101929092526116755760405162461bcd60e51b815260206004820152601e60248201527f434357535442543a204e4f5f524543454956455f5045524d495353494f4e0000604482015260640161075a565b604081015167ffffffffffffffff16158061169d575042816040015167ffffffffffffffff16115b6115d15760405162461bcd60e51b815260206004820152602360248201527f434357535442543a20524543454956455f5045524d495353494f4e5f4558504960448201527f5245440000000000000000000000000000000000000000000000000000000000606482015260840161075a565b60003361171d858285611e6b565b610d17858585611bbe565b6000306001600160a01b037f000000000000000000000000cc262877981abeb6f261fcae73255ebff8ddf7a51614801561178157507f000000000000000000000000000000000000000000000000000000000000a4b146145b156117ab57507f07378cedb901890c94ce10e3707773178f28503e0b5c2f6b8b93571b06e0801b90565b610780604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f7c672b928b84cd4cd286470e19271854887329110e215f56d2cf5f58740ff57c918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6009546001600160a01b031633146108915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161075a565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff83146119265761191f83611ef7565b90506106b6565b818054611932906125fb565b80601f016020809104026020016040519081016040528092919081815260200182805461195e906125fb565b80156119ab5780601f10611980576101008083540402835291602001916119ab565b820191906000526020600020905b81548152906001019060200180831161198e57829003601f168201915b505050505090506106b6565b6001600160a01b038216611a335760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03821660009081526020819052604090205481811015611ac25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114ac565b6000336106b0818585611bbe565b6001600160a01b03811660009081526007602052604090208054600181018255905b50919050565b60006106b6611b5b611728565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000611ba787878787611f36565b91509150611bb481611ffa565b5095945050505050565b6001600160a01b038316611c3a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b038216611cb65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03831660009081526020819052604090205481811015611d455760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161075a565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b6001600160a01b038216611e025760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161075a565b8060026000828254611e14919061262f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146108425781811015611eea5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161075a565b6108428484848403611360565b60606000611f048361215f565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611f6d5750600090506003611ff1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611fc1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611fea57600060019250925050611ff1565b9150600090505b94509492505050565b600081600481111561200e5761200e612767565b036120165750565b600181600481111561202a5761202a612767565b036120775760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161075a565b600281600481111561208b5761208b612767565b036120d85760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161075a565b60038160048111156120ec576120ec612767565b0361107e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161075a565b600060ff8216601f8111156106b6576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b03811681146121b757600080fd5b919050565b6000602082840312156121ce57600080fd5b610dc5826121a0565b6000815180845260005b818110156121fd576020818501810151868301820152016121e1565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610dc560208301846121d7565b6000806040838503121561224357600080fd5b61224c836121a0565b946020939093013593505050565b60008060006060848603121561226f57600080fd5b612278846121a0565b9250612286602085016121a0565b9150604084013590509250925092565b600060608284031215611b4857600080fd5b600080608083850312156122bb57600080fd5b6122c4836121a0565b91506122d38460208501612296565b90509250929050565b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e08184015261231860e084018a6121d7565b838103604085015261232a818a6121d7565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561237c57835183529284019291840191600101612360565b50909c9b505050505050505050505050565b801515811461107e57600080fd5b600080600060a084860312156123b157600080fd5b6123ba846121a0565b92506123c98560208601612296565b915060808401356123d98161238e565b809150509250925092565b600080600080600080600060e0888a0312156123ff57600080fd5b612408886121a0565b9650612416602089016121a0565b95506040880135945060608801359350608088013560ff8116811461243a57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561246a57600080fd5b612473836121a0565b91506122d3602084016121a0565b60008083601f84011261249357600080fd5b50813567ffffffffffffffff8111156124ab57600080fd5b6020830191508360208285010111156124c357600080fd5b9250929050565b600080600080600080600060a0888a0312156124e557600080fd5b6124ee886121a0565b96506124fc602089016121a0565b955060408801359450606088013567ffffffffffffffff8082111561252057600080fd5b61252c8b838c01612481565b909650945060808a013591508082111561254557600080fd5b506125528a828b01612481565b989b979a50959850939692959293505050565b60006020828403121561257757600080fd5b8135610dc58161238e565b6000806020838503121561259557600080fd5b823567ffffffffffffffff8111156125ac57600080fd5b6125b885828601612481565b90969095509350505050565b600080604083850312156125d757600080fd5b6125e0836121a0565b915060208301356125f08161238e565b809150509250929050565b600181811c9082168061260f57607f821691505b602082108103611b4857634e487b7160e01b600052602260045260246000fd5b808201808211156106b657634e487b7160e01b600052601160045260246000fd5b813561265b8161238e565b815460ff19811691151560ff169182178355602084013561267b8161238e565b61ff0090151560081b1661ffff198216831781178455604085013567ffffffffffffffff811681146126ac57600080fd5b69ffffffffffffffff00008160101b168469ffffffffffffffffffff198516178317178555505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b85815260606020820152600061271c6060830186886126d9565b828103604084015261272f8185876126d9565b98975050505050505050565b60008060006060848603121561275057600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220d9fed3d1baf636121a5707495dd0d52df015ea358e4ec5d9439d66431fc0066e64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000c577261707065642053544254000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055753544254000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Wrapped STBT
Arg [1] : symbol_ (string): WSTBT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [3] : 5772617070656420535442540000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 5753544254000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
90707:5234:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90830:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;619:14:1;;612:22;594:41;;678:14;;671:22;666:2;651:18;;644:50;742:18;730:31;710:18;;;703:59;582:2;567:18;90830:49:0;;;;;;;;21116:100;;;:::i;:::-;;;;;;;:::i;23476:201::-;;;;;;:::i;:::-;;:::i;:::-;;;1850:14:1;;1843:22;1825:41;;1813:2;1798:18;23476:201:0;1685:187:1;22245:108:0;22333:12;;22245:108;;;2023:25:1;;;2011:2;1996:18;22245:108:0;1877:177:1;92824:364:0;;;;;;:::i;:::-;;:::i;90768:23::-;;;;;-1:-1:-1;;;;;90768:23:0;;;;;;-1:-1:-1;;;;;2556:55:1;;;2538:74;;2526:2;2511:18;90768:23:0;2392:226:1;22087:93:0;;;22170:2;2765:36:1;;2753:2;2738:18;22087:93:0;2623:184:1;90918:46:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;81270:115;;;:::i;24927:238::-;;;;;;:::i;:::-;;:::i;92112:146::-;;;;;;:::i;:::-;;:::i;:::-;;91796:96;;;;;;:::i;:::-;;:::i;94698:176::-;;;;;;:::i;:::-;94831:35;;;-1:-1:-1;;;;;11818:15:1;;;94831:35:0;;;11800:34:1;11870:15;;;;11850:18;;;11843:43;94791:20:0;11902:18:1;;;11895:34;;;;94831:35:0;;;;;;;;;;11712:18:1;;;;94831:35:0;;;;94698:176;91030:26;;;;;;;;;;;;3880:34:1;3868:47;;;3850:66;;3838:2;3823:18;91030:26:0;3704:218:1;22416:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;22517:18:0;22490:7;22517:18;;;;;;;;;;;;22416:127;14184:103;;;:::i;81012:128::-;;;;;;:::i;:::-;;:::i;77744:657::-;;;:::i;:::-;;;;;;;;;;;;;:::i;13543:87::-;13616:6;;-1:-1:-1;;;;;13616:6:0;13543:87;;94167:523;;;;;;:::i;:::-;;:::i;91684:104::-;;;;;;:::i;:::-;;:::i;21335:::-;;;:::i;91900:204::-;;;;;;:::i;:::-;;:::i;25668:436::-;;;;;;:::i;:::-;;:::i;92480:336::-;;;;;;:::i;:::-;;:::i;91063:35::-;;;;;-1:-1:-1;;;91063:35:0;;;;;;;;;6018:18:1;6006:31;;;5988:50;;5976:2;5961:18;91063:35:0;5844:200:1;80301:645:0;;;;;;:::i;:::-;;:::i;23005:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;23121:18:0;;;23094:7;23121:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;23005:151;91105:23;;;;;-1:-1:-1;;;91105:23:0;;;;;;93814:272;;;;;;:::i;:::-;;:::i;14442:201::-;;;;;;:::i;:::-;;:::i;92389:83::-;;;;;;:::i;:::-;;:::i;94882:1056::-;;;;;;:::i;:::-;;:::i;90798:25::-;;;;;-1:-1:-1;;;;;90798:25:0;;;92266:115;;;;;;:::i;:::-;;:::i;21116:100::-;21170:13;21203:5;21196:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21116:100;:::o;23476:201::-;23559:4;12119:10;23615:32;12119:10;23631:7;23640:6;23615:8;:32::i;:::-;23665:4;23658:11;;;23476:201;;;;;:::o;92824:364::-;92925:4;92942:29;92963:7;92942:20;:29::i;:::-;92982:35;93006:10;92982:23;:35::i;:::-;-1:-1:-1;;;;;93037:23:0;;;;;;:14;:23;;;;;;;;93036:24;:55;;;;-1:-1:-1;;;;;;93065:26:0;;;;;;:14;:26;;;;;;;;93064:27;93036:55;93028:86;;;;-1:-1:-1;;;93028:86:0;;9928:2:1;93028:86:0;;;9910:21:1;9967:2;9947:18;;;9940:30;10006:20;9986:18;;;9979:48;10044:18;;93028:86:0;;;;;;;;;93132:48;93151:7;93160:10;93172:7;93132:18;:48::i;:::-;93125:55;92824:364;-1:-1:-1;;;;92824:364:0:o;81270:115::-;81330:7;81357:20;:18;:20::i;:::-;81350:27;;81270:115;:::o;24927:238::-;12119:10;25015:4;23121:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;23121:27:0;;;;;;;;;;25015:4;;12119:10;25071:64;;12119:10;;23121:27;;25096:38;;25124:10;;25096:38;:::i;:::-;25071:8;:64::i;92112:146::-;91499:10;;-1:-1:-1;;;;;91499:10:0;91485;:24;91477:60;;;;-1:-1:-1;;;91477:60:0;;10559:2:1;91477:60:0;;;10541:21:1;10598:2;10578:18;;;10571:30;10637:25;10617:18;;;10610:53;10680:18;;91477:60:0;10357:347:1;91477:60:0;-1:-1:-1;;;;;92217:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;92240:10;;92217:33:::1;92240:10:::0;92217:20;:33:::1;:::i;:::-;-1:-1:-1::0;;;;92112:146:0:o;91796:96::-;13429:13;:11;:13::i;:::-;91864:8:::1;:20:::0;;-1:-1:-1;;91864:20:0::1;-1:-1:-1::0;;;;;91864:20:0;;;::::1;::::0;;;::::1;::::0;;91796:96::o;14184:103::-;13429:13;:11;:13::i;:::-;14249:30:::1;14276:1;14249:18;:30::i;:::-;14184:103::o:0;81012:128::-;-1:-1:-1;;;;;81108:14:0;;81081:7;81108:14;;;:7;:14;;;;;35555;81108:24;35463:114;77744:657;77865:13;77893:18;;77865:13;;;77893:18;78167:41;:5;78194:13;78167:26;:41::i;:::-;78223:47;:8;78253:16;78223:29;:47::i;:::-;78366:16;;;78349:1;78366:16;;;;;;;;;78114:279;;;;-1:-1:-1;78114:279:0;;-1:-1:-1;78285:13:0;;-1:-1:-1;78321:4:0;;-1:-1:-1;78349:1:0;-1:-1:-1;78366:16:0;-1:-1:-1;78114:279:0;-1:-1:-1;77744:657:0:o;94167:523::-;91622:8;;94261:20;;-1:-1:-1;;;;;91622:8:0;91608:10;:22;91600:56;;;;-1:-1:-1;;;91600:56:0;;12331:2:1;91600:56:0;;;12313:21:1;12370:2;12350:18;;;12343:30;12409:23;12389:18;;;12382:51;12450:18;;91600:56:0;12129:345:1;91600:56:0;94302:11:::1;::::0;-1:-1:-1;;;94302:11:0;::::1;;;94294:46;;;::::0;-1:-1:-1;;;94294:46:0;;12681:2:1;94294:46:0::1;::::0;::::1;12663:21:1::0;12720:2;12700:18;;;12693:30;12759:24;12739:18;;;12732:52;12801:18;;94294:46:0::1;12479:346:1::0;94294:46:0::1;94359:5;94368:1;94359:10:::0;94351:52:::1;;;::::0;-1:-1:-1;;;94351:52:0;;13032:2:1;94351:52:0::1;::::0;::::1;13014:21:1::0;13071:2;13051:18;;;13044:30;13110:31;13090:18;;;13083:59;13159:18;;94351:52:0::1;12830:353:1::0;94351:52:0::1;-1:-1:-1::0;;;;;94423:22:0;::::1;;::::0;;;:14:::1;:22;::::0;;;;;::::1;;94422:23;94414:61;;;::::0;-1:-1:-1;;;94414:61:0;;13390:2:1;94414:61:0::1;::::0;::::1;13372:21:1::0;13429:2;13409:18;;;13402:30;13468:27;13448:18;;;13441:55;13513:18;;94414:61:0::1;13188:349:1::0;94414:61:0::1;-1:-1:-1::0;;;;;94495:24:0;::::1;;::::0;;;:14:::1;:24;::::0;;;;;::::1;;94494:25;94486:65;;;::::0;-1:-1:-1;;;94486:65:0;;13744:2:1;94486:65:0::1;::::0;::::1;13726:21:1::0;13783:2;13763:18;;;13756:30;13822:29;13802:18;;;13795:57;13869:18;;94486:65:0::1;13542:351:1::0;94486:65:0::1;94562:33;94586:8;94562:23;:33::i;:::-;94606:20;94612:6;94620:5;94606;:20::i;:::-;94831:35:::0;;;-1:-1:-1;;;;;11818:15:1;;;94831:35:0;;;11800:34:1;11870:15;;11850:18;;;11843:43;94791:20:0;11902:18:1;;;11895:34;;;94831:35:0;;;;;;;;;;11712:18:1;;;;94831:35:0;;;94644:38:::1;94698:176:::0;91684:104;13429:13;:11;:13::i;:::-;91756:10:::1;:24:::0;;-1:-1:-1;;91756:24:0::1;-1:-1:-1::0;;;;;91756:24:0;;;::::1;::::0;;;::::1;::::0;;91684:104::o;21335:::-;21391:13;21424:7;21417:14;;;;;:::i;91900:204::-;91499:10;;-1:-1:-1;;;;;91499:10:0;91485;:24;91477:60;;;;-1:-1:-1;;;91477:60:0;;10559:2:1;91477:60:0;;;10541:21:1;10598:2;10578:18;;;10571:30;10637:25;10617:18;;;10610:53;10680:18;;91477:60:0;10357:347:1;91477:60:0;-1:-1:-1;;;;;92025:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;92048:10;;92025:33:::1;92048:10:::0;92025:20;:33:::1;:::i;:::-;-1:-1:-1::0;;;;;;;92069:23:0;;;::::1;;::::0;;;:14:::1;:23;::::0;;;;:27;;-1:-1:-1;;92069:27:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;-1:-1:-1;91900:204:0:o;25668:436::-;12119:10;25761:4;23121:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;23121:27:0;;;;;;;;;;25761:4;;12119:10;25908:15;25888:16;:35;;25880:85;;;;-1:-1:-1;;;25880:85:0;;14100:2:1;25880:85:0;;;14082:21:1;14139:2;14119:18;;;14112:30;14178:34;14158:18;;;14151:62;14249:7;14229:18;;;14222:35;14274:19;;25880:85:0;13898:401:1;25880:85:0;26001:60;26010:5;26017:7;26045:15;26026:16;:34;26001:8;:60::i;:::-;-1:-1:-1;26092:4:0;;25668:436;-1:-1:-1;;;;25668:436:0:o;92480:336::-;92560:4;92577:32;92598:10;92577:20;:32::i;:::-;92620:35;92644:10;92620:23;:35::i;:::-;92690:10;92675:26;;;;:14;:26;;;;;;;;92674:27;:58;;;;-1:-1:-1;;;;;;92706:26:0;;;;;;:14;:26;;;;;;;;92705:27;92674:58;92666:89;;;;-1:-1:-1;;;92666:89:0;;9928:2:1;92666:89:0;;;9910:21:1;9967:2;9947:18;;;9940:30;10006:20;9986:18;;;9979:48;10044:18;;92666:89:0;9726:342:1;92666:89:0;92773:35;92788:10;92800:7;92773:14;:35::i;:::-;92766:42;92480:336;-1:-1:-1;;;92480:336:0:o;80301:645::-;80545:8;80526:15;:27;;80518:69;;;;-1:-1:-1;;;80518:69:0;;14506:2:1;80518:69:0;;;14488:21:1;14545:2;14525:18;;;14518:30;14584:31;14564:18;;;14557:59;14633:18;;80518:69:0;14304:353:1;80518:69:0;80600:18;79476:95;80660:5;80667:7;80676:5;80683:16;80693:5;80683:9;:16::i;:::-;80631:79;;;;;;14949:25:1;;;;-1:-1:-1;;;;;15071:15:1;;;15051:18;;;15044:43;15123:15;;;;15103:18;;;15096:43;15155:18;;;15148:34;15198:19;;;15191:35;15242:19;;;15235:35;;;14921:19;;80631:79:0;;;;;;;;;;;;80621:90;;;;;;80600:111;;80724:12;80739:28;80756:10;80739:16;:28::i;:::-;80724:43;;80780:14;80797:28;80811:4;80817:1;80820;80823;80797:13;:28::i;:::-;80780:45;;80854:5;-1:-1:-1;;;;;80844:15:0;:6;-1:-1:-1;;;;;80844:15:0;;80836:58;;;;-1:-1:-1;;;80836:58:0;;15483:2:1;80836:58:0;;;15465:21:1;15522:2;15502:18;;;15495:30;15561:32;15541:18;;;15534:60;15611:18;;80836:58:0;15281:354:1;80836:58:0;80907:31;80916:5;80923:7;80932:5;80907:8;:31::i;:::-;80507:439;;;80301:645;;;;;;;:::o;93814:272::-;91499:10;;-1:-1:-1;;;;;91499:10:0;91485;:24;91477:60;;;;-1:-1:-1;;;91477:60:0;;10559:2:1;91477:60:0;;;10541:21:1;10598:2;10578:18;;;10571:30;10637:25;10617:18;;;10610:53;10680:18;;91477:60:0;10357:347:1;91477:60:0;93973:29:::1;93983:5;93990:3;93995:6;93973:9;:29::i;:::-;94044:3;-1:-1:-1::0;;;;;94018:60:0::1;94037:5;-1:-1:-1::0;;;;;94018:60:0::1;;94049:6;94057:5;;94064:13;;94018:60;;;;;;;;;;:::i;:::-;;;;;;;;93814:272:::0;;;;;;;:::o;14442:201::-;13429:13;:11;:13::i;:::-;-1:-1:-1;;;;;14531:22:0;::::1;14523:73;;;::::0;-1:-1:-1;;;14523:73:0;;16620:2:1;14523:73:0::1;::::0;::::1;16602:21:1::0;16659:2;16639:18;;;16632:30;16698:34;16678:18;;;16671:62;16769:8;16749:18;;;16742:36;16795:19;;14523:73:0::1;16418:402:1::0;14523:73:0::1;14607:28;14626:8;14607:18;:28::i;:::-;14442:201:::0;:::o;92389:83::-;13429:13;:11;:13::i;:::-;92449:11:::1;:15:::0;;;::::1;;-1:-1:-1::0;;;92449:15:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;92389:83::o;94882:1056::-;91622:8;;-1:-1:-1;;;;;91622:8:0;91608:10;:22;91600:56;;;;-1:-1:-1;;;91600:56:0;;12331:2:1;91600:56:0;;;12313:21:1;12370:2;12350:18;;;12343:30;12409:23;12389:18;;;12382:51;12450:18;;91600:56:0;12129:345:1;91600:56:0;94957:10:::1;::::0;;95037:39:::1;::::0;;::::1;95048:7:::0;95037:39:::1;:::i;:::-;-1:-1:-1::0;;;;;;;;95117:44:0::1;::::0;::::1;-1:-1:-1::0;;;95117:44:0;95197:25;;::::1;95191:37;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;;;95172:56:0;;;;95284:2:::1;95261:25:::0;;::::1;95255:37:::0;::::1;::::0;::::1;95239:53:::0;;95361:2:::1;95338:25:::0;;::::1;-1:-1:-1::0;;;;;95516:24:0;::::1;-1:-1:-1::0;95516:24:0;;;:14:::1;:24:::0;;;;;;;;94956:120;;-1:-1:-1;94956:120:0;;-1:-1:-1;94956:120:0;;-1:-1:-1;;94956:120:0;;95476:22;;;::::1;::::0;95516:24:::1;95512:82;;-1:-1:-1::0;;;;;95557:21:0;::::1;;::::0;;;:11:::1;:21;::::0;;;;;;;;:25;;;;;;::::1;::::0;;;::::1;::::0;::::1;;::::0;::::1;-1:-1:-1::0;;95557:25:0;::::1;;;;-1:-1:-1::0;;95557:25:0;::::1;;::::0;;;;-1:-1:-1;;95557:25:0;;;;;;;::::1;::::0;;;::::1;;::::0;;95512:82:::1;95607:10:::0;;95604:160:::1;;-1:-1:-1::0;;;;;95637:24:0;::::1;;::::0;;;:14:::1;:24;::::0;;;;;::::1;;95634:82;;;13616:6:::0;;-1:-1:-1;;;;;13616:6:0;95682:18:::1;;95634:82;95730:22;95736:8;95746:5;95730;:22::i;:::-;95804:21;::::0;::::1;-1:-1:-1::0;;;95804:21:0;;::::1;::::0;::::1;95779:46:::0;;::::1;;95776:155;;;95843:11;95842:77:::0;;;;-1:-1:-1;;;95842:77:0::1;::::0;::::1;;::::0;;;::::1;::::0;::::1;;::::0;;95776:155:::1;94945:993;;;;;;;94882:1056:::0;;:::o;92266:115::-;91499:10;;-1:-1:-1;;;;;91499:10:0;91485;:24;91477:60;;;;-1:-1:-1;;;91477:60:0;;10559:2:1;91477:60:0;;;10541:21:1;10598:2;10578:18;;;10571:30;10637:25;10617:18;;;10610:53;10680:18;;91477:60:0;10357:347:1;91477:60:0;-1:-1:-1;;;;;92346:23:0;;;::::1;;::::0;;;:14:::1;:23;::::0;;;;:27;;-1:-1:-1;;92346:27:0::1;::::0;::::1;;::::0;;;::::1;::::0;;92266:115::o;29661:346::-;-1:-1:-1;;;;;29763:19:0;;29755:68;;;;-1:-1:-1;;;29755:68:0;;17348:2:1;29755:68:0;;;17330:21:1;17387:2;17367:18;;;17360:30;17426:34;17406:18;;;17399:62;17497:6;17477:18;;;17470:34;17521:19;;29755:68:0;17146:400:1;29755:68:0;-1:-1:-1;;;;;29842:21:0;;29834:68;;;;-1:-1:-1;;;29834:68:0;;17753:2:1;29834:68:0;;;17735:21:1;17792:2;17772:18;;;17765:30;17831:34;17811:18;;;17804:62;17902:4;17882:18;;;17875:32;17924:19;;29834:68:0;17551:398:1;29834:68:0;-1:-1:-1;;;;;29915:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;29967:32;;2023:25:1;;;29967:32:0;;1996:18:1;29967:32:0;;;;;;;;29661:346;;;:::o;93196:292::-;-1:-1:-1;;;;;93289:20:0;;93267:19;93289:20;;;:11;:20;;;;;;;;;93267:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93320:53;;;;-1:-1:-1;;;93320:53:0;;18156:2:1;93320:53:0;;;18138:21:1;18195:2;18175:18;;;18168:30;18234:29;18214:18;;;18207:57;18281:18;;93320:53:0;17954:351:1;93320:53:0;93392:12;;;;:17;;;;:51;;;93428:15;93413:1;:12;;;:30;;;93392:51;93384:96;;;;-1:-1:-1;;;93384:96:0;;18512:2:1;93384:96:0;;;18494:21:1;;;18531:18;;;18524:30;18590:34;18570:18;;;18563:62;18642:18;;93384:96:0;18310:356:1;93384:96:0;93256:232;93196:292;:::o;93496:310::-;-1:-1:-1;;;;;93595:23:0;;93573:19;93595:23;;;:11;:23;;;;;;;;;93573:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93629:59;;;;-1:-1:-1;;;93629:59:0;;18873:2:1;93629:59:0;;;18855:21:1;18912:2;18892:18;;;18885:30;18951:32;18931:18;;;18924:60;19001:18;;93629:59:0;18671:354:1;93629:59:0;93707:12;;;;:17;;;;:51;;;93743:15;93728:1;:12;;;:30;;;93707:51;93699:99;;;;-1:-1:-1;;;93699:99:0;;19232:2:1;93699:99:0;;;19214:21:1;19271:2;19251:18;;;19244:30;19310:34;19290:18;;;19283:62;19381:5;19361:18;;;19354:33;19404:19;;93699:99:0;19030:399:1;24257:261:0;24354:4;12119:10;24412:38;24428:4;12119:10;24443:6;24412:15;:38::i;:::-;24461:27;24471:4;24477:2;24481:6;24461:9;:27::i;76382:268::-;76435:7;76467:4;-1:-1:-1;;;;;76476:11:0;76459:28;;:63;;;;;76508:14;76491:13;:31;76459:63;76455:188;;;-1:-1:-1;76546:22:0;;76382:268::o;76455:188::-;76608:23;76750:81;;;74574:95;76750:81;;;22794:25:1;76773:11:0;22835:18:1;;;22828:34;;;;76786:14:0;22878:18:1;;;22871:34;76802:13:0;22921:18:1;;;22914:34;76825:4:0;22964:19:1;;;22957:84;76713:7:0;;22766:19:1;;76750:81:0;;;;;;;;;;;;76740:92;;;;;;76733:99;;76658:182;;13708:132;13616:6;;-1:-1:-1;;;;;13616:6:0;12119:10;13772:23;13764:68;;;;-1:-1:-1;;;13764:68:0;;19636:2:1;13764:68:0;;;19618:21:1;;;19655:18;;;19648:30;19714:34;19694:18;;;19687:62;19766:18;;13764:68:0;19434:356:1;14803:191:0;14896:6;;;-1:-1:-1;;;;;14913:17:0;;;-1:-1:-1;;14913:17:0;;;;;;;14946:40;;14896:6;;;14913:17;14896:6;;14946:40;;14877:16;;14946:40;14866:128;14803:191;:::o;71665:274::-;71759:13;69610:66;71789:47;;71785:147;;71860:15;71869:5;71860:8;:15::i;:::-;71853:22;;;;71785:147;71915:5;71908:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28548:675;-1:-1:-1;;;;;28632:21:0;;28624:67;;;;-1:-1:-1;;;28624:67:0;;19997:2:1;28624:67:0;;;19979:21:1;20036:2;20016:18;;;20009:30;20075:34;20055:18;;;20048:62;20146:3;20126:18;;;20119:31;20167:19;;28624:67:0;19795:397:1;28624:67:0;-1:-1:-1;;;;;28791:18:0;;28766:22;28791:18;;;;;;;;;;;28828:24;;;;28820:71;;;;-1:-1:-1;;;28820:71:0;;20399:2:1;28820:71:0;;;20381:21:1;20438:2;20418:18;;;20411:30;20477:34;20457:18;;;20450:62;20548:4;20528:18;;;20521:32;20570:19;;28820:71:0;20197:398:1;28820:71:0;-1:-1:-1;;;;;28927:18:0;;:9;:18;;;;;;;;;;;28948:23;;;28927:44;;29066:12;:22;;;;;;;29117:37;2023:25:1;;;28927:9:0;;:18;29117:37;;1996:18:1;29117:37:0;1877:177:1;22749:193:0;22828:4;12119:10;22884:28;12119:10;22901:2;22905:6;22884:9;:28::i;81523:207::-;-1:-1:-1;;;;;81644:14:0;;81583:15;81644:14;;;:7;:14;;;;;35555;;35692:1;35674:19;;;;35555:14;81705:17;81600:130;81523:207;;;:::o;77482:167::-;77559:7;77586:55;77608:20;:18;:20::i;:::-;77630:10;62345:4;62339:11;62376:10;62364:23;;62417:4;62408:14;;62401:39;;;;62470:4;62461:14;;62454:34;62525:4;62510:20;;;62142:406;60358:236;60443:7;60464:17;60483:18;60505:25;60516:4;60522:1;60525;60528;60505:10;:25::i;:::-;60463:67;;;;60541:18;60553:5;60541:11;:18::i;:::-;-1:-1:-1;60577:9:0;60358:236;-1:-1:-1;;;;;60358:236:0:o;26574:806::-;-1:-1:-1;;;;;26671:18:0;;26663:68;;;;-1:-1:-1;;;26663:68:0;;20802:2:1;26663:68:0;;;20784:21:1;20841:2;20821:18;;;20814:30;20880:34;20860:18;;;20853:62;20951:7;20931:18;;;20924:35;20976:19;;26663:68:0;20600:401:1;26663:68:0;-1:-1:-1;;;;;26750:16:0;;26742:64;;;;-1:-1:-1;;;26742:64:0;;21208:2:1;26742:64:0;;;21190:21:1;21247:2;21227:18;;;21220:30;21286:34;21266:18;;;21259:62;21357:5;21337:18;;;21330:33;21380:19;;26742:64:0;21006:399:1;26742:64:0;-1:-1:-1;;;;;26892:15:0;;26870:19;26892:15;;;;;;;;;;;26926:21;;;;26918:72;;;;-1:-1:-1;;;26918:72:0;;21612:2:1;26918:72:0;;;21594:21:1;21651:2;21631:18;;;21624:30;21690:34;21670:18;;;21663:62;21761:8;21741:18;;;21734:36;21787:19;;26918:72:0;21410:402:1;26918:72:0;-1:-1:-1;;;;;27026:15:0;;;:9;:15;;;;;;;;;;;27044:20;;;27026:38;;27244:13;;;;;;;;;;:23;;;;;;27296:26;;2023:25:1;;;27244:13:0;;27296:26;;1996:18:1;27296:26:0;;;;;;;26652:728;26574:806;;;:::o;27667:548::-;-1:-1:-1;;;;;27751:21:0;;27743:65;;;;-1:-1:-1;;;27743:65:0;;22019:2:1;27743:65:0;;;22001:21:1;22058:2;22038:18;;;22031:30;22097:33;22077:18;;;22070:61;22148:18;;27743:65:0;21817:355:1;27743:65:0;27899:6;27883:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;28054:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;28109:37;2023:25:1;;;28109:37:0;;1996:18:1;28109:37:0;;;;;;;93256:232;93196:292;:::o;30298:419::-;-1:-1:-1;;;;;23121:18:0;;;30399:24;23121:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;30466:37:0;;30462:248;;30548:6;30528:16;:26;;30520:68;;;;-1:-1:-1;;;30520:68:0;;22379:2:1;30520:68:0;;;22361:21:1;22418:2;22398:18;;;22391:30;22457:31;22437:18;;;22430:59;22506:18;;30520:68:0;22177:353:1;30520:68:0;30632:51;30641:5;30648:7;30676:6;30657:16;:25;30632:8;:51::i;70319:415::-;70378:13;70404:11;70418:16;70429:4;70418:10;:16::i;:::-;70544:14;;;70555:2;70544:14;;;;;;;;;70404:30;;-1:-1:-1;70524:17:0;;70544:14;;;;;;;;;-1:-1:-1;;;70637:16:0;;;-1:-1:-1;70683:4:0;70674:14;;70667:28;;;;-1:-1:-1;70637:16:0;70319:415::o;58742:1477::-;58830:7;;59764:66;59751:79;;59747:163;;;-1:-1:-1;59863:1:0;;-1:-1:-1;59867:30:0;59847:51;;59747:163;60024:24;;;60007:14;60024:24;;;;;;;;;23279:25:1;;;23352:4;23340:17;;23320:18;;;23313:45;;;;23374:18;;;23367:34;;;23417:18;;;23410:34;;;60024:24:0;;23251:19:1;;60024:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60024:24:0;;-1:-1:-1;;60024:24:0;;;-1:-1:-1;;;;;;;60063:20:0;;60059:103;;60116:1;60120:29;60100:50;;;;;;;60059:103;60182:6;-1:-1:-1;60190:20:0;;-1:-1:-1;58742:1477:0;;;;;;;;:::o;54202:521::-;54280:20;54271:5;:29;;;;;;;;:::i;:::-;;54267:449;;54202:521;:::o;54267:449::-;54378:29;54369:5;:38;;;;;;;;:::i;:::-;;54365:351;;54424:34;;-1:-1:-1;;;54424:34:0;;23846:2:1;54424:34:0;;;23828:21:1;23885:2;23865:18;;;23858:30;23924:26;23904:18;;;23897:54;23968:18;;54424:34:0;23644:348:1;54365:351:0;54489:35;54480:5;:44;;;;;;;;:::i;:::-;;54476:240;;54541:41;;-1:-1:-1;;;54541:41:0;;24199:2:1;54541:41:0;;;24181:21:1;24238:2;24218:18;;;24211:30;24277:33;24257:18;;;24250:61;24328:18;;54541:41:0;23997:355:1;54476:240:0;54613:30;54604:5;:39;;;;;;;;:::i;:::-;;54600:116;;54660:44;;-1:-1:-1;;;54660:44:0;;24559:2:1;54660:44:0;;;24541:21:1;24598:2;24578:18;;;24571:30;24637:34;24617:18;;;24610:62;24708:4;24688:18;;;24681:32;24730:19;;54660:44:0;24357:398:1;70811:251:0;70872:7;70945:4;70909:40;;70973:2;70964:11;;70960:71;;;70999:20;;;;;;;;;;;;;;14:196:1;82:20;;-1:-1:-1;;;;;131:54:1;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;773:423::-;815:3;853:5;847:12;880:6;875:3;868:19;905:1;915:162;929:6;926:1;923:13;915:162;;;991:4;1047:13;;;1043:22;;1037:29;1019:11;;;1015:20;;1008:59;944:12;915:162;;;919:3;1122:1;1115:4;1106:6;1101:3;1097:16;1093:27;1086:38;1185:4;1178:2;1174:7;1169:2;1161:6;1157:15;1153:29;1148:3;1144:39;1140:50;1133:57;;;773:423;;;;:::o;1201:220::-;1350:2;1339:9;1332:21;1313:4;1370:45;1411:2;1400:9;1396:18;1388:6;1370:45;:::i;1426:254::-;1494:6;1502;1555:2;1543:9;1534:7;1530:23;1526:32;1523:52;;;1571:1;1568;1561:12;1523:52;1594:29;1613:9;1594:29;:::i;:::-;1584:39;1670:2;1655:18;;;;1642:32;;-1:-1:-1;;;1426:254:1:o;2059:328::-;2136:6;2144;2152;2205:2;2193:9;2184:7;2180:23;2176:32;2173:52;;;2221:1;2218;2211:12;2173:52;2244:29;2263:9;2244:29;:::i;:::-;2234:39;;2292:38;2326:2;2315:9;2311:18;2292:38;:::i;:::-;2282:48;;2377:2;2366:9;2362:18;2349:32;2339:42;;2059:328;;;;;:::o;2994:158::-;3057:5;3102:2;3093:6;3088:3;3084:16;3080:25;3077:45;;;3118:1;3115;3108:12;3157:319;3255:6;3263;3316:3;3304:9;3295:7;3291:23;3287:33;3284:53;;;3333:1;3330;3323:12;3284:53;3356:29;3375:9;3356:29;:::i;:::-;3346:39;;3404:66;3462:7;3457:2;3446:9;3442:18;3404:66;:::i;:::-;3394:76;;3157:319;;;;;:::o;3927:1335::-;4324:66;4316:6;4312:79;4301:9;4294:98;4275:4;4411:2;4449:3;4444:2;4433:9;4429:18;4422:31;4476:46;4517:3;4506:9;4502:19;4494:6;4476:46;:::i;:::-;4570:9;4562:6;4558:22;4553:2;4542:9;4538:18;4531:50;4604:33;4630:6;4622;4604:33;:::i;:::-;4668:2;4653:18;;4646:34;;;-1:-1:-1;;;;;4717:55:1;;4711:3;4696:19;;4689:84;4804:3;4789:19;;4782:35;;;4854:22;;;4848:3;4833:19;;4826:51;4926:13;;4948:22;;;5024:15;;;;-1:-1:-1;4986:15:1;;;;-1:-1:-1;5067:169:1;5081:6;5078:1;5075:13;5067:169;;;5142:13;;5130:26;;5211:15;;;;5176:12;;;;5103:1;5096:9;5067:169;;;-1:-1:-1;5253:3:1;;3927:1335;-1:-1:-1;;;;;;;;;;;;3927:1335:1:o;5267:118::-;5353:5;5346:13;5339:21;5332:5;5329:32;5319:60;;5375:1;5372;5365:12;5390:449;5494:6;5502;5510;5563:3;5551:9;5542:7;5538:23;5534:33;5531:53;;;5580:1;5577;5570:12;5531:53;5603:29;5622:9;5603:29;:::i;:::-;5593:39;;5651:66;5709:7;5704:2;5693:9;5689:18;5651:66;:::i;:::-;5641:76;;5767:3;5756:9;5752:19;5739:33;5781:28;5803:5;5781:28;:::i;:::-;5828:5;5818:15;;;5390:449;;;;;:::o;6049:693::-;6160:6;6168;6176;6184;6192;6200;6208;6261:3;6249:9;6240:7;6236:23;6232:33;6229:53;;;6278:1;6275;6268:12;6229:53;6301:29;6320:9;6301:29;:::i;:::-;6291:39;;6349:38;6383:2;6372:9;6368:18;6349:38;:::i;:::-;6339:48;;6434:2;6423:9;6419:18;6406:32;6396:42;;6485:2;6474:9;6470:18;6457:32;6447:42;;6539:3;6528:9;6524:19;6511:33;6584:4;6577:5;6573:16;6566:5;6563:27;6553:55;;6604:1;6601;6594:12;6553:55;6049:693;;;;-1:-1:-1;6049:693:1;;;;6627:5;6679:3;6664:19;;6651:33;;-1:-1:-1;6731:3:1;6716:19;;;6703:33;;6049:693;-1:-1:-1;;6049:693:1:o;6747:260::-;6815:6;6823;6876:2;6864:9;6855:7;6851:23;6847:32;6844:52;;;6892:1;6889;6882:12;6844:52;6915:29;6934:9;6915:29;:::i;:::-;6905:39;;6963:38;6997:2;6986:9;6982:18;6963:38;:::i;7012:347::-;7063:8;7073:6;7127:3;7120:4;7112:6;7108:17;7104:27;7094:55;;7145:1;7142;7135:12;7094:55;-1:-1:-1;7168:20:1;;7211:18;7200:30;;7197:50;;;7243:1;7240;7233:12;7197:50;7280:4;7272:6;7268:17;7256:29;;7332:3;7325:4;7316:6;7308;7304:19;7300:30;7297:39;7294:59;;;7349:1;7346;7339:12;7294:59;7012:347;;;;;:::o;7364:935::-;7481:6;7489;7497;7505;7513;7521;7529;7582:3;7570:9;7561:7;7557:23;7553:33;7550:53;;;7599:1;7596;7589:12;7550:53;7622:29;7641:9;7622:29;:::i;:::-;7612:39;;7670:38;7704:2;7693:9;7689:18;7670:38;:::i;:::-;7660:48;;7755:2;7744:9;7740:18;7727:32;7717:42;;7810:2;7799:9;7795:18;7782:32;7833:18;7874:2;7866:6;7863:14;7860:34;;;7890:1;7887;7880:12;7860:34;7929:58;7979:7;7970:6;7959:9;7955:22;7929:58;:::i;:::-;8006:8;;-1:-1:-1;7903:84:1;-1:-1:-1;8094:3:1;8079:19;;8066:33;;-1:-1:-1;8111:16:1;;;8108:36;;;8140:1;8137;8130:12;8108:36;;8179:60;8231:7;8220:8;8209:9;8205:24;8179:60;:::i;:::-;7364:935;;;;-1:-1:-1;7364:935:1;;-1:-1:-1;7364:935:1;;;;8153:86;;-1:-1:-1;;;7364:935:1:o;8304:241::-;8360:6;8413:2;8401:9;8392:7;8388:23;8384:32;8381:52;;;8429:1;8426;8419:12;8381:52;8468:9;8455:23;8487:28;8509:5;8487:28;:::i;8550:409::-;8620:6;8628;8681:2;8669:9;8660:7;8656:23;8652:32;8649:52;;;8697:1;8694;8687:12;8649:52;8737:9;8724:23;8770:18;8762:6;8759:30;8756:50;;;8802:1;8799;8792:12;8756:50;8841:58;8891:7;8882:6;8871:9;8867:22;8841:58;:::i;:::-;8918:8;;8815:84;;-1:-1:-1;8550:409:1;-1:-1:-1;;;;8550:409:1:o;8964:315::-;9029:6;9037;9090:2;9078:9;9069:7;9065:23;9061:32;9058:52;;;9106:1;9103;9096:12;9058:52;9129:29;9148:9;9129:29;:::i;:::-;9119:39;;9208:2;9197:9;9193:18;9180:32;9221:28;9243:5;9221:28;:::i;:::-;9268:5;9258:15;;;8964:315;;;;;:::o;9284:437::-;9363:1;9359:12;;;;9406;;;9427:61;;9481:4;9473:6;9469:17;9459:27;;9427:61;9534:2;9526:6;9523:14;9503:18;9500:38;9497:218;;-1:-1:-1;;;9568:1:1;9561:88;9672:4;9669:1;9662:15;9700:4;9697:1;9690:15;10073:279;10138:9;;;10159:10;;;10156:190;;;-1:-1:-1;;;10199:1:1;10192:88;10303:4;10300:1;10293:15;10331:4;10328:1;10321:15;10709:823;10880:5;10867:19;10895:30;10917:7;10895:30;:::i;:::-;10944:11;;-1:-1:-1;;11032:17:1;;10985:15;;10978:23;11003:3;10974:33;11029:25;;;11016:39;;11103:2;11092:14;;11079:28;11116:30;11079:28;11116:30;:::i;:::-;11202:5;11183:15;;11176:23;11173:1;11169:31;11165:43;-1:-1:-1;;11236:19:1;;11233:27;;11230:35;;11217:49;;11314:2;11303:14;;11290:28;11362:18;11349:32;;11337:45;;11327:73;;11396:1;11393;11386:12;11327:73;11501:22;11491:7;11487:2;11483:16;11479:45;11473:2;11447:22;11443:27;11439:2;11435:36;11432:44;11428:2;11425:52;11422:103;11416:4;11409:117;;;;;10709:823;;:::o;15640:266::-;15728:6;15723:3;15716:19;15780:6;15773:5;15766:4;15761:3;15757:14;15744:43;-1:-1:-1;15832:1:1;15807:16;;;15825:4;15803:27;;;15796:38;;;;15888:2;15867:15;;;-1:-1:-1;;15863:29:1;15854:39;;;15850:50;;15640:266::o;15911:502::-;16152:6;16141:9;16134:25;16195:2;16190;16179:9;16175:18;16168:30;16115:4;16221:61;16278:2;16267:9;16263:18;16255:6;16247;16221:61;:::i;:::-;16330:9;16322:6;16318:22;16313:2;16302:9;16298:18;16291:50;16358:49;16400:6;16392;16384;16358:49;:::i;:::-;16350:57;15911:502;-1:-1:-1;;;;;;;;15911:502:1:o;16825:316::-;16902:6;16910;16918;16971:2;16959:9;16950:7;16946:23;16942:32;16939:52;;;16987:1;16984;16977:12;16939:52;-1:-1:-1;;17010:23:1;;;17080:2;17065:18;;17052:32;;-1:-1:-1;17131:2:1;17116:18;;;17103:32;;16825:316;-1:-1:-1;16825:316:1:o;23455:184::-;-1:-1:-1;;;23504:1:1;23497:88;23604:4;23601:1;23594:15;23628:4;23625:1;23618:15
Swarm Source
ipfs://d9fed3d1baf636121a5707495dd0d52df015ea358e4ec5d9439d66431fc0066e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Add Token to MetaMask (Web3)