More Info
Private Name Tags
ContractCreator
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18280248 | 482 days ago | 0.00123433 ETH | ||||
18280248 | 482 days ago | 0.00246867 ETH | ||||
17979241 | 524 days ago | 0.00102016 ETH | ||||
17979241 | 524 days ago | 0.00204032 ETH | ||||
17978213 | 525 days ago | 0.00099107 ETH | ||||
17978213 | 525 days ago | 0.00198215 ETH | ||||
17973571 | 525 days ago | 0.0017824 ETH | ||||
17973571 | 525 days ago | 0.0035648 ETH | ||||
17972262 | 525 days ago | 0.00156027 ETH | ||||
17972262 | 525 days ago | 0.00312054 ETH | ||||
17972036 | 525 days ago | 0.15043373 ETH | ||||
17972012 | 525 days ago | 0.0018016 ETH | ||||
17972012 | 525 days ago | 0.0036032 ETH | ||||
17972002 | 525 days ago | 0.00201116 ETH | ||||
17972002 | 525 days ago | 0.00402233 ETH | ||||
17972002 | 525 days ago | 0.00223679 ETH | ||||
17972002 | 525 days ago | 0.00447359 ETH | ||||
17972001 | 525 days ago | 0.00223679 ETH | ||||
17972001 | 525 days ago | 0.00447359 ETH | ||||
17972000 | 525 days ago | 0.0037978 ETH | ||||
17972000 | 525 days ago | 0.00759561 ETH | ||||
17971997 | 525 days ago | 0.0019234 ETH | ||||
17971997 | 525 days ago | 0.0038468 ETH | ||||
17971995 | 525 days ago | 0.00236882 ETH | ||||
17971995 | 525 days ago | 0.00473764 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
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)
/** Telegram: https://t.me/SmartReflexBot Twitter: https://twitter.com/SmartReflexBot Website: https://smartreflexbot.com/ Bot: https://t.me/Smart_Reflex_Bot */ // 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, "withdraw after 3 day"); token.transfer(msg.sender, share.initialDeposit); _payoutGainsUpdateShare(msg.sender, share, 0, true); } function withdrawBalance() external onlyOwner { payable(owner()).transfer(address(this).balance); } 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) (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) (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) (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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061002161001c610038565b61003c565b600480546001600160a01b0319163317905561008c565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cc38061009b6000396000f3fe6080604052600436106100c65760003560e01c80635fd8c7101161007f5780638da5cb5b116100595780638da5cb5b14610304578063ce7c2ac214610326578063f2fde38b14610355578063fc0c546a146103755761020b565b80635fd8c710146102c5578063715018a6146102da5780637cb549be146102ef5761020b565b8063144fa6d71461021057806336bdee74146102305780633ccfd60b1461025b57806347e7ef24146102705780634e71d92d146102905780635eebea20146102a55761020b565b3661020b57346100d557610209565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610106903090600401610a0a565b60206040518083038186803b15801561011e57600080fd5b505afa158015610132573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015691906109ef565b90508061017957600454610173906001600160a01b03163461038a565b50610209565b6000610186600234610c0c565b905060008261019d670de0b6b3a764000084610c2c565b6101a79190610c0c565b905080600360008282546101bb9190610bf4565b9250508190555081600560008282546101d49190610bf4565b90915550600090506101e68334610c4b565b9050801561020457600454610204906001600160a01b03168261038a565b505050505b005b600080fd5b34801561021c57600080fd5b5061020961022b366004610988565b610434565b34801561023c57600080fd5b50610245610462565b6040516102529190610bd5565b60405180910390f35b34801561026757600080fd5b50610209610468565b34801561027c57600080fd5b5061020961028b3660046109a4565b61057e565b34801561029c57600080fd5b5061020961061e565b3480156102b157600080fd5b506102456102c0366004610988565b610680565b3480156102d157600080fd5b506102096106f4565b3480156102e657600080fd5b5061020961073c565b3480156102fb57600080fd5b50610245610750565b34801561031057600080fd5b50610319610756565b6040516102529190610a0a565b34801561033257600080fd5b50610346610341366004610988565b610765565b60405161025293929190610bde565b34801561036157600080fd5b50610209610370366004610988565b610785565b34801561038157600080fd5b506103196107bc565b804710156103b35760405162461bcd60e51b81526004016103aa90610b0f565b60405180910390fd5b6000826001600160a01b0316826040516103cc90610a07565b60006040518083038185875af1925050503d8060008114610409576040519150601f19603f3d011682016040523d82523d6000602084013e61040e565b606091505b505090508061042f5760405162461bcd60e51b81526004016103aa90610ab2565b505050565b61043c6107cb565b600280546001600160a01b0319166001600160a01b03831617905561045f61073c565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104b95760405162461bcd60e51b81526004016103aa90610b7b565b805142906104ca906203f480610bf4565b106104e75760405162461bcd60e51b81526004016103aa90610ba7565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb9161051d91339190600401610a1e565b602060405180830381600087803b15801561053757600080fd5b505af115801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f91906109cf565b5061045f33826000600161080a565b6002546001600160a01b031633146105a657634e487b7160e01b600052600160045260246000fd5b600081116105c65760405162461bcd60e51b81526004016103aa90610a7d565b6001600160a01b0382166000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061042f9084908390610617908690610bf4565b600161080a565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061066f5760405162461bcd60e51b81526004016103aa90610b7b565b61045f33828360200151600061080a565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106d491610c4b565b82602001516106e39190610c2c565b6106ed9190610c0c565b9392505050565b6106fc6107cb565b610704610756565b6001600160a01b03166108fc479081150290604051600060405180830381858888f1935050505015801561045f573d6000803e3d6000fd5b6107446107cb565b61074e6000610934565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b61078d6107cb565b6001600160a01b0381166107b35760405162461bcd60e51b81526004016103aa90610a37565b61045f81610934565b6002546001600160a01b031681565b6107d3610984565b6001600160a01b03166107e4610756565b6001600160a01b03161461074e5760405162461bcd60e51b81526004016103aa90610b46565b6000836020015160001461084f57670de0b6b3a764000084604001516003546108339190610c4b565b85602001516108429190610c2c565b61084c9190610c0c565b90505b82610880576001600160a01b038516600090815260016020819052604082208281559081018290556002015561091d565b81156108d3576040805160608101825242815260208082018681526003548385019081526001600160a01b038a16600090815260019384905294909420925183555190820155905160029091015561091d565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b801561092d5761092d858261038a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610999578081fd5b81356106ed81610c78565b600080604083850312156109b6578081fd5b82356109c181610c78565b946020939093013593505050565b6000602082840312156109e0578081fd5b815180151581146106ed578182fd5b600060208284031215610a00578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bc81a5b9a5d1a585b0819195c1bdcda5d60721b604082015260600190565b602080825260149082015273776974686472617720616674657220332064617960601b604082015260600190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610c0757610c07610c62565b500190565b600082610c2757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610c4657610c46610c62565b500290565b600082821015610c5d57610c5d610c62565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461045f57600080fdfea2646970667358221220e384cdb19c4d5652c7eefa58b0df1396fe2ebc99d7b4550f232691ab2d6751a264736f6c63430008010033
Deployed Bytecode
0x6080604052600436106100c65760003560e01c80635fd8c7101161007f5780638da5cb5b116100595780638da5cb5b14610304578063ce7c2ac214610326578063f2fde38b14610355578063fc0c546a146103755761020b565b80635fd8c710146102c5578063715018a6146102da5780637cb549be146102ef5761020b565b8063144fa6d71461021057806336bdee74146102305780633ccfd60b1461025b57806347e7ef24146102705780634e71d92d146102905780635eebea20146102a55761020b565b3661020b57346100d557610209565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610106903090600401610a0a565b60206040518083038186803b15801561011e57600080fd5b505afa158015610132573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015691906109ef565b90508061017957600454610173906001600160a01b03163461038a565b50610209565b6000610186600234610c0c565b905060008261019d670de0b6b3a764000084610c2c565b6101a79190610c0c565b905080600360008282546101bb9190610bf4565b9250508190555081600560008282546101d49190610bf4565b90915550600090506101e68334610c4b565b9050801561020457600454610204906001600160a01b03168261038a565b505050505b005b600080fd5b34801561021c57600080fd5b5061020961022b366004610988565b610434565b34801561023c57600080fd5b50610245610462565b6040516102529190610bd5565b60405180910390f35b34801561026757600080fd5b50610209610468565b34801561027c57600080fd5b5061020961028b3660046109a4565b61057e565b34801561029c57600080fd5b5061020961061e565b3480156102b157600080fd5b506102456102c0366004610988565b610680565b3480156102d157600080fd5b506102096106f4565b3480156102e657600080fd5b5061020961073c565b3480156102fb57600080fd5b50610245610750565b34801561031057600080fd5b50610319610756565b6040516102529190610a0a565b34801561033257600080fd5b50610346610341366004610988565b610765565b60405161025293929190610bde565b34801561036157600080fd5b50610209610370366004610988565b610785565b34801561038157600080fd5b506103196107bc565b804710156103b35760405162461bcd60e51b81526004016103aa90610b0f565b60405180910390fd5b6000826001600160a01b0316826040516103cc90610a07565b60006040518083038185875af1925050503d8060008114610409576040519150601f19603f3d011682016040523d82523d6000602084013e61040e565b606091505b505090508061042f5760405162461bcd60e51b81526004016103aa90610ab2565b505050565b61043c6107cb565b600280546001600160a01b0319166001600160a01b03831617905561045f61073c565b50565b60055481565b33600090815260016020818152604092839020835160608101855281548152928101549183018290526002015492820192909252906104b95760405162461bcd60e51b81526004016103aa90610b7b565b805142906104ca906203f480610bf4565b106104e75760405162461bcd60e51b81526004016103aa90610ba7565b600254602082015160405163a9059cbb60e01b81526001600160a01b039092169163a9059cbb9161051d91339190600401610a1e565b602060405180830381600087803b15801561053757600080fd5b505af115801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f91906109cf565b5061045f33826000600161080a565b6002546001600160a01b031633146105a657634e487b7160e01b600052600160045260246000fd5b600081116105c65760405162461bcd60e51b81526004016103aa90610a7d565b6001600160a01b0382166000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061042f9084908390610617908690610bf4565b600161080a565b336000908152600160208181526040928390208351606081018552815481529281015491830182905260020154928201929092529061066f5760405162461bcd60e51b81526004016103aa90610b7b565b61045f33828360200151600061080a565b6001600160a01b03811660009081526001602081815260408084208151606081018352815481529381015492840192909252600290910154908201819052600354670de0b6b3a7640000916106d491610c4b565b82602001516106e39190610c2c565b6106ed9190610c0c565b9392505050565b6106fc6107cb565b610704610756565b6001600160a01b03166108fc479081150290604051600060405180830381858888f1935050505015801561045f573d6000803e3d6000fd5b6107446107cb565b61074e6000610934565b565b60035481565b6000546001600160a01b031690565b600160208190526000918252604090912080549181015460029091015483565b61078d6107cb565b6001600160a01b0381166107b35760405162461bcd60e51b81526004016103aa90610a37565b61045f81610934565b6002546001600160a01b031681565b6107d3610984565b6001600160a01b03166107e4610756565b6001600160a01b03161461074e5760405162461bcd60e51b81526004016103aa90610b46565b6000836020015160001461084f57670de0b6b3a764000084604001516003546108339190610c4b565b85602001516108429190610c2c565b61084c9190610c0c565b90505b82610880576001600160a01b038516600090815260016020819052604082208281559081018290556002015561091d565b81156108d3576040805160608101825242815260208082018681526003548385019081526001600160a01b038a16600090815260019384905294909420925183555190820155905160029091015561091d565b604080516060810182528551815260208082018681526003548385019081526001600160a01b038a1660009081526001938490529490942092518355519082015590516002909101555b801561092d5761092d858261038a565b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3390565b600060208284031215610999578081fd5b81356106ed81610c78565b600080604083850312156109b6578081fd5b82356109c181610c78565b946020939093013593505050565b6000602082840312156109e0578081fd5b815180151581146106ed578182fd5b600060208284031215610a00578081fd5b5051919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252818101527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bc81a5b9a5d1a585b0819195c1bdcda5d60721b604082015260600190565b602080825260149082015273776974686472617720616674657220332064617960601b604082015260600190565b90815260200190565b9283526020830191909152604082015260600190565b60008219821115610c0757610c07610c62565b500190565b600082610c2757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610c4657610c46610c62565b500290565b600082821015610c5d57610c5d610c62565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461045f57600080fdfea2646970667358221220e384cdb19c4d5652c7eefa58b0df1396fe2ebc99d7b4550f232691ab2d6751a264736f6c63430008010033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,105.93 | 0.00658825 | $20.46 |
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.