More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,755 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Both | 21294317 | 58 days ago | IN | 0 ETH | 0.00095942 | ||||
Withdraw Both | 21294313 | 58 days ago | IN | 0 ETH | 0.00094514 | ||||
Withdraw Both | 21216614 | 69 days ago | IN | 0 ETH | 0.00534703 | ||||
Withdraw Rewards | 21216608 | 69 days ago | IN | 0 ETH | 0.00478305 | ||||
Withdraw Rewards | 18180910 | 494 days ago | IN | 0 ETH | 0.00182092 | ||||
Withdraw | 17683603 | 564 days ago | IN | 0 ETH | 0.002309 | ||||
Withdraw Both | 17628692 | 571 days ago | IN | 0 ETH | 0.01057854 | ||||
Withdraw Both | 17286052 | 619 days ago | IN | 0 ETH | 0.01067312 | ||||
Withdraw Both | 16956673 | 666 days ago | IN | 0 ETH | 0.00404782 | ||||
Withdraw Both | 16912131 | 672 days ago | IN | 0 ETH | 0.0079045 | ||||
Withdraw Rewards | 16912004 | 672 days ago | IN | 0 ETH | 0.00422868 | ||||
Withdraw | 16864295 | 679 days ago | IN | 0 ETH | 0.00193154 | ||||
Withdraw Both | 16864288 | 679 days ago | IN | 0 ETH | 0.00515402 | ||||
Withdraw | 16854138 | 680 days ago | IN | 0 ETH | 0.00344189 | ||||
Withdraw | 16849200 | 681 days ago | IN | 0 ETH | 0.00209951 | ||||
Withdraw Rewards | 16849192 | 681 days ago | IN | 0 ETH | 0.00357116 | ||||
Withdraw Both | 16848693 | 681 days ago | IN | 0 ETH | 0.02067002 | ||||
Withdraw Both | 16844009 | 682 days ago | IN | 0 ETH | 0.00290963 | ||||
Withdraw Both | 16689352 | 704 days ago | IN | 0 ETH | 0.00568655 | ||||
Withdraw | 16558061 | 722 days ago | IN | 0 ETH | 0.00572696 | ||||
Withdraw Rewards | 16558051 | 722 days ago | IN | 0 ETH | 0.00516429 | ||||
Withdraw Both | 16554646 | 722 days ago | IN | 0 ETH | 0.00291495 | ||||
Withdraw Rewards | 16554583 | 723 days ago | IN | 0 ETH | 0.00418638 | ||||
Withdraw Rewards | 16463926 | 735 days ago | IN | 0 ETH | 0.00086792 | ||||
Withdraw Rewards | 16463925 | 735 days ago | IN | 0 ETH | 0.00269847 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
DOGEWarzone
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; pragma solidity ^0.8.13; contract DOGEWarzone is Ownable, Pausable, ReentrancyGuard { IERC721 public DOGE_NFT; IERC721 public SHIBA_NFT; IERC20 public ShibaDoge; address public treasury; address public signerAddress; bool public stakingLaunched; uint256 public stakingEndTime; bool public depositPaused; bool public isWithdrawPaused; struct Staker { uint256 currentYield; uint256 accumulatedAmount; uint256 lastCheckpoint; uint256[] stakedDOGE; uint256[] stakedSHIBA; } enum ContractTypes { DOGE, SHIBA } mapping(address => uint256) public _baseRates; mapping(address => Staker) private _stakers; mapping(address => mapping(uint256 => address)) private _ownerOfToken; mapping(address => ContractTypes) private _contractTypes; mapping(address => mapping(uint256 => uint256)) private _nftYield; mapping(address => uint256) public spentAmount; event Deposit(address indexed staker,address contractAddress,uint256 tokensAmount); event Withdraw(address indexed staker,address contractAddress,uint256 tokensAmount); event WithdrawStuckERC721(address indexed receiver, address indexed tokenAddress, uint256 indexed tokenId); event WithdrawRewards(address indexed staker, uint256 tokens); constructor( address _DOGE, address _SHIBA, address _SHIBDOGE_TOKEN, address _treasury, uint256 _baserate ) { DOGE_NFT = IERC721(_DOGE); _contractTypes[_DOGE] = ContractTypes.DOGE; _baseRates[_DOGE] = _baserate; SHIBA_NFT = IERC721(_SHIBA); _contractTypes[_SHIBA] = ContractTypes.SHIBA; _baseRates[_SHIBA] = _baserate; ShibaDoge = IERC20(_SHIBDOGE_TOKEN); signerAddress = 0x5aBEF98fdD9a83B1c8C90224F86673959C19C701; // frontend signing address treasury = _treasury; } /** * @dev Function allows admin to pause reward withdraw. */ function pauseWithdraw( bool _pause) external onlyOwner { isWithdrawPaused = _pause; } function depositBoth( uint256[] memory dogeIds, uint256[] memory dogeTraits, bytes calldata dogeSignature, uint256[] memory shibaIds, uint256[] memory shibaTraits, bytes calldata shibaSignature) external { deposit(address(DOGE_NFT), dogeIds, dogeTraits, dogeSignature); deposit(address(SHIBA_NFT), shibaIds, shibaTraits, shibaSignature); } function deposit( address contractAddress, uint256[] memory tokenIds, uint256[] memory tokenTraits, bytes calldata signature ) public nonReentrant { require(!depositPaused, "Deposit paused"); require(stakingLaunched, "Staking is not launched yet"); require(block.timestamp < stakingEndTime, "Staking has ended"); require( contractAddress == address(DOGE_NFT) || contractAddress == address(SHIBA_NFT), "Unknown contract" ); ContractTypes contractType = _contractTypes[contractAddress]; if (tokenTraits.length > 0) { require(_validateSignature( signature, contractAddress, tokenIds, tokenTraits ), "Invalid data provided"); _setTokensValues(contractAddress, tokenIds, tokenTraits); } Staker storage user = _stakers[_msgSender()]; uint256 newYield = user.currentYield; for (uint256 i; i < tokenIds.length; i++) { require(IERC721(contractAddress).ownerOf(tokenIds[i]) == _msgSender(), "Not the owner"); IERC721(contractAddress).safeTransferFrom(_msgSender(), address(this), tokenIds[i]); _ownerOfToken[contractAddress][tokenIds[i]] = _msgSender(); newYield += getTokenYield(contractAddress, tokenIds[i]); if (contractType == ContractTypes.DOGE) { user.stakedDOGE.push(tokenIds[i]); } if (contractType == ContractTypes.SHIBA) { user.stakedSHIBA.push(tokenIds[i]); } } accumulate(_msgSender()); user.currentYield = newYield; emit Deposit(_msgSender(), contractAddress, tokenIds.length); } function withdrawBoth( uint256[] memory dogeIds, uint256[] memory shibaIds) external { withdraw(address(DOGE_NFT), dogeIds); withdraw(address(SHIBA_NFT), shibaIds); } function withdraw( address contractAddress, uint256[] memory tokenIds ) public nonReentrant { require( contractAddress == address(DOGE_NFT) || contractAddress == address(SHIBA_NFT), "Unknown contract" ); ContractTypes contractType = _contractTypes[contractAddress]; Staker storage user = _stakers[_msgSender()]; uint256 newYield = user.currentYield; for (uint256 i; i < tokenIds.length; i++) { require(IERC721(contractAddress).ownerOf(tokenIds[i]) == address(this), "Not the owner"); _ownerOfToken[contractAddress][tokenIds[i]] = address(0); if (user.currentYield != 0) { uint256 tokenYield = getTokenYield(contractAddress, tokenIds[i]); newYield -= tokenYield; } if (contractType == ContractTypes.DOGE) { user.stakedDOGE = _moveTokenInTheList(user.stakedDOGE, tokenIds[i]); user.stakedDOGE.pop(); } if (contractType == ContractTypes.SHIBA) { user.stakedSHIBA = _moveTokenInTheList(user.stakedSHIBA, tokenIds[i]); user.stakedSHIBA.pop(); } IERC721(contractAddress).safeTransferFrom(address(this), _msgSender(), tokenIds[i]); } if (user.stakedDOGE.length == 0 && user.stakedSHIBA.length == 0) { newYield = 0; } accumulate(_msgSender()); user.currentYield = newYield; emit Withdraw(_msgSender(), contractAddress, tokenIds.length); } function getTokenYield(address contractAddress, uint256 tokenId) public view returns (uint256) { uint256 tokenYield = _nftYield[contractAddress][tokenId]; if (tokenYield == 0) { tokenYield = _baseRates[contractAddress]; } return tokenYield; } function getStakerYield(address staker) public view returns (uint256) { return _stakers[staker].currentYield; } function getStakerTokens(address staker) public view returns (uint256[] memory, uint256[] memory) { return (_stakers[staker].stakedDOGE, _stakers[staker].stakedSHIBA); } function isTokenYieldSet(address contractAddress, uint256 tokenId) public view returns (bool) { return _nftYield[contractAddress][tokenId] > 0; } function _moveTokenInTheList(uint256[] memory list, uint256 tokenId) internal pure returns (uint256[] memory) { uint256 tokenIndex = 0; uint256 lastTokenIndex = list.length - 1; uint256 length = list.length; for(uint256 i = 0; i < length; i++) { if (list[i] == tokenId) { tokenIndex = i + 1; break; } } require(tokenIndex != 0, "msg.sender is not the owner"); tokenIndex -= 1; if (tokenIndex != lastTokenIndex) { list[tokenIndex] = list[lastTokenIndex]; list[lastTokenIndex] = tokenId; } return list; } function _validateSignature( bytes calldata signature, address contractAddress, uint256[] memory tokenIds, uint256[] memory tokenTraits ) internal view returns (bool) { bytes32 dataHash = keccak256(abi.encodePacked(contractAddress, tokenIds, tokenTraits)); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); address receivedAddress = ECDSA.recover(message, signature); return (receivedAddress != address(0) && receivedAddress == signerAddress); } function _setTokensValues( address contractAddress, uint256[] memory tokenIds, uint256[] memory tokenTraits ) internal { require(tokenIds.length == tokenTraits.length, "Wrong arrays provided"); for (uint256 i; i < tokenIds.length; i++) { if (tokenTraits[i] != 0) { _nftYield[contractAddress][tokenIds[i]] = tokenTraits[i]; } } } function getCurrentReward(address staker) public view returns (uint256) { Staker memory user = _stakers[staker]; if (user.lastCheckpoint == 0) { return 0; } return (Math.min(block.timestamp, stakingEndTime) - user.lastCheckpoint) * user.currentYield / 1 days; } function accumulate(address staker) internal { _stakers[staker].accumulatedAmount += getCurrentReward(staker); _stakers[staker].lastCheckpoint = Math.min(block.timestamp, stakingEndTime); } /** * @dev Returns token owner address (returns address(0) if token is not inside the gateway) */ function ownerOf(address contractAddress, uint256 tokenId) public view returns (address) { return _ownerOfToken[contractAddress][tokenId]; } /** * @dev Function allows admin withdraw ERC721 in case of emergency. */ function emergencyWithdraw(address tokenAddress, uint256[] memory tokenIds) public onlyOwner { require(tokenIds.length <= 50, "50 is max per tx"); pauseDeposit(true); for (uint256 i; i < tokenIds.length; i++) { address receiver = _ownerOfToken[tokenAddress][tokenIds[i]]; if (receiver != address(0) && IERC721(tokenAddress).ownerOf(tokenIds[i]) == address(this)) { IERC721(tokenAddress).safeTransferFrom(address(this), receiver, tokenIds[i]); emit WithdrawStuckERC721(receiver, tokenAddress, tokenIds[i]); } } } /** * @dev Function allows to pause deposits if needed. Withdraw remains active. */ function pauseDeposit(bool _pause) public onlyOwner { depositPaused = _pause; } function updateSignerAddress(address _signer) public onlyOwner { signerAddress = _signer; } function updateTreasuryAddress(address _treasury) public onlyOwner { treasury = _treasury; } function launchStaking() public onlyOwner { require(!stakingLaunched, "Staking has been launched already"); stakingLaunched = true; stakingEndTime = block.timestamp + 60 days; } function updateBaseYield(address _contract, uint256 _yield) public onlyOwner { _baseRates[_contract] = _yield; } function setStakingEndTime(uint256 endTime) external onlyOwner { require(endTime > stakingEndTime); stakingEndTime = endTime; } function onERC721Received(address, address, uint256, bytes calldata) external pure returns(bytes4){ return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")); } /** * @dev Function to withdraw staked rewards */ function withdrawRewards() public nonReentrant whenNotPaused { require(!isWithdrawPaused, "Withdraw Paused"); uint256 amount = getUserBalance(_msgSender()); require(amount > 0, "Insufficient balance"); spentAmount[_msgSender()] += amount; ShibaDoge.transferFrom(treasury, _msgSender(), amount); emit WithdrawRewards( _msgSender(), amount ); } /** * @dev user's lifetime earnings */ function getAccumulatedAmount(address staker) public view returns (uint256) { return _stakers[staker].accumulatedAmount + getCurrentReward(staker); } /** * @dev Returns current withdrawable balance of a specific user. */ function getUserBalance(address user) public view returns (uint256) { return (getAccumulatedAmount(user) - spentAmount[user]); } // Safety functions /** * @dev Allows owner to withdraw any ERC20 Token sent directly to the contract */ function rescueTokens(address _stuckToken) external onlyOwner { uint256 balance = IERC20(_stuckToken).balanceOf(address(this)); IERC20(_stuckToken).transfer(msg.sender, balance); } /** * @dev Allows owner to withdraw any ERC721 Token sent directly to the contract */ function rescueNFT(address _stuckToken, uint256 id) external onlyOwner { if(_stuckToken == address(DOGE_NFT) || _stuckToken == address(SHIBA_NFT)) { require( _ownerOfToken[_stuckToken][id] == address(0)); } IERC721(_stuckToken).safeTransferFrom(address(this), msg.sender, id); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (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 (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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 "../../utils/introspection/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 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/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); } }
// 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 (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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_DOGE","type":"address"},{"internalType":"address","name":"_SHIBA","type":"address"},{"internalType":"address","name":"_SHIBDOGE_TOKEN","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_baserate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"Deposit","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"WithdrawRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WithdrawStuckERC721","type":"event"},{"inputs":[],"name":"DOGE_NFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHIBA_NFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ShibaDoge","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_baseRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenTraits","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"dogeIds","type":"uint256[]"},{"internalType":"uint256[]","name":"dogeTraits","type":"uint256[]"},{"internalType":"bytes","name":"dogeSignature","type":"bytes"},{"internalType":"uint256[]","name":"shibaIds","type":"uint256[]"},{"internalType":"uint256[]","name":"shibaTraits","type":"uint256[]"},{"internalType":"bytes","name":"shibaSignature","type":"bytes"}],"name":"depositBoth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getAccumulatedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getCurrentReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakerYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTokenYieldSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseWithdraw","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_stuckToken","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"rescueNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stuckToken","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"setStakingEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingLaunched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_yield","type":"uint256"}],"name":"updateBaseYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"updateTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"dogeIds","type":"uint256[]"},{"internalType":"uint256[]","name":"shibaIds","type":"uint256[]"}],"name":"withdrawBoth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002d2738038062002d2783398101604081905262000034916200016f565b6200003f3362000102565b6000805460ff60a01b191681556001808055600280546001600160a01b03199081166001600160a01b03998a16908117909255908352600c60208181526040808620805460ff1990811690915560098084528288208990556003805487169c8e169c8d1790559a87529282528086208054909316909417909155969096529020556004805492851692841692909217909155600680548316735abef98fdd9a83b1c8c90224f86673959c19c70117905560058054919093169116179055620001d6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200016a57600080fd5b919050565b600080600080600060a086880312156200018857600080fd5b620001938662000152565b9450620001a36020870162000152565b9350620001b36040870162000152565b9250620001c36060870162000152565b9150608086015190509295509295909350565b612b4180620001e66000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c806361499ab91161013b5780638fa2a9f0116100b8578063c7b8981c1161007c578063c7b8981c1461059e578063dfeaa74c146105a6578063e1af5698146105b9578063ebd462cb146105cd578063f2fde38b146105e057600080fd5b80638fa2a9f01461054a57806396eae2911461055d5780639f5cf2b614610570578063a30a247414610583578063c68e51611461058b57600080fd5b80637af61775116100ff5780637af61775146104f75780638293744b1461050a578063841e45611461051d5780638ac33487146105305780638da5cb5b1461053957600080fd5b806361499ab91461049757806361d027b3146104aa57806367800b5f146104bd5780636d031d0a146104cf578063715018a6146104ef57600080fd5b806323101e27116101c95780634bee21d41161018d5780634bee21d4146104235780634d307e3f1461044c5780635a0b30451461045f5780635b7633d0146104725780635c975abb1461048557600080fd5b806323101e27146103b75780632ed3b83b146103d757806338a55f0e146103ea578063415855d6146103fd578063477348921461041057600080fd5b8063150b7a0211610210578063150b7a02146102d157806317636b861461032257806319647af51461034d5780631f29d2dc146103605780632161a2b61461039657600080fd5b8062ae3bf81461024157806302befd241461025657806304129667146102785780630bac0e2f14610299575b600080fd5b61025461024f36600461245c565b6105f3565b005b6008546102639060ff1681565b60405190151581526020015b60405180910390f35b61028b61028636600461245c565b61070a565b60405190815260200161026f565b6102636102a7366004612479565b6001600160a01b03919091166000908152600d602090815260408083209383529290522054151590565b6103096102df3660046124e7565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040516001600160e01b0319909116815260200161026f565b600354610335906001600160a01b031681565b6040516001600160a01b03909116815260200161026f565b61025461035b36600461260b565b610741565b61033561036e366004612479565b6001600160a01b039182166000908152600b6020908152604080832093835292905220541690565b6103a96103a436600461245c565b610771565b60405161026f9291906126aa565b61028b6103c536600461245c565b60096020526000908152604090205481565b600454610335906001600160a01b031681565b6102546103f8366004612479565b610842565b61025461040b3660046126e6565b610930565b61028b61041e36600461245c565b61096d565b61028b61043136600461245c565b6001600160a01b03166000908152600a602052604090205490565b61028b61045a36600461245c565b610999565b61025461046d366004612703565b610ada565b600654610335906001600160a01b031681565b600054600160a01b900460ff16610263565b61028b6104a5366004612479565b610b17565b600554610335906001600160a01b031681565b60085461026390610100900460ff1681565b61028b6104dd36600461245c565b600e6020526000908152604090205481565b610254610b60565b61025461050536600461271c565b610b96565b6102546105183660046127ad565b6110aa565b61025461052b36600461245c565b611581565b61028b60075481565b6000546001600160a01b0316610335565b61025461055836600461245c565b6115cd565b61025461056b3660046127f3565b611619565b600254610335906001600160a01b031681565b610254611655565b610254610599366004612479565b611703565b610254611749565b6102546105b43660046127ad565b611935565b60065461026390600160a01b900460ff1681565b6102546105db3660046126e6565b611ba3565b6102546105ee36600461245c565b611be7565b6000546001600160a01b031633146106265760405162461bcd60e51b815260040161061d906128f5565b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610691919061292a565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156106e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107059190612943565b505050565b600061071582610999565b6001600160a01b0383166000908152600a602052604090206001015461073b9190612976565b92915050565b600254610757906001600160a01b0316836110aa565b60035461076d906001600160a01b0316826110aa565b5050565b6001600160a01b0381166000908152600a60209081526040918290206003810180548451818502810185019095528085526060948594929360040192909184918301828280156107e057602002820191906000526020600020905b8154815260200190600101908083116107cc575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561083257602002820191906000526020600020905b81548152602001906001019080831161081e575b5050505050905091509150915091565b6000546001600160a01b0316331461086c5760405162461bcd60e51b815260040161061d906128f5565b6002546001600160a01b038381169116148061089557506003546001600160a01b038381169116145b156108ca576001600160a01b038281166000908152600b6020908152604080832085845290915290205416156108ca57600080fd5b604051632142170760e11b81526001600160a01b038316906342842e0e906108fa9030903390869060040161298e565b600060405180830381600087803b15801561091457600080fd5b505af1158015610928573d6000803e3d6000fd5b505050505050565b6000546001600160a01b0316331461095a5760405162461bcd60e51b815260040161061d906128f5565b6008805460ff1916911515919091179055565b6001600160a01b0381166000908152600e602052604081205461098f8361070a565b61073b91906129b2565b6001600160a01b0381166000908152600a60209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201805484518187028101870190955280855286959294606086019390929190830182828015610a2357602002820191906000526020600020905b815481526020019060010190808311610a0f575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610a7b57602002820191906000526020600020905b815481526020019060010190808311610a67575b50505050508152505090508060400151600003610a9b5750600092915050565b6201518081600001518260400151610ab542600754611c82565b610abf91906129b2565b610ac991906129c9565b610ad391906129e8565b9392505050565b6000546001600160a01b03163314610b045760405162461bcd60e51b815260040161061d906128f5565b6007548111610b1257600080fd5b600755565b6001600160a01b0382166000908152600d60209081526040808320848452909152812054808203610ad3575050506001600160a01b031660009081526009602052604090205490565b6000546001600160a01b03163314610b8a5760405162461bcd60e51b815260040161061d906128f5565b610b946000611c98565b565b600260015403610bb85760405162461bcd60e51b815260040161061d90612a0a565b600260015560085460ff1615610c015760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d081c185d5cd95960921b604482015260640161061d565b600654600160a01b900460ff16610c5a5760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e67206973206e6f74206c61756e63686564207965740000000000604482015260640161061d565b6007544210610c9f5760405162461bcd60e51b815260206004820152601160248201527014dd185ada5b99c81a185cc8195b991959607a1b604482015260640161061d565b6002546001600160a01b0386811691161480610cc857506003546001600160a01b038681169116145b610d075760405162461bcd60e51b815260206004820152601060248201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604482015260640161061d565b6001600160a01b0385166000908152600c6020526040902054835160ff9091169015610d8957610d3a8383888888611ce8565b610d7e5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161061d565b610d89868686611de9565b336000908152600a60205260408120805490915b875181101561104857336001600160a01b0316896001600160a01b0316636352211e8a8481518110610dd157610dd1612a41565b60200260200101516040518263ffffffff1660e01b8152600401610df791815260200190565b602060405180830381865afa158015610e14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e389190612a57565b6001600160a01b031614610e7e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161061d565b6001600160a01b0389166342842e0e33308b8581518110610ea157610ea1612a41565b60200260200101516040518463ffffffff1660e01b8152600401610ec79392919061298e565b600060405180830381600087803b158015610ee157600080fd5b505af1158015610ef5573d6000803e3d6000fd5b50505050610f003390565b6001600160a01b038a166000908152600b602052604081208a519091908b9085908110610f2f57610f2f612a41565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610f8c89898381518110610f7f57610f7f612a41565b6020026020010151610b17565b610f969083612976565b91506000846001811115610fac57610fac612a74565b03610fe75782600301888281518110610fc757610fc7612a41565b602090810291909101810151825460018101845560009384529190922001555b6001846001811115610ffb57610ffb612a74565b03611036578260040188828151811061101657611016612a41565b602090810291909101810151825460018101845560009384529190922001555b8061104081612a8a565b915050610d9d565b5061105233611ee5565b8082558651604080516001600160a01b038b168152602081019290925233917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62910160405180910390a2505060018055505050505050565b6002600154036110cc5760405162461bcd60e51b815260040161061d90612a0a565b60026001819055546001600160a01b03838116911614806110fa57506003546001600160a01b038381169116145b6111395760405162461bcd60e51b815260206004820152601060248201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604482015260640161061d565b6001600160a01b0382166000908152600c6020908152604080832054338452600a9092528220805460ff909216929091905b845181101561150557306001600160a01b0316866001600160a01b0316636352211e87848151811061119f5761119f612a41565b60200260200101516040518263ffffffff1660e01b81526004016111c591815260200190565b602060405180830381865afa1580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190612a57565b6001600160a01b03161461124c5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161061d565b6001600160a01b0386166000908152600b602052604081208651829088908590811061127a5761127a612a41565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600001546000146112e85760006112d887878481518110610f7f57610f7f612a41565b90506112e481846129b2565b9250505b60008460018111156112fc576112fc612a74565b036113b7576113768360030180548060200260200160405190810160405280929190818152602001828054801561135257602002820191906000526020600020905b81548152602001906001019080831161133e575b505050505086838151811061136957611369612a41565b6020026020010151611f4b565b805161138c9160038601916020909101906123e7565b50826003018054806113a0576113a0612aa3565b600190038181906000526020600020016000905590555b60018460018111156113cb576113cb612a74565b036114775761143683600401805480602002602001604051908101604052809291908181526020018280548015611352576020028201919060005260206000209081548152602001906001019080831161133e57505050505086838151811061136957611369612a41565b805161144c9160048601916020909101906123e7565b508260040180548061146057611460612aa3565b600190038181906000526020600020016000905590555b6001600160a01b0386166342842e0e303388858151811061149a5761149a612a41565b60200260200101516040518463ffffffff1660e01b81526004016114c09392919061298e565b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b5050505080806114fd90612a8a565b91505061116b565b50600382015415801561151a57506004820154155b15611523575060005b61152c33611ee5565b8082558351604080516001600160a01b0388168152602081019290925233917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb910160405180910390a2505060018055505050565b6000546001600160a01b031633146115ab5760405162461bcd60e51b815260040161061d906128f5565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146115f75760405162461bcd60e51b815260040161061d906128f5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600254611632906001600160a01b031689898989610b96565b60035461164b906001600160a01b031685858585610b96565b5050505050505050565b6000546001600160a01b0316331461167f5760405162461bcd60e51b815260040161061d906128f5565b600654600160a01b900460ff16156116e35760405162461bcd60e51b815260206004820152602160248201527f5374616b696e6720686173206265656e206c61756e6368656420616c726561646044820152607960f81b606482015260840161061d565b6006805460ff60a01b1916600160a01b179055610b1242624f1a00612976565b6000546001600160a01b0316331461172d5760405162461bcd60e51b815260040161061d906128f5565b6001600160a01b03909116600090815260096020526040902055565b60026001540361176b5760405162461bcd60e51b815260040161061d90612a0a565b6002600155600054600160a01b900460ff16156117bd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161061d565b600854610100900460ff16156118075760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b604482015260640161061d565b60006118123361096d565b90506000811161185b5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161061d565b336000908152600e60205260408120805483929061187a908490612976565b9091555050600480546005546040516323b872dd60e01b81526001600160a01b03928316936323b872dd936118b5931691339187910161298e565b6020604051808303816000875af11580156118d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f89190612943565b5060405181815233907faa1377f7ec93c239e959efa811f7b8554c036fd7a706c23e58024626a8f3db969060200160405180910390a25060018055565b6000546001600160a01b0316331461195f5760405162461bcd60e51b815260040161061d906128f5565b6032815111156119a45760405162461bcd60e51b815260206004820152601060248201526f06a6040d2e640dac2f040e0cae440e8f60831b604482015260640161061d565b6119ae6001610930565b60005b8151811015610705576001600160a01b0383166000908152600b60205260408120835182908590859081106119e8576119e8612a41565b6020908102919091018101518252810191909152604001600020546001600160a01b031690508015801590611ab55750306001600160a01b0316846001600160a01b0316636352211e858581518110611a4357611a43612a41565b60200260200101516040518263ffffffff1660e01b8152600401611a6991815260200190565b602060405180830381865afa158015611a86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aaa9190612a57565b6001600160a01b0316145b15611b9057836001600160a01b03166342842e0e3083868681518110611add57611add612a41565b60200260200101516040518463ffffffff1660e01b8152600401611b039392919061298e565b600060405180830381600087803b158015611b1d57600080fd5b505af1158015611b31573d6000803e3d6000fd5b50505050828281518110611b4757611b47612a41565b6020026020010151846001600160a01b0316826001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a45b5080611b9b81612a8a565b9150506119b1565b6000546001600160a01b03163314611bcd5760405162461bcd60e51b815260040161061d906128f5565b600880549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314611c115760405162461bcd60e51b815260040161061d906128f5565b6001600160a01b038116611c765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161061d565b611c7f81611c98565b50565b6000818310611c915781610ad3565b5090919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080848484604051602001611d0093929190612ade565b6040516020818303038152906040528051906020012090506000611d71826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611db5828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061207992505050565b90506001600160a01b03811615801590611ddc57506006546001600160a01b038281169116145b9998505050505050505050565b8051825114611e325760405162461bcd60e51b815260206004820152601560248201527415dc9bdb99c8185c9c985e5cc81c1c9bdd9a591959605a1b604482015260640161061d565b60005b8251811015611edf57818181518110611e5057611e50612a41565b6020026020010151600014611ecd57818181518110611e7157611e71612a41565b6020026020010151600d6000866001600160a01b03166001600160a01b031681526020019081526020016000206000858481518110611eb257611eb2612a41565b60200260200101518152602001908152602001600020819055505b80611ed781612a8a565b915050611e35565b50505050565b611eee81610999565b6001600160a01b0382166000908152600a602052604081206001018054909190611f19908490612976565b92505081905550611f2c42600754611c82565b6001600160a01b039091166000908152600a6020526040902060020155565b606060008060018551611f5e91906129b2565b855190915060005b81811015611fb25785878281518110611f8157611f81612a41565b602002602001015103611fa057611f99816001612976565b9350611fb2565b80611faa81612a8a565b915050611f66565b50826000036120035760405162461bcd60e51b815260206004820152601b60248201527f6d73672e73656e646572206973206e6f7420746865206f776e65720000000000604482015260640161061d565b61200e6001846129b2565b925081831461206f5785828151811061202957612029612a41565b602002602001015186848151811061204357612043612a41565b6020026020010181815250508486838151811061206257612062612a41565b6020026020010181815250505b5093949350505050565b6000806000612088858561209d565b915091506120958161210b565b509392505050565b60008082516041036120d35760208301516040840151606085015160001a6120c7878285856122c1565b94509450505050612104565b82516040036120fc57602083015160408401516120f18683836123ae565b935093505050612104565b506000905060025b9250929050565b600081600481111561211f5761211f612a74565b036121275750565b600181600481111561213b5761213b612a74565b036121885760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161061d565b600281600481111561219c5761219c612a74565b036121e95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161061d565b60038160048111156121fd576121fd612a74565b036122555760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161061d565b600481600481111561226957612269612a74565b03611c7f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161061d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156122f857506000905060036123a5565b8460ff16601b1415801561231057508460ff16601c14155b1561232157506000905060046123a5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612375573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661239e576000600192509250506123a5565b9150600090505b94509492505050565b6000806001600160ff1b038316816123cb60ff86901c601b612976565b90506123d9878288856122c1565b935093505050935093915050565b828054828255906000526020600020908101928215612422579160200282015b82811115612422578251825591602001919060010190612407565b5061242e929150612432565b5090565b5b8082111561242e5760008155600101612433565b6001600160a01b0381168114611c7f57600080fd5b60006020828403121561246e57600080fd5b8135610ad381612447565b6000806040838503121561248c57600080fd5b823561249781612447565b946020939093013593505050565b60008083601f8401126124b757600080fd5b50813567ffffffffffffffff8111156124cf57600080fd5b60208301915083602082850101111561210457600080fd5b6000806000806000608086880312156124ff57600080fd5b853561250a81612447565b9450602086013561251a81612447565b935060408601359250606086013567ffffffffffffffff81111561253d57600080fd5b612549888289016124a5565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261258157600080fd5b8135602067ffffffffffffffff8083111561259e5761259e61255a565b8260051b604051601f19603f830116810181811084821117156125c3576125c361255a565b6040529384528581018301938381019250878511156125e157600080fd5b83870191505b84821015612600578135835291830191908301906125e7565b979650505050505050565b6000806040838503121561261e57600080fd5b823567ffffffffffffffff8082111561263657600080fd5b61264286838701612570565b9350602085013591508082111561265857600080fd5b5061266585828601612570565b9150509250929050565b600081518084526020808501945080840160005b8381101561269f57815187529582019590820190600101612683565b509495945050505050565b6040815260006126bd604083018561266f565b82810360208401526126cf818561266f565b95945050505050565b8015158114611c7f57600080fd5b6000602082840312156126f857600080fd5b8135610ad3816126d8565b60006020828403121561271557600080fd5b5035919050565b60008060008060006080868803121561273457600080fd5b853561273f81612447565b9450602086013567ffffffffffffffff8082111561275c57600080fd5b61276889838a01612570565b9550604088013591508082111561277e57600080fd5b61278a89838a01612570565b945060608801359150808211156127a057600080fd5b50612549888289016124a5565b600080604083850312156127c057600080fd5b82356127cb81612447565b9150602083013567ffffffffffffffff8111156127e757600080fd5b61266585828601612570565b60008060008060008060008060c0898b03121561280f57600080fd5b883567ffffffffffffffff8082111561282757600080fd5b6128338c838d01612570565b995060208b013591508082111561284957600080fd5b6128558c838d01612570565b985060408b013591508082111561286b57600080fd5b6128778c838d016124a5565b909850965060608b013591508082111561289057600080fd5b61289c8c838d01612570565b955060808b01359150808211156128b257600080fd5b6128be8c838d01612570565b945060a08b01359150808211156128d457600080fd5b506128e18b828c016124a5565b999c989b5096995094979396929594505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561293c57600080fd5b5051919050565b60006020828403121561295557600080fd5b8151610ad3816126d8565b634e487b7160e01b600052601160045260246000fd5b6000821982111561298957612989612960565b500190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000828210156129c4576129c4612960565b500390565b60008160001904831182151516156129e3576129e3612960565b500290565b600082612a0557634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a6957600080fd5b8151610ad381612447565b634e487b7160e01b600052602160045260246000fd5b600060018201612a9c57612a9c612960565b5060010190565b634e487b7160e01b600052603160045260246000fd5b8051600090602080840183831561269f57815187529582019590820190600101612683565b6bffffffffffffffffffffffff198460601b16815260006126cf612b056014840186612ab9565b84612ab956fea2646970667358221220b170faa042a6c8310c624ca293bb8c16dbb7271db446e678c196e1d43db02c3164736f6c634300080d003300000000000000000000000021177c97be40b52b002fbee000a03212708bcf470000000000000000000000000e043e39e1f9382e4b3cb9b859a1452a93993be70000000000000000000000006adb2e268de2aa1abf6578e4a8119b960e02928f0000000000000000000000005b875e4bd3025a5158986f5e509e405190813a7d000000000000000000000000000000000000000000000000000000e8d4a51000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061023c5760003560e01c806361499ab91161013b5780638fa2a9f0116100b8578063c7b8981c1161007c578063c7b8981c1461059e578063dfeaa74c146105a6578063e1af5698146105b9578063ebd462cb146105cd578063f2fde38b146105e057600080fd5b80638fa2a9f01461054a57806396eae2911461055d5780639f5cf2b614610570578063a30a247414610583578063c68e51611461058b57600080fd5b80637af61775116100ff5780637af61775146104f75780638293744b1461050a578063841e45611461051d5780638ac33487146105305780638da5cb5b1461053957600080fd5b806361499ab91461049757806361d027b3146104aa57806367800b5f146104bd5780636d031d0a146104cf578063715018a6146104ef57600080fd5b806323101e27116101c95780634bee21d41161018d5780634bee21d4146104235780634d307e3f1461044c5780635a0b30451461045f5780635b7633d0146104725780635c975abb1461048557600080fd5b806323101e27146103b75780632ed3b83b146103d757806338a55f0e146103ea578063415855d6146103fd578063477348921461041057600080fd5b8063150b7a0211610210578063150b7a02146102d157806317636b861461032257806319647af51461034d5780631f29d2dc146103605780632161a2b61461039657600080fd5b8062ae3bf81461024157806302befd241461025657806304129667146102785780630bac0e2f14610299575b600080fd5b61025461024f36600461245c565b6105f3565b005b6008546102639060ff1681565b60405190151581526020015b60405180910390f35b61028b61028636600461245c565b61070a565b60405190815260200161026f565b6102636102a7366004612479565b6001600160a01b03919091166000908152600d602090815260408083209383529290522054151590565b6103096102df3660046124e7565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040516001600160e01b0319909116815260200161026f565b600354610335906001600160a01b031681565b6040516001600160a01b03909116815260200161026f565b61025461035b36600461260b565b610741565b61033561036e366004612479565b6001600160a01b039182166000908152600b6020908152604080832093835292905220541690565b6103a96103a436600461245c565b610771565b60405161026f9291906126aa565b61028b6103c536600461245c565b60096020526000908152604090205481565b600454610335906001600160a01b031681565b6102546103f8366004612479565b610842565b61025461040b3660046126e6565b610930565b61028b61041e36600461245c565b61096d565b61028b61043136600461245c565b6001600160a01b03166000908152600a602052604090205490565b61028b61045a36600461245c565b610999565b61025461046d366004612703565b610ada565b600654610335906001600160a01b031681565b600054600160a01b900460ff16610263565b61028b6104a5366004612479565b610b17565b600554610335906001600160a01b031681565b60085461026390610100900460ff1681565b61028b6104dd36600461245c565b600e6020526000908152604090205481565b610254610b60565b61025461050536600461271c565b610b96565b6102546105183660046127ad565b6110aa565b61025461052b36600461245c565b611581565b61028b60075481565b6000546001600160a01b0316610335565b61025461055836600461245c565b6115cd565b61025461056b3660046127f3565b611619565b600254610335906001600160a01b031681565b610254611655565b610254610599366004612479565b611703565b610254611749565b6102546105b43660046127ad565b611935565b60065461026390600160a01b900460ff1681565b6102546105db3660046126e6565b611ba3565b6102546105ee36600461245c565b611be7565b6000546001600160a01b031633146106265760405162461bcd60e51b815260040161061d906128f5565b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610691919061292a565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156106e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107059190612943565b505050565b600061071582610999565b6001600160a01b0383166000908152600a602052604090206001015461073b9190612976565b92915050565b600254610757906001600160a01b0316836110aa565b60035461076d906001600160a01b0316826110aa565b5050565b6001600160a01b0381166000908152600a60209081526040918290206003810180548451818502810185019095528085526060948594929360040192909184918301828280156107e057602002820191906000526020600020905b8154815260200190600101908083116107cc575b505050505091508080548060200260200160405190810160405280929190818152602001828054801561083257602002820191906000526020600020905b81548152602001906001019080831161081e575b5050505050905091509150915091565b6000546001600160a01b0316331461086c5760405162461bcd60e51b815260040161061d906128f5565b6002546001600160a01b038381169116148061089557506003546001600160a01b038381169116145b156108ca576001600160a01b038281166000908152600b6020908152604080832085845290915290205416156108ca57600080fd5b604051632142170760e11b81526001600160a01b038316906342842e0e906108fa9030903390869060040161298e565b600060405180830381600087803b15801561091457600080fd5b505af1158015610928573d6000803e3d6000fd5b505050505050565b6000546001600160a01b0316331461095a5760405162461bcd60e51b815260040161061d906128f5565b6008805460ff1916911515919091179055565b6001600160a01b0381166000908152600e602052604081205461098f8361070a565b61073b91906129b2565b6001600160a01b0381166000908152600a60209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201805484518187028101870190955280855286959294606086019390929190830182828015610a2357602002820191906000526020600020905b815481526020019060010190808311610a0f575b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610a7b57602002820191906000526020600020905b815481526020019060010190808311610a67575b50505050508152505090508060400151600003610a9b5750600092915050565b6201518081600001518260400151610ab542600754611c82565b610abf91906129b2565b610ac991906129c9565b610ad391906129e8565b9392505050565b6000546001600160a01b03163314610b045760405162461bcd60e51b815260040161061d906128f5565b6007548111610b1257600080fd5b600755565b6001600160a01b0382166000908152600d60209081526040808320848452909152812054808203610ad3575050506001600160a01b031660009081526009602052604090205490565b6000546001600160a01b03163314610b8a5760405162461bcd60e51b815260040161061d906128f5565b610b946000611c98565b565b600260015403610bb85760405162461bcd60e51b815260040161061d90612a0a565b600260015560085460ff1615610c015760405162461bcd60e51b815260206004820152600e60248201526d11195c1bdcda5d081c185d5cd95960921b604482015260640161061d565b600654600160a01b900460ff16610c5a5760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e67206973206e6f74206c61756e63686564207965740000000000604482015260640161061d565b6007544210610c9f5760405162461bcd60e51b815260206004820152601160248201527014dd185ada5b99c81a185cc8195b991959607a1b604482015260640161061d565b6002546001600160a01b0386811691161480610cc857506003546001600160a01b038681169116145b610d075760405162461bcd60e51b815260206004820152601060248201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604482015260640161061d565b6001600160a01b0385166000908152600c6020526040902054835160ff9091169015610d8957610d3a8383888888611ce8565b610d7e5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b604482015260640161061d565b610d89868686611de9565b336000908152600a60205260408120805490915b875181101561104857336001600160a01b0316896001600160a01b0316636352211e8a8481518110610dd157610dd1612a41565b60200260200101516040518263ffffffff1660e01b8152600401610df791815260200190565b602060405180830381865afa158015610e14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e389190612a57565b6001600160a01b031614610e7e5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161061d565b6001600160a01b0389166342842e0e33308b8581518110610ea157610ea1612a41565b60200260200101516040518463ffffffff1660e01b8152600401610ec79392919061298e565b600060405180830381600087803b158015610ee157600080fd5b505af1158015610ef5573d6000803e3d6000fd5b50505050610f003390565b6001600160a01b038a166000908152600b602052604081208a519091908b9085908110610f2f57610f2f612a41565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610f8c89898381518110610f7f57610f7f612a41565b6020026020010151610b17565b610f969083612976565b91506000846001811115610fac57610fac612a74565b03610fe75782600301888281518110610fc757610fc7612a41565b602090810291909101810151825460018101845560009384529190922001555b6001846001811115610ffb57610ffb612a74565b03611036578260040188828151811061101657611016612a41565b602090810291909101810151825460018101845560009384529190922001555b8061104081612a8a565b915050610d9d565b5061105233611ee5565b8082558651604080516001600160a01b038b168152602081019290925233917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62910160405180910390a2505060018055505050505050565b6002600154036110cc5760405162461bcd60e51b815260040161061d90612a0a565b60026001819055546001600160a01b03838116911614806110fa57506003546001600160a01b038381169116145b6111395760405162461bcd60e51b815260206004820152601060248201526f155b9adb9bdddb8818dbdb9d1c9858dd60821b604482015260640161061d565b6001600160a01b0382166000908152600c6020908152604080832054338452600a9092528220805460ff909216929091905b845181101561150557306001600160a01b0316866001600160a01b0316636352211e87848151811061119f5761119f612a41565b60200260200101516040518263ffffffff1660e01b81526004016111c591815260200190565b602060405180830381865afa1580156111e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112069190612a57565b6001600160a01b03161461124c5760405162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015260640161061d565b6001600160a01b0386166000908152600b602052604081208651829088908590811061127a5761127a612a41565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600001546000146112e85760006112d887878481518110610f7f57610f7f612a41565b90506112e481846129b2565b9250505b60008460018111156112fc576112fc612a74565b036113b7576113768360030180548060200260200160405190810160405280929190818152602001828054801561135257602002820191906000526020600020905b81548152602001906001019080831161133e575b505050505086838151811061136957611369612a41565b6020026020010151611f4b565b805161138c9160038601916020909101906123e7565b50826003018054806113a0576113a0612aa3565b600190038181906000526020600020016000905590555b60018460018111156113cb576113cb612a74565b036114775761143683600401805480602002602001604051908101604052809291908181526020018280548015611352576020028201919060005260206000209081548152602001906001019080831161133e57505050505086838151811061136957611369612a41565b805161144c9160048601916020909101906123e7565b508260040180548061146057611460612aa3565b600190038181906000526020600020016000905590555b6001600160a01b0386166342842e0e303388858151811061149a5761149a612a41565b60200260200101516040518463ffffffff1660e01b81526004016114c09392919061298e565b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b5050505080806114fd90612a8a565b91505061116b565b50600382015415801561151a57506004820154155b15611523575060005b61152c33611ee5565b8082558351604080516001600160a01b0388168152602081019290925233917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb910160405180910390a2505060018055505050565b6000546001600160a01b031633146115ab5760405162461bcd60e51b815260040161061d906128f5565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146115f75760405162461bcd60e51b815260040161061d906128f5565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600254611632906001600160a01b031689898989610b96565b60035461164b906001600160a01b031685858585610b96565b5050505050505050565b6000546001600160a01b0316331461167f5760405162461bcd60e51b815260040161061d906128f5565b600654600160a01b900460ff16156116e35760405162461bcd60e51b815260206004820152602160248201527f5374616b696e6720686173206265656e206c61756e6368656420616c726561646044820152607960f81b606482015260840161061d565b6006805460ff60a01b1916600160a01b179055610b1242624f1a00612976565b6000546001600160a01b0316331461172d5760405162461bcd60e51b815260040161061d906128f5565b6001600160a01b03909116600090815260096020526040902055565b60026001540361176b5760405162461bcd60e51b815260040161061d90612a0a565b6002600155600054600160a01b900460ff16156117bd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161061d565b600854610100900460ff16156118075760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc814185d5cd959608a1b604482015260640161061d565b60006118123361096d565b90506000811161185b5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161061d565b336000908152600e60205260408120805483929061187a908490612976565b9091555050600480546005546040516323b872dd60e01b81526001600160a01b03928316936323b872dd936118b5931691339187910161298e565b6020604051808303816000875af11580156118d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f89190612943565b5060405181815233907faa1377f7ec93c239e959efa811f7b8554c036fd7a706c23e58024626a8f3db969060200160405180910390a25060018055565b6000546001600160a01b0316331461195f5760405162461bcd60e51b815260040161061d906128f5565b6032815111156119a45760405162461bcd60e51b815260206004820152601060248201526f06a6040d2e640dac2f040e0cae440e8f60831b604482015260640161061d565b6119ae6001610930565b60005b8151811015610705576001600160a01b0383166000908152600b60205260408120835182908590859081106119e8576119e8612a41565b6020908102919091018101518252810191909152604001600020546001600160a01b031690508015801590611ab55750306001600160a01b0316846001600160a01b0316636352211e858581518110611a4357611a43612a41565b60200260200101516040518263ffffffff1660e01b8152600401611a6991815260200190565b602060405180830381865afa158015611a86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aaa9190612a57565b6001600160a01b0316145b15611b9057836001600160a01b03166342842e0e3083868681518110611add57611add612a41565b60200260200101516040518463ffffffff1660e01b8152600401611b039392919061298e565b600060405180830381600087803b158015611b1d57600080fd5b505af1158015611b31573d6000803e3d6000fd5b50505050828281518110611b4757611b47612a41565b6020026020010151846001600160a01b0316826001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a45b5080611b9b81612a8a565b9150506119b1565b6000546001600160a01b03163314611bcd5760405162461bcd60e51b815260040161061d906128f5565b600880549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314611c115760405162461bcd60e51b815260040161061d906128f5565b6001600160a01b038116611c765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161061d565b611c7f81611c98565b50565b6000818310611c915781610ad3565b5090919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080848484604051602001611d0093929190612ade565b6040516020818303038152906040528051906020012090506000611d71826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611db5828a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061207992505050565b90506001600160a01b03811615801590611ddc57506006546001600160a01b038281169116145b9998505050505050505050565b8051825114611e325760405162461bcd60e51b815260206004820152601560248201527415dc9bdb99c8185c9c985e5cc81c1c9bdd9a591959605a1b604482015260640161061d565b60005b8251811015611edf57818181518110611e5057611e50612a41565b6020026020010151600014611ecd57818181518110611e7157611e71612a41565b6020026020010151600d6000866001600160a01b03166001600160a01b031681526020019081526020016000206000858481518110611eb257611eb2612a41565b60200260200101518152602001908152602001600020819055505b80611ed781612a8a565b915050611e35565b50505050565b611eee81610999565b6001600160a01b0382166000908152600a602052604081206001018054909190611f19908490612976565b92505081905550611f2c42600754611c82565b6001600160a01b039091166000908152600a6020526040902060020155565b606060008060018551611f5e91906129b2565b855190915060005b81811015611fb25785878281518110611f8157611f81612a41565b602002602001015103611fa057611f99816001612976565b9350611fb2565b80611faa81612a8a565b915050611f66565b50826000036120035760405162461bcd60e51b815260206004820152601b60248201527f6d73672e73656e646572206973206e6f7420746865206f776e65720000000000604482015260640161061d565b61200e6001846129b2565b925081831461206f5785828151811061202957612029612a41565b602002602001015186848151811061204357612043612a41565b6020026020010181815250508486838151811061206257612062612a41565b6020026020010181815250505b5093949350505050565b6000806000612088858561209d565b915091506120958161210b565b509392505050565b60008082516041036120d35760208301516040840151606085015160001a6120c7878285856122c1565b94509450505050612104565b82516040036120fc57602083015160408401516120f18683836123ae565b935093505050612104565b506000905060025b9250929050565b600081600481111561211f5761211f612a74565b036121275750565b600181600481111561213b5761213b612a74565b036121885760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161061d565b600281600481111561219c5761219c612a74565b036121e95760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161061d565b60038160048111156121fd576121fd612a74565b036122555760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161061d565b600481600481111561226957612269612a74565b03611c7f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161061d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156122f857506000905060036123a5565b8460ff16601b1415801561231057508460ff16601c14155b1561232157506000905060046123a5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612375573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661239e576000600192509250506123a5565b9150600090505b94509492505050565b6000806001600160ff1b038316816123cb60ff86901c601b612976565b90506123d9878288856122c1565b935093505050935093915050565b828054828255906000526020600020908101928215612422579160200282015b82811115612422578251825591602001919060010190612407565b5061242e929150612432565b5090565b5b8082111561242e5760008155600101612433565b6001600160a01b0381168114611c7f57600080fd5b60006020828403121561246e57600080fd5b8135610ad381612447565b6000806040838503121561248c57600080fd5b823561249781612447565b946020939093013593505050565b60008083601f8401126124b757600080fd5b50813567ffffffffffffffff8111156124cf57600080fd5b60208301915083602082850101111561210457600080fd5b6000806000806000608086880312156124ff57600080fd5b853561250a81612447565b9450602086013561251a81612447565b935060408601359250606086013567ffffffffffffffff81111561253d57600080fd5b612549888289016124a5565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261258157600080fd5b8135602067ffffffffffffffff8083111561259e5761259e61255a565b8260051b604051601f19603f830116810181811084821117156125c3576125c361255a565b6040529384528581018301938381019250878511156125e157600080fd5b83870191505b84821015612600578135835291830191908301906125e7565b979650505050505050565b6000806040838503121561261e57600080fd5b823567ffffffffffffffff8082111561263657600080fd5b61264286838701612570565b9350602085013591508082111561265857600080fd5b5061266585828601612570565b9150509250929050565b600081518084526020808501945080840160005b8381101561269f57815187529582019590820190600101612683565b509495945050505050565b6040815260006126bd604083018561266f565b82810360208401526126cf818561266f565b95945050505050565b8015158114611c7f57600080fd5b6000602082840312156126f857600080fd5b8135610ad3816126d8565b60006020828403121561271557600080fd5b5035919050565b60008060008060006080868803121561273457600080fd5b853561273f81612447565b9450602086013567ffffffffffffffff8082111561275c57600080fd5b61276889838a01612570565b9550604088013591508082111561277e57600080fd5b61278a89838a01612570565b945060608801359150808211156127a057600080fd5b50612549888289016124a5565b600080604083850312156127c057600080fd5b82356127cb81612447565b9150602083013567ffffffffffffffff8111156127e757600080fd5b61266585828601612570565b60008060008060008060008060c0898b03121561280f57600080fd5b883567ffffffffffffffff8082111561282757600080fd5b6128338c838d01612570565b995060208b013591508082111561284957600080fd5b6128558c838d01612570565b985060408b013591508082111561286b57600080fd5b6128778c838d016124a5565b909850965060608b013591508082111561289057600080fd5b61289c8c838d01612570565b955060808b01359150808211156128b257600080fd5b6128be8c838d01612570565b945060a08b01359150808211156128d457600080fd5b506128e18b828c016124a5565b999c989b5096995094979396929594505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561293c57600080fd5b5051919050565b60006020828403121561295557600080fd5b8151610ad3816126d8565b634e487b7160e01b600052601160045260246000fd5b6000821982111561298957612989612960565b500190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000828210156129c4576129c4612960565b500390565b60008160001904831182151516156129e3576129e3612960565b500290565b600082612a0557634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612a6957600080fd5b8151610ad381612447565b634e487b7160e01b600052602160045260246000fd5b600060018201612a9c57612a9c612960565b5060010190565b634e487b7160e01b600052603160045260246000fd5b8051600090602080840183831561269f57815187529582019590820190600101612683565b6bffffffffffffffffffffffff198460601b16815260006126cf612b056014840186612ab9565b84612ab956fea2646970667358221220b170faa042a6c8310c624ca293bb8c16dbb7271db446e678c196e1d43db02c3164736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000021177c97be40b52b002fbee000a03212708bcf470000000000000000000000000e043e39e1f9382e4b3cb9b859a1452a93993be70000000000000000000000006adb2e268de2aa1abf6578e4a8119b960e02928f0000000000000000000000005b875e4bd3025a5158986f5e509e405190813a7d000000000000000000000000000000000000000000000000000000e8d4a51000
-----Decoded View---------------
Arg [0] : _DOGE (address): 0x21177C97Be40b52b002fbeE000a03212708BCf47
Arg [1] : _SHIBA (address): 0x0e043e39E1F9382E4b3cB9B859a1452A93993bE7
Arg [2] : _SHIBDOGE_TOKEN (address): 0x6ADb2E268de2aA1aBF6578E4a8119b960E02928F
Arg [3] : _treasury (address): 0x5B875E4Bd3025a5158986f5e509E405190813A7D
Arg [4] : _baserate (uint256): 1000000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000021177c97be40b52b002fbee000a03212708bcf47
Arg [1] : 0000000000000000000000000e043e39e1f9382e4b3cb9b859a1452a93993be7
Arg [2] : 0000000000000000000000006adb2e268de2aa1abf6578e4a8119b960e02928f
Arg [3] : 0000000000000000000000005b875e4bd3025a5158986f5e509e405190813a7d
Arg [4] : 000000000000000000000000000000000000000000000000000000e8d4a51000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.