Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
EvilTeddyBearSale2
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IEvilTeddyBearClub.sol"; import "./IEvilCoin.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract EvilTeddyBearSale2 is Ownable { IEvilTeddyBearClub public evilTeddyBear; IEvilCoin public evilCoinAddress; uint256 public maxSupply = 6666; uint256 public priceTeddyCoin = 1000 ether; bool public saleIsActive = false; address private oracleEthUsd; constructor( IEvilTeddyBearClub _evilTeddyBear, IEvilCoin _evilCoinAddress, address _oracleEthUsd ) { evilTeddyBear = IEvilTeddyBearClub(_evilTeddyBear); evilCoinAddress = IEvilCoin(_evilCoinAddress); oracleEthUsd = _oracleEthUsd; } function removeDustFunds(address _treasury) public onlyOwner { (bool success,) = _treasury.call{value : address(this).balance}(""); require(success, "funds were not sent properly to treasury"); } function mintWithEvilCoins(uint256 numberOfEvilTeddyBears) public payable { require(saleIsActive == true, "Sale has not started"); require(msg.value == calculateFee(), "Incorrect value"); require(evilTeddyBear.totalSupply() <= maxSupply, "Max Supply Reached"); require(evilCoinAddress.balanceOf(msg.sender) >= priceTeddyCoin * numberOfEvilTeddyBears, "You dont have $EVIL enough"); require((evilTeddyBear.totalSupply() + numberOfEvilTeddyBears) <= maxSupply, "Exceeds max supply"); evilCoinAddress.burn(msg.sender, (priceTeddyCoin * numberOfEvilTeddyBears)); for (uint256 i; i < numberOfEvilTeddyBears; i++) { evilTeddyBear.mint(msg.sender); } } function changeSaleStatus() public onlyOwner { saleIsActive = !saleIsActive; } function changeMaxSupply(uint256 newMaxSupply) public onlyOwner { maxSupply = newMaxSupply; } function removeFunds() external onlyOwner { uint256 funds = address(this).balance; (bool devShare,) = 0x519B8faF8b4eD711F4Aa2B01AA1E3BaF3B915ac9.call{ value : funds * 30 / 100 }(""); (bool operationalShare,) = 0x12AAb452F7896F4f2d3D14cB7ddcAbCA78f4F092.call{ value : funds * 30 / 100 }(""); (bool communityShare,) = 0x4476B95F799AD707aD4cD6dEe7383297b2E1C6D6.call{ value : address(this).balance }(""); require( devShare && operationalShare && communityShare, "funds were not sent properly" ); } function calculateFee() public view returns (uint256) { (, int256 price, , ,) = AggregatorV3Interface(oracleEthUsd) .latestRoundData(); uint256 currentETHPriceInUSD = uint256(price / (10 ** 8)); // price comes in 8 decimals uint256 res = 10 * (10000 / currentETHPriceInUSD) * 10 ** 18; // ETH has 18 decimals return res / 10000; } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IEvilTeddyBearClub is IERC721Enumerable { function mint(address) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IEvilCoin is IERC721Enumerable { function mint(address, uint256) external; function burn(address, uint256) external; }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 (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 pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IEvilTeddyBearClub","name":"_evilTeddyBear","type":"address"},{"internalType":"contract IEvilCoin","name":"_evilCoinAddress","type":"address"},{"internalType":"address","name":"_oracleEthUsd","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"evilCoinAddress","outputs":[{"internalType":"contract IEvilCoin","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"evilTeddyBear","outputs":[{"internalType":"contract IEvilTeddyBearClub","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfEvilTeddyBears","type":"uint256"}],"name":"mintWithEvilCoins","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceTeddyCoin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"removeDustFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052611a0a600355683635c9adc5dea000006004556005805460ff1916905534801561002d57600080fd5b50604051620010713803806200107183398101604081905261004e91610104565b61005e6100596100b0565b6100b4565b600180546001600160a01b039485166001600160a01b031991821617909155600280549385169390911692909217909155600580549190921661010002610100600160a81b0319909116179055610168565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215610118578283fd5b835161012381610150565b602085015190935061013481610150565b604085015190925061014581610150565b809150509250925092565b6001600160a01b038116811461016557600080fd5b50565b610ef980620001786000396000f3fe6080604052600436106100dd5760003560e01c8063ca1d953c1161007f578063e6af35f011610059578063e6af35f0146101ed578063eb8d244414610202578063f2fde38b14610224578063feac51f514610244576100dd565b8063ca1d953c146101ae578063d5abeb01146101c3578063e18c4db8146101d8576100dd565b8063715018a6116100bb578063715018a61461014257806389d4dafd146101575780638da5cb5b1461017757806390cc49a814610199576100dd565b8063088d9313146100e2578063404c7cdd146100f75780634fbbd5fa14610117575b600080fd5b6100f56100f0366004610b60565b610259565b005b34801561010357600080fd5b506100f5610112366004610b60565b6105a1565b34801561012357600080fd5b5061012c6105e5565b6040516101399190610dfa565b60405180910390f35b34801561014e57600080fd5b506100f56105eb565b34801561016357600080fd5b506100f5610172366004610b32565b610636565b34801561018357600080fd5b5061018c6106f1565b6040516101399190610be2565b3480156101a557600080fd5b5061018c610700565b3480156101ba57600080fd5b506100f561070f565b3480156101cf57600080fd5b5061012c610762565b3480156101e457600080fd5b5061018c610768565b3480156101f957600080fd5b5061012c610777565b34801561020e57600080fd5b5061021761085b565b6040516101399190610c0f565b34801561023057600080fd5b506100f561023f366004610b32565b610864565b34801561025057600080fd5b506100f56108d5565b60055460ff1615156001146102895760405162461bcd60e51b815260040161028090610dcc565b60405180910390fd5b610291610777565b34146102af5760405162461bcd60e51b815260040161028090610d42565b600354600160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561030057600080fd5b505afa158015610314573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103389190610b78565b11156103565760405162461bcd60e51b815260040161028090610da0565b806004546103649190610e5d565b6002546040516370a0823160e01b81526001600160a01b03909116906370a0823190610394903390600401610be2565b60206040518083038186803b1580156103ac57600080fd5b505afa1580156103c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e49190610b78565b10156104025760405162461bcd60e51b815260040161028090610cdf565b600354600154604080516318160ddd60e01b8152905184926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561044957600080fd5b505afa15801561045d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104819190610b78565b61048b9190610e03565b11156104a95760405162461bcd60e51b815260040161028090610d16565b6002546004546001600160a01b0390911690639dc29fac9033906104ce908590610e5d565b6040518363ffffffff1660e01b81526004016104eb929190610bf6565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b5050505060005b8181101561059d576001546040516335313c2160e11b81526001600160a01b0390911690636a62784290610558903390600401610be2565b600060405180830381600087803b15801561057257600080fd5b505af1158015610586573d6000803e3d6000fd5b50505050808061059590610e7c565b915050610520565b5050565b6105a9610abf565b6001600160a01b03166105ba6106f1565b6001600160a01b0316146105e05760405162461bcd60e51b815260040161028090610d6b565b600355565b60045481565b6105f3610abf565b6001600160a01b03166106046106f1565b6001600160a01b03161461062a5760405162461bcd60e51b815260040161028090610d6b565b6106346000610ac3565b565b61063e610abf565b6001600160a01b031661064f6106f1565b6001600160a01b0316146106755760405162461bcd60e51b815260040161028090610d6b565b6000816001600160a01b03164760405161068e90610bdf565b60006040518083038185875af1925050503d80600081146106cb576040519150601f19603f3d011682016040523d82523d6000602084013e6106d0565b606091505b505090508061059d5760405162461bcd60e51b815260040161028090610c97565b6000546001600160a01b031690565b6002546001600160a01b031681565b610717610abf565b6001600160a01b03166107286106f1565b6001600160a01b03161461074e5760405162461bcd60e51b815260040161028090610d6b565b6005805460ff19811660ff90911615179055565b60035481565b6001546001600160a01b031681565b600080600560019054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156107c857600080fd5b505afa1580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108009190610b90565b50505091505060006305f5e100826108189190610e1b565b9050600061082882612710610e49565b61083390600a610e5d565b61084590670de0b6b3a7640000610e5d565b905061085361271082610e49565b935050505090565b60055460ff1681565b61086c610abf565b6001600160a01b031661087d6106f1565b6001600160a01b0316146108a35760405162461bcd60e51b815260040161028090610d6b565b6001600160a01b0381166108c95760405162461bcd60e51b815260040161028090610c1a565b6108d281610ac3565b50565b6108dd610abf565b6001600160a01b03166108ee6106f1565b6001600160a01b0316146109145760405162461bcd60e51b815260040161028090610d6b565b47600073519b8faf8b4ed711f4aa2b01aa1e3baf3b915ac9606461093984601e610e5d565b6109439190610e49565b60405161094f90610bdf565b60006040518083038185875af1925050503d806000811461098c576040519150601f19603f3d011682016040523d82523d6000602084013e610991565b606091505b50909150600090507312aab452f7896f4f2d3d14cb7ddcabca78f4f09260646109bb85601e610e5d565b6109c59190610e49565b6040516109d190610bdf565b60006040518083038185875af1925050503d8060008114610a0e576040519150601f19603f3d011682016040523d82523d6000602084013e610a13565b606091505b505090506000734476b95f799ad707ad4cd6dee7383297b2e1c6d66001600160a01b031647604051610a4490610bdf565b60006040518083038185875af1925050503d8060008114610a81576040519150601f19603f3d011682016040523d82523d6000602084013e610a86565b606091505b50509050828015610a945750815b8015610a9d5750805b610ab95760405162461bcd60e51b815260040161028090610c60565b50505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805169ffffffffffffffffffff81168114610b2d57600080fd5b919050565b600060208284031215610b43578081fd5b81356001600160a01b0381168114610b59578182fd5b9392505050565b600060208284031215610b71578081fd5b5035919050565b600060208284031215610b89578081fd5b5051919050565b600080600080600060a08688031215610ba7578081fd5b610bb086610b13565b9450602086015193506040860151925060608601519150610bd360808701610b13565b90509295509295909350565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f66756e64732077657265206e6f742073656e742070726f7065726c7900000000604082015260600190565b60208082526028908201527f66756e64732077657265206e6f742073656e742070726f7065726c7920746f20604082015267747265617375727960c01b606082015260800190565b6020808252601a908201527f596f7520646f6e74206861766520244556494c20656e6f756768000000000000604082015260600190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6020808252600f908201526e496e636f72726563742076616c756560881b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527113585e0814dd5c1c1b1e4814995858da195960721b604082015260600190565b60208082526014908201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604082015260600190565b90815260200190565b60008219821115610e1657610e16610e97565b500190565b600082610e2a57610e2a610ead565b600160ff1b821460001984141615610e4457610e44610e97565b500590565b600082610e5857610e58610ead565b500490565b6000816000190483118215151615610e7757610e77610e97565b500290565b6000600019821415610e9057610e90610e97565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea26469706673582212209d730feb3d519521fc908ec9e16ae23e1a9e78fe4352937bdbf91cbb51ae568d64736f6c634300080100330000000000000000000000004840f2182109539acbfef535bb6dea2d560b9d700000000000000000000000001ec4e31fd6d1a80d312b19e93fee0a611acdc04c0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c8063ca1d953c1161007f578063e6af35f011610059578063e6af35f0146101ed578063eb8d244414610202578063f2fde38b14610224578063feac51f514610244576100dd565b8063ca1d953c146101ae578063d5abeb01146101c3578063e18c4db8146101d8576100dd565b8063715018a6116100bb578063715018a61461014257806389d4dafd146101575780638da5cb5b1461017757806390cc49a814610199576100dd565b8063088d9313146100e2578063404c7cdd146100f75780634fbbd5fa14610117575b600080fd5b6100f56100f0366004610b60565b610259565b005b34801561010357600080fd5b506100f5610112366004610b60565b6105a1565b34801561012357600080fd5b5061012c6105e5565b6040516101399190610dfa565b60405180910390f35b34801561014e57600080fd5b506100f56105eb565b34801561016357600080fd5b506100f5610172366004610b32565b610636565b34801561018357600080fd5b5061018c6106f1565b6040516101399190610be2565b3480156101a557600080fd5b5061018c610700565b3480156101ba57600080fd5b506100f561070f565b3480156101cf57600080fd5b5061012c610762565b3480156101e457600080fd5b5061018c610768565b3480156101f957600080fd5b5061012c610777565b34801561020e57600080fd5b5061021761085b565b6040516101399190610c0f565b34801561023057600080fd5b506100f561023f366004610b32565b610864565b34801561025057600080fd5b506100f56108d5565b60055460ff1615156001146102895760405162461bcd60e51b815260040161028090610dcc565b60405180910390fd5b610291610777565b34146102af5760405162461bcd60e51b815260040161028090610d42565b600354600160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561030057600080fd5b505afa158015610314573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103389190610b78565b11156103565760405162461bcd60e51b815260040161028090610da0565b806004546103649190610e5d565b6002546040516370a0823160e01b81526001600160a01b03909116906370a0823190610394903390600401610be2565b60206040518083038186803b1580156103ac57600080fd5b505afa1580156103c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e49190610b78565b10156104025760405162461bcd60e51b815260040161028090610cdf565b600354600154604080516318160ddd60e01b8152905184926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561044957600080fd5b505afa15801561045d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104819190610b78565b61048b9190610e03565b11156104a95760405162461bcd60e51b815260040161028090610d16565b6002546004546001600160a01b0390911690639dc29fac9033906104ce908590610e5d565b6040518363ffffffff1660e01b81526004016104eb929190610bf6565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b5050505060005b8181101561059d576001546040516335313c2160e11b81526001600160a01b0390911690636a62784290610558903390600401610be2565b600060405180830381600087803b15801561057257600080fd5b505af1158015610586573d6000803e3d6000fd5b50505050808061059590610e7c565b915050610520565b5050565b6105a9610abf565b6001600160a01b03166105ba6106f1565b6001600160a01b0316146105e05760405162461bcd60e51b815260040161028090610d6b565b600355565b60045481565b6105f3610abf565b6001600160a01b03166106046106f1565b6001600160a01b03161461062a5760405162461bcd60e51b815260040161028090610d6b565b6106346000610ac3565b565b61063e610abf565b6001600160a01b031661064f6106f1565b6001600160a01b0316146106755760405162461bcd60e51b815260040161028090610d6b565b6000816001600160a01b03164760405161068e90610bdf565b60006040518083038185875af1925050503d80600081146106cb576040519150601f19603f3d011682016040523d82523d6000602084013e6106d0565b606091505b505090508061059d5760405162461bcd60e51b815260040161028090610c97565b6000546001600160a01b031690565b6002546001600160a01b031681565b610717610abf565b6001600160a01b03166107286106f1565b6001600160a01b03161461074e5760405162461bcd60e51b815260040161028090610d6b565b6005805460ff19811660ff90911615179055565b60035481565b6001546001600160a01b031681565b600080600560019054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156107c857600080fd5b505afa1580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108009190610b90565b50505091505060006305f5e100826108189190610e1b565b9050600061082882612710610e49565b61083390600a610e5d565b61084590670de0b6b3a7640000610e5d565b905061085361271082610e49565b935050505090565b60055460ff1681565b61086c610abf565b6001600160a01b031661087d6106f1565b6001600160a01b0316146108a35760405162461bcd60e51b815260040161028090610d6b565b6001600160a01b0381166108c95760405162461bcd60e51b815260040161028090610c1a565b6108d281610ac3565b50565b6108dd610abf565b6001600160a01b03166108ee6106f1565b6001600160a01b0316146109145760405162461bcd60e51b815260040161028090610d6b565b47600073519b8faf8b4ed711f4aa2b01aa1e3baf3b915ac9606461093984601e610e5d565b6109439190610e49565b60405161094f90610bdf565b60006040518083038185875af1925050503d806000811461098c576040519150601f19603f3d011682016040523d82523d6000602084013e610991565b606091505b50909150600090507312aab452f7896f4f2d3d14cb7ddcabca78f4f09260646109bb85601e610e5d565b6109c59190610e49565b6040516109d190610bdf565b60006040518083038185875af1925050503d8060008114610a0e576040519150601f19603f3d011682016040523d82523d6000602084013e610a13565b606091505b505090506000734476b95f799ad707ad4cd6dee7383297b2e1c6d66001600160a01b031647604051610a4490610bdf565b60006040518083038185875af1925050503d8060008114610a81576040519150601f19603f3d011682016040523d82523d6000602084013e610a86565b606091505b50509050828015610a945750815b8015610a9d5750805b610ab95760405162461bcd60e51b815260040161028090610c60565b50505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805169ffffffffffffffffffff81168114610b2d57600080fd5b919050565b600060208284031215610b43578081fd5b81356001600160a01b0381168114610b59578182fd5b9392505050565b600060208284031215610b71578081fd5b5035919050565b600060208284031215610b89578081fd5b5051919050565b600080600080600060a08688031215610ba7578081fd5b610bb086610b13565b9450602086015193506040860151925060608601519150610bd360808701610b13565b90509295509295909350565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f66756e64732077657265206e6f742073656e742070726f7065726c7900000000604082015260600190565b60208082526028908201527f66756e64732077657265206e6f742073656e742070726f7065726c7920746f20604082015267747265617375727960c01b606082015260800190565b6020808252601a908201527f596f7520646f6e74206861766520244556494c20656e6f756768000000000000604082015260600190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6020808252600f908201526e496e636f72726563742076616c756560881b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527113585e0814dd5c1c1b1e4814995858da195960721b604082015260600190565b60208082526014908201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604082015260600190565b90815260200190565b60008219821115610e1657610e16610e97565b500190565b600082610e2a57610e2a610ead565b600160ff1b821460001984141615610e4457610e44610e97565b500590565b600082610e5857610e58610ead565b500490565b6000816000190483118215151615610e7757610e77610e97565b500290565b6000600019821415610e9057610e90610e97565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fdfea26469706673582212209d730feb3d519521fc908ec9e16ae23e1a9e78fe4352937bdbf91cbb51ae568d64736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004840f2182109539acbfef535bb6dea2d560b9d700000000000000000000000001ec4e31fd6d1a80d312b19e93fee0a611acdc04c0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _evilTeddyBear (address): 0x4840f2182109539aCbfef535BB6dEA2D560b9D70
Arg [1] : _evilCoinAddress (address): 0x1Ec4E31Fd6d1a80d312b19E93fEE0A611ACdC04c
Arg [2] : _oracleEthUsd (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004840f2182109539acbfef535bb6dea2d560b9d70
Arg [1] : 0000000000000000000000001ec4e31fd6d1a80d312b19e93fee0a611acdc04c
Arg [2] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 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.