More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,244 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake And Unstak... | 18135394 | 370 days ago | IN | 0 ETH | 0.02446079 | ||||
Stake And Unstak... | 18086724 | 377 days ago | IN | 0 ETH | 0.00395624 | ||||
Stake And Unstak... | 16835663 | 553 days ago | IN | 0 ETH | 0.00451685 | ||||
Stake And Unstak... | 16676061 | 575 days ago | IN | 0 ETH | 0.00462809 | ||||
Stake And Unstak... | 16625432 | 582 days ago | IN | 0 ETH | 0.00314512 | ||||
Stake And Unstak... | 16541958 | 594 days ago | IN | 0 ETH | 0.00486043 | ||||
Stake And Unstak... | 16144202 | 649 days ago | IN | 0 ETH | 0.00265482 | ||||
Stake And Unstak... | 16078893 | 658 days ago | IN | 0 ETH | 0.00160066 | ||||
Stake And Unstak... | 16013367 | 668 days ago | IN | 0 ETH | 0.00236865 | ||||
Stake And Unstak... | 15728174 | 707 days ago | IN | 0 ETH | 0.00651752 | ||||
Stake And Unstak... | 15726942 | 708 days ago | IN | 0 ETH | 0.00540616 | ||||
Stake And Unstak... | 15716873 | 709 days ago | IN | 0 ETH | 0.00831847 | ||||
Stake And Unstak... | 15596609 | 726 days ago | IN | 0 ETH | 0.00288139 | ||||
Stake And Unstak... | 15541754 | 734 days ago | IN | 0 ETH | 0.00161764 | ||||
Stake And Unstak... | 15539520 | 734 days ago | IN | 0 ETH | 0.0043813 | ||||
Stake And Unstak... | 15535454 | 734 days ago | IN | 0 ETH | 0.00210753 | ||||
Stake And Unstak... | 15534614 | 735 days ago | IN | 0 ETH | 0.00315111 | ||||
Stake And Unstak... | 15527739 | 736 days ago | IN | 0 ETH | 0.00280534 | ||||
Stake And Unstak... | 15518234 | 737 days ago | IN | 0 ETH | 0.00239188 | ||||
Stake And Unstak... | 15510727 | 739 days ago | IN | 0 ETH | 0.00036821 | ||||
Stake And Unstak... | 15510726 | 739 days ago | IN | 0 ETH | 0.00170548 | ||||
Stake And Unstak... | 15502542 | 740 days ago | IN | 0 ETH | 0.00198325 | ||||
Stake And Unstak... | 15501336 | 740 days ago | IN | 0 ETH | 0.00425263 | ||||
Stake And Unstak... | 15498466 | 741 days ago | IN | 0 ETH | 0.0233263 | ||||
Stake And Unstak... | 15491056 | 742 days ago | IN | 0 ETH | 0.00339266 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TheSevensDojoV2
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "./IERC721Enumerable.sol"; import "./IERC20.sol"; import "./Ownable.sol"; import "./Companions.sol"; contract TheSevensDojoV2 is Ownable { modifier directOnly { require(msg.sender == tx.origin); _; } modifier notPaused { require(!paused, "This function is currently paused"); _; } event StakedCompanions(address indexed from, uint indexed tokenId, uint timestamp); event UnstakedCompanions(address indexed from, uint indexed tokenId, uint timestamp); event StakedSevens(address indexed from, uint indexed tokenId, uint timestamp); event UnstakedSevens(address indexed from, uint indexed tokenId, uint timestamp); event ClaimedReward(address indexed from, uint amount, uint timestamp); mapping(address => uint) public companionsTokensStaked; mapping(uint => address) public ownerOfCompanionsToken; mapping(address => uint) public sevensTokensStaked; mapping(uint => address) public ownerOfSevensToken; mapping(address => uint) public lastClaimOfOwner; mapping(address => uint) public addressToPendingClaim; // Per second uint constant companionsReward = (uint(3e18) / 1 days) + 1; uint constant sevensReward = (uint(7e18) / 1 days) + 1; uint constant bothReward = (uint(10e18) / 1 days) + 1; IERC20 rewardContract; IERC721Enumerable immutable sevensContract; TheSevensCompanions immutable companionsContract; bool public paused = false; bool public emergency = false; constructor(IERC20 rewardContract_, IERC721Enumerable sevensContract_, TheSevensCompanions companionsContract_) { rewardContract = rewardContract_; sevensContract = sevensContract_; companionsContract = companionsContract_; } // Public/External State-Changing function stakeAndUnstake(uint[] memory companionsStakes,uint[] memory companionsUnstakes,uint[] memory sevensStakes,uint[] memory sevensUnstakes, bool claimTokens) directOnly notPaused external { if(claimTokens) { claim(); } else { updateRewards(msg.sender); } for(uint i = 0; i < companionsStakes.length; i++) { stakeCompanions(companionsStakes[i]); } for(uint i = 0; i < companionsUnstakes.length; i++) { unstakeCompanions(companionsUnstakes[i]); } for(uint i = 0; i < sevensStakes.length; i++) { stakeSevens(sevensStakes[i]); } for(uint i = 0; i < sevensUnstakes.length; i++) { unstakeSevens(sevensUnstakes[i]); } } function claim() public directOnly notPaused { address to = msg.sender; updateRewards(to); uint amount = addressToPendingClaim[to]; if(amount != 0) { addressToPendingClaim[to] = 0; rewardContract.transfer(to, amount); emit ClaimedReward(msg.sender, amount, block.timestamp); } } function updateRewards(address addr) internal { require(!emergency, "You can't use this function at this time"); addressToPendingClaim[addr] += getClaimAmount(addr, false); lastClaimOfOwner[addr] = block.timestamp; } // Public/External Non-State-Changing function getClaimAmount(address addr, bool perDay) public view returns(uint) { uint lastClaim = lastClaimOfOwner[addr]; if(lastClaim == 0) return 0; uint totalClaimTime = perDay ? 1 days : block.timestamp - lastClaimOfOwner[addr]; uint companionsCount = companionsTokensStaked[addr]; uint sevensCount = sevensTokensStaked[addr]; if(companionsCount == 0 && sevensCount == 0) return 0; return ( (companionsCount * companionsReward * totalClaimTime) + // Each Companion (sevensCount * sevensReward * totalClaimTime) + // Each Sevens (min(companionsCount, sevensCount) * bothReward * totalClaimTime) // Each combo (1 comp + 1 sevens) ); } function walletOfOwner(address addr) external view returns(uint[] memory companionsTokens, uint[] memory sevensTokens) { unchecked { companionsTokens = new uint[](companionsTokensStaked[addr]); sevensTokens = new uint[](sevensTokensStaked[addr]); uint cnext = 0; uint snext = 0; for(uint i = 1; i <= companionsContract.totalSupply(); i++) { // 1 ~ totalSupply if(ownerOfCompanionsToken[i] == addr) companionsTokens[cnext++] = i; } for(uint i = 0; i < sevensContract.totalSupply(); i++) { // 0 ~ totalSupply - 1 if(ownerOfSevensToken[i] == addr) sevensTokens[snext++] = i; } } } // Internal function stakeCompanions(uint tokenId) internal { companionsContract.takeToken(msg.sender, tokenId); companionsTokensStaked[msg.sender]++; ownerOfCompanionsToken[tokenId] = msg.sender; emit StakedCompanions(msg.sender, tokenId, block.timestamp); } function unstakeCompanions(uint tokenId) internal { require(ownerOfCompanionsToken[tokenId] == msg.sender); ownerOfCompanionsToken[tokenId] = address(0); companionsTokensStaked[msg.sender]--; companionsContract.transferFrom(address(this), msg.sender, tokenId); emit UnstakedCompanions(msg.sender, tokenId, block.timestamp); } function stakeSevens(uint tokenId) internal { sevensContract.transferFrom(msg.sender, address(this), tokenId); sevensTokensStaked[msg.sender]++; ownerOfSevensToken[tokenId] = msg.sender; emit StakedSevens(msg.sender, tokenId, block.timestamp); } function unstakeSevens(uint tokenId) internal { require(ownerOfSevensToken[tokenId] == msg.sender); ownerOfSevensToken[tokenId] = address(0); sevensTokensStaked[msg.sender]--; sevensContract.transferFrom(address(this), msg.sender, tokenId); emit UnstakedSevens(msg.sender, tokenId, block.timestamp); } function min(uint a, uint b) internal pure returns(uint) { return (a < b ? a : b); } // Only Owner function withdrawReward(uint amount) external onlyOwner { rewardContract.transfer(msg.sender, amount); } function setRewardContract(IERC20 rewardContract_) external onlyOwner { rewardContract = rewardContract_; } function flipPause() external onlyOwner { paused = !paused; } function flipEmergency() external onlyOwner { emergency = !emergency; } // Emergency only function emergencyWithdrawCompanion(uint tokenId) external directOnly { require(emergency); lastClaimOfOwner[msg.sender] = block.timestamp; unstakeCompanions(tokenId); } function emergencyWithdrawSevens(uint tokenId) external directOnly { require(emergency); lastClaimOfOwner[msg.sender] = block.timestamp; unstakeSevens(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./ECDSA.sol"; import "./ERC721.sol"; import "./IERC20.sol"; import "./Ownable.sol"; contract TheSevensCompanions is ERC721, Ownable{ using Strings for uint; using ECDSA for bytes32; constructor(IERC20 zeniContract_,string memory baseURI_) ERC721("The Sevens Companions","7COMP") payable { zeniContract = zeniContract_; baseURI = baseURI_; saleStartTime = 1640199600; _batchMint(msg.sender, 49); } // Constants uint constant zeniToClaim = 350e18; uint constant etherToMint = 0.049e18; uint constant maxSupply = 7000; uint constant maxPerTransaction = 21; address constant dead = address(0x000000000000000000000000000000000000dEaD); // Storage Variables uint public saleStartTime; uint public totalSupply = 0; string baseURI; IERC20 zeniContract; address stakingContract = address(0); address signer = 0x94382f4bcCD5c1Cb0B2B3A5CAA16B2909c0E494d; mapping(address => uint) public whitelistMintAmount; // Modifiers modifier mintChecks(uint amount, uint offset) { require(msg.sender == tx.origin, "No"); require(amount <= maxPerTransaction,string(abi.encodePacked("You can only mint up to ", maxPerTransaction.toString() ," per transaction"))); uint timeNow = block.timestamp; uint startTime = saleStartTime; require(startTime != 0, "Sale start time is not setup!"); require(startTime + offset <= timeNow && timeNow <= startTime + 2 weeks,"Sale is not active!"); _; } modifier etherMintChecks(uint amount) { require(msg.value == amount * etherToMint,"Invalid amount sent"); _; } // Minting Functions function zeniMint(uint amount) external mintChecks(amount, 0) { zeniContract.transferFrom(msg.sender, dead, amount * zeniToClaim); _batchMint(msg.sender, amount); } function etherWhitelistMint(uint amount, uint maxMints, bytes calldata signature) external payable mintChecks(amount, 1 days) etherMintChecks(amount) { require(keccak256(abi.encode(msg.sender, maxMints)).toEthSignedMessageHash().recover(signature) == signer,"Invalid signature received"); require(whitelistMintAmount[msg.sender] + amount <= maxMints, string(abi.encodePacked("You can only mint up to ", maxMints.toString(), " using your whitelist!"))); whitelistMintAmount[msg.sender] += amount; _batchMint(msg.sender, amount); } function etherMint(uint amount) external payable mintChecks(amount, 2 days) etherMintChecks(amount) { _batchMint(msg.sender, amount); } function _batchMint(address to, uint amount) internal { uint nextId = totalSupply; require(nextId + amount <= maxSupply, "Mint would exceed supply"); for(uint i = 1; i <= amount; i++) { _mint(to, nextId + i); } totalSupply += amount; } // View Only Functions function tokenURI(uint tokenId) public view override returns(string memory) { require(_exists(tokenId), string(abi.encodePacked("Token ", tokenId.toString(), " does not exist"))); return string(abi.encodePacked(baseURI, tokenId.toString(), ".json")); } // Owner Only function adminSetSaleStartTime(uint startTime) external onlyOwner { saleStartTime = startTime; } bool public metadataLocked = false; function adminLockMetadata() external onlyOwner { metadataLocked = true; } function adminSetBaseURI(string memory baseURI_) external onlyOwner { require(!metadataLocked); baseURI = baseURI_; } function adminSetZeni(IERC20 zeniContract_) external onlyOwner { zeniContract = zeniContract_; } function adminSetStaking(address stakingContract_) external onlyOwner { stakingContract = stakingContract_; } function adminSetSigner(address signer_) external onlyOwner { signer = signer_; } function withdraw() external onlyOwner { payable(0xE776DF26ac31C46a302F495c61b1fab1198C582a).transfer(address(this).balance); } // Staking function takeToken(address from,uint tokenId) external { require(msg.sender == stakingContract); _transfer(from,msg.sender,tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "./Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 overriden 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {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 a {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 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 { 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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`, 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 be 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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 tokenId); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"rewardContract_","type":"address"},{"internalType":"contract IERC721Enumerable","name":"sevensContract_","type":"address"},{"internalType":"contract TheSevensCompanions","name":"companionsContract_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StakedCompanions","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StakedSevens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UnstakedCompanions","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UnstakedSevens","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToPendingClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"companionsTokensStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emergencyWithdrawCompanion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emergencyWithdrawSevens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"perDay","type":"bool"}],"name":"getClaimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOfCompanionsToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOfSevensToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"rewardContract_","type":"address"}],"name":"setRewardContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sevensTokensStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"companionsStakes","type":"uint256[]"},{"internalType":"uint256[]","name":"companionsUnstakes","type":"uint256[]"},{"internalType":"uint256[]","name":"sevensStakes","type":"uint256[]"},{"internalType":"uint256[]","name":"sevensUnstakes","type":"uint256[]"},{"internalType":"bool","name":"claimTokens","type":"bool"}],"name":"stakeAndUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"companionsTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"sevensTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526007805461ffff60a01b191690553480156200001f57600080fd5b50604051620017dd380380620017dd8339810160408190526200004291620000df565b6200004d336200008f565b600780546001600160a01b039094166001600160a01b0319909416939093179092556001600160601b0319606091821b811660805291901b1660a0526200014c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215620000f557600080fd5b8351620001028162000133565b6020850151909350620001158162000133565b6040850151909250620001288162000133565b809150509250925092565b6001600160a01b03811681146200014957600080fd5b50565b60805160601c60a05160601c61164962000194600039600081816104a601528181610f97015261104b01526000818161059101528181610d52015261114901526116496000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063b898d9301161007c578063b898d930146102bf578063c1cbaf69146102c7578063caa6fea4146102da578063efa4e15b146102ee578063f2fde38b14610317578063ffd482f61461032a57600080fd5b8063715018a6146102535780637cccb9091461025b57806384fdedde1461026e5780638da5cb5b1461028e57806394f5a4c91461029f57600080fd5b80634e71d92d116100ff5780634e71d92d146101ee57806351508f0a146101f6578063523a3f08146102095780635a4ffd441461021c5780635c975abb1461022f57600080fd5b80630bd823041461013c578063175d2d2e1461016f578063385df64914610184578063393c9b651461018c578063438b6300146101cd575b600080fd5b61015c61014a3660046112c6565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b61018261017d3660046113fb565b61034a565b005b61018261038a565b6101b561019a3660046113fb565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610166565b6101e06101db3660046112c6565b6103de565b604051610166929190611468565b61018261067f565b6101826102043660046112c6565b6107b9565b6101826102173660046113fb565b610805565b61015c61022a3660046112e3565b6108b3565b60075461024390600160a01b900460ff1681565b6040519015158152602001610166565b610182610a20565b6101826102693660046113fb565b610a56565b61015c61027c3660046112c6565b60056020526000908152604090205481565b6000546001600160a01b03166101b5565b61015c6102ad3660046112c6565b60016020526000908152604090205481565b610182610a93565b6101826102d536600461131c565b610ade565b60075461024390600160a81b900460ff1681565b6101b56102fc3660046113fb565b6004602052600090815260409020546001600160a01b031681565b6101826103253660046112c6565b610c3b565b61015c6103383660046112c6565b60036020526000908152604090205481565b33321461035657600080fd5b600754600160a81b900460ff1661036c57600080fd5b33600090815260056020526040902042905561038781610cd3565b50565b6000546001600160a01b031633146103bd5760405162461bcd60e51b81526004016103b4906114d7565b60405180910390fd5b6007805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6001600160a01b038116600090815260016020526040902054606090819067ffffffffffffffff811115610414576104146115da565b60405190808252806020026020018201604052801561043d578160200160208202803683370190505b506001600160a01b03841660009081526003602052604090205490925067ffffffffffffffff811115610472576104726115da565b60405190808252806020026020018201604052801561049b578160200160208202803683370190505b50905060008060015b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104fd57600080fd5b505afa158015610511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105359190611414565b811161058b576000818152600260205260409020546001600160a01b03878116911614156105835780858480600101955081518110610576576105766115c4565b6020026020010181815250505b6001016104a4565b5060005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106209190611414565b811015610677576000818152600460205260409020546001600160a01b038781169116141561066f5780848380600101945081518110610662576106626115c4565b6020026020010181815250505b60010161058f565b505050915091565b33321461068b57600080fd5b600754600160a01b900460ff16156106b55760405162461bcd60e51b81526004016103b490611496565b336106bf81610df1565b6001600160a01b03811660009081526006602052604090205480156107b5576001600160a01b0382811660008181526006602052604080822091909155600754905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561074157600080fd5b505af1158015610755573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077991906113de565b506040805182815242602082015233917f36e1b0f1ba5690c4228e83c53aab47613bb01e8da541704a6d86bc33c2b054cf910160405180910390a25b5050565b6000546001600160a01b031633146107e35760405162461bcd60e51b81526004016103b4906114d7565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461082f5760405162461bcd60e51b81526004016103b4906114d7565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561087b57600080fd5b505af115801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b591906113de565b6001600160a01b038216600090815260056020526040812054806108db576000915050610a1a565b60008361090a576001600160a01b0385166000908152600560205260409020546109059042611565565b61090f565b620151805b6001600160a01b0386166000908152600160209081526040808320546003909252909120549192509081158015610944575080155b15610956576000945050505050610a1a565b8261096c62015180678ac7230489e80000611524565b61097790600161150c565b6109818484610eb0565b61098b9190611546565b6109959190611546565b836109ab62015180676124fee993bc0000611524565b6109b690600161150c565b6109c09084611546565b6109ca9190611546565b846109e0620151806729a2241af62c0000611524565b6109eb90600161150c565b6109f59086611546565b6109ff9190611546565b610a09919061150c565b610a13919061150c565b9450505050505b92915050565b6000546001600160a01b03163314610a4a5760405162461bcd60e51b81526004016103b4906114d7565b610a546000610ec8565b565b333214610a6257600080fd5b600754600160a81b900460ff16610a7857600080fd5b33600090815260056020526040902042905561038781610f18565b6000546001600160a01b03163314610abd5760405162461bcd60e51b81526004016103b4906114d7565b6007805460ff60a81b198116600160a81b9182900460ff1615909102179055565b333214610aea57600080fd5b600754600160a01b900460ff1615610b145760405162461bcd60e51b81526004016103b490611496565b8015610b2757610b2261067f565b610b30565b610b3033610df1565b60005b8551811015610b7057610b5e868281518110610b5157610b516115c4565b602002602001015161102f565b80610b6881611593565b915050610b33565b5060005b8451811015610bb157610b9f858281518110610b9257610b926115c4565b6020026020010151610f18565b80610ba981611593565b915050610b74565b5060005b8351811015610bf257610be0848281518110610bd357610bd36115c4565b6020026020010151611127565b80610bea81611593565b915050610bb5565b5060005b8251811015610c3357610c21838281518110610c1457610c146115c4565b6020026020010151610cd3565b80610c2b81611593565b915050610bf6565b505050505050565b6000546001600160a01b03163314610c655760405162461bcd60e51b81526004016103b4906114d7565b6001600160a01b038116610cca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b61038781610ec8565b6000818152600460205260409020546001600160a01b03163314610cf657600080fd5b600081815260046020908152604080832080546001600160a01b031916905533835260039091528120805491610d2b8361157c565b90915550506040516323b872dd60e01b8152306004820152336024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610d9e57600080fd5b505af1158015610db2573d6000803e3d6000fd5b50506040514281528392503391507f1ca91a7c5216f90aa880a6f9d90fe2084fe541cae978b1d46a0b55335c554ce2906020015b60405180910390a350565b600754600160a81b900460ff1615610e5c5760405162461bcd60e51b815260206004820152602860248201527f596f752063616e27742075736520746869732066756e6374696f6e20617420746044820152676869732074696d6560c01b60648201526084016103b4565b610e678160006108b3565b6001600160a01b03821660009081526006602052604081208054909190610e8f90849061150c565b90915550506001600160a01b03166000908152600560205260409020429055565b6000818310610ebf5781610ec1565b825b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818152600260205260409020546001600160a01b03163314610f3b57600080fd5b600081815260026020908152604080832080546001600160a01b031916905533835260019091528120805491610f708361157c565b90915550506040516323b872dd60e01b8152306004820152336024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610fe357600080fd5b505af1158015610ff7573d6000803e3d6000fd5b50506040514281528392503391507f26faa53ec9cf1544505777839d643e5bb5a31cfa986856913718ddcac21702cd90602001610de6565b6040516357e87c8360e11b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063afd0f90690604401600060405180830381600087803b15801561109757600080fd5b505af11580156110ab573d6000803e3d6000fd5b50503360009081526001602052604081208054935091506110cb83611593565b90915550506000818152600260205260409081902080546001600160a01b0319163390811790915590518291907f44c551eb6878f004162607a017bce1a968cbe799092f369148242b6d95d9a39990610de69042815260200190565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561119557600080fd5b505af11580156111a9573d6000803e3d6000fd5b50503360009081526003602052604081208054935091506111c983611593565b90915550506000818152600460205260409081902080546001600160a01b0319163390811790915590518291907ff1dc31e3d12b5f019b346cf21bf5f7d23577bbe3db2f0a8410fd0960eb2fce0190610de69042815260200190565b600082601f83011261123657600080fd5b8135602067ffffffffffffffff80831115611253576112536115da565b8260051b604051601f19603f83011681018181108482111715611278576112786115da565b6040528481528381019250868401828801850189101561129757600080fd5b600092505b858310156112ba57803584529284019260019290920191840161129c565b50979650505050505050565b6000602082840312156112d857600080fd5b8135610ec1816115f0565b600080604083850312156112f657600080fd5b8235611301816115f0565b9150602083013561131181611605565b809150509250929050565b600080600080600060a0868803121561133457600080fd5b853567ffffffffffffffff8082111561134c57600080fd5b61135889838a01611225565b9650602088013591508082111561136e57600080fd5b61137a89838a01611225565b9550604088013591508082111561139057600080fd5b61139c89838a01611225565b945060608801359150808211156113b257600080fd5b506113bf88828901611225565b92505060808601356113d081611605565b809150509295509295909350565b6000602082840312156113f057600080fd5b8151610ec181611605565b60006020828403121561140d57600080fd5b5035919050565b60006020828403121561142657600080fd5b5051919050565b600081518084526020808501945080840160005b8381101561145d57815187529582019590820190600101611441565b509495945050505050565b60408152600061147b604083018561142d565b828103602084015261148d818561142d565b95945050505050565b60208082526021908201527f546869732066756e6374696f6e2069732063757272656e746c792070617573656040820152601960fa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561151f5761151f6115ae565b500190565b60008261154157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611560576115606115ae565b500290565b600082821015611577576115776115ae565b500390565b60008161158b5761158b6115ae565b506000190190565b60006000198214156115a7576115a76115ae565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461038757600080fd5b801515811461038757600080fdfea264697066735822122031c059498838000ae10ea55554ff538116506c5c94ba3d28392830bddb55085364736f6c634300080700330000000000000000000000002e59d147962e2bb3fbdc52dc18cfba2653c06ccc000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb88
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063b898d9301161007c578063b898d930146102bf578063c1cbaf69146102c7578063caa6fea4146102da578063efa4e15b146102ee578063f2fde38b14610317578063ffd482f61461032a57600080fd5b8063715018a6146102535780637cccb9091461025b57806384fdedde1461026e5780638da5cb5b1461028e57806394f5a4c91461029f57600080fd5b80634e71d92d116100ff5780634e71d92d146101ee57806351508f0a146101f6578063523a3f08146102095780635a4ffd441461021c5780635c975abb1461022f57600080fd5b80630bd823041461013c578063175d2d2e1461016f578063385df64914610184578063393c9b651461018c578063438b6300146101cd575b600080fd5b61015c61014a3660046112c6565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b61018261017d3660046113fb565b61034a565b005b61018261038a565b6101b561019a3660046113fb565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610166565b6101e06101db3660046112c6565b6103de565b604051610166929190611468565b61018261067f565b6101826102043660046112c6565b6107b9565b6101826102173660046113fb565b610805565b61015c61022a3660046112e3565b6108b3565b60075461024390600160a01b900460ff1681565b6040519015158152602001610166565b610182610a20565b6101826102693660046113fb565b610a56565b61015c61027c3660046112c6565b60056020526000908152604090205481565b6000546001600160a01b03166101b5565b61015c6102ad3660046112c6565b60016020526000908152604090205481565b610182610a93565b6101826102d536600461131c565b610ade565b60075461024390600160a81b900460ff1681565b6101b56102fc3660046113fb565b6004602052600090815260409020546001600160a01b031681565b6101826103253660046112c6565b610c3b565b61015c6103383660046112c6565b60036020526000908152604090205481565b33321461035657600080fd5b600754600160a81b900460ff1661036c57600080fd5b33600090815260056020526040902042905561038781610cd3565b50565b6000546001600160a01b031633146103bd5760405162461bcd60e51b81526004016103b4906114d7565b60405180910390fd5b6007805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6001600160a01b038116600090815260016020526040902054606090819067ffffffffffffffff811115610414576104146115da565b60405190808252806020026020018201604052801561043d578160200160208202803683370190505b506001600160a01b03841660009081526003602052604090205490925067ffffffffffffffff811115610472576104726115da565b60405190808252806020026020018201604052801561049b578160200160208202803683370190505b50905060008060015b7f0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb886001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104fd57600080fd5b505afa158015610511573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105359190611414565b811161058b576000818152600260205260409020546001600160a01b03878116911614156105835780858480600101955081518110610576576105766115c4565b6020026020010181815250505b6001016104a4565b5060005b7f000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106209190611414565b811015610677576000818152600460205260409020546001600160a01b038781169116141561066f5780848380600101945081518110610662576106626115c4565b6020026020010181815250505b60010161058f565b505050915091565b33321461068b57600080fd5b600754600160a01b900460ff16156106b55760405162461bcd60e51b81526004016103b490611496565b336106bf81610df1565b6001600160a01b03811660009081526006602052604090205480156107b5576001600160a01b0382811660008181526006602052604080822091909155600754905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561074157600080fd5b505af1158015610755573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077991906113de565b506040805182815242602082015233917f36e1b0f1ba5690c4228e83c53aab47613bb01e8da541704a6d86bc33c2b054cf910160405180910390a25b5050565b6000546001600160a01b031633146107e35760405162461bcd60e51b81526004016103b4906114d7565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461082f5760405162461bcd60e51b81526004016103b4906114d7565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561087b57600080fd5b505af115801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b591906113de565b6001600160a01b038216600090815260056020526040812054806108db576000915050610a1a565b60008361090a576001600160a01b0385166000908152600560205260409020546109059042611565565b61090f565b620151805b6001600160a01b0386166000908152600160209081526040808320546003909252909120549192509081158015610944575080155b15610956576000945050505050610a1a565b8261096c62015180678ac7230489e80000611524565b61097790600161150c565b6109818484610eb0565b61098b9190611546565b6109959190611546565b836109ab62015180676124fee993bc0000611524565b6109b690600161150c565b6109c09084611546565b6109ca9190611546565b846109e0620151806729a2241af62c0000611524565b6109eb90600161150c565b6109f59086611546565b6109ff9190611546565b610a09919061150c565b610a13919061150c565b9450505050505b92915050565b6000546001600160a01b03163314610a4a5760405162461bcd60e51b81526004016103b4906114d7565b610a546000610ec8565b565b333214610a6257600080fd5b600754600160a81b900460ff16610a7857600080fd5b33600090815260056020526040902042905561038781610f18565b6000546001600160a01b03163314610abd5760405162461bcd60e51b81526004016103b4906114d7565b6007805460ff60a81b198116600160a81b9182900460ff1615909102179055565b333214610aea57600080fd5b600754600160a01b900460ff1615610b145760405162461bcd60e51b81526004016103b490611496565b8015610b2757610b2261067f565b610b30565b610b3033610df1565b60005b8551811015610b7057610b5e868281518110610b5157610b516115c4565b602002602001015161102f565b80610b6881611593565b915050610b33565b5060005b8451811015610bb157610b9f858281518110610b9257610b926115c4565b6020026020010151610f18565b80610ba981611593565b915050610b74565b5060005b8351811015610bf257610be0848281518110610bd357610bd36115c4565b6020026020010151611127565b80610bea81611593565b915050610bb5565b5060005b8251811015610c3357610c21838281518110610c1457610c146115c4565b6020026020010151610cd3565b80610c2b81611593565b915050610bf6565b505050505050565b6000546001600160a01b03163314610c655760405162461bcd60e51b81526004016103b4906114d7565b6001600160a01b038116610cca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b4565b61038781610ec8565b6000818152600460205260409020546001600160a01b03163314610cf657600080fd5b600081815260046020908152604080832080546001600160a01b031916905533835260039091528120805491610d2b8361157c565b90915550506040516323b872dd60e01b8152306004820152336024820152604481018290527f000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a6001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610d9e57600080fd5b505af1158015610db2573d6000803e3d6000fd5b50506040514281528392503391507f1ca91a7c5216f90aa880a6f9d90fe2084fe541cae978b1d46a0b55335c554ce2906020015b60405180910390a350565b600754600160a81b900460ff1615610e5c5760405162461bcd60e51b815260206004820152602860248201527f596f752063616e27742075736520746869732066756e6374696f6e20617420746044820152676869732074696d6560c01b60648201526084016103b4565b610e678160006108b3565b6001600160a01b03821660009081526006602052604081208054909190610e8f90849061150c565b90915550506001600160a01b03166000908152600560205260409020429055565b6000818310610ebf5781610ec1565b825b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818152600260205260409020546001600160a01b03163314610f3b57600080fd5b600081815260026020908152604080832080546001600160a01b031916905533835260019091528120805491610f708361157c565b90915550506040516323b872dd60e01b8152306004820152336024820152604481018290527f0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb886001600160a01b0316906323b872dd90606401600060405180830381600087803b158015610fe357600080fd5b505af1158015610ff7573d6000803e3d6000fd5b50506040514281528392503391507f26faa53ec9cf1544505777839d643e5bb5a31cfa986856913718ddcac21702cd90602001610de6565b6040516357e87c8360e11b8152336004820152602481018290527f0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb886001600160a01b03169063afd0f90690604401600060405180830381600087803b15801561109757600080fd5b505af11580156110ab573d6000803e3d6000fd5b50503360009081526001602052604081208054935091506110cb83611593565b90915550506000818152600260205260409081902080546001600160a01b0319163390811790915590518291907f44c551eb6878f004162607a017bce1a968cbe799092f369148242b6d95d9a39990610de69042815260200190565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a6001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561119557600080fd5b505af11580156111a9573d6000803e3d6000fd5b50503360009081526003602052604081208054935091506111c983611593565b90915550506000818152600460205260409081902080546001600160a01b0319163390811790915590518291907ff1dc31e3d12b5f019b346cf21bf5f7d23577bbe3db2f0a8410fd0960eb2fce0190610de69042815260200190565b600082601f83011261123657600080fd5b8135602067ffffffffffffffff80831115611253576112536115da565b8260051b604051601f19603f83011681018181108482111715611278576112786115da565b6040528481528381019250868401828801850189101561129757600080fd5b600092505b858310156112ba57803584529284019260019290920191840161129c565b50979650505050505050565b6000602082840312156112d857600080fd5b8135610ec1816115f0565b600080604083850312156112f657600080fd5b8235611301816115f0565b9150602083013561131181611605565b809150509250929050565b600080600080600060a0868803121561133457600080fd5b853567ffffffffffffffff8082111561134c57600080fd5b61135889838a01611225565b9650602088013591508082111561136e57600080fd5b61137a89838a01611225565b9550604088013591508082111561139057600080fd5b61139c89838a01611225565b945060608801359150808211156113b257600080fd5b506113bf88828901611225565b92505060808601356113d081611605565b809150509295509295909350565b6000602082840312156113f057600080fd5b8151610ec181611605565b60006020828403121561140d57600080fd5b5035919050565b60006020828403121561142657600080fd5b5051919050565b600081518084526020808501945080840160005b8381101561145d57815187529582019590820190600101611441565b509495945050505050565b60408152600061147b604083018561142d565b828103602084015261148d818561142d565b95945050505050565b60208082526021908201527f546869732066756e6374696f6e2069732063757272656e746c792070617573656040820152601960fa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561151f5761151f6115ae565b500190565b60008261154157634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611560576115606115ae565b500290565b600082821015611577576115776115ae565b500390565b60008161158b5761158b6115ae565b506000190190565b60006000198214156115a7576115a76115ae565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461038757600080fd5b801515811461038757600080fdfea264697066735822122031c059498838000ae10ea55554ff538116506c5c94ba3d28392830bddb55085364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002e59d147962e2bb3fbdc52dc18cfba2653c06ccc000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb88
-----Decoded View---------------
Arg [0] : rewardContract_ (address): 0x2E59D147962E2bB3fBdc52dc18CfBa2653C06Ccc
Arg [1] : sevensContract_ (address): 0xf497253C2bB7644ebb99e4d9ECC104aE7a79187A
Arg [2] : companionsContract_ (address): 0x1D69a5CEe83381459a2589828dF5E8d82Ca2cB88
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002e59d147962e2bb3fbdc52dc18cfba2653c06ccc
Arg [1] : 000000000000000000000000f497253c2bb7644ebb99e4d9ecc104ae7a79187a
Arg [2] : 0000000000000000000000001d69a5cee83381459a2589828df5e8d82ca2cb88
Deployed Bytecode Sourcemap
173:7215:13:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1146:53;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;7339:25:15;;;7327:2;7312:18;1146:53:13;;;;;;;;7189:194;;;;;;:::i;:::-;;:::i;:::-;;6777:75;;;:::i;912:54::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;912:54:13;;;;;;-1:-1:-1;;;;;4249:32:15;;;4231:51;;4219:2;4204:18;912:54:13;4085:203:15;4252:780:13;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;2737:367::-;;;:::i;6648:121::-;;;;;;:::i;:::-;;:::i;6522:118::-;;;;;;:::i;:::-;;:::i;3413:831::-;;;;;;:::i;:::-;;:::i;1549:26::-;;;;;-1:-1:-1;;;1549:26:13;;;;;;;;;5587:14:15;;5580:22;5562:41;;5550:2;5535:18;1549:26:13;5422:187:15;1661:101:12;;;:::i;6980:201:13:-;;;;;;:::i;:::-;;:::i;1091:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;1029:85:12;1075:7;1101:6;-1:-1:-1;;;;;1101:6:12;1029:85;;851:54:13;;;;;;:::i;:::-;;;;;;;;;;;;;;6860:85;;;:::i;1926:803::-;;;;;;:::i;:::-;;:::i;1582:29::-;;;;;-1:-1:-1;;;1582:29:13;;;;;;1032:50;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;1032:50:13;;;1911:198:12;;;;;;:::i;:::-;;:::i;975:50:13:-;;;;;;:::i;:::-;;;;;;;;;;;;;;7189:194;257:10;271:9;257:23;249:32;;;;;;7275:9:::1;::::0;-1:-1:-1;;;7275:9:13;::::1;;;7267:18;;;::::0;::::1;;7313:10;7296:28;::::0;;;:16:::1;:28;::::0;;;;7327:15:::1;7296:46:::0;;7353:22:::1;7367:7:::0;7353:13:::1;:22::i;:::-;7189:194:::0;:::o;6777:75::-;1075:7:12;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;;;;;;;;;6838:6:13::1;::::0;;-1:-1:-1;;;;6828:16:13;::::1;-1:-1:-1::0;;;6838:6:13;;;::::1;;;6837:7;6828:16:::0;;::::1;;::::0;;6777:75::o;4252:780::-;-1:-1:-1;;;;;4437:28:13;;;;;;:22;:28;;;;;;4311:30;;;;4426:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4426:40:13;-1:-1:-1;;;;;;4507:24:13;;;;;;:18;:24;;;;;;4407:59;;-1:-1:-1;4496:36:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4496:36:13;-1:-1:-1;4481:51:13;-1:-1:-1;4547:10:13;;4618:1;4605:202;4626:18;-1:-1:-1;;;;;4626:30:13;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4621:1;:37;4605:202;;4706:25;;;;:22;:25;;;;;;-1:-1:-1;;;;;4706:33:13;;;:25;;:33;4703:88;;;4790:1;4762:16;4779:7;;;;;;4762:25;;;;;;;;:::i;:::-;;;;;;:29;;;;;4703:88;4660:3;;4605:202;;;;4825:6;4821:193;4841:14;-1:-1:-1;;;;;4841:26:13;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4837:1;:32;4821:193;;;4921:21;;;;:18;:21;;;;;;-1:-1:-1;;;;;4921:29:13;;;:21;;:29;4918:80;;;4997:1;4973:12;4986:7;;;;;;4973:21;;;;;;;;:::i;:::-;;;;;;:25;;;;;4918:80;4871:3;;4821:193;;;;4382:643;;4252:780;;;:::o;2737:367::-;257:10;271:9;257:23;249:32;;;;;;348:6:::1;::::0;-1:-1:-1;;;348:6:13;::::1;;;347:7;339:53;;;;-1:-1:-1::0;;;339:53:13::1;;;;;;;:::i;:::-;2806:10:::2;2827:17;2806:10:::0;2827:13:::2;:17::i;:::-;-1:-1:-1::0;;;;;2869:25:13;::::2;2855:11;2869:25:::0;;;:21:::2;:25;::::0;;;;;2908:11;;2905:192:::2;;-1:-1:-1::0;;;;;2936:25:13;;::::2;2964:1;2936:25:::0;;;:21:::2;:25;::::0;;;;;:29;;;;2980:14:::2;::::0;:35;;-1:-1:-1;;;2980:35:13;;::::2;::::0;::::2;4847:51:15::0;;;;4914:18;;;4907:34;;;2980:14:13;;::::2;::::0;:23:::2;::::0;4820:18:15;;2980:35:13::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;3035:50:13::2;::::0;;7549:25:15;;;3069:15:13::2;7605:2:15::0;7590:18;;7583:34;3049:10:13::2;::::0;3035:50:::2;::::0;7522:18:15;3035:50:13::2;;;;;;;2905:192;2782:322;;2737:367::o:0;6648:121::-;1075:7:12;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;6729:14:13::1;:32:::0;;-1:-1:-1;;;;;;6729:32:13::1;-1:-1:-1::0;;;;;6729:32:13;;;::::1;::::0;;;::::1;::::0;;6648:121::o;6522:118::-;1075:7:12;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;6589:14:13::1;::::0;:43:::1;::::0;-1:-1:-1;;;6589:43:13;;6613:10:::1;6589:43;::::0;::::1;4847:51:15::0;4914:18;;;4907:34;;;-1:-1:-1;;;;;6589:14:13;;::::1;::::0;:23:::1;::::0;4820:18:15;;6589:43:13::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3413:831::-:0;-1:-1:-1;;;;;3518:22:13;;3484:4;3518:22;;;:16;:22;;;;;;3554:14;3551:40;;3590:1;3583:8;;;;;3551:40;3604:19;3626:6;:58;;-1:-1:-1;;;;;3662:22:13;;;;;;:16;:22;;;;;;3644:40;;:15;:40;:::i;:::-;3626:58;;;3635:6;3626:58;-1:-1:-1;;;;;3718:28:13;;3695:20;3718:28;;;:22;:28;;;;;;;;;3776:18;:24;;;;;;;3604:80;;-1:-1:-1;3718:28:13;3814:20;;:40;;;;-1:-1:-1;3838:16:13;;3814:40;3811:67;;;3877:1;3870:8;;;;;;;;3811:67;4170:14;1381:20;1395:6;1386:5;1381:20;:::i;:::-;1380:26;;1405:1;1380:26;:::i;:::-;4121:33;4125:15;4142:11;4121:3;:33::i;:::-;:46;;;;:::i;:::-;:63;;;;:::i;:::-;4050:14;1322:19;1335:6;1327:4;1322:19;:::i;:::-;1321:25;;1345:1;1321:25;:::i;:::-;4021:26;;:11;:26;:::i;:::-;:43;;;;:::i;:::-;3955:14;1261:19;1274:6;1266:4;1261:19;:::i;:::-;1260:25;;1284:1;1260:25;:::i;:::-;3918:34;;:15;:34;:::i;:::-;:51;;;;:::i;:::-;3917:148;;;;:::i;:::-;:268;;;;:::i;:::-;3891:345;;;;;;3413:831;;;;;:::o;1661:101:12:-;1075:7;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;1725:30:::1;1752:1;1725:18;:30::i;:::-;1661:101::o:0;6980:201:13:-;257:10;271:9;257:23;249:32;;;;;;7069:9:::1;::::0;-1:-1:-1;;;7069:9:13;::::1;;;7061:18;;;::::0;::::1;;7107:10;7090:28;::::0;;;:16:::1;:28;::::0;;;;7121:15:::1;7090:46:::0;;7147:26:::1;7165:7:::0;7147:17:::1;:26::i;6860:85::-:0;1075:7:12;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;6928:9:13::1;::::0;;-1:-1:-1;;;;6915:22:13;::::1;-1:-1:-1::0;;;6928:9:13;;;::::1;;;6927:10;6915:22:::0;;::::1;;::::0;;6860:85::o;1926:803::-;257:10;271:9;257:23;249:32;;;;;;348:6:::1;::::0;-1:-1:-1;;;348:6:13;::::1;;;347:7;339:53;;;;-1:-1:-1::0;;;339:53:13::1;;;;;;;:::i;:::-;2134:11:::2;2131:108;;;2162:7;:5;:7::i;:::-;2131:108;;;2202:25;2216:10;2202:13;:25::i;:::-;2255:6;2251:114;2271:16;:23;2267:1;:27;2251:114;;;2317:36;2333:16;2350:1;2333:19;;;;;;;;:::i;:::-;;;;;;;2317:15;:36::i;:::-;2296:3:::0;::::2;::::0;::::2;:::i;:::-;;;;2251:114;;;;2379:6;2375:119;2395:18;:25;2391:1;:29;2375:119;;;2442:40;2460:18;2479:1;2460:21;;;;;;;;:::i;:::-;;;;;;;2442:17;:40::i;:::-;2422:3:::0;::::2;::::0;::::2;:::i;:::-;;;;2375:119;;;;2508:6;2504:101;2524:12;:19;2520:1;:23;2504:101;;;2565:28;2577:12;2590:1;2577:15;;;;;;;;:::i;:::-;;;;;;;2565:11;:28::i;:::-;2545:3:::0;::::2;::::0;::::2;:::i;:::-;;;;2504:101;;;;2619:6;2615:107;2635:14;:21;2631:1;:25;2615:107;;;2678:32;2692:14;2707:1;2692:17;;;;;;;;:::i;:::-;;;;;;;2678:13;:32::i;:::-;2658:3:::0;::::2;::::0;::::2;:::i;:::-;;;;2615:107;;;;1926:803:::0;;;;;:::o;1911:198:12:-;1075:7;1101:6;-1:-1:-1;;;;;1101:6:12;719:10:2;1241:23:12;1233:68;;;;-1:-1:-1;;;1233:68:12;;;;;;;:::i;:::-;-1:-1:-1;;;;;1999:22:12;::::1;1991:73;;;::::0;-1:-1:-1;;;1991:73:12;;5816:2:15;1991:73:12::1;::::0;::::1;5798:21:15::0;5855:2;5835:18;;;5828:30;5894:34;5874:18;;;5867:62;-1:-1:-1;;;5945:18:15;;;5938:36;5991:19;;1991:73:12::1;5614:402:15::0;1991:73:12::1;2074:28;2093:8;2074:18;:28::i;6034:353:13:-:0;6099:27;;;;:18;:27;;;;;;-1:-1:-1;;;;;6099:27:13;6130:10;6099:41;6091:50;;;;;;6192:1;6154:27;;;:18;:27;;;;;;;;:40;;-1:-1:-1;;;;;;6154:40:13;;;6224:10;6205:30;;:18;:30;;;;;:32;;;;;;:::i;:::-;;;;-1:-1:-1;;6248:63:13;;-1:-1:-1;;;6248:63:13;;6284:4;6248:63;;;4533:34:15;6291:10:13;4583:18:15;;;4576:43;4635:18;;;4628:34;;;6248:14:13;-1:-1:-1;;;;;6248:27:13;;;;4468:18:15;;6248:63:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6327:52:13;;6363:15;7339:25:15;;6354:7:13;;-1:-1:-1;6342:10:13;;-1:-1:-1;6327:52:13;;7327:2:15;7312:18;6327:52:13;;;;;;;;6034:353;:::o;3112:248::-;3178:9;;-1:-1:-1;;;3178:9:13;;;;3177:10;3169:63;;;;-1:-1:-1;;;3169:63:13;;6986:2:15;3169:63:13;;;6968:21:15;7025:2;7005:18;;;6998:30;7064:34;7044:18;;;7037:62;-1:-1:-1;;;7115:18:15;;;7108:38;7163:19;;3169:63:13;6784:404:15;3169:63:13;3274:27;3289:4;3295:5;3274:14;:27::i;:::-;-1:-1:-1;;;;;3243:27:13;;;;;;:21;:27;;;;;:58;;:27;;;:58;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;3312:22:13;;;;;:16;:22;;;;;3337:15;3312:40;;3112:248::o;6395:98::-;6446:4;6475:1;6471;:5;:13;;6483:1;6471:13;;;6479:1;6471:13;6463:22;6395:98;-1:-1:-1;;;6395:98:13:o;2263:187:12:-;2336:16;2355:6;;-1:-1:-1;;;;;2371:17:12;;;-1:-1:-1;;;;;;2371:17:12;;;;;;2403:40;;2355:6;;;;;;;2403:40;;2336:16;2403:40;2326:124;2263:187;:::o;5355:377:13:-;5424:31;;;;:22;:31;;;;;;-1:-1:-1;;;;;5424:31:13;5459:10;5424:45;5416:54;;;;;;5525:1;5483:31;;;:22;:31;;;;;;;;:44;;-1:-1:-1;;;;;;5483:44:13;;;5561:10;5538:34;;5483:44;5538:34;;;;;:36;;;;;;:::i;:::-;;;;-1:-1:-1;;5585:67:13;;-1:-1:-1;;;5585:67:13;;5625:4;5585:67;;;4533:34:15;5632:10:13;4583:18:15;;;4576:43;4635:18;;;4628:34;;;5585:18:13;-1:-1:-1;;;;;5585:31:13;;;;4468:18:15;;5585:67:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5668:56:13;;5708:15;7339:25:15;;5699:7:13;;-1:-1:-1;5687:10:13;;-1:-1:-1;5668:56:13;;7327:2:15;7312:18;5668:56:13;7193:177:15;5059:288:13;5118:49;;-1:-1:-1;;;5118:49:13;;5147:10;5118:49;;;4847:51:15;4914:18;;;4907:34;;;5118:18:13;-1:-1:-1;;;;;5118:28:13;;;;4820:18:15;;5118:49:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5201:10:13;5178:34;;;;:22;:34;;;;;:36;;;-1:-1:-1;5178:34:13;-1:-1:-1;5178:36:13;;;:::i;:::-;;;;-1:-1:-1;;5225:31:13;;;;:22;:31;;;;;;;:44;;-1:-1:-1;;;;;;5225:44:13;5259:10;5225:44;;;;;;5285:54;;5248:7;;5259:10;5285:54;;;;5323:15;7339:25:15;;7327:2;7312:18;;7193:177;5740:286:13;5795:63;;-1:-1:-1;;;5795:63:13;;5823:10;5795:63;;;4533:34:15;5843:4:13;4583:18:15;;;4576:43;4635:18;;;4628:34;;;5795:14:13;-1:-1:-1;;;;;5795:27:13;;;;4468:18:15;;5795:63:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5888:10:13;5869:30;;;;:18;:30;;;;;:32;;;-1:-1:-1;5869:30:13;-1:-1:-1;5869:32:13;;;:::i;:::-;;;;-1:-1:-1;;5912:27:13;;;;:18;:27;;;;;;;:40;;-1:-1:-1;;;;;;5912:40:13;5942:10;5912:40;;;;;;5968:50;;5931:7;;5942:10;5968:50;;;;6002:15;7339:25:15;;7327:2;7312:18;;7193:177;14:913;68:5;121:3;114:4;106:6;102:17;98:27;88:55;;139:1;136;129:12;88:55;175:6;162:20;201:4;224:18;261:2;257;254:10;251:36;;;267:18;;:::i;:::-;313:2;310:1;306:10;345:2;339:9;408:2;404:7;399:2;395;391:11;387:25;379:6;375:38;463:6;451:10;448:22;443:2;431:10;428:18;425:46;422:72;;;474:18;;:::i;:::-;510:2;503:22;560:18;;;594:15;;;;-1:-1:-1;629:15:15;;;663;;;659:24;;656:33;-1:-1:-1;653:53:15;;;702:1;699;692:12;653:53;724:1;715:10;;734:163;748:2;745:1;742:9;734:163;;;805:17;;793:30;;843:12;;;;766:1;759:9;;;;;875:12;;734:163;;;-1:-1:-1;915:6:15;14:913;-1:-1:-1;;;;;;;14:913:15:o;932:247::-;991:6;1044:2;1032:9;1023:7;1019:23;1015:32;1012:52;;;1060:1;1057;1050:12;1012:52;1099:9;1086:23;1118:31;1143:5;1118:31;:::i;1184:382::-;1249:6;1257;1310:2;1298:9;1289:7;1285:23;1281:32;1278:52;;;1326:1;1323;1316:12;1278:52;1365:9;1352:23;1384:31;1409:5;1384:31;:::i;:::-;1434:5;-1:-1:-1;1491:2:15;1476:18;;1463:32;1504:30;1463:32;1504:30;:::i;:::-;1553:7;1543:17;;;1184:382;;;;;:::o;1571:1178::-;1763:6;1771;1779;1787;1795;1848:3;1836:9;1827:7;1823:23;1819:33;1816:53;;;1865:1;1862;1855:12;1816:53;1905:9;1892:23;1934:18;1975:2;1967:6;1964:14;1961:34;;;1991:1;1988;1981:12;1961:34;2014:61;2067:7;2058:6;2047:9;2043:22;2014:61;:::i;:::-;2004:71;;2128:2;2117:9;2113:18;2100:32;2084:48;;2157:2;2147:8;2144:16;2141:36;;;2173:1;2170;2163:12;2141:36;2196:63;2251:7;2240:8;2229:9;2225:24;2196:63;:::i;:::-;2186:73;;2312:2;2301:9;2297:18;2284:32;2268:48;;2341:2;2331:8;2328:16;2325:36;;;2357:1;2354;2347:12;2325:36;2380:63;2435:7;2424:8;2413:9;2409:24;2380:63;:::i;:::-;2370:73;;2496:2;2485:9;2481:18;2468:32;2452:48;;2525:2;2515:8;2512:16;2509:36;;;2541:1;2538;2531:12;2509:36;;2564:63;2619:7;2608:8;2597:9;2593:24;2564:63;:::i;:::-;2554:73;;;2677:3;2666:9;2662:19;2649:33;2691:28;2713:5;2691:28;:::i;:::-;2738:5;2728:15;;;1571:1178;;;;;;;;:::o;2754:245::-;2821:6;2874:2;2862:9;2853:7;2849:23;2845:32;2842:52;;;2890:1;2887;2880:12;2842:52;2922:9;2916:16;2941:28;2963:5;2941:28;:::i;3271:180::-;3330:6;3383:2;3371:9;3362:7;3358:23;3354:32;3351:52;;;3399:1;3396;3389:12;3351:52;-1:-1:-1;3422:23:15;;3271:180;-1:-1:-1;3271:180:15:o;3456:184::-;3526:6;3579:2;3567:9;3558:7;3554:23;3550:32;3547:52;;;3595:1;3592;3585:12;3547:52;-1:-1:-1;3618:16:15;;3456:184;-1:-1:-1;3456:184:15:o;3645:435::-;3698:3;3736:5;3730:12;3763:6;3758:3;3751:19;3789:4;3818:2;3813:3;3809:12;3802:19;;3855:2;3848:5;3844:14;3876:1;3886:169;3900:6;3897:1;3894:13;3886:169;;;3961:13;;3949:26;;3995:12;;;;4030:15;;;;3922:1;3915:9;3886:169;;;-1:-1:-1;4071:3:15;;3645:435;-1:-1:-1;;;;;3645:435:15:o;4952:465::-;5209:2;5198:9;5191:21;5172:4;5235:56;5287:2;5276:9;5272:18;5264:6;5235:56;:::i;:::-;5339:9;5331:6;5327:22;5322:2;5311:9;5307:18;5300:50;5367:44;5404:6;5396;5367:44;:::i;:::-;5359:52;4952:465;-1:-1:-1;;;;;4952:465:15:o;6021:397::-;6223:2;6205:21;;;6262:2;6242:18;;;6235:30;6301:34;6296:2;6281:18;;6274:62;-1:-1:-1;;;6367:2:15;6352:18;;6345:31;6408:3;6393:19;;6021:397::o;6423:356::-;6625:2;6607:21;;;6644:18;;;6637:30;6703:34;6698:2;6683:18;;6676:62;6770:2;6755:18;;6423:356::o;7628:128::-;7668:3;7699:1;7695:6;7692:1;7689:13;7686:39;;;7705:18;;:::i;:::-;-1:-1:-1;7741:9:15;;7628:128::o;7761:217::-;7801:1;7827;7817:132;;7871:10;7866:3;7862:20;7859:1;7852:31;7906:4;7903:1;7896:15;7934:4;7931:1;7924:15;7817:132;-1:-1:-1;7963:9:15;;7761:217::o;7983:168::-;8023:7;8089:1;8085;8081:6;8077:14;8074:1;8071:21;8066:1;8059:9;8052:17;8048:45;8045:71;;;8096:18;;:::i;:::-;-1:-1:-1;8136:9:15;;7983:168::o;8156:125::-;8196:4;8224:1;8221;8218:8;8215:34;;;8229:18;;:::i;:::-;-1:-1:-1;8266:9:15;;8156:125::o;8286:136::-;8325:3;8353:5;8343:39;;8362:18;;:::i;:::-;-1:-1:-1;;;8398:18:15;;8286:136::o;8427:135::-;8466:3;-1:-1:-1;;8487:17:15;;8484:43;;;8507:18;;:::i;:::-;-1:-1:-1;8554:1:15;8543:13;;8427:135::o;8567:127::-;8628:10;8623:3;8619:20;8616:1;8609:31;8659:4;8656:1;8649:15;8683:4;8680:1;8673:15;8699:127;8760:10;8755:3;8751:20;8748:1;8741:31;8791:4;8788:1;8781:15;8815:4;8812:1;8805:15;8831:127;8892:10;8887:3;8883:20;8880:1;8873:31;8923:4;8920:1;8913:15;8947:4;8944:1;8937:15;8963:131;-1:-1:-1;;;;;9038:31:15;;9028:42;;9018:70;;9084:1;9081;9074:12;9099:118;9185:5;9178:13;9171:21;9164:5;9161:32;9151:60;;9207:1;9204;9197:12
Swarm Source
ipfs://31c059498838000ae10ea55554ff538116506c5c94ba3d28392830bddb550853
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.