Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TruckStaking
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2022-09-07
*/
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// 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);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts v4.4.1 (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/token/ERC721/IERC721.sol
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` 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 tokenId
) 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.
* - `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 tokenId
) internal virtual {}
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v4.7.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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_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 Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol
// OpenZeppelin Contracts (last updated v4.5.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 {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions 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: https://github.com/SNBTechnologies/truck-contracts/ShippingEquipmentMaterializingIncome.sol
/*
Collect, trade, stake and earn SEMI with your TRUCK NFTs!!
Twitter: @RowdyUnicorns
*/
pragma solidity 0.8.4;
contract ShippingEquipmentMaterializingIncome is ERC20, ERC20Burnable, Ownable {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => bool) controllers;
uint256 public percentage;
uint256 private _totalSupply;
uint256 private MAXSUP;
uint256 constant MAXIMUMSUPPLY=100000000000*10**18;
constructor() ERC20("Shipping Equipment Materializing Income", "SEMI") {
_mint(msg.sender, 100000 * 10 ** 18);
}
function setPercentageFee(uint256 fee) external onlyOwner {
percentage = fee;
}
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
uint256 percentageFee = (amount.mul(percentage)).div(10000);
address spender = _msgSender();
_spendAllowance(from, spender, amount);
uint256 total = amount.sub(percentageFee);
transfer(address(this), percentageFee);
transfer(to ,total);
return true;
}
function mint(address to, uint256 amount) external {
require(controllers[msg.sender], "Only controllers can mint");
require((MAXSUP+amount)<=MAXIMUMSUPPLY,"Maximum supply has been reached");
_totalSupply = _totalSupply.add(amount);
MAXSUP=MAXSUP.add(amount);
_balances[to] = _balances[to].add(amount);
_mint(to, amount);
}
function burnFrom(address account, uint256 amount) public override {
if (controllers[msg.sender]) {
_burn(account, amount);
}
else {
super.burnFrom(account, amount);
}
}
function addController(address controller) external onlyOwner {
controllers[controller] = true;
}
function removeController(address controller) external onlyOwner {
controllers[controller] = false;
}
function totalSupply() public override view returns (uint256) {
return _totalSupply;
}
function maxSupply() public pure returns (uint256) {
return MAXIMUMSUPPLY;
}
}
// File: TruckStaking.sol
/*
Collect, trade, stake and earn SEMI with your TRUCK NFTs!!
Twitter: @RowdyUnicorns
*/
pragma solidity 0.8.4;
contract TruckStaking is Ownable, IERC721Receiver {
uint256 public totalStaked;
struct Stake {
uint24 tokenId;
uint48 timestamp;
address owner;
}
event NFTStaked(address owner, uint256 tokenId, uint256 value);
event NFTUnstaked(address owner, uint256 tokenId, uint256 value);
event Claimed(address owner, uint256 amount);
ERC721Enumerable nft;
ShippingEquipmentMaterializingIncome token;
mapping(uint256 => Stake) public vault;
constructor(ERC721Enumerable _nft, ShippingEquipmentMaterializingIncome _token) {
nft = _nft;
token = _token;
}
function stake(uint256[] calldata tokenIds) external {
uint256 tokenId;
totalStaked += tokenIds.length;
for (uint i = 0; i < tokenIds.length; i++) {
tokenId = tokenIds[i];
require(nft.ownerOf(tokenId) == msg.sender, "not your token");
require(vault[tokenId].tokenId == 0, 'already staked');
nft.transferFrom(msg.sender, address(this), tokenId);
emit NFTStaked(msg.sender, tokenId, block.timestamp);
vault[tokenId] = Stake({
owner: msg.sender,
tokenId: uint24(tokenId),
timestamp: uint48(block.timestamp)
});
}
}
function _unstakeMany(address account, uint256[] calldata tokenIds) internal {
uint256 tokenId;
totalStaked -= tokenIds.length;
for (uint i = 0; i < tokenIds.length; i++) {
tokenId = tokenIds[i];
Stake memory staked = vault[tokenId];
require(staked.owner == msg.sender, "not an owner");
delete vault[tokenId];
emit NFTUnstaked(account, tokenId, block.timestamp);
nft.transferFrom(address(this), account, tokenId);
}
}
function claim(uint256[] calldata tokenIds) external {
_claim(msg.sender, tokenIds, false);
}
function claimForAddress(address account, uint256[] calldata tokenIds) external {
_claim(account, tokenIds, false);
}
function unstake(uint256[] calldata tokenIds) external {
_claim(msg.sender, tokenIds, true);
}
function _claim(address account, uint256[] calldata tokenIds, bool _unstake) internal {
uint256 tokenId;
uint256 earned = 0;
uint256 rewardmath = 0;
for (uint i = 0; i < tokenIds.length; i++) {
tokenId = tokenIds[i];
Stake memory staked = vault[tokenId];
require(staked.owner == account, "not an owner");
uint256 stakedAt = staked.timestamp;
rewardmath = 15 ether * (block.timestamp - stakedAt) / 86400 ;
earned = rewardmath / 100;
vault[tokenId] = Stake({
owner: account,
tokenId: uint24(tokenId),
timestamp: uint48(block.timestamp)
});
}
if (earned > 0) {
token.mint(account, earned);
}
if (_unstake) {
_unstakeMany(account, tokenIds);
}
emit Claimed(account, earned);
}
function earningInfo(address account, uint256[] calldata tokenIds) external view returns (uint256[1] memory info) {
uint256 tokenId;
uint256 earned = 0;
uint256 rewardmath = 0;
for (uint i = 0; i < tokenIds.length; i++) {
tokenId = tokenIds[i];
Stake memory staked = vault[tokenId];
require(staked.owner == account, "not an owner");
uint256 stakedAt = staked.timestamp;
rewardmath = 15 ether * (block.timestamp - stakedAt) / 86400;
earned = rewardmath / 100;
}
if (earned > 0) {
return [earned];
}
}
function balanceOf(address account) public view returns (uint256) {
uint256 balance = 0;
uint256 supply = nft.totalSupply();
for(uint i = 1; i <= supply; i++) {
if (vault[i].owner == account) {
balance += 1;
}
}
return balance;
}
function tokensOfOwner(address account) public view returns (uint256[] memory ownerTokens) {
uint256 supply = nft.totalSupply();
uint256[] memory tmp = new uint256[](supply);
uint256 index = 0;
for(uint tokenId = 1; tokenId <= supply; tokenId++) {
if (vault[tokenId].owner == account) {
tmp[index] = vault[tokenId].tokenId;
index +=1;
}
}
uint256[] memory tokens = new uint256[](index);
for(uint i = 0; i < index; i++) {
tokens[i] = tmp[i];
}
return tokens;
}
function onERC721Received(
address,
address from,
uint256,
bytes calldata
) external pure override returns (bytes4) {
require(from == address(0x0), "Cannot send nfts to Vault directly");
return IERC721Receiver.onERC721Received.selector;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ERC721Enumerable","name":"_nft","type":"address"},{"internalType":"contract ShippingEquipmentMaterializingIncome","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"NFTStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"NFTUnstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"earningInfo","outputs":[{"internalType":"uint256[1]","name":"info","type":"uint256[1]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vault","outputs":[{"internalType":"uint24","name":"tokenId","type":"uint24"},{"internalType":"uint48","name":"timestamp","type":"uint48"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200251a3803806200251a8339818101604052810190620000379190620001db565b620000576200004b620000e160201b60201c565b620000e960201b60201c565b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620002ac565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001be8162000278565b92915050565b600081519050620001d58162000292565b92915050565b60008060408385031215620001ef57600080fd5b6000620001ff85828601620001ad565b92505060206200021285828601620001c4565b9150509250929050565b6000620002298262000258565b9050919050565b60006200023d826200021c565b9050919050565b600062000251826200021c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620002838162000230565b81146200028f57600080fd5b50565b6200029d8162000244565b8114620002a957600080fd5b50565b61225e80620002bc6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063817b1cd21161008c5780638da5cb5b116100665780638da5cb5b14610226578063c36be35714610244578063e449f34114610260578063f2fde38b1461027c576100cf565b8063817b1cd2146101a657806381a36fb6146101c45780638462151c146101f6576100cf565b80630fbf0a93146100d4578063150b7a02146100f05780636ba4c1381461012057806370a082311461013c578063715018a61461016c5780637e75dd6014610176575b600080fd5b6100ee60048036038101906100e99190611950565b610298565b005b61010a60048036038101906101059190611878565b61065b565b6040516101179190611ccf565b60405180910390f35b61013a60048036038101906101359190611950565b6106de565b005b61015660048036038101906101519190611826565b6106ef565b6040516101639190611de1565b60405180910390f35b610174610840565b005b610190600480360381019061018b91906118f8565b610854565b60405161019d9190611c92565b60405180910390f35b6101ae610a7f565b6040516101bb9190611de1565b60405180910390f35b6101de60048036038101906101d99190611995565b610a85565b6040516101ed93929190611daa565b60405180910390f35b610210600480360381019061020b9190611826565b610af0565b60405161021d9190611cad565b60405180910390f35b61022e610e3a565b60405161023b9190611be0565b60405180910390f35b61025e600480360381019061025991906118f8565b610e63565b005b61027a60048036038101906102759190611950565b610e75565b005b61029660048036038101906102919190611826565b610e86565b005b600082829050600160008282546102af9190611e73565b9250508190555060005b83839050811015610655578383828181106102fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013591503373ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016103789190611de1565b60206040518083038186803b15801561039057600080fd5b505afa1580156103a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c8919061184f565b73ffffffffffffffffffffffffffffffffffffffff161461041e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041590611d0a565b60405180910390fd5b60006004600084815260200190815260200160002060000160009054906101000a900462ffffff1662ffffff161461048b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048290611d8a565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016104ea93929190611bfb565b600060405180830381600087803b15801561050457600080fd5b505af1158015610518573d6000803e3d6000fd5b505050507f36b3725f1783bad4ff05b7f4c077c3aa68eeb23a4d054ba189db4d01ac278d3933834260405161054f93929190611c5b565b60405180910390a160405180606001604052808362ffffff1681526020014265ffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908362ffffff16021790555060208201518160000160036101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160096101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050808061064d90612011565b9150506102b9565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146106cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c290611d6a565b60405180910390fd5b63150b7a0260e01b905095945050505050565b6106eb3383836000610f0a565b5050565b600080600090506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561076057600080fd5b505afa158015610774573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079891906119be565b90506000600190505b818111610835578473ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156108225760018361081f9190611e73565b92505b808061082d90612011565b9150506107a1565b508192505050919050565b6108486112d8565b6108526000611356565b565b61085c61171c565b600080600090506000805b86869050811015610a51578686828181106108ab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013593506000600460008681526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508873ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146109ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e490611d4a565b60405180910390fd5b6000816020015165ffffffffffff169050620151808142610a0e9190611f54565b67d02ab486cedc0000610a219190611efa565b610a2b9190611ec9565b9350606484610a3a9190611ec9565b945050508080610a4990612011565b915050610867565b506000821115610a74576040518060200160405280838152509350505050610a78565b5050505b9392505050565b60015481565b60046020528060005260406000206000915090508060000160009054906101000a900462ffffff16908060000160039054906101000a900465ffffffffffff16908060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b60606000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5c57600080fd5b505afa158015610b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9491906119be565b905060008167ffffffffffffffff811115610bd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610c065781602001602082028036833780820191505090505b509050600080600190505b838111610d15578573ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d02576004600082815260200190815260200160002060000160009054906101000a900462ffffff1662ffffff16838381518110610ce6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050600182610cff9190611e73565b91505b8080610d0d90612011565b915050610c11565b5060008167ffffffffffffffff811115610d58577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d865781602001602082028036833780820191505090505b50905060005b82811015610e2d57838181518110610dcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151828281518110610e0e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610e2590612011565b915050610d8c565b5080945050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e708383836000610f0a565b505050565b610e823383836001610f0a565b5050565b610e8e6112d8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef590611cea565b60405180910390fd5b610f0781611356565b50565b600080600090506000805b868690508110156111ea57868682818110610f59577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013593506000600460008681526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508873ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109290611d4a565b60405180910390fd5b6000816020015165ffffffffffff1690506201518081426110bc9190611f54565b67d02ab486cedc00006110cf9190611efa565b6110d99190611ec9565b93506064846110e89190611ec9565b945060405180606001604052808762ffffff1681526020014265ffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff168152506004600088815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908362ffffff16021790555060208201518160000160036101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160096101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505080806111e290612011565b915050610f15565b50600082111561128457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1988846040518363ffffffff1660e01b8152600401611251929190611c32565b600060405180830381600087803b15801561126b57600080fd5b505af115801561127f573d6000803e3d6000fd5b505050505b83156112965761129587878761141a565b5b7fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a87836040516112c7929190611c32565b60405180910390a150505050505050565b6112e0611714565b73ffffffffffffffffffffffffffffffffffffffff166112fe610e3a565b73ffffffffffffffffffffffffffffffffffffffff1614611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90611d2a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082829050600160008282546114319190611f54565b9250508190555060005b8383905081101561170d5783838281811061147f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013591506000600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146115c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b890611d4a565b60405180910390fd5b60046000848152602001908152602001600020600080820160006101000a81549062ffffff02191690556000820160036101000a81549065ffffffffffff02191690556000820160096101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507fc486b9458a8637650d84d262414833a5a457bc91ae86b7da110386c8c3fa255b86844260405161166093929190611c5b565b60405180910390a1600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3088866040518463ffffffff1660e01b81526004016116c793929190611bfb565b600060405180830381600087803b1580156116e157600080fd5b505af11580156116f5573d6000803e3d6000fd5b5050505050808061170590612011565b91505061143b565b5050505050565b600033905090565b6040518060200160405280600190602082028036833780820191505090505090565b60008135905061174d816121fa565b92915050565b600081519050611762816121fa565b92915050565b60008083601f84011261177a57600080fd5b8235905067ffffffffffffffff81111561179357600080fd5b6020830191508360208202830111156117ab57600080fd5b9250929050565b60008083601f8401126117c457600080fd5b8235905067ffffffffffffffff8111156117dd57600080fd5b6020830191508360018202830111156117f557600080fd5b9250929050565b60008135905061180b81612211565b92915050565b60008151905061182081612211565b92915050565b60006020828403121561183857600080fd5b60006118468482850161173e565b91505092915050565b60006020828403121561186157600080fd5b600061186f84828501611753565b91505092915050565b60008060008060006080868803121561189057600080fd5b600061189e8882890161173e565b95505060206118af8882890161173e565b94505060406118c0888289016117fc565b935050606086013567ffffffffffffffff8111156118dd57600080fd5b6118e9888289016117b2565b92509250509295509295909350565b60008060006040848603121561190d57600080fd5b600061191b8682870161173e565b935050602084013567ffffffffffffffff81111561193857600080fd5b61194486828701611768565b92509250509250925092565b6000806020838503121561196357600080fd5b600083013567ffffffffffffffff81111561197d57600080fd5b61198985828601611768565b92509250509250929050565b6000602082840312156119a757600080fd5b60006119b5848285016117fc565b91505092915050565b6000602082840312156119d057600080fd5b60006119de84828501611811565b91505092915050565b60006119f38383611bb3565b60208301905092915050565b611a0881611f88565b82525050565b611a1781611e16565b611a218184611e46565b9250611a2c82611dfc565b8060005b83811015611a5d578151611a4487826119e7565b9650611a4f83611e2c565b925050600181019050611a30565b505050505050565b6000611a7082611e21565b611a7a8185611e51565b9350611a8583611e06565b8060005b83811015611ab6578151611a9d88826119e7565b9750611aa883611e39565b925050600181019050611a89565b5085935050505092915050565b611acc81611f9a565b82525050565b6000611adf602683611e62565b9150611aea826120b8565b604082019050919050565b6000611b02600e83611e62565b9150611b0d82612107565b602082019050919050565b6000611b25602083611e62565b9150611b3082612130565b602082019050919050565b6000611b48600c83611e62565b9150611b5382612159565b602082019050919050565b6000611b6b602283611e62565b9150611b7682612182565b604082019050919050565b6000611b8e600e83611e62565b9150611b99826121d1565b602082019050919050565b611bad81611fe6565b82525050565b611bbc81611ff5565b82525050565b611bcb81611ff5565b82525050565b611bda81611fff565b82525050565b6000602082019050611bf560008301846119ff565b92915050565b6000606082019050611c1060008301866119ff565b611c1d60208301856119ff565b611c2a6040830184611bc2565b949350505050565b6000604082019050611c4760008301856119ff565b611c546020830184611bc2565b9392505050565b6000606082019050611c7060008301866119ff565b611c7d6020830185611bc2565b611c8a6040830184611bc2565b949350505050565b6000602082019050611ca76000830184611a0e565b92915050565b60006020820190508181036000830152611cc78184611a65565b905092915050565b6000602082019050611ce46000830184611ac3565b92915050565b60006020820190508181036000830152611d0381611ad2565b9050919050565b60006020820190508181036000830152611d2381611af5565b9050919050565b60006020820190508181036000830152611d4381611b18565b9050919050565b60006020820190508181036000830152611d6381611b3b565b9050919050565b60006020820190508181036000830152611d8381611b5e565b9050919050565b60006020820190508181036000830152611da381611b81565b9050919050565b6000606082019050611dbf6000830186611ba4565b611dcc6020830185611bd1565b611dd960408301846119ff565b949350505050565b6000602082019050611df66000830184611bc2565b92915050565b6000819050919050565b6000819050602082019050919050565b600060019050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611e7e82611ff5565b9150611e8983611ff5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611ebe57611ebd61205a565b5b828201905092915050565b6000611ed482611ff5565b9150611edf83611ff5565b925082611eef57611eee612089565b5b828204905092915050565b6000611f0582611ff5565b9150611f1083611ff5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f4957611f4861205a565b5b828202905092915050565b6000611f5f82611ff5565b9150611f6a83611ff5565b925082821015611f7d57611f7c61205a565b5b828203905092915050565b6000611f9382611fc6565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600065ffffffffffff82169050919050565b600061201c82611ff5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561204f5761204e61205a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6e6f7420616e206f776e65720000000000000000000000000000000000000000600082015250565b7f43616e6e6f742073656e64206e66747320746f205661756c742064697265637460008201527f6c79000000000000000000000000000000000000000000000000000000000000602082015250565b7f616c7265616479207374616b6564000000000000000000000000000000000000600082015250565b61220381611f88565b811461220e57600080fd5b50565b61221a81611ff5565b811461222557600080fd5b5056fea2646970667358221220ebc26e1999f5e88350a4be24575ba8f7d0e521f172913cdfd235768f65ab4cbc64736f6c6343000804003300000000000000000000000044b2b523ac8d98236cb4bb09b65e29b8b6f92aad0000000000000000000000006d269d542723ad73ffe482d0afe2428b1b6c3266
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063817b1cd21161008c5780638da5cb5b116100665780638da5cb5b14610226578063c36be35714610244578063e449f34114610260578063f2fde38b1461027c576100cf565b8063817b1cd2146101a657806381a36fb6146101c45780638462151c146101f6576100cf565b80630fbf0a93146100d4578063150b7a02146100f05780636ba4c1381461012057806370a082311461013c578063715018a61461016c5780637e75dd6014610176575b600080fd5b6100ee60048036038101906100e99190611950565b610298565b005b61010a60048036038101906101059190611878565b61065b565b6040516101179190611ccf565b60405180910390f35b61013a60048036038101906101359190611950565b6106de565b005b61015660048036038101906101519190611826565b6106ef565b6040516101639190611de1565b60405180910390f35b610174610840565b005b610190600480360381019061018b91906118f8565b610854565b60405161019d9190611c92565b60405180910390f35b6101ae610a7f565b6040516101bb9190611de1565b60405180910390f35b6101de60048036038101906101d99190611995565b610a85565b6040516101ed93929190611daa565b60405180910390f35b610210600480360381019061020b9190611826565b610af0565b60405161021d9190611cad565b60405180910390f35b61022e610e3a565b60405161023b9190611be0565b60405180910390f35b61025e600480360381019061025991906118f8565b610e63565b005b61027a60048036038101906102759190611950565b610e75565b005b61029660048036038101906102919190611826565b610e86565b005b600082829050600160008282546102af9190611e73565b9250508190555060005b83839050811015610655578383828181106102fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013591503373ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016103789190611de1565b60206040518083038186803b15801561039057600080fd5b505afa1580156103a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c8919061184f565b73ffffffffffffffffffffffffffffffffffffffff161461041e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041590611d0a565b60405180910390fd5b60006004600084815260200190815260200160002060000160009054906101000a900462ffffff1662ffffff161461048b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048290611d8a565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016104ea93929190611bfb565b600060405180830381600087803b15801561050457600080fd5b505af1158015610518573d6000803e3d6000fd5b505050507f36b3725f1783bad4ff05b7f4c077c3aa68eeb23a4d054ba189db4d01ac278d3933834260405161054f93929190611c5b565b60405180910390a160405180606001604052808362ffffff1681526020014265ffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908362ffffff16021790555060208201518160000160036101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160096101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050808061064d90612011565b9150506102b9565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146106cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c290611d6a565b60405180910390fd5b63150b7a0260e01b905095945050505050565b6106eb3383836000610f0a565b5050565b600080600090506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561076057600080fd5b505afa158015610774573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079891906119be565b90506000600190505b818111610835578473ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156108225760018361081f9190611e73565b92505b808061082d90612011565b9150506107a1565b508192505050919050565b6108486112d8565b6108526000611356565b565b61085c61171c565b600080600090506000805b86869050811015610a51578686828181106108ab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013593506000600460008681526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508873ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146109ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e490611d4a565b60405180910390fd5b6000816020015165ffffffffffff169050620151808142610a0e9190611f54565b67d02ab486cedc0000610a219190611efa565b610a2b9190611ec9565b9350606484610a3a9190611ec9565b945050508080610a4990612011565b915050610867565b506000821115610a74576040518060200160405280838152509350505050610a78565b5050505b9392505050565b60015481565b60046020528060005260406000206000915090508060000160009054906101000a900462ffffff16908060000160039054906101000a900465ffffffffffff16908060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b60606000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5c57600080fd5b505afa158015610b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9491906119be565b905060008167ffffffffffffffff811115610bd8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610c065781602001602082028036833780820191505090505b509050600080600190505b838111610d15578573ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d02576004600082815260200190815260200160002060000160009054906101000a900462ffffff1662ffffff16838381518110610ce6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050600182610cff9190611e73565b91505b8080610d0d90612011565b915050610c11565b5060008167ffffffffffffffff811115610d58577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d865781602001602082028036833780820191505090505b50905060005b82811015610e2d57838181518110610dcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151828281518110610e0e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610e2590612011565b915050610d8c565b5080945050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e708383836000610f0a565b505050565b610e823383836001610f0a565b5050565b610e8e6112d8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef590611cea565b60405180910390fd5b610f0781611356565b50565b600080600090506000805b868690508110156111ea57868682818110610f59577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013593506000600460008681526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090508873ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff161461109b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109290611d4a565b60405180910390fd5b6000816020015165ffffffffffff1690506201518081426110bc9190611f54565b67d02ab486cedc00006110cf9190611efa565b6110d99190611ec9565b93506064846110e89190611ec9565b945060405180606001604052808762ffffff1681526020014265ffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff168152506004600088815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908362ffffff16021790555060208201518160000160036101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160096101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505080806111e290612011565b915050610f15565b50600082111561128457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1988846040518363ffffffff1660e01b8152600401611251929190611c32565b600060405180830381600087803b15801561126b57600080fd5b505af115801561127f573d6000803e3d6000fd5b505050505b83156112965761129587878761141a565b5b7fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a87836040516112c7929190611c32565b60405180910390a150505050505050565b6112e0611714565b73ffffffffffffffffffffffffffffffffffffffff166112fe610e3a565b73ffffffffffffffffffffffffffffffffffffffff1614611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90611d2a565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082829050600160008282546114319190611f54565b9250508190555060005b8383905081101561170d5783838281811061147f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013591506000600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900462ffffff1662ffffff1662ffffff1681526020016000820160039054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016000820160099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146115c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b890611d4a565b60405180910390fd5b60046000848152602001908152602001600020600080820160006101000a81549062ffffff02191690556000820160036101000a81549065ffffffffffff02191690556000820160096101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507fc486b9458a8637650d84d262414833a5a457bc91ae86b7da110386c8c3fa255b86844260405161166093929190611c5b565b60405180910390a1600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3088866040518463ffffffff1660e01b81526004016116c793929190611bfb565b600060405180830381600087803b1580156116e157600080fd5b505af11580156116f5573d6000803e3d6000fd5b5050505050808061170590612011565b91505061143b565b5050505050565b600033905090565b6040518060200160405280600190602082028036833780820191505090505090565b60008135905061174d816121fa565b92915050565b600081519050611762816121fa565b92915050565b60008083601f84011261177a57600080fd5b8235905067ffffffffffffffff81111561179357600080fd5b6020830191508360208202830111156117ab57600080fd5b9250929050565b60008083601f8401126117c457600080fd5b8235905067ffffffffffffffff8111156117dd57600080fd5b6020830191508360018202830111156117f557600080fd5b9250929050565b60008135905061180b81612211565b92915050565b60008151905061182081612211565b92915050565b60006020828403121561183857600080fd5b60006118468482850161173e565b91505092915050565b60006020828403121561186157600080fd5b600061186f84828501611753565b91505092915050565b60008060008060006080868803121561189057600080fd5b600061189e8882890161173e565b95505060206118af8882890161173e565b94505060406118c0888289016117fc565b935050606086013567ffffffffffffffff8111156118dd57600080fd5b6118e9888289016117b2565b92509250509295509295909350565b60008060006040848603121561190d57600080fd5b600061191b8682870161173e565b935050602084013567ffffffffffffffff81111561193857600080fd5b61194486828701611768565b92509250509250925092565b6000806020838503121561196357600080fd5b600083013567ffffffffffffffff81111561197d57600080fd5b61198985828601611768565b92509250509250929050565b6000602082840312156119a757600080fd5b60006119b5848285016117fc565b91505092915050565b6000602082840312156119d057600080fd5b60006119de84828501611811565b91505092915050565b60006119f38383611bb3565b60208301905092915050565b611a0881611f88565b82525050565b611a1781611e16565b611a218184611e46565b9250611a2c82611dfc565b8060005b83811015611a5d578151611a4487826119e7565b9650611a4f83611e2c565b925050600181019050611a30565b505050505050565b6000611a7082611e21565b611a7a8185611e51565b9350611a8583611e06565b8060005b83811015611ab6578151611a9d88826119e7565b9750611aa883611e39565b925050600181019050611a89565b5085935050505092915050565b611acc81611f9a565b82525050565b6000611adf602683611e62565b9150611aea826120b8565b604082019050919050565b6000611b02600e83611e62565b9150611b0d82612107565b602082019050919050565b6000611b25602083611e62565b9150611b3082612130565b602082019050919050565b6000611b48600c83611e62565b9150611b5382612159565b602082019050919050565b6000611b6b602283611e62565b9150611b7682612182565b604082019050919050565b6000611b8e600e83611e62565b9150611b99826121d1565b602082019050919050565b611bad81611fe6565b82525050565b611bbc81611ff5565b82525050565b611bcb81611ff5565b82525050565b611bda81611fff565b82525050565b6000602082019050611bf560008301846119ff565b92915050565b6000606082019050611c1060008301866119ff565b611c1d60208301856119ff565b611c2a6040830184611bc2565b949350505050565b6000604082019050611c4760008301856119ff565b611c546020830184611bc2565b9392505050565b6000606082019050611c7060008301866119ff565b611c7d6020830185611bc2565b611c8a6040830184611bc2565b949350505050565b6000602082019050611ca76000830184611a0e565b92915050565b60006020820190508181036000830152611cc78184611a65565b905092915050565b6000602082019050611ce46000830184611ac3565b92915050565b60006020820190508181036000830152611d0381611ad2565b9050919050565b60006020820190508181036000830152611d2381611af5565b9050919050565b60006020820190508181036000830152611d4381611b18565b9050919050565b60006020820190508181036000830152611d6381611b3b565b9050919050565b60006020820190508181036000830152611d8381611b5e565b9050919050565b60006020820190508181036000830152611da381611b81565b9050919050565b6000606082019050611dbf6000830186611ba4565b611dcc6020830185611bd1565b611dd960408301846119ff565b949350505050565b6000602082019050611df66000830184611bc2565b92915050565b6000819050919050565b6000819050602082019050919050565b600060019050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611e7e82611ff5565b9150611e8983611ff5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611ebe57611ebd61205a565b5b828201905092915050565b6000611ed482611ff5565b9150611edf83611ff5565b925082611eef57611eee612089565b5b828204905092915050565b6000611f0582611ff5565b9150611f1083611ff5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f4957611f4861205a565b5b828202905092915050565b6000611f5f82611ff5565b9150611f6a83611ff5565b925082821015611f7d57611f7c61205a565b5b828203905092915050565b6000611f9382611fc6565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600065ffffffffffff82169050919050565b600061201c82611ff5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561204f5761204e61205a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f6e6f7420616e206f776e65720000000000000000000000000000000000000000600082015250565b7f43616e6e6f742073656e64206e66747320746f205661756c742064697265637460008201527f6c79000000000000000000000000000000000000000000000000000000000000602082015250565b7f616c7265616479207374616b6564000000000000000000000000000000000000600082015250565b61220381611f88565b811461220e57600080fd5b50565b61221a81611ff5565b811461222557600080fd5b5056fea2646970667358221220ebc26e1999f5e88350a4be24575ba8f7d0e521f172913cdfd235768f65ab4cbc64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000044b2b523ac8d98236cb4bb09b65e29b8b6f92aad0000000000000000000000006d269d542723ad73ffe482d0afe2428b1b6c3266
-----Decoded View---------------
Arg [0] : _nft (address): 0x44b2B523Ac8d98236Cb4bB09b65e29B8b6f92Aad
Arg [1] : _token (address): 0x6d269D542723aD73Ffe482d0AFE2428B1b6C3266
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000044b2b523ac8d98236cb4bb09b65e29b8b6f92aad
Arg [1] : 0000000000000000000000006d269d542723ad73ffe482d0afe2428b1b6c3266
Deployed Bytecode Sourcemap
73307:4662:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73927:614;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;77664:298;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75037:103;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;76818:280;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;70092:103;;;:::i;:::-;;76221:591;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;73364:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;73749:38;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;77104:554;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;69444:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75146:127;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;75279:104;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;70350:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73927:614;73987:15;74024:8;;:15;;74009:11;;:30;;;;;;;:::i;:::-;;;;;;;;74051:6;74046:490;74067:8;;:15;;74063:1;:19;74046:490;;;74108:8;;74117:1;74108:11;;;;;;;;;;;;;;;;;;;;;74098:21;;74160:10;74136:34;;:3;;;;;;;;;;;:11;;;74148:7;74136:20;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:34;;;74128:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;74232:1;74206:5;:14;74212:7;74206:14;;;;;;;;;;;:22;;;;;;;;;;;;:27;;;74198:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;74263:3;;;;;;;;;;;:16;;;74280:10;74300:4;74307:7;74263:52;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74329:47;74339:10;74351:7;74360:15;74329:47;;;;;;;;:::i;:::-;;;;;;;;74404:124;;;;;;;;74465:7;74404:124;;;;;;74502:15;74404:124;;;;;;74428:10;74404:124;;;;;74387:5;:14;74393:7;74387:14;;;;;;;;;;;:141;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74084:3;;;;;:::i;:::-;;;;74046:490;;;;73927:614;;;:::o;77664:298::-;77813:6;77854:3;77838:20;;:4;:20;;;77830:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;77913:41;;;77906:48;;77664:298;;;;;;;:::o;75037:103::-;75099:35;75106:10;75118:8;;75128:5;75099:6;:35::i;:::-;75037:103;;:::o;76818:280::-;76875:7;76891:15;76909:1;76891:19;;76917:14;76934:3;;;;;;;;;;;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;76917:34;;76962:6;76971:1;76962:10;;76958:114;76979:6;76974:1;:11;76958:114;;77023:7;77005:25;;:5;:8;77011:1;77005:8;;;;;;;;;;;:14;;;;;;;;;;;;:25;;;77001:64;;;77054:1;77043:12;;;;;:::i;:::-;;;77001:64;76987:3;;;;;:::i;:::-;;;;76958:114;;;;77085:7;77078:14;;;;76818:280;;;:::o;70092:103::-;69330:13;:11;:13::i;:::-;70157:30:::1;70184:1;70157:18;:30::i;:::-;70092:103::o:0;76221:591::-;76311:22;;:::i;:::-;76343:15;76366:14;76383:1;76366:18;;76392;76428:6;76423:332;76444:8;;:15;;76440:1;:19;76423:332;;;76485:8;;76494:1;76485:11;;;;;;;;;;;;;;;;;;;;;76475:21;;76505:19;76527:5;:14;76533:7;76527:14;;;;;;;;;;;76505:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76574:7;76558:23;;:6;:12;;;:23;;;76550:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;76607:16;76626:6;:16;;;76607:35;;;;76706:5;76694:8;76676:15;:26;;;;:::i;:::-;76664:8;:39;;;;:::i;:::-;:47;;;;:::i;:::-;76651:60;;76742:3;76729:10;:16;;;;:::i;:::-;76720:25;;76423:332;;76461:3;;;;;:::i;:::-;;;;76423:332;;;;76774:1;76765:6;:10;76761:48;;;76786:15;;;;;;;;76794:6;76786:15;;;;;;;;;;76761:48;76221:591;;;;;;;;;:::o;73364:26::-;;;;:::o;73749:38::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;77104:554::-;77165:28;77204:14;77221:3;;;;;;;;;;;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77204:34;;77245:20;77282:6;77268:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77245:44;;77298:13;77326:12;77341:1;77326:16;;77322:181;77355:6;77344:7;:17;77322:181;;77411:7;77387:31;;:5;:14;77393:7;77387:14;;;;;;;;;;;:20;;;;;;;;;;;;:31;;;77383:113;;;77444:5;:14;77450:7;77444:14;;;;;;;;;;;:22;;;;;;;;;;;;77431:35;;:3;77435:5;77431:10;;;;;;;;;;;;;;;;;;;;;:35;;;;;77485:1;77477:9;;;;;:::i;:::-;;;77383:113;77363:9;;;;;:::i;:::-;;;;77322:181;;;;77511:23;77551:5;77537:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77511:46;;77568:6;77564:67;77584:5;77580:1;:9;77564:67;;;77617:3;77621:1;77617:6;;;;;;;;;;;;;;;;;;;;;;77605;77612:1;77605:9;;;;;;;;;;;;;;;;;;;;;:18;;;;;77591:3;;;;;:::i;:::-;;;;77564:67;;;;77646:6;77639:13;;;;;;77104:554;;;:::o;69444:87::-;69490:7;69517:6;;;;;;;;;;;69510:13;;69444:87;:::o;75146:127::-;75235:32;75242:7;75251:8;;75261:5;75235:6;:32::i;:::-;75146:127;;;:::o;75279:104::-;75343:34;75350:10;75362:8;;75372:4;75343:6;:34::i;:::-;75279:104;;:::o;70350:201::-;69330:13;:11;:13::i;:::-;70459:1:::1;70439:22;;:8;:22;;;;70431:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;70515:28;70534:8;70515:18;:28::i;:::-;70350:201:::0;:::o;75391:824::-;75484:15;75506:14;75523:1;75506:18;;75531;75567:6;75562:478;75583:8;;:15;;75579:1;:19;75562:478;;;75624:8;;75633:1;75624:11;;;;;;;;;;;;;;;;;;;;;75614:21;;75644:19;75666:5;:14;75672:7;75666:14;;;;;;;;;;;75644:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75713:7;75697:23;;:6;:12;;;:23;;;75689:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;75746:16;75765:6;:16;;;75746:35;;;;75845:5;75833:8;75815:15;:26;;;;:::i;:::-;75803:8;:39;;;;:::i;:::-;:47;;;;:::i;:::-;75790:60;;75882:3;75869:10;:16;;;;:::i;:::-;75860:25;;75911:121;;;;;;;;75969:7;75911:121;;;;;;76006:15;75911:121;;;;;;75935:7;75911:121;;;;;75894:5;:14;75900:7;75894:14;;;;;;;;;;;:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75562:478;;75600:3;;;;;:::i;:::-;;;;75562:478;;;;76059:1;76050:6;:10;76046:60;;;76071:5;;;;;;;;;;;:10;;;76082:7;76091:6;76071:27;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76046:60;76116:8;76112:62;;;76135:31;76148:7;76157:8;;76135:12;:31::i;:::-;76112:62;76185:24;76193:7;76202:6;76185:24;;;;;;;:::i;:::-;;;;;;;;75391:824;;;;;;;:::o;69609:132::-;69684:12;:10;:12::i;:::-;69673:23;;:7;:5;:7::i;:::-;:23;;;69665:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;69609:132::o;70711:191::-;70785:16;70804:6;;;;;;;;;;;70785:25;;70830:8;70821:6;;:17;;;;;;;;;;;;;;;;;;70885:8;70854:40;;70875:8;70854:40;;;;;;;;;;;;70711:191;;:::o;74547:484::-;74631:15;74668:8;;:15;;74653:11;;:30;;;;;;;:::i;:::-;;;;;;;;74695:6;74690:336;74711:8;;:15;;74707:1;:19;74690:336;;;74752:8;;74761:1;74752:11;;;;;;;;;;;;;;;;;;;;;74742:21;;74772:19;74794:5;:14;74800:7;74794:14;;;;;;;;;;;74772:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74841:10;74825:26;;:6;:12;;;:26;;;74817:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;74886:5;:14;74892:7;74886:14;;;;;;;;;;;;74879:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74914:46;74926:7;74935;74944:15;74914:46;;;;;;;;:::i;:::-;;;;;;;;74969:3;;;;;;;;;;;:16;;;74994:4;75001:7;75010;74969:49;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74690:336;74728:3;;;;;:::i;:::-;;;;74690:336;;;;74547:484;;;;:::o;32151:98::-;32204:7;32231:10;32224:17;;32151:98;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:143::-;209:5;240:6;234:13;225:22;;256:33;283:5;256:33;:::i;:::-;215:80;;;;:::o;318:367::-;391:8;401:6;451:3;444:4;436:6;432:17;428:27;418:2;;469:1;466;459:12;418:2;505:6;492:20;482:30;;535:18;527:6;524:30;521:2;;;567:1;564;557:12;521:2;604:4;596:6;592:17;580:29;;658:3;650:4;642:6;638:17;628:8;624:32;621:41;618:2;;;675:1;672;665:12;618:2;408:277;;;;;:::o;704:351::-;761:8;771:6;821:3;814:4;806:6;802:17;798:27;788:2;;839:1;836;829:12;788:2;875:6;862:20;852:30;;905:18;897:6;894:30;891:2;;;937:1;934;927:12;891:2;974:4;966:6;962:17;950:29;;1028:3;1020:4;1012:6;1008:17;998:8;994:32;991:41;988:2;;;1045:1;1042;1035:12;988:2;778:277;;;;;:::o;1061:139::-;1107:5;1145:6;1132:20;1123:29;;1161:33;1188:5;1161:33;:::i;:::-;1113:87;;;;:::o;1206:143::-;1263:5;1294:6;1288:13;1279:22;;1310:33;1337:5;1310:33;:::i;:::-;1269:80;;;;:::o;1355:262::-;1414:6;1463:2;1451:9;1442:7;1438:23;1434:32;1431:2;;;1479:1;1476;1469:12;1431:2;1522:1;1547:53;1592:7;1583:6;1572:9;1568:22;1547:53;:::i;:::-;1537:63;;1493:117;1421:196;;;;:::o;1623:284::-;1693:6;1742:2;1730:9;1721:7;1717:23;1713:32;1710:2;;;1758:1;1755;1748:12;1710:2;1801:1;1826:64;1882:7;1873:6;1862:9;1858:22;1826:64;:::i;:::-;1816:74;;1772:128;1700:207;;;;:::o;1913:829::-;2010:6;2018;2026;2034;2042;2091:3;2079:9;2070:7;2066:23;2062:33;2059:2;;;2108:1;2105;2098:12;2059:2;2151:1;2176:53;2221:7;2212:6;2201:9;2197:22;2176:53;:::i;:::-;2166:63;;2122:117;2278:2;2304:53;2349:7;2340:6;2329:9;2325:22;2304:53;:::i;:::-;2294:63;;2249:118;2406:2;2432:53;2477:7;2468:6;2457:9;2453:22;2432:53;:::i;:::-;2422:63;;2377:118;2562:2;2551:9;2547:18;2534:32;2593:18;2585:6;2582:30;2579:2;;;2625:1;2622;2615:12;2579:2;2661:64;2717:7;2708:6;2697:9;2693:22;2661:64;:::i;:::-;2643:82;;;;2505:230;2049:693;;;;;;;;:::o;2748:570::-;2843:6;2851;2859;2908:2;2896:9;2887:7;2883:23;2879:32;2876:2;;;2924:1;2921;2914:12;2876:2;2967:1;2992:53;3037:7;3028:6;3017:9;3013:22;2992:53;:::i;:::-;2982:63;;2938:117;3122:2;3111:9;3107:18;3094:32;3153:18;3145:6;3142:30;3139:2;;;3185:1;3182;3175:12;3139:2;3221:80;3293:7;3284:6;3273:9;3269:22;3221:80;:::i;:::-;3203:98;;;;3065:246;2866:452;;;;;:::o;3324:425::-;3410:6;3418;3467:2;3455:9;3446:7;3442:23;3438:32;3435:2;;;3483:1;3480;3473:12;3435:2;3554:1;3543:9;3539:17;3526:31;3584:18;3576:6;3573:30;3570:2;;;3616:1;3613;3606:12;3570:2;3652:80;3724:7;3715:6;3704:9;3700:22;3652:80;:::i;:::-;3634:98;;;;3497:245;3425:324;;;;;:::o;3755:262::-;3814:6;3863:2;3851:9;3842:7;3838:23;3834:32;3831:2;;;3879:1;3876;3869:12;3831:2;3922:1;3947:53;3992:7;3983:6;3972:9;3968:22;3947:53;:::i;:::-;3937:63;;3893:117;3821:196;;;;:::o;4023:284::-;4093:6;4142:2;4130:9;4121:7;4117:23;4113:32;4110:2;;;4158:1;4155;4148:12;4110:2;4201:1;4226:64;4282:7;4273:6;4262:9;4258:22;4226:64;:::i;:::-;4216:74;;4172:128;4100:207;;;;:::o;4313:179::-;4382:10;4403:46;4445:3;4437:6;4403:46;:::i;:::-;4481:4;4476:3;4472:14;4458:28;;4393:99;;;;:::o;4498:118::-;4585:24;4603:5;4585:24;:::i;:::-;4580:3;4573:37;4563:53;;:::o;4654:694::-;4790:52;4836:5;4790:52;:::i;:::-;4858:84;4935:6;4930:3;4858:84;:::i;:::-;4851:91;;4966:54;5014:5;4966:54;:::i;:::-;5043:7;5074:1;5059:282;5084:6;5081:1;5078:13;5059:282;;;5160:6;5154:13;5187:63;5246:3;5231:13;5187:63;:::i;:::-;5180:70;;5273:58;5324:6;5273:58;:::i;:::-;5263:68;;5119:222;5106:1;5103;5099:9;5094:14;;5059:282;;;5063:14;4766:582;;;;;:::o;5384:732::-;5503:3;5532:54;5580:5;5532:54;:::i;:::-;5602:86;5681:6;5676:3;5602:86;:::i;:::-;5595:93;;5712:56;5762:5;5712:56;:::i;:::-;5791:7;5822:1;5807:284;5832:6;5829:1;5826:13;5807:284;;;5908:6;5902:13;5935:63;5994:3;5979:13;5935:63;:::i;:::-;5928:70;;6021:60;6074:6;6021:60;:::i;:::-;6011:70;;5867:224;5854:1;5851;5847:9;5842:14;;5807:284;;;5811:14;6107:3;6100:10;;5508:608;;;;;;;:::o;6122:115::-;6207:23;6224:5;6207:23;:::i;:::-;6202:3;6195:36;6185:52;;:::o;6243:366::-;6385:3;6406:67;6470:2;6465:3;6406:67;:::i;:::-;6399:74;;6482:93;6571:3;6482:93;:::i;:::-;6600:2;6595:3;6591:12;6584:19;;6389:220;;;:::o;6615:366::-;6757:3;6778:67;6842:2;6837:3;6778:67;:::i;:::-;6771:74;;6854:93;6943:3;6854:93;:::i;:::-;6972:2;6967:3;6963:12;6956:19;;6761:220;;;:::o;6987:366::-;7129:3;7150:67;7214:2;7209:3;7150:67;:::i;:::-;7143:74;;7226:93;7315:3;7226:93;:::i;:::-;7344:2;7339:3;7335:12;7328:19;;7133:220;;;:::o;7359:366::-;7501:3;7522:67;7586:2;7581:3;7522:67;:::i;:::-;7515:74;;7598:93;7687:3;7598:93;:::i;:::-;7716:2;7711:3;7707:12;7700:19;;7505:220;;;:::o;7731:366::-;7873:3;7894:67;7958:2;7953:3;7894:67;:::i;:::-;7887:74;;7970:93;8059:3;7970:93;:::i;:::-;8088:2;8083:3;8079:12;8072:19;;7877:220;;;:::o;8103:366::-;8245:3;8266:67;8330:2;8325:3;8266:67;:::i;:::-;8259:74;;8342:93;8431:3;8342:93;:::i;:::-;8460:2;8455:3;8451:12;8444:19;;8249:220;;;:::o;8475:115::-;8560:23;8577:5;8560:23;:::i;:::-;8555:3;8548:36;8538:52;;:::o;8596:108::-;8673:24;8691:5;8673:24;:::i;:::-;8668:3;8661:37;8651:53;;:::o;8710:118::-;8797:24;8815:5;8797:24;:::i;:::-;8792:3;8785:37;8775:53;;:::o;8834:115::-;8919:23;8936:5;8919:23;:::i;:::-;8914:3;8907:36;8897:52;;:::o;8955:222::-;9048:4;9086:2;9075:9;9071:18;9063:26;;9099:71;9167:1;9156:9;9152:17;9143:6;9099:71;:::i;:::-;9053:124;;;;:::o;9183:442::-;9332:4;9370:2;9359:9;9355:18;9347:26;;9383:71;9451:1;9440:9;9436:17;9427:6;9383:71;:::i;:::-;9464:72;9532:2;9521:9;9517:18;9508:6;9464:72;:::i;:::-;9546;9614:2;9603:9;9599:18;9590:6;9546:72;:::i;:::-;9337:288;;;;;;:::o;9631:332::-;9752:4;9790:2;9779:9;9775:18;9767:26;;9803:71;9871:1;9860:9;9856:17;9847:6;9803:71;:::i;:::-;9884:72;9952:2;9941:9;9937:18;9928:6;9884:72;:::i;:::-;9757:206;;;;;:::o;9969:442::-;10118:4;10156:2;10145:9;10141:18;10133:26;;10169:71;10237:1;10226:9;10222:17;10213:6;10169:71;:::i;:::-;10250:72;10318:2;10307:9;10303:18;10294:6;10250:72;:::i;:::-;10332;10400:2;10389:9;10385:18;10376:6;10332:72;:::i;:::-;10123:288;;;;;;:::o;10417:314::-;10556:4;10594:2;10583:9;10579:18;10571:26;;10607:117;10721:1;10710:9;10706:17;10697:6;10607:117;:::i;:::-;10561:170;;;;:::o;10737:373::-;10880:4;10918:2;10907:9;10903:18;10895:26;;10967:9;10961:4;10957:20;10953:1;10942:9;10938:17;10931:47;10995:108;11098:4;11089:6;10995:108;:::i;:::-;10987:116;;10885:225;;;;:::o;11116:218::-;11207:4;11245:2;11234:9;11230:18;11222:26;;11258:69;11324:1;11313:9;11309:17;11300:6;11258:69;:::i;:::-;11212:122;;;;:::o;11340:419::-;11506:4;11544:2;11533:9;11529:18;11521:26;;11593:9;11587:4;11583:20;11579:1;11568:9;11564:17;11557:47;11621:131;11747:4;11621:131;:::i;:::-;11613:139;;11511:248;;;:::o;11765:419::-;11931:4;11969:2;11958:9;11954:18;11946:26;;12018:9;12012:4;12008:20;12004:1;11993:9;11989:17;11982:47;12046:131;12172:4;12046:131;:::i;:::-;12038:139;;11936:248;;;:::o;12190:419::-;12356:4;12394:2;12383:9;12379:18;12371:26;;12443:9;12437:4;12433:20;12429:1;12418:9;12414:17;12407:47;12471:131;12597:4;12471:131;:::i;:::-;12463:139;;12361:248;;;:::o;12615:419::-;12781:4;12819:2;12808:9;12804:18;12796:26;;12868:9;12862:4;12858:20;12854:1;12843:9;12839:17;12832:47;12896:131;13022:4;12896:131;:::i;:::-;12888:139;;12786:248;;;:::o;13040:419::-;13206:4;13244:2;13233:9;13229:18;13221:26;;13293:9;13287:4;13283:20;13279:1;13268:9;13264:17;13257:47;13321:131;13447:4;13321:131;:::i;:::-;13313:139;;13211:248;;;:::o;13465:419::-;13631:4;13669:2;13658:9;13654:18;13646:26;;13718:9;13712:4;13708:20;13704:1;13693:9;13689:17;13682:47;13746:131;13872:4;13746:131;:::i;:::-;13738:139;;13636:248;;;:::o;13890:434::-;14035:4;14073:2;14062:9;14058:18;14050:26;;14086:69;14152:1;14141:9;14137:17;14128:6;14086:69;:::i;:::-;14165:70;14231:2;14220:9;14216:18;14207:6;14165:70;:::i;:::-;14245:72;14313:2;14302:9;14298:18;14289:6;14245:72;:::i;:::-;14040:284;;;;;;:::o;14330:222::-;14423:4;14461:2;14450:9;14446:18;14438:26;;14474:71;14542:1;14531:9;14527:17;14518:6;14474:71;:::i;:::-;14428:124;;;;:::o;14558:98::-;14623:4;14646:3;14638:11;;14628:28;;;:::o;14662:132::-;14729:4;14752:3;14744:11;;14782:4;14777:3;14773:14;14765:22;;14734:60;;;:::o;14800:104::-;14865:6;14893:4;14883:14;;14872:32;;;:::o;14910:114::-;14977:6;15011:5;15005:12;14995:22;;14984:40;;;:::o;15030:111::-;15098:4;15130;15125:3;15121:14;15113:22;;15103:38;;;:::o;15147:113::-;15217:4;15249;15244:3;15240:14;15232:22;;15222:38;;;:::o;15266:143::-;15363:11;15400:3;15385:18;;15375:34;;;;:::o;15415:184::-;15514:11;15548:6;15543:3;15536:19;15588:4;15583:3;15579:14;15564:29;;15526:73;;;;:::o;15605:169::-;15689:11;15723:6;15718:3;15711:19;15763:4;15758:3;15754:14;15739:29;;15701:73;;;;:::o;15780:305::-;15820:3;15839:20;15857:1;15839:20;:::i;:::-;15834:25;;15873:20;15891:1;15873:20;:::i;:::-;15868:25;;16027:1;15959:66;15955:74;15952:1;15949:81;15946:2;;;16033:18;;:::i;:::-;15946:2;16077:1;16074;16070:9;16063:16;;15824:261;;;;:::o;16091:185::-;16131:1;16148:20;16166:1;16148:20;:::i;:::-;16143:25;;16182:20;16200:1;16182:20;:::i;:::-;16177:25;;16221:1;16211:2;;16226:18;;:::i;:::-;16211:2;16268:1;16265;16261:9;16256:14;;16133:143;;;;:::o;16282:348::-;16322:7;16345:20;16363:1;16345:20;:::i;:::-;16340:25;;16379:20;16397:1;16379:20;:::i;:::-;16374:25;;16567:1;16499:66;16495:74;16492:1;16489:81;16484:1;16477:9;16470:17;16466:105;16463:2;;;16574:18;;:::i;:::-;16463:2;16622:1;16619;16615:9;16604:20;;16330:300;;;;:::o;16636:191::-;16676:4;16696:20;16714:1;16696:20;:::i;:::-;16691:25;;16730:20;16748:1;16730:20;:::i;:::-;16725:25;;16769:1;16766;16763:8;16760:2;;;16774:18;;:::i;:::-;16760:2;16819:1;16816;16812:9;16804:17;;16681:146;;;;:::o;16833:96::-;16870:7;16899:24;16917:5;16899:24;:::i;:::-;16888:35;;16878:51;;;:::o;16935:149::-;16971:7;17011:66;17004:5;17000:78;16989:89;;16979:105;;;:::o;17090:126::-;17127:7;17167:42;17160:5;17156:54;17145:65;;17135:81;;;:::o;17222:91::-;17258:7;17298:8;17291:5;17287:20;17276:31;;17266:47;;;:::o;17319:77::-;17356:7;17385:5;17374:16;;17364:32;;;:::o;17402:97::-;17438:7;17478:14;17471:5;17467:26;17456:37;;17446:53;;;:::o;17505:233::-;17544:3;17567:24;17585:5;17567:24;:::i;:::-;17558:33;;17613:66;17606:5;17603:77;17600:2;;;17683:18;;:::i;:::-;17600:2;17730:1;17723:5;17719:13;17712:20;;17548:190;;;:::o;17744:180::-;17792:77;17789:1;17782:88;17889:4;17886:1;17879:15;17913:4;17910:1;17903:15;17930:180;17978:77;17975:1;17968:88;18075:4;18072:1;18065:15;18099:4;18096:1;18089:15;18116:225;18256:34;18252:1;18244:6;18240:14;18233:58;18325:8;18320:2;18312:6;18308:15;18301:33;18222:119;:::o;18347:164::-;18487:16;18483:1;18475:6;18471:14;18464:40;18453:58;:::o;18517:182::-;18657:34;18653:1;18645:6;18641:14;18634:58;18623:76;:::o;18705:162::-;18845:14;18841:1;18833:6;18829:14;18822:38;18811:56;:::o;18873:221::-;19013:34;19009:1;19001:6;18997:14;18990:58;19082:4;19077:2;19069:6;19065:15;19058:29;18979:115;:::o;19100:164::-;19240:16;19236:1;19228:6;19224:14;19217:40;19206:58;:::o;19270:122::-;19343:24;19361:5;19343:24;:::i;:::-;19336:5;19333:35;19323:2;;19382:1;19379;19372:12;19323:2;19313:79;:::o;19398:122::-;19471:24;19489:5;19471:24;:::i;:::-;19464:5;19461:35;19451:2;;19510:1;19507;19500:12;19451:2;19441:79;:::o
Swarm Source
ipfs://ebc26e1999f5e88350a4be24575ba8f7d0e521f172913cdfd235768f65ab4cbc
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.