Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
5 addresses found via
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 12412095 | 863 days 7 hrs ago | IN | Create: HWeth | 0 ETH | 0.14824913 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
HWeth
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-11 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/interface/IERC20Usdt.sol pragma solidity ^0.6.0; interface IERC20Usdt { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external; function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external; function transferFrom(address sender, address recipient, uint256 amount) external; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/Config.sol pragma solidity ^0.6.0; contract Config { // function signature of "postProcess()" bytes4 public constant POSTPROCESS_SIG = 0xc2722916; // The base amount of percentage function uint256 public constant PERCENTAGE_BASE = 1 ether; // Handler post-process type. Others should not happen now. enum HandlerType {Token, Custom, Others} } // File: contracts/lib/LibCache.sol pragma solidity ^0.6.0; library LibCache { function set( mapping(bytes32 => bytes32) storage _cache, bytes32 _key, bytes32 _value ) internal { _cache[_key] = _value; } function setAddress( mapping(bytes32 => bytes32) storage _cache, bytes32 _key, address _value ) internal { _cache[_key] = bytes32(uint256(uint160(_value))); } function setUint256( mapping(bytes32 => bytes32) storage _cache, bytes32 _key, uint256 _value ) internal { _cache[_key] = bytes32(_value); } function getAddress( mapping(bytes32 => bytes32) storage _cache, bytes32 _key ) internal view returns (address ret) { ret = address(uint160(uint256(_cache[_key]))); } function getUint256( mapping(bytes32 => bytes32) storage _cache, bytes32 _key ) internal view returns (uint256 ret) { ret = uint256(_cache[_key]); } function get(mapping(bytes32 => bytes32) storage _cache, bytes32 _key) internal view returns (bytes32 ret) { ret = _cache[_key]; } } // File: contracts/lib/LibStack.sol pragma solidity ^0.6.0; library LibStack { function setAddress(bytes32[] storage _stack, address _input) internal { _stack.push(bytes32(uint256(uint160(_input)))); } function set(bytes32[] storage _stack, bytes32 _input) internal { _stack.push(_input); } function setHandlerType(bytes32[] storage _stack, Config.HandlerType _input) internal { _stack.push(bytes12(uint96(_input))); } function getAddress(bytes32[] storage _stack) internal returns (address ret) { ret = address(uint160(uint256(peek(_stack)))); _stack.pop(); } function getSig(bytes32[] storage _stack) internal returns (bytes4 ret) { ret = bytes4(peek(_stack)); _stack.pop(); } function get(bytes32[] storage _stack) internal returns (bytes32 ret) { ret = peek(_stack); _stack.pop(); } function peek(bytes32[] storage _stack) internal view returns (bytes32 ret) { require(_stack.length > 0, "stack empty"); ret = _stack[_stack.length - 1]; } } // File: contracts/Storage.sol pragma solidity ^0.6.0; /// @notice A cache structure composed by a bytes32 array contract Storage { using LibCache for mapping(bytes32 => bytes32); using LibStack for bytes32[]; bytes32[] public stack; mapping(bytes32 => bytes32) public cache; // keccak256 hash of "msg.sender" // prettier-ignore bytes32 public constant MSG_SENDER_KEY = 0xb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a; // keccak256 hash of "cube.counter" // prettier-ignore bytes32 public constant CUBE_COUNTER_KEY = 0xf9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be; modifier isStackEmpty() { require(stack.length == 0, "Stack not empty"); _; } modifier isCubeCounterZero() { require(_getCubeCounter() == 0, "Cube counter not zero"); _; } modifier isInitialized() { require(_getSender() != address(0), "Sender is not initialized"); _; } modifier isNotInitialized() { require(_getSender() == address(0), "Sender is initialized"); _; } function _setSender() internal isNotInitialized { cache.setAddress(MSG_SENDER_KEY, msg.sender); } function _resetSender() internal { cache.setAddress(MSG_SENDER_KEY, address(0)); } function _getSender() internal view returns (address) { return cache.getAddress(MSG_SENDER_KEY); } function _addCubeCounter() internal { cache.setUint256(CUBE_COUNTER_KEY, _getCubeCounter() + 1); } function _resetCubeCounter() internal { cache.setUint256(CUBE_COUNTER_KEY, 0); } function _getCubeCounter() internal view returns (uint256) { return cache.getUint256(CUBE_COUNTER_KEY); } } // File: contracts/handlers/HandlerBase.sol pragma solidity ^0.6.0; abstract contract HandlerBase is Storage, Config { using SafeERC20 for IERC20; function postProcess() external payable virtual { revert("Invalid post process"); /* Implementation template bytes4 sig = stack.getSig(); if (sig == bytes4(keccak256(bytes("handlerFunction_1()")))) { // Do something } else if (sig == bytes4(keccak256(bytes("handlerFunction_2()")))) { bytes32 temp = stack.get(); // Do something } else revert("Invalid post process"); */ } function _updateToken(address token) internal { stack.setAddress(token); // Ignore token type to fit old handlers // stack.setHandlerType(uint256(HandlerType.Token)); } function _updatePostProcess(bytes32[] memory params) internal { for (uint256 i = params.length; i > 0; i--) { stack.set(params[i - 1]); } stack.set(msg.sig); stack.setHandlerType(HandlerType.Custom); } function getContractName() public pure virtual returns (string memory); function _revertMsg(string memory functionName, string memory reason) internal view { revert( string( abi.encodePacked( _uint2String(_getCubeCounter()), "_", getContractName(), "_", functionName, ": ", reason ) ) ); } function _revertMsg(string memory functionName) internal view { _revertMsg(functionName, "Unspecified"); } function _uint2String(uint256 n) internal pure returns (string memory) { if (n == 0) { return "0"; } else { uint256 len = 0; for (uint256 temp = n; temp > 0; temp /= 10) { len++; } bytes memory str = new bytes(len); for (uint256 i = len; i > 0; i--) { str[i - 1] = bytes1(uint8(48 + (n % 10))); n /= 10; } return string(str); } } function _getBalance(address token, uint256 amount) internal view returns (uint256) { if (amount != uint256(-1)) { return amount; } // ETH case if ( token == address(0) || token == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) ) { return address(this).balance; } // ERC20 token case return IERC20(token).balanceOf(address(this)); } function _tokenApprove( address token, address spender, uint256 amount ) internal { try IERC20Usdt(token).approve(spender, amount) {} catch { IERC20(token).safeApprove(spender, 0); IERC20(token).safeApprove(spender, amount); } } } // File: contracts/handlers/weth/IWETH9.sol pragma solidity ^0.6.0; interface IWETH9 { fallback() external payable; function deposit() external payable; function withdraw(uint256 wad) external; } // File: contracts/handlers/weth/HWeth.sol pragma solidity ^0.6.0; contract HWeth is HandlerBase { // prettier-ignore address payable public constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; function getContractName() public pure override returns (string memory) { return "HWeth"; } function deposit(uint256 value) external payable { try IWETH9(WETH).deposit{value: value}() {} catch Error( string memory reason ) { _revertMsg("deposit", reason); } catch { _revertMsg("deposit"); } _updateToken(WETH); } function withdraw(uint256 wad) external payable { try IWETH9(WETH).withdraw(wad) {} catch Error(string memory reason) { _revertMsg("withdraw", reason); } catch { _revertMsg("withdraw"); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"CUBE_COUNTER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MSG_SENDER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSTPROCESS_SIG","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cache","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getContractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"postProcess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stack","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506109b8806100206000396000f3fe60806040526004361061009c5760003560e01c8063ad5c464811610064578063ad5c46481461013b578063b6b55f251461016c578063c272291614610189578063dc9031c414610191578063f5f5ba72146101bb578063fa2901a5146102455761009c565b80630f532d18146100a15780631413dc7d146100c85780632e1a7d4d146100dd57806387c13943146100fc57806399eb59b914610111575b600080fd5b3480156100ad57600080fd5b506100b6610277565b60408051918252519081900360200190f35b3480156100d457600080fd5b506100b661029b565b6100fa600480360360208110156100f357600080fd5b50356102bf565b005b34801561010857600080fd5b506100b661039d565b34801561011d57600080fd5b506100b66004803603602081101561013457600080fd5b50356103a9565b34801561014757600080fd5b506101506103bb565b604080516001600160a01b039092168252519081900360200190f35b6100fa6004803603602081101561018257600080fd5b50356103d3565b6100fa6104bf565b34801561019d57600080fd5b506100b6600480360360208110156101b457600080fd5b5035610503565b3480156101c757600080fd5b506101d0610521565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020a5781810151838201526020016101f2565b50505050905090810190601f1680156102375780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025157600080fd5b5061025a610541565b604080516001600160e01b03199092168252519081900360200190f35b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b7ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be81565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561031957600080fd5b505af192505050801561032a575060015b61039a576103366108dd565b806103415750610371565b61036b60405180604001604052806008815260200167776974686472617760c01b8152508261054c565b5061039a565b61039a60405180604001604052806008815260200167776974686472617760c01b81525061075b565b50565b670de0b6b3a764000081565b60016020526000908152604090205481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561042257600080fd5b505af193505050508015610434575060015b6104a2576104406108dd565b8061044b575061047a565b6104746040518060400160405280600781526020016619195c1bdcda5d60ca1b8152508261054c565b506104a2565b6104a26040518060400160405280600781526020016619195c1bdcda5d60ca1b81525061075b565b61039a73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2610788565b6040805162461bcd60e51b8152602060048201526014602482015273496e76616c696420706f73742070726f6365737360601b604482015290519081900360640190fd5b6000818154811061051057fe5b600091825260209091200154905081565b604080518082019091526005815264090aecae8d60db1b60208201525b90565b636139148b60e11b81565b61055c610557610793565b6107c5565b610564610521565b83836040516020018085805190602001908083835b602083106105985780518252601f199092019160209182019101610579565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010184805190602001908083835b602083106105f15780518252601f1990920191602091820191016105d2565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010183805190602001908083835b6020831061064a5780518252601f19909201916020918201910161062b565b51815160209384036101000a60001901801990921691161790526101d160f51b919093019081528451600290910192850191508083835b602083106106a05780518252601f199092019160209182019101610681565b6001836020036101000a03801982511681845116808217855250505050505090500194505050505060405160208183030381529060405260405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610720578181015183820152602001610708565b50505050905090810190601f16801561074d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b61039a816040518060400160405280600b81526020016a155b9cdc1958da599a595960aa1b81525061054c565b61039a6000826108a2565b60006107c060017ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be6108c4565b905090565b6060816107ea57506040805180820190915260018152600360fc1b602082015261089d565b6000825b80156108045760019190910190600a90046107ee565b5060608167ffffffffffffffff8111801561081e57600080fd5b506040519080825280601f01601f191660200182016040528015610849576020820181803683370190505b509050815b801561089357600a850660300160f81b82600183038151811061086d57fe5b60200101906001600160f81b031916908160001a905350600a850494506000190161084e565b50915061089d9050565b919050565b8154600181018355600092835260209092206001600160a01b03909116910155565b6000908152602091909152604090205490565b60e01c90565b600060443d10156108ed5761053e565b600481823e6308c379a061090182516108d7565b1461090b5761053e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561093b575050505061053e565b82840192508251915080821115610955575050505061053e565b503d8301602082840101111561096d5750505061053e565b601f01601f191681016020016040529150509056fea26469706673582212206f7fa6c7a604ee4d4924d5668211138f3901f645582e8e5c5c02526c541a769064736f6c634300060c0033
Deployed Bytecode
0x60806040526004361061009c5760003560e01c8063ad5c464811610064578063ad5c46481461013b578063b6b55f251461016c578063c272291614610189578063dc9031c414610191578063f5f5ba72146101bb578063fa2901a5146102455761009c565b80630f532d18146100a15780631413dc7d146100c85780632e1a7d4d146100dd57806387c13943146100fc57806399eb59b914610111575b600080fd5b3480156100ad57600080fd5b506100b6610277565b60408051918252519081900360200190f35b3480156100d457600080fd5b506100b661029b565b6100fa600480360360208110156100f357600080fd5b50356102bf565b005b34801561010857600080fd5b506100b661039d565b34801561011d57600080fd5b506100b66004803603602081101561013457600080fd5b50356103a9565b34801561014757600080fd5b506101506103bb565b604080516001600160a01b039092168252519081900360200190f35b6100fa6004803603602081101561018257600080fd5b50356103d3565b6100fa6104bf565b34801561019d57600080fd5b506100b6600480360360208110156101b457600080fd5b5035610503565b3480156101c757600080fd5b506101d0610521565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020a5781810151838201526020016101f2565b50505050905090810190601f1680156102375780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025157600080fd5b5061025a610541565b604080516001600160e01b03199092168252519081900360200190f35b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b7ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be81565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561031957600080fd5b505af192505050801561032a575060015b61039a576103366108dd565b806103415750610371565b61036b60405180604001604052806008815260200167776974686472617760c01b8152508261054c565b5061039a565b61039a60405180604001604052806008815260200167776974686472617760c01b81525061075b565b50565b670de0b6b3a764000081565b60016020526000908152604090205481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561042257600080fd5b505af193505050508015610434575060015b6104a2576104406108dd565b8061044b575061047a565b6104746040518060400160405280600781526020016619195c1bdcda5d60ca1b8152508261054c565b506104a2565b6104a26040518060400160405280600781526020016619195c1bdcda5d60ca1b81525061075b565b61039a73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2610788565b6040805162461bcd60e51b8152602060048201526014602482015273496e76616c696420706f73742070726f6365737360601b604482015290519081900360640190fd5b6000818154811061051057fe5b600091825260209091200154905081565b604080518082019091526005815264090aecae8d60db1b60208201525b90565b636139148b60e11b81565b61055c610557610793565b6107c5565b610564610521565b83836040516020018085805190602001908083835b602083106105985780518252601f199092019160209182019101610579565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010184805190602001908083835b602083106105f15780518252601f1990920191602091820191016105d2565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010183805190602001908083835b6020831061064a5780518252601f19909201916020918201910161062b565b51815160209384036101000a60001901801990921691161790526101d160f51b919093019081528451600290910192850191508083835b602083106106a05780518252601f199092019160209182019101610681565b6001836020036101000a03801982511681845116808217855250505050505090500194505050505060405160208183030381529060405260405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610720578181015183820152602001610708565b50505050905090810190601f16801561074d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b61039a816040518060400160405280600b81526020016a155b9cdc1958da599a595960aa1b81525061054c565b61039a6000826108a2565b60006107c060017ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be6108c4565b905090565b6060816107ea57506040805180820190915260018152600360fc1b602082015261089d565b6000825b80156108045760019190910190600a90046107ee565b5060608167ffffffffffffffff8111801561081e57600080fd5b506040519080825280601f01601f191660200182016040528015610849576020820181803683370190505b509050815b801561089357600a850660300160f81b82600183038151811061086d57fe5b60200101906001600160f81b031916908160001a905350600a850494506000190161084e565b50915061089d9050565b919050565b8154600181018355600092835260209092206001600160a01b03909116910155565b6000908152602091909152604090205490565b60e01c90565b600060443d10156108ed5761053e565b600481823e6308c379a061090182516108d7565b1461090b5761053e565b6040513d600319016004823e80513d67ffffffffffffffff816024840111818411171561093b575050505061053e565b82840192508251915080821115610955575050505061053e565b503d8301602082840101111561096d5750505061053e565b601f01601f191681016020016040529150509056fea26469706673582212206f7fa6c7a604ee4d4924d5668211138f3901f645582e8e5c5c02526c541a769064736f6c634300060c0033
Deployed Bytecode Sourcemap
27915:831:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22974:107;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;23155:109;;;;;;;;;;;;;:::i;28496:247::-;;;;;;;;;;;;;;;;-1:-1:-1;28496:247:0;;:::i;:::-;;19957:49;;;;;;;;;;;;;:::i;22862:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22862:40:0;;:::i;27976:81::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;27976:81:0;;;;;;;;;;;;;;28179:309;;;;;;;;;;;;;;;;-1:-1:-1;28179:309:0;;:::i;24624:479::-;;;:::i;22833:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22833:22:0;;:::i;28066:105::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19850:51;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;19850:51:0;;;;;;;;;;;;;;22974:107;23015:66;22974:107;:::o;23155:109::-;23198:66;23155:109;:::o;28496:247::-;28015:42;-1:-1:-1;;;;;28559:21:0;;28581:3;28559:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28555:181;;;;:::i;:::-;;;;;;;;28638:30;;;;;;;;;;;;;;-1:-1:-1;;;28638:30:0;;;28661:6;28638:10;:30::i;:::-;28589:91;28555:181;;;28702:22;;;;;;;;;;;;;;-1:-1:-1;;;28702:22:0;;;:10;:22::i;:::-;28496:247;:::o;19957:49::-;19999:7;19957:49;:::o;22862:40::-;;;;;;;;;;;;;:::o;27976:81::-;28015:42;27976:81;:::o;28179:309::-;28015:42;-1:-1:-1;;;;;28243:20:0;;28271:5;28243:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28239:213;;;;:::i;:::-;;;;;;;;28356:29;;;;;;;;;;;;;;-1:-1:-1;;;28356:29:0;;;28378:6;28356:10;:29::i;:::-;28283:114;28239:213;;;28419:21;;;;;;;;;;;;;;-1:-1:-1;;;28419:21:0;;;:10;:21::i;:::-;28462:18;28015:42;28462:12;:18::i;24624:479::-;24683:30;;;-1:-1:-1;;;24683:30:0;;;;;;;;;;;;-1:-1:-1;;;24683:30:0;;;;;;;;;;;;;;22833:22;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22833:22:0;:::o;28066:105::-;28149:14;;;;;;;;;;;;-1:-1:-1;;;28149:14:0;;;;28066:105;;:::o;19850:51::-;-1:-1:-1;;;19850:51:0;:::o;25661:470::-;25864:31;25877:17;:15;:17::i;:::-;25864:12;:31::i;:::-;25944:17;:15;:17::i;:::-;26010:12;26072:6;25825:272;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25825:272:0;;;;;;;;;;;-1:-1:-1;;;25825:272:0;;;;;;;;;;;;;;;;;-1:-1:-1;25825:272:0;;;;;;;;;;;;;-1:-1:-1;;25825:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25779:344;;-1:-1:-1;;;25779:344:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26139:120;26212:39;26223:12;26212:39;;;;;;;;;;;;;-1:-1:-1;;;26212:39:0;;;:10;:39::i;25111:200::-;25168:23;:5;25185;25168:16;:23::i;24325:119::-;24375:7;24402:34;:5;23198:66;24402:16;:34::i;:::-;24395:41;;24325:119;:::o;26267:516::-;26323:13;26353:6;26349:427;;-1:-1:-1;26376:10:0;;;;;;;;;;;;-1:-1:-1;;;26376:10:0;;;;;;26349:427;26419:11;26469:1;26449:85;26472:8;;26449:85;;26513:5;;;;;;26490:2;26482:10;;26449:85;;;;26548:16;26577:3;26567:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26567:14:0;-1:-1:-1;26548:33:0;-1:-1:-1;26613:3:0;26596:136;26618:5;;26596:136;;26685:2;26681:1;:6;26675:2;:13;26662:28;;26649:3;26657:1;26653;:5;26649:10;;;;;;;;;;;:41;-1:-1:-1;;;;;26649:41:0;;;;;;;;-1:-1:-1;26714:2:0;26709:7;;;-1:-1:-1;;;26625:3:0;26596:136;;;-1:-1:-1;26760:3:0;-1:-1:-1;26746:18:0;;-1:-1:-1;26746:18:0;26349:427;26267:516;;;:::o;21480:136::-;21562:46;;;;;;;21574:33;21562:46;;;;;;;-1:-1:-1;;;;;21582:24:0;;;21562:46;;;21480:136::o;21012:185::-;21138:11;21176:12;;;;;;;;;;;;;21012:185::o;110:106:-1:-;195:3;191:15;;163:53::o;224:739::-;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;-1:-1;;318:23;414:10;357:34;-1:-1;382:8;357:34;:::i;:::-;406:19;396:2;;429:5;;396:2;460;454:9;496:16;-1:-1;;492:24;339:1;454:9;468:49;543:4;537:11;624:16;576:18;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;;553:2;693:6;687:4;683:17;672:28;;725:3;719:10;705:24;;576:18;740:6;737:30;734:2;;;770:5;;;;;;734:2;;847:16;841:4;837:27;807:4;814:6;802:3;794:27;;829:36;826:2;;;868:5;;;;;826:2;89:7;73:14;-1:-1;;69:28;892:50;;807:4;892:50;460:2;881:62;900:3;-1:-1;;267:696;:::o
Swarm Source
ipfs://6f7fa6c7a604ee4d4924d5668211138f3901f645582e8e5c5c02526c541a7690
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ 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.