Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 31 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 13370285 | 1270 days ago | IN | 0 ETH | 0.00994148 | ||||
Withdraw | 13370119 | 1270 days ago | IN | 0 ETH | 0.00534772 | ||||
Withdraw | 13370116 | 1270 days ago | IN | 0 ETH | 0.00547048 | ||||
Set Fee Addr | 13370012 | 1270 days ago | IN | 0 ETH | 0.00534778 | ||||
Withdraw | 13369991 | 1270 days ago | IN | 0 ETH | 0.01264951 | ||||
Withdraw | 13369808 | 1270 days ago | IN | 0 ETH | 0.00487515 | ||||
Withdraw | 13369735 | 1270 days ago | IN | 0 ETH | 0.00860398 | ||||
Deposit | 13359679 | 1272 days ago | IN | 0.02788 ETH | 0.0127366 | ||||
Deposit | 13127163 | 1308 days ago | IN | 0.00696 ETH | 0.00360323 | ||||
Deposit | 12765458 | 1364 days ago | IN | 0 ETH | 0.00039223 | ||||
Deposit | 12747941 | 1367 days ago | IN | 0 ETH | 0.00039223 | ||||
Deposit | 12747206 | 1367 days ago | IN | 0 ETH | 0.00040399 | ||||
Deposit | 12747001 | 1367 days ago | IN | 0 ETH | 0.00054912 | ||||
Deposit | 12746749 | 1367 days ago | IN | 0 ETH | 0.00039223 | ||||
Deposit | 12745870 | 1367 days ago | IN | 0 ETH | 0.00048326 | ||||
Deposit | 12742783 | 1368 days ago | IN | 0 ETH | 0.00085869 | ||||
Deposit | 12742237 | 1368 days ago | IN | 0 ETH | 0.00070759 | ||||
Deposit | 12742143 | 1368 days ago | IN | 0 ETH | 0.00072743 | ||||
Deposit | 12740633 | 1368 days ago | IN | 0 ETH | 0.00043379 | ||||
Deposit | 12739418 | 1368 days ago | IN | 0.00845 ETH | 0.00097438 | ||||
Deposit | 12739400 | 1368 days ago | IN | 0.00843 ETH | 0.00097438 | ||||
Deposit | 12739395 | 1368 days ago | IN | 0.00846 ETH | 0.00097438 | ||||
Deposit | 12739389 | 1368 days ago | IN | 0.00846 ETH | 0.00103528 | ||||
Deposit | 12739379 | 1368 days ago | IN | 0.005 ETH | 0.0011573 | ||||
Deposit | 12739364 | 1368 days ago | IN | 0.005 ETH | 0.00115669 |
Latest 9 internal transactions
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
- | 13359679 | 1272 days ago | 0.02788 ETH | ||||
- | 13127163 | 1308 days ago | 0.00696 ETH | ||||
- | 12739418 | 1368 days ago | 0.00845 ETH | ||||
- | 12739400 | 1368 days ago | 0.00843 ETH | ||||
- | 12739395 | 1368 days ago | 0.00846 ETH | ||||
- | 12739389 | 1368 days ago | 0.00846 ETH | ||||
- | 12739379 | 1368 days ago | 0.005 ETH | ||||
- | 12739364 | 1368 days ago | 0.005 ETH | ||||
- | 12733233 | 1369 days ago | 0.008181 ETH |
Loading...
Loading
Contract Name:
HolderShib
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NFT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/utils/Address.sol'; contract HolderShib is Ownable { using Address for address; using SafeMath for uint256; using SafeERC20 for IERC20; address public tokenHolder; IERC20 public token; constructor(address _token) { token = IERC20(_token); address msgSender = _msgSender(); tokenHolder = msgSender; } function deposit(uint256 _amount) external payable { payable(tokenHolder).transfer(msg.value); _deposit(_amount); } function withdraw(address _address,uint256 _amount) external onlyOwner { _withdraw(_address, _amount); } function _deposit(uint _amount) internal returns (uint) { token.safeTransferFrom(address(msg.sender), tokenHolder, _amount); return _amount; } function _withdraw(address _address, uint _amount) internal returns (uint) { token.safeTransferFrom(tokenHolder, _address, _amount); return _amount; } function setFeeAddr(address _tokenHolder) external { require(msg.sender == tokenHolder, 'HolderShib: FORBIDDEN'); tokenHolder = _tokenHolder; } }
// SPDX-License-Identifier: MIT 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^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); } /** * @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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(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); } } } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards 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). * * 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenHolder","type":"address"}],"name":"setFeeAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620013a9380380620013a98339818101604052810190620000379190620001a4565b6000620000496200018560201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006200013a6200018560201b60201c565b905080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000229565b600033905090565b6000815190506200019e816200020f565b92915050565b600060208284031215620001bd57620001bc6200020a565b5b6000620001cd848285016200018d565b91505092915050565b6000620001e382620001ea565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200021a81620001d6565b81146200022657600080fd5b50565b61117080620002396000396000f3fe60806040526004361061007b5760003560e01c8063b6b55f251161004e578063b6b55f2514610116578063f2fde38b14610132578063f3fef3a31461015b578063fc0c546a146101845761007b565b8063420a83e714610080578063715018a6146100ab5780638da5cb5b146100c2578063b2855b4f146100ed575b600080fd5b34801561008c57600080fd5b506100956101af565b6040516100a29190610d57565b60405180910390f35b3480156100b757600080fd5b506100c06101d5565b005b3480156100ce57600080fd5b506100d761030f565b6040516100e49190610d57565b60405180910390f35b3480156100f957600080fd5b50610114600480360381019061010f9190610b10565b610338565b005b610130600480360381019061012b9190610baa565b61040c565b005b34801561013e57600080fd5b5061015960048036038101906101549190610b10565b610482565b005b34801561016757600080fd5b50610182600480360381019061017d9190610b3d565b61062b565b005b34801561019057600080fd5b506101996106b6565b6040516101a69190610da9565b60405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101dd6106dc565b73ffffffffffffffffffffffffffffffffffffffff166101fb61030f565b73ffffffffffffffffffffffffffffffffffffffff1614610251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024890610e46565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf90610e06565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610474573d6000803e3d6000fd5b5061047e816106e4565b5050565b61048a6106dc565b73ffffffffffffffffffffffffffffffffffffffff166104a861030f565b73ffffffffffffffffffffffffffffffffffffffff16146104fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f590610e46565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561056e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056590610de6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6106336106dc565b73ffffffffffffffffffffffffffffffffffffffff1661065161030f565b73ffffffffffffffffffffffffffffffffffffffff16146106a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069e90610e46565b60405180910390fd5b6106b1828261075f565b505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b600061075733600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107db909392919063ffffffff16565b819050919050565b60006107d2600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107db909392919063ffffffff16565b81905092915050565b61085e846323b872dd60e01b8585856040516024016107fc93929190610d72565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610864565b50505050565b60006108c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661092b9092919063ffffffff16565b905060008151111561092657808060200190518101906108e69190610b7d565b610925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091c90610e86565b60405180910390fd5b5b505050565b606061093a8484600085610943565b90509392505050565b606082471015610988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097f90610e26565b60405180910390fd5b61099185610a57565b6109d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c790610e66565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516109f99190610d40565b60006040518083038185875af1925050503d8060008114610a36576040519150601f19603f3d011682016040523d82523d6000602084013e610a3b565b606091505b5091509150610a4b828286610a6a565b92505050949350505050565b600080823b905060008111915050919050565b60608315610a7a57829050610aca565b600083511115610a8d5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac19190610dc4565b60405180910390fd5b9392505050565b600081359050610ae0816110f5565b92915050565b600081519050610af58161110c565b92915050565b600081359050610b0a81611123565b92915050565b600060208284031215610b2657610b25610f77565b5b6000610b3484828501610ad1565b91505092915050565b60008060408385031215610b5457610b53610f77565b5b6000610b6285828601610ad1565b9250506020610b7385828601610afb565b9150509250929050565b600060208284031215610b9357610b92610f77565b5b6000610ba184828501610ae6565b91505092915050565b600060208284031215610bc057610bbf610f77565b5b6000610bce84828501610afb565b91505092915050565b610be081610ed8565b82525050565b6000610bf182610ea6565b610bfb8185610ebc565b9350610c0b818560208601610f44565b80840191505092915050565b610c2081610f20565b82525050565b6000610c3182610eb1565b610c3b8185610ec7565b9350610c4b818560208601610f44565b610c5481610f7c565b840191505092915050565b6000610c6c602683610ec7565b9150610c7782610f8d565b604082019050919050565b6000610c8f601583610ec7565b9150610c9a82610fdc565b602082019050919050565b6000610cb2602683610ec7565b9150610cbd82611005565b604082019050919050565b6000610cd5602083610ec7565b9150610ce082611054565b602082019050919050565b6000610cf8601d83610ec7565b9150610d038261107d565b602082019050919050565b6000610d1b602a83610ec7565b9150610d26826110a6565b604082019050919050565b610d3a81610f16565b82525050565b6000610d4c8284610be6565b915081905092915050565b6000602082019050610d6c6000830184610bd7565b92915050565b6000606082019050610d876000830186610bd7565b610d946020830185610bd7565b610da16040830184610d31565b949350505050565b6000602082019050610dbe6000830184610c17565b92915050565b60006020820190508181036000830152610dde8184610c26565b905092915050565b60006020820190508181036000830152610dff81610c5f565b9050919050565b60006020820190508181036000830152610e1f81610c82565b9050919050565b60006020820190508181036000830152610e3f81610ca5565b9050919050565b60006020820190508181036000830152610e5f81610cc8565b9050919050565b60006020820190508181036000830152610e7f81610ceb565b9050919050565b60006020820190508181036000830152610e9f81610d0e565b9050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000610ee382610ef6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610f2b82610f32565b9050919050565b6000610f3d82610ef6565b9050919050565b60005b83811015610f62578082015181840152602081019050610f47565b83811115610f71576000848401525b50505050565b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f486f6c646572536869623a20464f5242494444454e0000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6110fe81610ed8565b811461110957600080fd5b50565b61111581610eea565b811461112057600080fd5b50565b61112c81610f16565b811461113757600080fd5b5056fea2646970667358221220d5e49516fb88b333820e669846f3486955115cb3e18f3393e4b08e3985f4f89e64736f6c6343000806003300000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Deployed Bytecode
0x60806040526004361061007b5760003560e01c8063b6b55f251161004e578063b6b55f2514610116578063f2fde38b14610132578063f3fef3a31461015b578063fc0c546a146101845761007b565b8063420a83e714610080578063715018a6146100ab5780638da5cb5b146100c2578063b2855b4f146100ed575b600080fd5b34801561008c57600080fd5b506100956101af565b6040516100a29190610d57565b60405180910390f35b3480156100b757600080fd5b506100c06101d5565b005b3480156100ce57600080fd5b506100d761030f565b6040516100e49190610d57565b60405180910390f35b3480156100f957600080fd5b50610114600480360381019061010f9190610b10565b610338565b005b610130600480360381019061012b9190610baa565b61040c565b005b34801561013e57600080fd5b5061015960048036038101906101549190610b10565b610482565b005b34801561016757600080fd5b50610182600480360381019061017d9190610b3d565b61062b565b005b34801561019057600080fd5b506101996106b6565b6040516101a69190610da9565b60405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6101dd6106dc565b73ffffffffffffffffffffffffffffffffffffffff166101fb61030f565b73ffffffffffffffffffffffffffffffffffffffff1614610251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024890610e46565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bf90610e06565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610474573d6000803e3d6000fd5b5061047e816106e4565b5050565b61048a6106dc565b73ffffffffffffffffffffffffffffffffffffffff166104a861030f565b73ffffffffffffffffffffffffffffffffffffffff16146104fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f590610e46565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561056e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056590610de6565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6106336106dc565b73ffffffffffffffffffffffffffffffffffffffff1661065161030f565b73ffffffffffffffffffffffffffffffffffffffff16146106a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069e90610e46565b60405180910390fd5b6106b1828261075f565b505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b600061075733600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107db909392919063ffffffff16565b819050919050565b60006107d2600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107db909392919063ffffffff16565b81905092915050565b61085e846323b872dd60e01b8585856040516024016107fc93929190610d72565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610864565b50505050565b60006108c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661092b9092919063ffffffff16565b905060008151111561092657808060200190518101906108e69190610b7d565b610925576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091c90610e86565b60405180910390fd5b5b505050565b606061093a8484600085610943565b90509392505050565b606082471015610988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097f90610e26565b60405180910390fd5b61099185610a57565b6109d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c790610e66565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516109f99190610d40565b60006040518083038185875af1925050503d8060008114610a36576040519150601f19603f3d011682016040523d82523d6000602084013e610a3b565b606091505b5091509150610a4b828286610a6a565b92505050949350505050565b600080823b905060008111915050919050565b60608315610a7a57829050610aca565b600083511115610a8d5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac19190610dc4565b60405180910390fd5b9392505050565b600081359050610ae0816110f5565b92915050565b600081519050610af58161110c565b92915050565b600081359050610b0a81611123565b92915050565b600060208284031215610b2657610b25610f77565b5b6000610b3484828501610ad1565b91505092915050565b60008060408385031215610b5457610b53610f77565b5b6000610b6285828601610ad1565b9250506020610b7385828601610afb565b9150509250929050565b600060208284031215610b9357610b92610f77565b5b6000610ba184828501610ae6565b91505092915050565b600060208284031215610bc057610bbf610f77565b5b6000610bce84828501610afb565b91505092915050565b610be081610ed8565b82525050565b6000610bf182610ea6565b610bfb8185610ebc565b9350610c0b818560208601610f44565b80840191505092915050565b610c2081610f20565b82525050565b6000610c3182610eb1565b610c3b8185610ec7565b9350610c4b818560208601610f44565b610c5481610f7c565b840191505092915050565b6000610c6c602683610ec7565b9150610c7782610f8d565b604082019050919050565b6000610c8f601583610ec7565b9150610c9a82610fdc565b602082019050919050565b6000610cb2602683610ec7565b9150610cbd82611005565b604082019050919050565b6000610cd5602083610ec7565b9150610ce082611054565b602082019050919050565b6000610cf8601d83610ec7565b9150610d038261107d565b602082019050919050565b6000610d1b602a83610ec7565b9150610d26826110a6565b604082019050919050565b610d3a81610f16565b82525050565b6000610d4c8284610be6565b915081905092915050565b6000602082019050610d6c6000830184610bd7565b92915050565b6000606082019050610d876000830186610bd7565b610d946020830185610bd7565b610da16040830184610d31565b949350505050565b6000602082019050610dbe6000830184610c17565b92915050565b60006020820190508181036000830152610dde8184610c26565b905092915050565b60006020820190508181036000830152610dff81610c5f565b9050919050565b60006020820190508181036000830152610e1f81610c82565b9050919050565b60006020820190508181036000830152610e3f81610ca5565b9050919050565b60006020820190508181036000830152610e5f81610cc8565b9050919050565b60006020820190508181036000830152610e7f81610ceb565b9050919050565b60006020820190508181036000830152610e9f81610d0e565b9050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000610ee382610ef6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610f2b82610f32565b9050919050565b6000610f3d82610ef6565b9050919050565b60005b83811015610f62578082015181840152602081019050610f47565b83811115610f71576000848401525b50505050565b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f486f6c646572536869623a20464f5242494444454e0000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6110fe81610ed8565b811461110957600080fd5b50565b61111581610eea565b811461112057600080fd5b50565b61112c81610f16565b811461113757600080fd5b5056fea2646970667358221220d5e49516fb88b333820e669846f3486955115cb3e18f3393e4b08e3985f4f89e64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
-----Decoded View---------------
Arg [0] : _token (address): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.