More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 704 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19269298 | 148 days ago | IN | 0 ETH | 0.00291873 | ||||
Claim | 18544634 | 250 days ago | IN | 0 ETH | 0.00169718 | ||||
Withdraw | 18366609 | 275 days ago | IN | 0 ETH | 0.00050153 | ||||
Withdraw | 18233527 | 293 days ago | IN | 0 ETH | 0.00085733 | ||||
Withdraw | 18156591 | 304 days ago | IN | 0 ETH | 0.00110664 | ||||
Withdraw | 18130329 | 308 days ago | IN | 0 ETH | 0.00105925 | ||||
Withdraw | 18130319 | 308 days ago | IN | 0 ETH | 0.00106463 | ||||
Claim | 18130314 | 308 days ago | IN | 0 ETH | 0.00055453 | ||||
Claim | 18130304 | 308 days ago | IN | 0 ETH | 0.0005304 | ||||
Withdraw | 18108137 | 311 days ago | IN | 0 ETH | 0.00076211 | ||||
Claim | 18108116 | 311 days ago | IN | 0 ETH | 0.00039027 | ||||
Withdraw | 18099185 | 312 days ago | IN | 0 ETH | 0.00101603 | ||||
Withdraw | 18096562 | 312 days ago | IN | 0 ETH | 0.00074288 | ||||
Claim | 18096560 | 312 days ago | IN | 0 ETH | 0.00037563 | ||||
Withdraw | 18092344 | 313 days ago | IN | 0 ETH | 0.00156977 | ||||
Claim | 18088383 | 314 days ago | IN | 0 ETH | 0.00044444 | ||||
Claim | 18082007 | 314 days ago | IN | 0 ETH | 0.00028055 | ||||
Withdraw | 18082006 | 314 days ago | IN | 0 ETH | 0.00067757 | ||||
Withdraw | 18080017 | 315 days ago | IN | 0 ETH | 0.00164538 | ||||
Withdraw | 18079961 | 315 days ago | IN | 0 ETH | 0.00170678 | ||||
Claim | 18079959 | 315 days ago | IN | 0 ETH | 0.0011083 | ||||
Withdraw | 18077237 | 315 days ago | IN | 0 ETH | 0.00115036 | ||||
Withdraw | 18075187 | 315 days ago | IN | 0 ETH | 0.00085751 | ||||
Withdraw | 18075181 | 315 days ago | IN | 0 ETH | 0.00082141 | ||||
Claim | 18075171 | 315 days ago | IN | 0 ETH | 0.00042503 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19269298 | 148 days ago | 0.0000523 ETH | ||||
18544634 | 250 days ago | 0.08055969 ETH | ||||
18451397 | 263 days ago | 0.00736542 ETH | ||||
18451397 | 263 days ago | 0.01473085 ETH | ||||
18366609 | 275 days ago | 0.11393379 ETH | ||||
18233527 | 293 days ago | 0.00004911 ETH | ||||
18156591 | 304 days ago | 0.00045357 ETH | ||||
18130314 | 308 days ago | 0.00528486 ETH | ||||
18130304 | 308 days ago | 0.00699014 ETH | ||||
18108116 | 311 days ago | 0.00884129 ETH | ||||
18099185 | 312 days ago | 0.00378209 ETH | ||||
18096560 | 312 days ago | 0.00089613 ETH | ||||
18092347 | 313 days ago | 0.01629513 ETH | ||||
18092347 | 313 days ago | 0.03259026 ETH | ||||
18092344 | 313 days ago | 0.05840237 ETH | ||||
18088383 | 314 days ago | 0.00015494 ETH | ||||
18082006 | 314 days ago | 0.00248749 ETH | ||||
18080017 | 315 days ago | 0.00611136 ETH | ||||
18079959 | 315 days ago | 0.02912387 ETH | ||||
18077237 | 315 days ago | 0.00187747 ETH | ||||
18075171 | 315 days ago | 0.0019917 ETH | ||||
18075139 | 315 days ago | 0.00067811 ETH | ||||
18074015 | 316 days ago | 0.00147474 ETH | ||||
18073975 | 316 days ago | 0.00817261 ETH | ||||
18073886 | 316 days ago | 0.00185079 ETH |
Loading...
Loading
Contract Name:
Staking
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: 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 + 1 weeks < block.timestamp, "withdraw after one week"); 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.7.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 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 (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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": 200 }, "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
608060405234801561001057600080fd5b5061002161001c610038565b61003c565b600480546001600160a01b0319163317905561008c565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c548061009b6000396000f3fe6080604052600436106100ab5760003560e01c8063715018a611610064578063715018a6146102aa5780637cb549be146102bf5780638da5cb5b146102d4578063ce7c2ac2146102f6578063f2fde38b14610325578063fc0c546a14610345576101f0565b8063144fa6d7146101f557806336bdee74146102155780633ccfd60b1461024057806347e7ef24146102555780634e71d92d146102755780635eebea201461028a576101f0565b366101f057346100ba576101ee565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a08231906100eb903090600401610992565b60206040518083038186803b15801561010357600080fd5b505afa158015610117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013b9190610977565b90508061015e57600454610158906001600160a01b03163461035a565b506101ee565b600061016b600234610b9d565b9050600082610182670de0b6b3a764000084610bbd565b61018c9190610b9d565b905080600360008282546101a09190610b85565b9250508190555081600560008282546101b99190610b85565b90915550600090506101cb8334610bdc565b905080156101e9576004546101e9906001600160a01b03168261035a565b505050505b005b600080fd5b34801561020157600080fd5b506101ee610210366004610910565b610404565b34801561022157600080fd5b5061022a610432565b6040516102379190610b66565b60405180910390f35b34801561024c57600080fd5b506101ee610438565b34801561026157600080fd5b506101ee61027036600461092c565b61054e565b34801561028157600080fd5b506101ee6105ee565b34801561029657600080fd5b5061022a6102a5366004610910565b610650565b3480156102b657600080fd5b506101ee6106c4565b3480156102cb57600080fd5b5061022a6106d8565b3480156102e057600080fd5b506102e96106de565b6040516102379190610992565b34801561030257600080fd5b50610316610311366004610910565b6106ed565b60405161023793929190610b6f565b34801561033157600080fd5b506101ee610340366004610910565b61070d565b34801561035157600080fd5b506102e9610744565b804710156103835760405162461bcd60e51b815260040161037a90610a97565b60405180910390fd5b6000826001600160a01b03168260405161039c9061098f565b60006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806103ff5760405162461bcd60e51b815260040161037a90610a3a565b505050565b61040c610753565b600280546001600160a01b0319166001600160a01b03831617905561042f6106c4565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104895760405162461bcd60e51b815260040161037a90610b03565b8051429061049a9062093a80610b85565b106104b75760405162461bcd60e51b815260040161037a90610b2f565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb916104ed913391906004016109a6565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053f9190610957565b5061042f338260006001610792565b6002546001600160a01b0316331461057657634e487b7160e01b600052600160045260246000fd5b600081116105965760405162461bcd60e51b815260040161037a90610a05565b6001600160a01b038216600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906103ff90849083906105e7908690610b85565b6001610792565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061063f5760405162461bcd60e51b815260040161037a90610b03565b61042f338283602001516000610792565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106a491610bdc565b82602001516106b39190610bbd565b6106bd9190610b9d565b9392505050565b6106cc610753565b6106d660006108bc565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b610715610753565b6001600160a01b03811661073b5760405162461bcd60e51b815260040161037a906109bf565b61042f816108bc565b6002546001600160a01b031681565b61075b61090c565b6001600160a01b031661076c6106de565b6001600160a01b0316146106d65760405162461bcd60e51b815260040161037a90610ace565b600083602001516000146107d757670de0b6b3a764000084604001516003546107bb9190610bdc565b85602001516107ca9190610bbd565b6107d49190610b9d565b90505b82610808576001600160a01b03851660009081526001602081905260408220828155908101829055600201556108a5565b811561085b576040805160608101825242815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101556108a5565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b80156108b5576108b5858261035a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610921578081fd5b81356106bd81610c09565b6000806040838503121561093e578081fd5b823561094981610c09565b946020939093013593505050565b600060208284031215610968578081fd5b815180151581146106bd578182fd5b600060208284031215610988578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bc81a5b9a5d1a585b0819195c1bdcda5d60721b604082015260600190565b60208082526017908201527f7769746864726177206166746572206f6e65207765656b000000000000000000604082015260600190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610b9857610b98610bf3565b500190565b600082610bb857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610bd757610bd7610bf3565b500290565b600082821015610bee57610bee610bf3565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461042f57600080fdfea2646970667358221220f1fa295cb1e6f464bffdffcce16d1308b4595b13f8ed94a63adfa95201b0c4bb64736f6c63430008010033
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c8063715018a611610064578063715018a6146102aa5780637cb549be146102bf5780638da5cb5b146102d4578063ce7c2ac2146102f6578063f2fde38b14610325578063fc0c546a14610345576101f0565b8063144fa6d7146101f557806336bdee74146102155780633ccfd60b1461024057806347e7ef24146102555780634e71d92d146102755780635eebea201461028a576101f0565b366101f057346100ba576101ee565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a08231906100eb903090600401610992565b60206040518083038186803b15801561010357600080fd5b505afa158015610117573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013b9190610977565b90508061015e57600454610158906001600160a01b03163461035a565b506101ee565b600061016b600234610b9d565b9050600082610182670de0b6b3a764000084610bbd565b61018c9190610b9d565b905080600360008282546101a09190610b85565b9250508190555081600560008282546101b99190610b85565b90915550600090506101cb8334610bdc565b905080156101e9576004546101e9906001600160a01b03168261035a565b505050505b005b600080fd5b34801561020157600080fd5b506101ee610210366004610910565b610404565b34801561022157600080fd5b5061022a610432565b6040516102379190610b66565b60405180910390f35b34801561024c57600080fd5b506101ee610438565b34801561026157600080fd5b506101ee61027036600461092c565b61054e565b34801561028157600080fd5b506101ee6105ee565b34801561029657600080fd5b5061022a6102a5366004610910565b610650565b3480156102b657600080fd5b506101ee6106c4565b3480156102cb57600080fd5b5061022a6106d8565b3480156102e057600080fd5b506102e96106de565b6040516102379190610992565b34801561030257600080fd5b50610316610311366004610910565b6106ed565b60405161023793929190610b6f565b34801561033157600080fd5b506101ee610340366004610910565b61070d565b34801561035157600080fd5b506102e9610744565b804710156103835760405162461bcd60e51b815260040161037a90610a97565b60405180910390fd5b6000826001600160a01b03168260405161039c9061098f565b60006040518083038185875af1925050503d80600081146103d9576040519150601f19603f3d011682016040523d82523d6000602084013e6103de565b606091505b50509050806103ff5760405162461bcd60e51b815260040161037a90610a3a565b505050565b61040c610753565b600280546001600160a01b0319166001600160a01b03831617905561042f6106c4565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104895760405162461bcd60e51b815260040161037a90610b03565b8051429061049a9062093a80610b85565b106104b75760405162461bcd60e51b815260040161037a90610b2f565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb916104ed913391906004016109a6565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053f9190610957565b5061042f338260006001610792565b6002546001600160a01b0316331461057657634e487b7160e01b600052600160045260246000fd5b600081116105965760405162461bcd60e51b815260040161037a90610a05565b6001600160a01b038216600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906103ff90849083906105e7908690610b85565b6001610792565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061063f5760405162461bcd60e51b815260040161037a90610b03565b61042f338283602001516000610792565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106a491610bdc565b82602001516106b39190610bbd565b6106bd9190610b9d565b9392505050565b6106cc610753565b6106d660006108bc565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b610715610753565b6001600160a01b03811661073b5760405162461bcd60e51b815260040161037a906109bf565b61042f816108bc565b6002546001600160a01b031681565b61075b61090c565b6001600160a01b031661076c6106de565b6001600160a01b0316146106d65760405162461bcd60e51b815260040161037a90610ace565b600083602001516000146107d757670de0b6b3a764000084604001516003546107bb9190610bdc565b85602001516107ca9190610bbd565b6107d49190610b9d565b90505b82610808576001600160a01b03851660009081526001602081905260408220828155908101829055600201556108a5565b811561085b576040805160608101825242815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101556108a5565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b80156108b5576108b5858261035a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610921578081fd5b81356106bd81610c09565b6000806040838503121561093e578081fd5b823561094981610c09565b946020939093013593505050565b600060208284031215610968578081fd5b815180151581146106bd578182fd5b600060208284031215610988578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bc81a5b9a5d1a585b0819195c1bdcda5d60721b604082015260600190565b60208082526017908201527f7769746864726177206166746572206f6e65207765656b000000000000000000604082015260600190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610b9857610b98610bf3565b500190565b600082610bb857634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610bd757610bd7610bf3565b500290565b600082821015610bee57610bee610bf3565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461042f57600080fdfea2646970667358221220f1fa295cb1e6f464bffdffcce16d1308b4595b13f8ed94a63adfa95201b0c4bb64736f6c63430008010033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,421.89 | 2.9877 | $10,223.42 |
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.