Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 34 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18051323 | 362 days ago | IN | 0 ETH | 0.0008705 | ||||
Withdraw | 18051023 | 362 days ago | IN | 0 ETH | 0.0008584 | ||||
Withdraw | 18037910 | 364 days ago | IN | 0 ETH | 0.00128331 | ||||
Claim | 18037903 | 364 days ago | IN | 0 ETH | 0.00066942 | ||||
Withdraw | 18033700 | 365 days ago | IN | 0 ETH | 0.00081503 | ||||
Claim | 18030490 | 365 days ago | IN | 0 ETH | 0.00072203 | ||||
Claim | 18025092 | 366 days ago | IN | 0 ETH | 0.00064571 | ||||
Claim | 18024699 | 366 days ago | IN | 0 ETH | 0.00077921 | ||||
Claim | 18023839 | 366 days ago | IN | 0 ETH | 0.00079334 | ||||
Claim | 18017038 | 367 days ago | IN | 0 ETH | 0.00091712 | ||||
Claim | 18014919 | 367 days ago | IN | 0 ETH | 0.00223688 | ||||
Claim | 18013700 | 368 days ago | IN | 0 ETH | 0.00162153 | ||||
Claim | 18013164 | 368 days ago | IN | 0 ETH | 0.00102509 | ||||
Claim | 18012223 | 368 days ago | IN | 0 ETH | 0.00085754 | ||||
Claim | 18010837 | 368 days ago | IN | 0 ETH | 0.00053166 | ||||
Claim | 18010750 | 368 days ago | IN | 0 ETH | 0.00059052 | ||||
Claim | 18010724 | 368 days ago | IN | 0 ETH | 0.00051688 | ||||
Claim | 18010676 | 368 days ago | IN | 0 ETH | 0.00061056 | ||||
Claim | 18010427 | 368 days ago | IN | 0 ETH | 0.0009292 | ||||
Claim | 18010401 | 368 days ago | IN | 0 ETH | 0.00048254 | ||||
Claim | 18009797 | 368 days ago | IN | 0 ETH | 0.0004768 | ||||
Claim | 18009796 | 368 days ago | IN | 0 ETH | 0.00042432 | ||||
Claim | 18009773 | 368 days ago | IN | 0 ETH | 0.00044723 | ||||
Claim | 18009753 | 368 days ago | IN | 0 ETH | 0.00045783 | ||||
Claim | 18009744 | 368 days ago | IN | 0 ETH | 0.00051948 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18296287 | 328 days ago | 0.00183456 ETH | ||||
18296287 | 328 days ago | 0.00366913 ETH | ||||
18115425 | 353 days ago | 0.00241404 ETH | ||||
18115425 | 353 days ago | 0.00482809 ETH | ||||
18112278 | 354 days ago | 0.000819 ETH | ||||
18112278 | 354 days ago | 0.00163801 ETH | ||||
18051332 | 362 days ago | 0.00262997 ETH | ||||
18051332 | 362 days ago | 0.00525994 ETH | ||||
18051323 | 362 days ago | 0.0001744 ETH | ||||
18051023 | 362 days ago | 0.07550147 ETH | ||||
18041434 | 364 days ago | 0.00282396 ETH | ||||
18041434 | 364 days ago | 0.00564793 ETH | ||||
18037903 | 364 days ago | 0.00736022 ETH | ||||
18034362 | 365 days ago | 0.00299083 ETH | ||||
18034362 | 365 days ago | 0.00598167 ETH | ||||
18030490 | 365 days ago | 0.00036918 ETH | ||||
18029822 | 365 days ago | 0.00001056 ETH | ||||
18029822 | 365 days ago | 0.00002113 ETH | ||||
18027762 | 366 days ago | 0.00299089 ETH | ||||
18027762 | 366 days ago | 0.00598179 ETH | ||||
18025092 | 366 days ago | 0.00891424 ETH | ||||
18024699 | 366 days ago | 0.00082277 ETH | ||||
18023839 | 366 days ago | 0.01370992 ETH | ||||
18022445 | 366 days ago | 0.00313194 ETH | ||||
18022445 | 366 days ago | 0.00626389 ETH |
Loading...
Loading
Contract Name:
Staking
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 400 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Staking is Ownable { struct Share { uint depositTime; uint initialDeposit; uint sumETH; } mapping(address => Share) public shares; IERC20 public token; uint public sumETH; uint private constant PRECISION = 1e18; address private _taxWallet; uint public totalETH; modifier onlyToken() { assert(msg.sender == address(token)); _; } constructor() { _taxWallet = msg.sender; } function setToken(IERC20 token_) external onlyOwner { token = token_; super.renounceOwnership(); } function deposit(address who, uint amount) external onlyToken { require(amount > 0, "Amount must be greater than zero"); Share memory share = shares[who]; _payoutGainsUpdateShare(who, share, share.initialDeposit + amount, true); } function withdraw() external { Share memory share = shares[msg.sender]; require(share.initialDeposit > 0, "No initial deposit"); require(share.depositTime + 3 days < block.timestamp, "Withdrawal cool-off hasn't been completed yet"); token.transfer(msg.sender, share.initialDeposit); _payoutGainsUpdateShare(msg.sender, share, 0, true); } function claim() external { Share memory share = shares[msg.sender]; require(share.initialDeposit > 0, "No initial deposit"); _payoutGainsUpdateShare(msg.sender, share, share.initialDeposit, false); } function _payoutGainsUpdateShare(address who, Share memory share, uint newAmount, bool resetTimer) private { uint gains; if (share.initialDeposit != 0) gains = share.initialDeposit * (sumETH - share.sumETH) / PRECISION; if (newAmount == 0) delete shares[who]; else if (resetTimer) shares[who] = Share(block.timestamp, newAmount, sumETH); else shares[who] = Share(share.depositTime, newAmount, sumETH); if (gains > 0) Address.sendValue(payable(who), gains); } function pending(address who) external view returns (uint) { Share memory share = shares[who]; return share.initialDeposit * (sumETH - share.sumETH) / PRECISION; } receive() external payable { if (msg.value == 0) return; uint balance = token.balanceOf(address(this)); if (balance == 0) return Address.sendValue(payable(_taxWallet), msg.value); uint amount = msg.value / 2; uint gpus = amount * PRECISION / balance; sumETH += gpus; totalETH += amount; uint taxAmount = msg.value - amount; if (taxAmount > 0) Address.sendValue(payable(_taxWallet), taxAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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": 400 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"depositTime","type":"uint256"},{"internalType":"uint256","name":"initialDeposit","type":"uint256"},{"internalType":"uint256","name":"sumETH","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sumETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061002161001c610038565b61003c565b600480546001600160a01b0319163317905561008c565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c958061009b6000396000f3fe6080604052600436106100cb5760003560e01c8063715018a611610074578063ce7c2ac21161004e578063ce7c2ac214610316578063f2fde38b14610345578063fc0c546a1461036557610210565b8063715018a6146102ca5780637cb549be146102df5780638da5cb5b146102f457610210565b806347e7ef24116100a557806347e7ef24146102755780634e71d92d146102955780635eebea20146102aa57610210565b8063144fa6d71461021557806336bdee74146102355780633ccfd60b1461026057610210565b3661021057346100da5761020e565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a082319061010b9030906004016109b2565b60206040518083038186803b15801561012357600080fd5b505afa158015610137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015b9190610997565b90508061017e57600454610178906001600160a01b03163461037a565b5061020e565b600061018b600234610bde565b90506000826101a2670de0b6b3a764000084610bfe565b6101ac9190610bde565b905080600360008282546101c09190610bc6565b9250508190555081600560008282546101d99190610bc6565b90915550600090506101eb8334610c1d565b9050801561020957600454610209906001600160a01b03168261037a565b505050505b005b600080fd5b34801561022157600080fd5b5061020e610230366004610930565b610424565b34801561024157600080fd5b5061024a610452565b6040516102579190610ba7565b60405180910390f35b34801561026c57600080fd5b5061020e610458565b34801561028157600080fd5b5061020e61029036600461094c565b61056e565b3480156102a157600080fd5b5061020e61060e565b3480156102b657600080fd5b5061024a6102c5366004610930565b610670565b3480156102d657600080fd5b5061020e6106e4565b3480156102eb57600080fd5b5061024a6106f8565b34801561030057600080fd5b506103096106fe565b60405161025791906109b2565b34801561032257600080fd5b50610336610331366004610930565b61070d565b60405161025793929190610bb0565b34801561035157600080fd5b5061020e610360366004610930565b61072d565b34801561037157600080fd5b50610309610764565b804710156103a35760405162461bcd60e51b815260040161039a90610ab7565b60405180910390fd5b6000826001600160a01b0316826040516103bc906109af565b60006040518083038185875af1925050503d80600081146103f9576040519150601f19603f3d011682016040523d82523d6000602084013e6103fe565b606091505b505090508061041f5760405162461bcd60e51b815260040161039a90610a5a565b505050565b61042c610773565b600280546001600160a01b0319166001600160a01b03831617905561044f6106e4565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104a95760405162461bcd60e51b815260040161039a90610b23565b805142906104ba906203f480610bc6565b106104d75760405162461bcd60e51b815260040161039a90610b5a565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb9161050d913391906004016109c6565b602060405180830381600087803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055f9190610977565b5061044f3382600060016107b2565b6002546001600160a01b0316331461059657634e487b7160e01b600052600160045260246000fd5b600081116105b65760405162461bcd60e51b815260040161039a90610a25565b6001600160a01b0382166000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061041f9084908390610607908690610bc6565b60016107b2565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061065f5760405162461bcd60e51b815260040161039a90610b23565b61044f3382836020015160006107b2565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106c491610c1d565b82602001516106d39190610bfe565b6106dd9190610bde565b9392505050565b6106ec610773565b6106f660006108dc565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b610735610773565b6001600160a01b03811661075b5760405162461bcd60e51b815260040161039a906109df565b61044f816108dc565b6002546001600160a01b031681565b61077b61092c565b6001600160a01b031661078c6106fe565b6001600160a01b0316146106f65760405162461bcd60e51b815260040161039a90610aee565b600083602001516000146107f757670de0b6b3a764000084604001516003546107db9190610c1d565b85602001516107ea9190610bfe565b6107f49190610bde565b90505b82610828576001600160a01b03851660009081526001602081905260408220828155908101829055600201556108c5565b811561087b576040805160608101825242815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101556108c5565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b80156108d5576108d5858261037a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610941578081fd5b81356106dd81610c4a565b6000806040838503121561095e578081fd5b823561096981610c4a565b946020939093013593505050565b600060208284031215610988578081fd5b815180151581146106dd578182fd5b6000602082840312156109a8578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527f4e6f20696e697469616c206465706f7369740000000000000000000000000000604082015260600190565b6020808252602d908201527f5769746864726177616c20636f6f6c2d6f6666206861736e2774206265656e2060408201526c18dbdb5c1b195d1959081e595d609a1b606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610bd957610bd9610c34565b500190565b600082610bf957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610c1857610c18610c34565b500290565b600082821015610c2f57610c2f610c34565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461044f57600080fdfea2646970667358221220d65a28272ae942e360367c0ad2ea5ba2a46b1fe06737544b30c5d97e9697c6c564736f6c63430008010033
Deployed Bytecode
0x6080604052600436106100cb5760003560e01c8063715018a611610074578063ce7c2ac21161004e578063ce7c2ac214610316578063f2fde38b14610345578063fc0c546a1461036557610210565b8063715018a6146102ca5780637cb549be146102df5780638da5cb5b146102f457610210565b806347e7ef24116100a557806347e7ef24146102755780634e71d92d146102955780635eebea20146102aa57610210565b8063144fa6d71461021557806336bdee74146102355780633ccfd60b1461026057610210565b3661021057346100da5761020e565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a082319061010b9030906004016109b2565b60206040518083038186803b15801561012357600080fd5b505afa158015610137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015b9190610997565b90508061017e57600454610178906001600160a01b03163461037a565b5061020e565b600061018b600234610bde565b90506000826101a2670de0b6b3a764000084610bfe565b6101ac9190610bde565b905080600360008282546101c09190610bc6565b9250508190555081600560008282546101d99190610bc6565b90915550600090506101eb8334610c1d565b9050801561020957600454610209906001600160a01b03168261037a565b505050505b005b600080fd5b34801561022157600080fd5b5061020e610230366004610930565b610424565b34801561024157600080fd5b5061024a610452565b6040516102579190610ba7565b60405180910390f35b34801561026c57600080fd5b5061020e610458565b34801561028157600080fd5b5061020e61029036600461094c565b61056e565b3480156102a157600080fd5b5061020e61060e565b3480156102b657600080fd5b5061024a6102c5366004610930565b610670565b3480156102d657600080fd5b5061020e6106e4565b3480156102eb57600080fd5b5061024a6106f8565b34801561030057600080fd5b506103096106fe565b60405161025791906109b2565b34801561032257600080fd5b50610336610331366004610930565b61070d565b60405161025793929190610bb0565b34801561035157600080fd5b5061020e610360366004610930565b61072d565b34801561037157600080fd5b50610309610764565b804710156103a35760405162461bcd60e51b815260040161039a90610ab7565b60405180910390fd5b6000826001600160a01b0316826040516103bc906109af565b60006040518083038185875af1925050503d80600081146103f9576040519150601f19603f3d011682016040523d82523d6000602084013e6103fe565b606091505b505090508061041f5760405162461bcd60e51b815260040161039a90610a5a565b505050565b61042c610773565b600280546001600160a01b0319166001600160a01b03831617905561044f6106e4565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104a95760405162461bcd60e51b815260040161039a90610b23565b805142906104ba906203f480610bc6565b106104d75760405162461bcd60e51b815260040161039a90610b5a565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb9161050d913391906004016109c6565b602060405180830381600087803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055f9190610977565b5061044f3382600060016107b2565b6002546001600160a01b0316331461059657634e487b7160e01b600052600160045260246000fd5b600081116105b65760405162461bcd60e51b815260040161039a90610a25565b6001600160a01b0382166000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061041f9084908390610607908690610bc6565b60016107b2565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061065f5760405162461bcd60e51b815260040161039a90610b23565b61044f3382836020015160006107b2565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106c491610c1d565b82602001516106d39190610bfe565b6106dd9190610bde565b9392505050565b6106ec610773565b6106f660006108dc565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b610735610773565b6001600160a01b03811661075b5760405162461bcd60e51b815260040161039a906109df565b61044f816108dc565b6002546001600160a01b031681565b61077b61092c565b6001600160a01b031661078c6106fe565b6001600160a01b0316146106f65760405162461bcd60e51b815260040161039a90610aee565b600083602001516000146107f757670de0b6b3a764000084604001516003546107db9190610c1d565b85602001516107ea9190610bfe565b6107f49190610bde565b90505b82610828576001600160a01b03851660009081526001602081905260408220828155908101829055600201556108c5565b811561087b576040805160608101825242815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101556108c5565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b80156108d5576108d5858261037a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610941578081fd5b81356106dd81610c4a565b6000806040838503121561095e578081fd5b823561096981610c4a565b946020939093013593505050565b600060208284031215610988578081fd5b815180151581146106dd578182fd5b6000602082840312156109a8578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526012908201527f4e6f20696e697469616c206465706f7369740000000000000000000000000000604082015260600190565b6020808252602d908201527f5769746864726177616c20636f6f6c2d6f6666206861736e2774206265656e2060408201526c18dbdb5c1b195d1959081e595d609a1b606082015260800190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610bd957610bd9610c34565b500190565b600082610bf957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610c1857610c18610c34565b500290565b600082821015610c2f57610c2f610c34565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461044f57600080fdfea2646970667358221220d65a28272ae942e360367c0ad2ea5ba2a46b1fe06737544b30c5d97e9697c6c564736f6c63430008010033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,466.33 | 2.4607 | $6,068.8 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.