Latest 25 from a total of 42,407 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 8634094 | 2 hrs ago | IN | 0 GLMR | 0.018114 | ||||
Approve | 8633616 | 3 hrs ago | IN | 0 GLMR | 0.01825891 | ||||
Transfer | 8633501 | 3 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8630289 | 8 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8628171 | 12 hrs ago | IN | 0 GLMR | 0.018514 | ||||
Transfer | 8627600 | 13 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8625520 | 17 hrs ago | IN | 0 GLMR | 0.07420411 | ||||
Transfer | 8625502 | 17 hrs ago | IN | 0 GLMR | 0.018514 | ||||
Transfer | 8625443 | 17 hrs ago | IN | 0 GLMR | 0.07420411 | ||||
Transfer | 8625425 | 17 hrs ago | IN | 0 GLMR | 0.018514 | ||||
Approve | 8624427 | 19 hrs ago | IN | 0 GLMR | 0.018114 | ||||
Approve | 8623380 | 20 hrs ago | IN | 0 GLMR | 0.018178 | ||||
Approve | 8622345 | 22 hrs ago | IN | 0 GLMR | 0.018178 | ||||
Transfer | 8622090 | 23 hrs ago | IN | 0 GLMR | 0.07420411 | ||||
Approve | 8622077 | 23 hrs ago | IN | 0 GLMR | 0.018178 | ||||
Transfer | 8622036 | 23 hrs ago | IN | 0 GLMR | 0.018514 | ||||
Approve | 8620842 | 25 hrs ago | IN | 0 GLMR | 0.018178 | ||||
Approve | 8620839 | 25 hrs ago | IN | 0 GLMR | 0.018178 | ||||
Transfer | 8620524 | 25 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8620148 | 26 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8620071 | 26 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Transfer | 8619674 | 27 hrs ago | IN | 0 GLMR | 0.01866211 | ||||
Approve | 8618333 | 29 hrs ago | IN | 0 GLMR | 0.018114 | ||||
Transfer | 8616427 | 32 hrs ago | IN | 0 GLMR | 0.07420411 | ||||
Transfer | 8616338 | 32 hrs ago | IN | 0 GLMR | 0.0203654 |
View more zero value Internal Transactions in Advanced View mode
Loading...
Loading
Contract Name:
BeamSwapToken
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at moonbeam.moonscan.io on 2022-01-16 */ // Sources flattened with hardhat v2.7.1 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/draft-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/token/ERC20/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.0 (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/utils/[email protected] // OpenZeppelin Contracts v4.4.0 (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/token/ERC20/[email protected] // OpenZeppelin Contracts v4.4.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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; _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; } _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 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/utils/[email protected] // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts v4.4.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 } 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"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' 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) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ 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. 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 if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } 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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // 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) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @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) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts v4.4.0 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; /** * @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]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // 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 _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @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) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, 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); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.0 (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/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/draft-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 immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @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 @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.0 (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 @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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/security/[email protected] // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/BeamSwapToken.sol pragma solidity 0.8.11; contract BeamSwapToken is ERC20Burnable, ERC20Permit, AccessControl, Pausable { using SafeERC20 for IERC20; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant RESCUER_ROLE = keccak256("RESCUER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); uint256 internal constant MAX_TOTAL_SUPPLY = 3000000000 ether; constructor() ERC20("Beamswap Token", "GLINT") ERC20Permit("BeamSwap") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(PAUSER_ROLE, msg.sender); _setupRole(MINTER_ROLE, msg.sender); _setupRole(RESCUER_ROLE, msg.sender); } function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) { require( amount + totalSupply() <= MAX_TOTAL_SUPPLY, "Cant mint more than max supply" ); _mint(to, amount); } function getMaxTotalSupply() external pure returns (uint256) { return MAX_TOTAL_SUPPLY; } function rescueTokens(IERC20 token, uint256 value) external onlyRole(RESCUER_ROLE) { token.transfer(msg.sender, value); } function pause() public onlyRole(PAUSER_ROLE) { _pause(); } function unpause() public onlyRole(PAUSER_ROLE) { _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESCUER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"getMaxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506040518060400160405280600881526020016704265616d537761760c41b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600e81526020016d2132b0b6b9bbb0b8102a37b5b2b760911b8152506040518060400160405280600581526020016411d312539560da1b8152508160039080519060200190620000d1929190620002cf565b508051620000e7906004906020840190620002cf565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250506007805460ff19169055620001916000336200021b565b620001bd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336200021b565b620001e97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200021b565b620002157fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a050336200021b565b620003b2565b6200022782826200022b565b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620002275760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200028b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002dd9062000375565b90600052602060002090601f0160209004810192826200030157600085556200034c565b82601f106200031c57805160ff19168380011785556200034c565b828001600101855582156200034c579182015b828111156200034c5782518255916020019190600101906200032f565b506200035a9291506200035e565b5090565b5b808211156200035a57600081556001016200035f565b600181811c908216806200038a57607f821691505b60208210811415620003ac57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516120396200040d6000396000610b88015260006111e4015260006112330152600061120e0152600061116701526000611191015260006111bb01526120396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635db30bb11161010f578063a217fddf116100a2578063d539139311610071578063d53913931461043d578063d547741f14610464578063dd62ed3e14610477578063e63ab1e9146104b057600080fd5b8063a217fddf146103fc578063a457c2d714610404578063a9059cbb14610417578063d505accf1461042a57600080fd5b80637ecebe00116100de5780637ecebe00146103a05780638456cb59146103b357806391d14854146103bb57806395d89b41146103f457600080fd5b80635db30bb11461032b57806370a082311461033d578063713725441461036657806379cc67901461038d57600080fd5b80633644e5151161018757806340c10f191161015657806340c10f19146102e757806342966c68146102fa578063573761981461030d5780635c975abb1461032057600080fd5b80633644e515146102b157806336568abe146102b957806339509351146102cc5780633f4ba83a146102df57600080fd5b806323b872dd116101c357806323b872dd14610257578063248a9ca31461026a5780632f2ff15d1461028d578063313ce567146102a257600080fd5b806301ffc9a7146101f557806306fdde031461021d578063095ea7b31461023257806318160ddd14610245575b600080fd5b610208610203366004611c40565b6104d7565b60405190151581526020015b60405180910390f35b610225610570565b6040516102149190611cae565b610208610240366004611cf6565b610602565b6002545b604051908152602001610214565b610208610265366004611d22565b610618565b610249610278366004611d63565b60009081526006602052604090206001015490565b6102a061029b366004611d7c565b6106dc565b005b60405160128152602001610214565b610249610707565b6102a06102c7366004611d7c565b610716565b6102086102da366004611cf6565b6107a2565b6102a06107de565b6102a06102f5366004611cf6565b610814565b6102a0610308366004611d63565b6108b7565b6102a061031b366004611cf6565b6108c1565b60075460ff16610208565b6b09b18ab5df7180b6b8000000610249565b61024961034b366004611dac565b6001600160a01b031660009081526020819052604090205490565b6102497fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a05081565b6102a061039b366004611cf6565b61097c565b6102496103ae366004611dac565b610a16565b6102a0610a34565b6102086103c9366004611d7c565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610225610a67565b610249600081565b610208610412366004611cf6565b610a76565b610208610425366004611cf6565b610b27565b6102a0610438366004611dc9565b610b34565b6102497f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102a0610472366004611d7c565b610c98565b610249610485366004611e40565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102497f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061056a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606003805461057f90611e6e565b80601f01602080910402602001604051908101604052809291908181526020018280546105ab90611e6e565b80156105f85780601f106105cd576101008083540402835291602001916105f8565b820191906000526020600020905b8154815290600101906020018083116105db57829003601f168201915b5050505050905090565b600061060f338484610cbe565b50600192915050565b6000610625848484610e16565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106c45760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6106d18533858403610cbe565b506001949350505050565b6000828152600660205260409020600101546106f88133611038565b61070283836110b8565b505050565b600061071161115a565b905090565b6001600160a01b03811633146107945760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016106bb565b61079e8282611281565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060f9185906107d9908690611eb9565b610cbe565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6108098133611038565b610811611304565b50565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661083f8133611038565b6b09b18ab5df7180b6b800000061085560025490565b61085f9084611eb9565b11156108ad5760405162461bcd60e51b815260206004820152601e60248201527f43616e74206d696e74206d6f7265207468616e206d617820737570706c79000060448201526064016106bb565b61070283836113a0565b610811338261148b565b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a0506108ec8133611038565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b0384169063a9059cbb906044016020604051808303816000875af1158015610952573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109769190611ed1565b50505050565b60006109888333610485565b9050818110156109ff5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016106bb565b610a0c8333848403610cbe565b610702838361148b565b6001600160a01b03811660009081526005602052604081205461056a565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a5f8133611038565b61081161161c565b60606004805461057f90611e6e565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b105760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106bb565b610b1d3385858403610cbe565b5060019392505050565b600061060f338484610e16565b83421115610b845760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106bb565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610bb38c6116a4565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610c0e826116cc565b90506000610c1e82878787611735565b9050896001600160a01b0316816001600160a01b031614610c815760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106bb565b610c8c8a8a8a610cbe565b50505050505050505050565b600082815260066020526040902060010154610cb48133611038565b6107028383611281565b6001600160a01b038316610d395760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b038216610db55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610e925760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b038216610f0e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b610f1983838361175d565b6001600160a01b03831660009081526020819052604090205481811015610fa85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610fdf908490611eb9565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161102b91815260200190565b60405180910390a3610976565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661079e57611076816001600160a01b031660146117b0565b6110818360206117b0565b604051602001611092929190611ef3565b60408051601f198184030181529082905262461bcd60e51b82526106bb91600401611cae565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661079e5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556111163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156111b357507f000000000000000000000000000000000000000000000000000000000000000046145b156111dd57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff161561079e5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60075460ff166113565760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106bb565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166113f65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106bb565b6114026000838361175d565b80600260008282546114149190611eb9565b90915550506001600160a01b03821660009081526020819052604081208054839290611441908490611eb9565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166115075760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6115138260008361175d565b6001600160a01b038216600090815260208190526040902054818110156115a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b03831660009081526020819052604081208383039055600280548492906115d1908490611f74565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff161561166f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106bb565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113833390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b600061056a6116d961115a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061174687878787611998565b9150915061175381611a85565b5095945050505050565b60075460ff16156107025760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106bb565b606060006117bf836002611f8b565b6117ca906002611eb9565b67ffffffffffffffff8111156117e2576117e2611faa565b6040519080825280601f01601f19166020018201604052801561180c576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184357611843611fc0565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061188e5761188e611fc0565b60200101906001600160f81b031916908160001a90535060006118b2846002611f8b565b6118bd906001611eb9565b90505b6001811115611942577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106118fe576118fe611fc0565b1a60f81b82828151811061191457611914611fc0565b60200101906001600160f81b031916908160001a90535060049490941c9361193b81611fd6565b90506118c0565b5083156119915760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106bb565b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119cf5750600090506003611a7c565b8460ff16601b141580156119e757508460ff16601c14155b156119f85750600090506004611a7c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a4c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a7557600060019250925050611a7c565b9150600090505b94509492505050565b6000816004811115611a9957611a99611fed565b1415611aa25750565b6001816004811115611ab657611ab6611fed565b1415611b045760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106bb565b6002816004811115611b1857611b18611fed565b1415611b665760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106bb565b6003816004811115611b7a57611b7a611fed565b1415611bd35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106bb565b6004816004811115611be757611be7611fed565b14156108115760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106bb565b600060208284031215611c5257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461199157600080fd5b60005b83811015611c9d578181015183820152602001611c85565b838111156109765750506000910152565b6020815260008251806020840152611ccd816040850160208701611c82565b601f01601f19169190910160400192915050565b6001600160a01b038116811461081157600080fd5b60008060408385031215611d0957600080fd5b8235611d1481611ce1565b946020939093013593505050565b600080600060608486031215611d3757600080fd5b8335611d4281611ce1565b92506020840135611d5281611ce1565b929592945050506040919091013590565b600060208284031215611d7557600080fd5b5035919050565b60008060408385031215611d8f57600080fd5b823591506020830135611da181611ce1565b809150509250929050565b600060208284031215611dbe57600080fd5b813561199181611ce1565b600080600080600080600060e0888a031215611de457600080fd5b8735611def81611ce1565b96506020880135611dff81611ce1565b95506040880135945060608801359350608088013560ff81168114611e2357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611e5357600080fd5b8235611e5e81611ce1565b91506020830135611da181611ce1565b600181811c90821680611e8257607f821691505b602082108114156116c657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611ecc57611ecc611ea3565b500190565b600060208284031215611ee357600080fd5b8151801515811461199157600080fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611f2b816017850160208801611c82565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f68816028840160208801611c82565b01602801949350505050565b600082821015611f8657611f86611ea3565b500390565b6000816000190483118215151615611fa557611fa5611ea3565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081611fe557611fe5611ea3565b506000190190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c1459fa004a2e1ebd61bd40624ceda68f03366cb842dda45f8b0c7e7ec3fa38764736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80635db30bb11161010f578063a217fddf116100a2578063d539139311610071578063d53913931461043d578063d547741f14610464578063dd62ed3e14610477578063e63ab1e9146104b057600080fd5b8063a217fddf146103fc578063a457c2d714610404578063a9059cbb14610417578063d505accf1461042a57600080fd5b80637ecebe00116100de5780637ecebe00146103a05780638456cb59146103b357806391d14854146103bb57806395d89b41146103f457600080fd5b80635db30bb11461032b57806370a082311461033d578063713725441461036657806379cc67901461038d57600080fd5b80633644e5151161018757806340c10f191161015657806340c10f19146102e757806342966c68146102fa578063573761981461030d5780635c975abb1461032057600080fd5b80633644e515146102b157806336568abe146102b957806339509351146102cc5780633f4ba83a146102df57600080fd5b806323b872dd116101c357806323b872dd14610257578063248a9ca31461026a5780632f2ff15d1461028d578063313ce567146102a257600080fd5b806301ffc9a7146101f557806306fdde031461021d578063095ea7b31461023257806318160ddd14610245575b600080fd5b610208610203366004611c40565b6104d7565b60405190151581526020015b60405180910390f35b610225610570565b6040516102149190611cae565b610208610240366004611cf6565b610602565b6002545b604051908152602001610214565b610208610265366004611d22565b610618565b610249610278366004611d63565b60009081526006602052604090206001015490565b6102a061029b366004611d7c565b6106dc565b005b60405160128152602001610214565b610249610707565b6102a06102c7366004611d7c565b610716565b6102086102da366004611cf6565b6107a2565b6102a06107de565b6102a06102f5366004611cf6565b610814565b6102a0610308366004611d63565b6108b7565b6102a061031b366004611cf6565b6108c1565b60075460ff16610208565b6b09b18ab5df7180b6b8000000610249565b61024961034b366004611dac565b6001600160a01b031660009081526020819052604090205490565b6102497fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a05081565b6102a061039b366004611cf6565b61097c565b6102496103ae366004611dac565b610a16565b6102a0610a34565b6102086103c9366004611d7c565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610225610a67565b610249600081565b610208610412366004611cf6565b610a76565b610208610425366004611cf6565b610b27565b6102a0610438366004611dc9565b610b34565b6102497f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102a0610472366004611d7c565b610c98565b610249610485366004611e40565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102497f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061056a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606003805461057f90611e6e565b80601f01602080910402602001604051908101604052809291908181526020018280546105ab90611e6e565b80156105f85780601f106105cd576101008083540402835291602001916105f8565b820191906000526020600020905b8154815290600101906020018083116105db57829003601f168201915b5050505050905090565b600061060f338484610cbe565b50600192915050565b6000610625848484610e16565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106c45760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6106d18533858403610cbe565b506001949350505050565b6000828152600660205260409020600101546106f88133611038565b61070283836110b8565b505050565b600061071161115a565b905090565b6001600160a01b03811633146107945760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016106bb565b61079e8282611281565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161060f9185906107d9908690611eb9565b610cbe565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6108098133611038565b610811611304565b50565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661083f8133611038565b6b09b18ab5df7180b6b800000061085560025490565b61085f9084611eb9565b11156108ad5760405162461bcd60e51b815260206004820152601e60248201527f43616e74206d696e74206d6f7265207468616e206d617820737570706c79000060448201526064016106bb565b61070283836113a0565b610811338261148b565b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a0506108ec8133611038565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001600160a01b0384169063a9059cbb906044016020604051808303816000875af1158015610952573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109769190611ed1565b50505050565b60006109888333610485565b9050818110156109ff5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016106bb565b610a0c8333848403610cbe565b610702838361148b565b6001600160a01b03811660009081526005602052604081205461056a565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610a5f8133611038565b61081161161c565b60606004805461057f90611e6e565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b105760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106bb565b610b1d3385858403610cbe565b5060019392505050565b600061060f338484610e16565b83421115610b845760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016106bb565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610bb38c6116a4565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610c0e826116cc565b90506000610c1e82878787611735565b9050896001600160a01b0316816001600160a01b031614610c815760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016106bb565b610c8c8a8a8a610cbe565b50505050505050505050565b600082815260066020526040902060010154610cb48133611038565b6107028383611281565b6001600160a01b038316610d395760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b038216610db55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610e925760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b038216610f0e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b610f1983838361175d565b6001600160a01b03831660009081526020819052604090205481811015610fa85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610fdf908490611eb9565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161102b91815260200190565b60405180910390a3610976565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661079e57611076816001600160a01b031660146117b0565b6110818360206117b0565b604051602001611092929190611ef3565b60408051601f198184030181529082905262461bcd60e51b82526106bb91600401611cae565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661079e5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556111163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f000000000000000000000000cd3b51d98478d53f4515a306be565c6eebef1d58161480156111b357507f000000000000000000000000000000000000000000000000000000000000050446145b156111dd57507ff629cc6487106e8858ce843b48ff5b2f35695ea83555001db8d4d53c776e052c90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fa688ccf7dd92cee33509826d9f4343f438953208146eb4db05ff95fa90b0e2fb828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff161561079e5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60075460ff166113565760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016106bb565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166113f65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106bb565b6114026000838361175d565b80600260008282546114149190611eb9565b90915550506001600160a01b03821660009081526020819052604081208054839290611441908490611eb9565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166115075760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6115138260008361175d565b6001600160a01b038216600090815260208190526040902054818110156115a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106bb565b6001600160a01b03831660009081526020819052604081208383039055600280548492906115d1908490611f74565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff161561166f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106bb565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113833390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b600061056a6116d961115a565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061174687878787611998565b9150915061175381611a85565b5095945050505050565b60075460ff16156107025760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016106bb565b606060006117bf836002611f8b565b6117ca906002611eb9565b67ffffffffffffffff8111156117e2576117e2611faa565b6040519080825280601f01601f19166020018201604052801561180c576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061184357611843611fc0565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061188e5761188e611fc0565b60200101906001600160f81b031916908160001a90535060006118b2846002611f8b565b6118bd906001611eb9565b90505b6001811115611942577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106118fe576118fe611fc0565b1a60f81b82828151811061191457611914611fc0565b60200101906001600160f81b031916908160001a90535060049490941c9361193b81611fd6565b90506118c0565b5083156119915760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106bb565b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156119cf5750600090506003611a7c565b8460ff16601b141580156119e757508460ff16601c14155b156119f85750600090506004611a7c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611a4c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a7557600060019250925050611a7c565b9150600090505b94509492505050565b6000816004811115611a9957611a99611fed565b1415611aa25750565b6001816004811115611ab657611ab6611fed565b1415611b045760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106bb565b6002816004811115611b1857611b18611fed565b1415611b665760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106bb565b6003816004811115611b7a57611b7a611fed565b1415611bd35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016106bb565b6004816004811115611be757611be7611fed565b14156108115760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016106bb565b600060208284031215611c5257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461199157600080fd5b60005b83811015611c9d578181015183820152602001611c85565b838111156109765750506000910152565b6020815260008251806020840152611ccd816040850160208701611c82565b601f01601f19169190910160400192915050565b6001600160a01b038116811461081157600080fd5b60008060408385031215611d0957600080fd5b8235611d1481611ce1565b946020939093013593505050565b600080600060608486031215611d3757600080fd5b8335611d4281611ce1565b92506020840135611d5281611ce1565b929592945050506040919091013590565b600060208284031215611d7557600080fd5b5035919050565b60008060408385031215611d8f57600080fd5b823591506020830135611da181611ce1565b809150509250929050565b600060208284031215611dbe57600080fd5b813561199181611ce1565b600080600080600080600060e0888a031215611de457600080fd5b8735611def81611ce1565b96506020880135611dff81611ce1565b95506040880135945060608801359350608088013560ff81168114611e2357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611e5357600080fd5b8235611e5e81611ce1565b91506020830135611da181611ce1565b600181811c90821680611e8257607f821691505b602082108114156116c657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611ecc57611ecc611ea3565b500190565b600060208284031215611ee357600080fd5b8151801515811461199157600080fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611f2b816017850160208801611c82565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f68816028840160208801611c82565b01602801949350505050565b600082821015611f8657611f86611ea3565b500390565b6000816000190483118215151615611fa557611fa5611ea3565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081611fe557611fe5611ea3565b506000190190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220c1459fa004a2e1ebd61bd40624ceda68f03366cb842dda45f8b0c7e7ec3fa38764736f6c634300080b0033
Deployed Bytecode Sourcemap
70833:1594:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48786:204;;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;48786:204:0;;;;;;;;9149:100;;;:::i;:::-;;;;;;;:::i;11316:169::-;;;;;;:::i;:::-;;:::i;10269:108::-;10357:12;;10269:108;;;1819:25:1;;;1807:2;1792:18;10269:108:0;1673:177:1;11967:492:0;;;;;;:::i;:::-;;:::i;50197:123::-;;;;;;:::i;:::-;50263:7;50290:12;;;:6;:12;;;;;:22;;;;50197:123;50582:147;;;;;;:::i;:::-;;:::i;:::-;;10111:93;;;10194:2;3145:36:1;;3133:2;3118:18;10111:93:0;3003:184:1;39369:115:0;;;:::i;51630:218::-;;;;;;:::i;:::-;;:::i;12868:215::-;;;;;;:::i;:::-;;:::i;72138:77::-;;;:::i;71532:240::-;;;;;;:::i;:::-;;:::i;40410:91::-;;;;;;:::i;:::-;;:::i;71891:158::-;;;;;;:::i;:::-;;:::i;57421:86::-;57492:7;;;;57421:86;;71780:103;71228:16;71780:103;;10440:127;;;;;;:::i;:::-;-1:-1:-1;;;;;10541:18:0;10514:7;10541:18;;;;;;;;;;;;10440:127;71041:64;;71080:25;71041:64;;40820:368;;;;;;:::i;:::-;;:::i;39111:128::-;;;;;;:::i;:::-;;:::i;72057:73::-;;;:::i;49082:139::-;;;;;;:::i;:::-;49160:4;49184:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;49184:29:0;;;;;;;;;;;;;;;49082:139;9368:104;;;:::i;48173:49::-;;48218:4;48173:49;;13586:413;;;;;;:::i;:::-;;:::i;10780:175::-;;;;;;:::i;:::-;;:::i;38400:645::-;;;;;;:::i;:::-;;:::i;70972:62::-;;71010:24;70972:62;;50974:149;;;;;;:::i;:::-;;:::i;11018:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;11134:18:0;;;11107:7;11134:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;11018:151;71112:62;;71150:24;71112:62;;48786:204;48871:4;48895:47;;;48910:32;48895:47;;:87;;-1:-1:-1;46164:25:0;46149:40;;;;48946:36;48888:94;48786:204;-1:-1:-1;;48786:204:0:o;9149:100::-;9203:13;9236:5;9229:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9149:100;:::o;11316:169::-;11399:4;11416:39;6878:10;11439:7;11448:6;11416:8;:39::i;:::-;-1:-1:-1;11473:4:0;11316:169;;;;:::o;11967:492::-;12107:4;12124:36;12134:6;12142:9;12153:6;12124:9;:36::i;:::-;-1:-1:-1;;;;;12200:19:0;;12173:24;12200:19;;;:11;:19;;;;;;;;6878:10;12200:33;;;;;;;;12252:26;;;;12244:79;;;;-1:-1:-1;;;12244:79:0;;5834:2:1;12244:79:0;;;5816:21:1;5873:2;5853:18;;;5846:30;5912:34;5892:18;;;5885:62;5983:10;5963:18;;;5956:38;6011:19;;12244:79:0;;;;;;;;;12359:57;12368:6;6878:10;12409:6;12390:16;:25;12359:8;:57::i;:::-;-1:-1:-1;12447:4:0;;11967:492;-1:-1:-1;;;;11967:492:0:o;50582:147::-;50263:7;50290:12;;;:6;:12;;;;;:22;;;48664:30;48675:4;6878:10;48664;:30::i;:::-;50696:25:::1;50707:4;50713:7;50696:10;:25::i;:::-;50582:147:::0;;;:::o;39369:115::-;39429:7;39456:20;:18;:20::i;:::-;39449:27;;39369:115;:::o;51630:218::-;-1:-1:-1;;;;;51726:23:0;;6878:10;51726:23;51718:83;;;;-1:-1:-1;;;51718:83:0;;6243:2:1;51718:83:0;;;6225:21:1;6282:2;6262:18;;;6255:30;6321:34;6301:18;;;6294:62;6392:17;6372:18;;;6365:45;6427:19;;51718:83:0;6041:411:1;51718:83:0;51814:26;51826:4;51832:7;51814:11;:26::i;:::-;51630:218;;:::o;12868:215::-;6878:10;12956:4;13005:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;13005:34:0;;;;;;;;;;12956:4;;12973:80;;12996:7;;13005:47;;13042:10;;13005:47;:::i;:::-;12973:8;:80::i;72138:77::-;71150:24;48664:30;71150:24;6878:10;48664;:30::i;:::-;72197:10:::1;:8;:10::i;:::-;72138:77:::0;:::o;71532:240::-;71010:24;48664:30;71010:24;6878:10;48664;:30::i;:::-;71228:16:::1;71645:13;10357:12:::0;;;10269:108;71645:13:::1;71636:22;::::0;:6;:22:::1;:::i;:::-;:42;;71614:122;;;::::0;-1:-1:-1;;;71614:122:0;;6981:2:1;71614:122:0::1;::::0;::::1;6963:21:1::0;7020:2;7000:18;;;6993:30;7059:32;7039:18;;;7032:60;7109:18;;71614:122:0::1;6779:354:1::0;71614:122:0::1;71747:17;71753:2;71757:6;71747:5;:17::i;40410:91::-:0;40466:27;6878:10;40486:6;40466:5;:27::i;71891:158::-;71080:25;48664:30;71080:25;6878:10;48664;:30::i;:::-;72008:33:::1;::::0;;;;72023:10:::1;72008:33;::::0;::::1;7312:74:1::0;7402:18;;;7395:34;;;-1:-1:-1;;;;;72008:14:0;::::1;::::0;::::1;::::0;7285:18:1;;72008:33:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71891:158:::0;;;:::o;40820:368::-;40897:24;40924:32;40934:7;6878:10;11018:151;:::i;40924:32::-;40897:59;;40995:6;40975:16;:26;;40967:75;;;;-1:-1:-1;;;40967:75:0;;7924:2:1;40967:75:0;;;7906:21:1;7963:2;7943:18;;;7936:30;8002:34;7982:18;;;7975:62;8073:6;8053:18;;;8046:34;8097:19;;40967:75:0;7722:400:1;40967:75:0;41078:58;41087:7;6878:10;41129:6;41110:16;:25;41078:8;:58::i;:::-;41158:22;41164:7;41173:6;41158:5;:22::i;39111:128::-;-1:-1:-1;;;;;39207:14:0;;39180:7;39207:14;;;:7;:14;;;;;36430;39207:24;36338:114;72057:73;71150:24;48664:30;71150:24;6878:10;48664;:30::i;:::-;72114:8:::1;:6;:8::i;9368:104::-:0;9424:13;9457:7;9450:14;;;;;:::i;13586:413::-;6878:10;13679:4;13723:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;13723:34:0;;;;;;;;;;13776:35;;;;13768:85;;;;-1:-1:-1;;;13768:85:0;;8329:2:1;13768:85:0;;;8311:21:1;8368:2;8348:18;;;8341:30;8407:34;8387:18;;;8380:62;8478:7;8458:18;;;8451:35;8503:19;;13768:85:0;8127:401:1;13768:85:0;13889:67;6878:10;13912:7;13940:15;13921:16;:34;13889:8;:67::i;:::-;-1:-1:-1;13987:4:0;;13586:413;-1:-1:-1;;;13586:413:0:o;10780:175::-;10866:4;10883:42;6878:10;10907:9;10918:6;10883:9;:42::i;38400:645::-;38644:8;38625:15;:27;;38617:69;;;;-1:-1:-1;;;38617:69:0;;8735:2:1;38617:69:0;;;8717:21:1;8774:2;8754:18;;;8747:30;8813:31;8793:18;;;8786:59;8862:18;;38617:69:0;8533:353:1;38617:69:0;38699:18;38741:16;38759:5;38766:7;38775:5;38782:16;38792:5;38782:9;:16::i;:::-;38730:79;;;;;;9178:25:1;;;;-1:-1:-1;;;;;9300:15:1;;;9280:18;;;9273:43;9352:15;;;;9332:18;;;9325:43;9384:18;;;9377:34;9427:19;;;9420:35;9471:19;;;9464:35;;;9150:19;;38730:79:0;;;;;;;;;;;;38720:90;;;;;;38699:111;;38823:12;38838:28;38855:10;38838:16;:28::i;:::-;38823:43;;38879:14;38896:28;38910:4;38916:1;38919;38922;38896:13;:28::i;:::-;38879:45;;38953:5;-1:-1:-1;;;;;38943:15:0;:6;-1:-1:-1;;;;;38943:15:0;;38935:58;;;;-1:-1:-1;;;38935:58:0;;9712:2:1;38935:58:0;;;9694:21:1;9751:2;9731:18;;;9724:30;9790:32;9770:18;;;9763:60;9840:18;;38935:58:0;9510:354:1;38935:58:0;39006:31;39015:5;39022:7;39031:5;39006:8;:31::i;:::-;38606:439;;;38400:645;;;;;;;:::o;50974:149::-;50263:7;50290:12;;;:6;:12;;;;;:22;;;48664:30;48675:4;6878:10;48664;:30::i;:::-;51089:26:::1;51101:4;51107:7;51089:11;:26::i;17270:380::-:0;-1:-1:-1;;;;;17406:19:0;;17398:68;;;;-1:-1:-1;;;17398:68:0;;10071:2:1;17398:68:0;;;10053:21:1;10110:2;10090:18;;;10083:30;10149:34;10129:18;;;10122:62;10220:6;10200:18;;;10193:34;10244:19;;17398:68:0;9869:400:1;17398:68:0;-1:-1:-1;;;;;17485:21:0;;17477:68;;;;-1:-1:-1;;;17477:68:0;;10476:2:1;17477:68:0;;;10458:21:1;10515:2;10495:18;;;10488:30;10554:34;10534:18;;;10527:62;10625:4;10605:18;;;10598:32;10647:19;;17477:68:0;10274:398:1;17477:68:0;-1:-1:-1;;;;;17558:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17610:32;;1819:25:1;;;17610:32:0;;1792:18:1;17610:32:0;;;;;;;17270:380;;;:::o;14489:733::-;-1:-1:-1;;;;;14629:20:0;;14621:70;;;;-1:-1:-1;;;14621:70:0;;10879:2:1;14621:70:0;;;10861:21:1;10918:2;10898:18;;;10891:30;10957:34;10937:18;;;10930:62;11028:7;11008:18;;;11001:35;11053:19;;14621:70:0;10677:401:1;14621:70:0;-1:-1:-1;;;;;14710:23:0;;14702:71;;;;-1:-1:-1;;;14702:71:0;;11285:2:1;14702:71:0;;;11267:21:1;11324:2;11304:18;;;11297:30;11363:34;11343:18;;;11336:62;11434:5;11414:18;;;11407:33;11457:19;;14702:71:0;11083:399:1;14702:71:0;14786:47;14807:6;14815:9;14826:6;14786:20;:47::i;:::-;-1:-1:-1;;;;;14870:17:0;;14846:21;14870:17;;;;;;;;;;;14906:23;;;;14898:74;;;;-1:-1:-1;;;14898:74:0;;11689:2:1;14898:74:0;;;11671:21:1;11728:2;11708:18;;;11701:30;11767:34;11747:18;;;11740:62;11838:8;11818:18;;;11811:36;11864:19;;14898:74:0;11487:402:1;14898:74:0;-1:-1:-1;;;;;15008:17:0;;;:9;:17;;;;;;;;;;;15028:22;;;15008:42;;15072:20;;;;;;;;:30;;15044:6;;15008:9;15072:30;;15044:6;;15072:30;:::i;:::-;;;;;;;;15137:9;-1:-1:-1;;;;;15120:35:0;15129:6;-1:-1:-1;;;;;15120:35:0;;15148:6;15120:35;;;;1819:25:1;;1807:2;1792:18;;1673:177;15120:35:0;;;;;;;;15168:46;50582:147;49511:497;49160:4;49184:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;49184:29:0;;;;;;;;;;;;49587:414;;49780:41;49808:7;-1:-1:-1;;;;;49780:41:0;49818:2;49780:19;:41::i;:::-;49894:38;49922:4;49929:2;49894:19;:38::i;:::-;49685:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;49685:270:0;;;;;;;;;;-1:-1:-1;;;49631:358:0;;;;;;;:::i;53131:238::-;49160:4;49184:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;49184:29:0;;;;;;;;;;;;53210:152;;53254:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;53254:29:0;;;;;;;;;:36;;-1:-1:-1;;53254:36:0;53286:4;53254:36;;;53337:12;6878:10;;6798:98;53337:12;-1:-1:-1;;;;;53310:40:0;53328:7;-1:-1:-1;;;;;53310:40:0;53322:4;53310:40;;;;;;;;;;53131:238;;:::o;34057:314::-;34110:7;34142:4;-1:-1:-1;;;;;34151:12:0;34134:29;;:66;;;;;34184:16;34167:13;:33;34134:66;34130:234;;;-1:-1:-1;34224:24:0;;34057:314::o;34130:234::-;-1:-1:-1;34560:73:0;;;34310:10;34560:73;;;;16217:25:1;;;;34322:12:0;16258:18:1;;;16251:34;34336:15:0;16301:18:1;;;16294:34;34604:13:0;16344:18:1;;;16337:34;34627:4:0;16387:19:1;;;;16380:84;;;;34560:73:0;;;;;;;;;;16189:19:1;;;;34560:73:0;;;34550:84;;;;;;39369:115::o;53501:239::-;49160:4;49184:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;49184:29:0;;;;;;;;;;;;53581:152;;;53656:5;53624:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;53624:29:0;;;;;;;;;;:37;;-1:-1:-1;;53624:37:0;;;53681:40;6878:10;;53624:12;;53681:40;;53656:5;53681:40;53501:239;;:::o;58480:120::-;57492:7;;;;58016:41;;;;-1:-1:-1;;;58016:41:0;;12887:2:1;58016:41:0;;;12869:21:1;12926:2;12906:18;;;12899:30;12965:22;12945:18;;;12938:50;13005:18;;58016:41:0;12685:344:1;58016:41:0;58539:7:::1;:15:::0;;-1:-1:-1;;58539:15:0::1;::::0;;58570:22:::1;6878:10:::0;58579:12:::1;58570:22;::::0;-1:-1:-1;;;;;13198:55:1;;;13180:74;;13168:2;13153:18;58570:22:0::1;;;;;;;58480:120::o:0;15509:399::-;-1:-1:-1;;;;;15593:21:0;;15585:65;;;;-1:-1:-1;;;15585:65:0;;13467:2:1;15585:65:0;;;13449:21:1;13506:2;13486:18;;;13479:30;13545:33;13525:18;;;13518:61;13596:18;;15585:65:0;13265:355:1;15585:65:0;15663:49;15692:1;15696:7;15705:6;15663:20;:49::i;:::-;15741:6;15725:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;15758:18:0;;:9;:18;;;;;;;;;;:28;;15780:6;;15758:9;:28;;15780:6;;15758:28;:::i;:::-;;;;-1:-1:-1;;15802:37:0;;1819:25:1;;;-1:-1:-1;;;;;15802:37:0;;;15819:1;;15802:37;;1807:2:1;1792:18;15802:37:0;;;;;;;51630:218;;:::o;16241:591::-;-1:-1:-1;;;;;16325:21:0;;16317:67;;;;-1:-1:-1;;;16317:67:0;;13827:2:1;16317:67:0;;;13809:21:1;13866:2;13846:18;;;13839:30;13905:34;13885:18;;;13878:62;13976:3;13956:18;;;13949:31;13997:19;;16317:67:0;13625:397:1;16317:67:0;16397:49;16418:7;16435:1;16439:6;16397:20;:49::i;:::-;-1:-1:-1;;;;;16484:18:0;;16459:22;16484:18;;;;;;;;;;;16521:24;;;;16513:71;;;;-1:-1:-1;;;16513:71:0;;14229:2:1;16513:71:0;;;14211:21:1;14268:2;14248:18;;;14241:30;14307:34;14287:18;;;14280:62;14378:4;14358:18;;;14351:32;14400:19;;16513:71:0;14027:398:1;16513:71:0;-1:-1:-1;;;;;16620:18:0;;:9;:18;;;;;;;;;;16641:23;;;16620:44;;16686:12;:22;;16658:6;;16620:9;16686:22;;16658:6;;16686:22;:::i;:::-;;;;-1:-1:-1;;16726:37:0;;1819:25:1;;;16752:1:0;;-1:-1:-1;;;;;16726:37:0;;;;;1807:2:1;1792:18;16726:37:0;;;;;;;50582:147;;;:::o;58221:118::-;57492:7;;;;57746:9;57738:38;;;;-1:-1:-1;;;57738:38:0;;14762:2:1;57738:38:0;;;14744:21:1;14801:2;14781:18;;;14774:30;14840:18;14820;;;14813:46;14876:18;;57738:38:0;14560:340:1;57738:38:0;58281:7:::1;:14:::0;;-1:-1:-1;;58281:14:0::1;58291:4;58281:14;::::0;;58311:20:::1;58318:12;6878:10:::0;;6798:98;39622:207;-1:-1:-1;;;;;39743:14:0;;39682:15;39743:14;;;:7;:14;;;;;36430;;36567:1;36549:19;;;;36430:14;39804:17;39699:130;39622:207;;;:::o;35284:167::-;35361:7;35388:55;35410:20;:18;:20::i;:::-;35432:10;30748:57;;16745:66:1;30748:57:0;;;16733:79:1;16828:11;;;16821:27;;;16864:12;;;16857:28;;;30711:7:0;;16901:12:1;;30748:57:0;;;;;;;;;;;;30738:68;;;;;;30731:75;;30618:196;;;;;28927:279;29055:7;29076:17;29095:18;29117:25;29128:4;29134:1;29137;29140;29117:10;:25::i;:::-;29075:67;;;;29153:18;29165:5;29153:11;:18::i;:::-;-1:-1:-1;29189:9:0;28927:279;-1:-1:-1;;;;;28927:279:0:o;72223:201::-;57492:7;;;;57746:9;57738:38;;;;-1:-1:-1;;;57738:38:0;;14762:2:1;57738:38:0;;;14744:21:1;14801:2;14781:18;;;14774:30;14840:18;14820;;;14813:46;14876:18;;57738:38:0;14560:340:1;20784:451:0;20859:13;20885:19;20917:10;20921:6;20917:1;:10;:::i;:::-;:14;;20930:1;20917:14;:::i;:::-;20907:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20907:25:0;;20885:47;;20943:15;:6;20950:1;20943:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;20943:15:0;;;;;;;;;20969;:6;20976:1;20969:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;20969:15:0;;;;;;;;-1:-1:-1;21000:9:0;21012:10;21016:6;21012:1;:10;:::i;:::-;:14;;21025:1;21012:14;:::i;:::-;21000:26;;20995:135;21032:1;21028;:5;20995:135;;;21067:12;21080:5;21088:3;21080:11;21067:25;;;;;;;:::i;:::-;;;;21055:6;21062:1;21055:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;21055:37:0;;;;;;;;-1:-1:-1;21117:1:0;21107:11;;;;;21035:3;;;:::i;:::-;;;20995:135;;;-1:-1:-1;21148:10:0;;21140:55;;;;-1:-1:-1;;;21140:55:0;;15799:2:1;21140:55:0;;;15781:21:1;;;15818:18;;;15811:30;15877:34;15857:18;;;15850:62;15929:18;;21140:55:0;15597:356:1;21140:55:0;21220:6;20784:451;-1:-1:-1;;;20784:451:0:o;27149:1639::-;27280:7;;28221:66;28208:79;;28204:163;;;-1:-1:-1;28320:1:0;;-1:-1:-1;28324:30:0;28304:51;;28204:163;28381:1;:7;;28386:2;28381:7;;:18;;;;;28392:1;:7;;28397:2;28392:7;;28381:18;28377:102;;;-1:-1:-1;28432:1:0;;-1:-1:-1;28436:30:0;28416:51;;28377:102;28593:24;;;28576:14;28593:24;;;;;;;;;17151:25:1;;;17224:4;17212:17;;17192:18;;;17185:45;;;;17246:18;;;17239:34;;;17289:18;;;17282:34;;;28593:24:0;;17123:19:1;;28593:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;28593:24:0;;-1:-1:-1;;28593:24:0;;;-1:-1:-1;;;;;;;28632:20:0;;28628:103;;28685:1;28689:29;28669:50;;;;;;;28628:103;28751:6;-1:-1:-1;28759:20:0;;-1:-1:-1;27149:1639:0;;;;;;;;:::o;21811:643::-;21889:20;21880:5;:29;;;;;;;;:::i;:::-;;21876:571;;;21811:643;:::o;21876:571::-;21987:29;21978:5;:38;;;;;;;;:::i;:::-;;21974:473;;;22033:34;;-1:-1:-1;;;22033:34:0;;17718:2:1;22033:34:0;;;17700:21:1;17757:2;17737:18;;;17730:30;17796:26;17776:18;;;17769:54;17840:18;;22033:34:0;17516:348:1;21974:473:0;22098:35;22089:5;:44;;;;;;;;:::i;:::-;;22085:362;;;22150:41;;-1:-1:-1;;;22150:41:0;;18071:2:1;22150:41:0;;;18053:21:1;18110:2;18090:18;;;18083:30;18149:33;18129:18;;;18122:61;18200:18;;22150:41:0;17869:355:1;22085:362:0;22222:30;22213:5;:39;;;;;;;;:::i;:::-;;22209:238;;;22269:44;;-1:-1:-1;;;22269:44:0;;18431:2:1;22269:44:0;;;18413:21:1;18470:2;18450:18;;;18443:30;18509:34;18489:18;;;18482:62;-1:-1:-1;;;18560:18:1;;;18553:32;18602:19;;22269:44:0;18229:398:1;22209:238:0;22344:30;22335:5;:39;;;;;;;;:::i;:::-;;22331:116;;;22391:44;;-1:-1:-1;;;22391:44:0;;18834:2:1;22391:44:0;;;18816:21:1;18873:2;18853:18;;;18846:30;18912:34;18892:18;;;18885:62;-1:-1:-1;;;18963:18:1;;;18956:32;19005:19;;22391:44:0;18632:398:1;14:332;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;543:258;615:1;625:113;639:6;636:1;633:13;625:113;;;715:11;;;709:18;696:11;;;689:39;661:2;654:10;625:113;;;756:6;753:1;750:13;747:48;;;-1:-1:-1;;791:1:1;773:16;;766:27;543:258::o;806:383::-;955:2;944:9;937:21;918:4;987:6;981:13;1030:6;1025:2;1014:9;1010:18;1003:34;1046:66;1105:6;1100:2;1089:9;1085:18;1080:2;1072:6;1068:15;1046:66;:::i;:::-;1173:2;1152:15;-1:-1:-1;;1148:29:1;1133:45;;;;1180:2;1129:54;;806:383;-1:-1:-1;;806:383:1:o;1194:154::-;-1:-1:-1;;;;;1273:5:1;1269:54;1262:5;1259:65;1249:93;;1338:1;1335;1328:12;1353:315;1421:6;1429;1482:2;1470:9;1461:7;1457:23;1453:32;1450:52;;;1498:1;1495;1488:12;1450:52;1537:9;1524:23;1556:31;1581:5;1556:31;:::i;:::-;1606:5;1658:2;1643:18;;;;1630:32;;-1:-1:-1;;;1353:315:1:o;1855:456::-;1932:6;1940;1948;2001:2;1989:9;1980:7;1976:23;1972:32;1969:52;;;2017:1;2014;2007:12;1969:52;2056:9;2043:23;2075:31;2100:5;2075:31;:::i;:::-;2125:5;-1:-1:-1;2182:2:1;2167:18;;2154:32;2195:33;2154:32;2195:33;:::i;:::-;1855:456;;2247:7;;-1:-1:-1;;;2301:2:1;2286:18;;;;2273:32;;1855:456::o;2316:180::-;2375:6;2428:2;2416:9;2407:7;2403:23;2399:32;2396:52;;;2444:1;2441;2434:12;2396:52;-1:-1:-1;2467:23:1;;2316:180;-1:-1:-1;2316:180:1:o;2683:315::-;2751:6;2759;2812:2;2800:9;2791:7;2787:23;2783:32;2780:52;;;2828:1;2825;2818:12;2780:52;2864:9;2851:23;2841:33;;2924:2;2913:9;2909:18;2896:32;2937:31;2962:5;2937:31;:::i;:::-;2987:5;2977:15;;;2683:315;;;;;:::o;3711:247::-;3770:6;3823:2;3811:9;3802:7;3798:23;3794:32;3791:52;;;3839:1;3836;3829:12;3791:52;3878:9;3865:23;3897:31;3922:5;3897:31;:::i;3963:829::-;4074:6;4082;4090;4098;4106;4114;4122;4175:3;4163:9;4154:7;4150:23;4146:33;4143:53;;;4192:1;4189;4182:12;4143:53;4231:9;4218:23;4250:31;4275:5;4250:31;:::i;:::-;4300:5;-1:-1:-1;4357:2:1;4342:18;;4329:32;4370:33;4329:32;4370:33;:::i;:::-;4422:7;-1:-1:-1;4476:2:1;4461:18;;4448:32;;-1:-1:-1;4527:2:1;4512:18;;4499:32;;-1:-1:-1;4583:3:1;4568:19;;4555:33;4632:4;4619:18;;4607:31;;4597:59;;4652:1;4649;4642:12;4597:59;3963:829;;;;-1:-1:-1;3963:829:1;;;;4675:7;4729:3;4714:19;;4701:33;;-1:-1:-1;4781:3:1;4766:19;;;4753:33;;3963:829;-1:-1:-1;;3963:829:1:o;4797:388::-;4865:6;4873;4926:2;4914:9;4905:7;4901:23;4897:32;4894:52;;;4942:1;4939;4932:12;4894:52;4981:9;4968:23;5000:31;5025:5;5000:31;:::i;:::-;5050:5;-1:-1:-1;5107:2:1;5092:18;;5079:32;5120:33;5079:32;5120:33;:::i;5190:437::-;5269:1;5265:12;;;;5312;;;5333:61;;5387:4;5379:6;5375:17;5365:27;;5333:61;5440:2;5432:6;5429:14;5409:18;5406:38;5403:218;;;-1:-1:-1;;;5474:1:1;5467:88;5578:4;5575:1;5568:15;5606:4;5603:1;5596:15;6457:184;-1:-1:-1;;;6506:1:1;6499:88;6606:4;6603:1;6596:15;6630:4;6627:1;6620:15;6646:128;6686:3;6717:1;6713:6;6710:1;6707:13;6704:39;;;6723:18;;:::i;:::-;-1:-1:-1;6759:9:1;;6646:128::o;7440:277::-;7507:6;7560:2;7548:9;7539:7;7535:23;7531:32;7528:52;;;7576:1;7573;7566:12;7528:52;7608:9;7602:16;7661:5;7654:13;7647:21;7640:5;7637:32;7627:60;;7683:1;7680;7673:12;11894:786;12305:25;12300:3;12293:38;12275:3;12360:6;12354:13;12376:62;12431:6;12426:2;12421:3;12417:12;12410:4;12402:6;12398:17;12376:62;:::i;:::-;12502:19;12497:2;12457:16;;;12489:11;;;12482:40;12547:13;;12569:63;12547:13;12618:2;12610:11;;12603:4;12591:17;;12569:63;:::i;:::-;12652:17;12671:2;12648:26;;11894:786;-1:-1:-1;;;;11894:786:1:o;14430:125::-;14470:4;14498:1;14495;14492:8;14489:34;;;14503:18;;:::i;:::-;-1:-1:-1;14540:9:1;;14430:125::o;14905:168::-;14945:7;15011:1;15007;15003:6;14999:14;14996:1;14993:21;14988:1;14981:9;14974:17;14970:45;14967:71;;;15018:18;;:::i;:::-;-1:-1:-1;15058:9:1;;14905:168::o;15078:184::-;-1:-1:-1;;;15127:1:1;15120:88;15227:4;15224:1;15217:15;15251:4;15248:1;15241:15;15267:184;-1:-1:-1;;;15316:1:1;15309:88;15416:4;15413:1;15406:15;15440:4;15437:1;15430:15;15456:136;15495:3;15523:5;15513:39;;15532:18;;:::i;:::-;-1:-1:-1;;;15568:18:1;;15456:136::o;17327:184::-;-1:-1:-1;;;17376:1:1;17369:88;17476:4;17473:1;17466:15;17500:4;17497:1;17490:15
Swarm Source
ipfs://c1459fa004a2e1ebd61bd40624ceda68f03366cb842dda45f8b0c7e7ec3fa387
Loading...
Loading
Loading...
Loading
OVERVIEW
Decentralized exchange (DEX) with an automated market maker (AMM), providing liquidity and peer-to-peer transactions, built on the Moonbeam network.Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.