ETH Price: $2,633.17 (+1.64%)

Contract

0x2858a621278073A8E3BbAad92353F82EA418EEcB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap185847392023-11-16 13:27:11279 days ago1700141231IN
0x2858a621...EA418EEcB
0 ETH0.0078590533.4025431
Swap185621762023-11-13 9:46:11282 days ago1699868771IN
0x2858a621...EA418EEcB
0 ETH0.0086965236.5297324
Swap185487282023-11-11 12:35:59284 days ago1699706159IN
0x2858a621...EA418EEcB
0 ETH0.004878721.17556741
Swap185402742023-11-10 8:12:35285 days ago1699603955IN
0x2858a621...EA418EEcB
0 ETH0.0074902332.39088674
Swap185305892023-11-08 23:42:35286 days ago1699486955IN
0x2858a621...EA418EEcB
0 ETH0.0054329224.60241393
Swap185221542023-11-07 19:25:47287 days ago1699385147IN
0x2858a621...EA418EEcB
0 ETH0.0053191123.00209346
Swap185135542023-11-06 14:31:59289 days ago1699281119IN
0x2858a621...EA418EEcB
0 ETH0.0094680940.94398539
Swap185045642023-11-05 8:16:59290 days ago1699172219IN
0x2858a621...EA418EEcB
0 ETH0.0037059620.96230614
Swap184933712023-11-03 18:37:59292 days ago1699036679IN
0x2858a621...EA418EEcB
0 ETH0.003672720.77416883
Swap184865182023-11-02 19:36:59292 days ago1698953819IN
0x2858a621...EA418EEcB
0 ETH0.003509319.84990279
Transfer Ownersh...184778012023-11-01 14:18:35294 days ago1698848315IN
0x2858a621...EA418EEcB
0 ETH0.0008463629.61997569
Swap184768422023-11-01 11:05:23294 days ago1698836723IN
0x2858a621...EA418EEcB
0 ETH0.0035558220.40155334
Swap184698472023-10-31 11:35:47295 days ago1698752147IN
0x2858a621...EA418EEcB
0 ETH0.0031865518.28287648
Swap184626262023-10-30 11:18:11296 days ago1698664691IN
0x2858a621...EA418EEcB
0 ETH0.0035308718.93208749
0x62014370184626072023-10-30 11:14:11296 days ago1698664451IN
 Create: HoddlessTaxWallet
0 ETH0.0112288820.50885587

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HoddlessTaxWallet

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2023-10-30
*/

// Sources flattened with hardhat v2.18.2 https://hardhat.org

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }
}


// File @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}


// File contracts/HodlessTaxWallet.sol

// Original license: SPDX_License_Identifier: MIT
pragma solidity ^0.8.20;


interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

contract HoddlessTaxWallet is Ownable {
    uint _lastTrade;
    uint _lastTradeTimeout = 3600 * 23;
    uint _maxTokenForTrade = 25_000 * 10 ** 18;
    address _routerAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    address _tokenAddress = 0xf5AEd4F6a1Ad00f39Dd21febb6f400ea020030c2;
    address _WETHAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address _developerAddress = 0x18FA982B3ff0c1F63f7ec0DCFC429d5c2b0e445D;
    address[] _path = [_tokenAddress, _WETHAddress];

    constructor(address initialOwner) Ownable(initialOwner) {
        IERC20 token = IERC20(_tokenAddress);
        token.approve(_routerAddress, type(uint).max);
    }

    function swap() external onlyOwner {
        require(_lastTrade + _lastTradeTimeout < block.timestamp, 'HodlessTaxWallet: next trade is locked');

        IERC20 token = IERC20(_tokenAddress);
        uint balance = token.balanceOf(address(this));
        IUniswapV2Router02 router = IUniswapV2Router02(_routerAddress);
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(balance > _maxTokenForTrade ? _maxTokenForTrade : balance, 0, _path, _developerAddress, block.timestamp + 1200);

        _lastTrade = block.timestamp;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

62014370600290815569054b40b1f852bda00000600355600480546001600160a01b0319908116737a250d5630b4cf539739df2c5dacb4c659f2488d1790915560058054821673f5aed4f6a1ad00f39dd21febb6f400ea020030c290811790915560068054831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2908117909155600780549093167318fa982b3ff0c1f63f7ec0dcfc429d5c2b0e445d1790925560c0604052608090815260a0919091526100be91600891906101fb565b503480156100cb57600080fd5b506040516106e53803806106e58339810160408190526100ea91610275565b806001600160a01b03811661011957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610122816101ab565b506005546004805460405163095ea7b360e01b81526001600160a01b0391821692810192909252600019602483015290911690819063095ea7b3906044016020604051808303816000875af115801561017f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a391906102a5565b5050506102c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215610250579160200282015b8281111561025057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061021b565b5061025c929150610260565b5090565b5b8082111561025c5760008155600101610261565b60006020828403121561028757600080fd5b81516001600160a01b038116811461029e57600080fd5b9392505050565b6000602082840312156102b757600080fd5b8151801515811461029e57600080fd5b61040f806102d66000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063715018a6146100515780638119c0651461005b5780638da5cb5b14610063578063f2fde38b14610082575b600080fd5b610059610095565b005b6100596100a9565b600054604080516001600160a01b039092168252519081900360200190f35b6100596100903660046102f3565b610238565b61009d610276565b6100a760006102a3565b565b6100b1610276565b426002546001546100c29190610323565b106101235760405162461bcd60e51b815260206004820152602660248201527f486f646c65737354617857616c6c65743a206e657874207472616465206973206044820152651b1bd8dad95960d21b60648201526084015b60405180910390fd5b6005546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015610170573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610194919061034a565b6004546003549192506001600160a01b031690819063791ac9479084116101bb57836101bf565b6003545b6007546000906008906001600160a01b03166101dd426104b0610323565b6040518663ffffffff1660e01b81526004016101fd959493929190610363565b600060405180830381600087803b15801561021757600080fd5b505af115801561022b573d6000803e3d6000fd5b5050426001555050505050565b610240610276565b6001600160a01b03811661026a57604051631e4fbdf760e01b81526000600482015260240161011a565b610273816102a3565b50565b6000546001600160a01b031633146100a75760405163118cdaa760e01b815233600482015260240161011a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030557600080fd5b81356001600160a01b038116811461031c57600080fd5b9392505050565b8082018082111561034457634e487b7160e01b600052601160045260246000fd5b92915050565b60006020828403121561035c57600080fd5b5051919050565b600060a082018783526020878185015260a0604085015281875480845260c0860191508860005282600020935060005b818110156103b85784546001600160a01b031683526001948501949284019201610393565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220c820029e8ca739b3c8f69669c59424332a57097d014cb5a963831c43c769a50f64736f6c6343000814003300000000000000000000000018fa982b3ff0c1f63f7ec0dcfc429d5c2b0e445d

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063715018a6146100515780638119c0651461005b5780638da5cb5b14610063578063f2fde38b14610082575b600080fd5b610059610095565b005b6100596100a9565b600054604080516001600160a01b039092168252519081900360200190f35b6100596100903660046102f3565b610238565b61009d610276565b6100a760006102a3565b565b6100b1610276565b426002546001546100c29190610323565b106101235760405162461bcd60e51b815260206004820152602660248201527f486f646c65737354617857616c6c65743a206e657874207472616465206973206044820152651b1bd8dad95960d21b60648201526084015b60405180910390fd5b6005546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015610170573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610194919061034a565b6004546003549192506001600160a01b031690819063791ac9479084116101bb57836101bf565b6003545b6007546000906008906001600160a01b03166101dd426104b0610323565b6040518663ffffffff1660e01b81526004016101fd959493929190610363565b600060405180830381600087803b15801561021757600080fd5b505af115801561022b573d6000803e3d6000fd5b5050426001555050505050565b610240610276565b6001600160a01b03811661026a57604051631e4fbdf760e01b81526000600482015260240161011a565b610273816102a3565b50565b6000546001600160a01b031633146100a75760405163118cdaa760e01b815233600482015260240161011a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030557600080fd5b81356001600160a01b038116811461031c57600080fd5b9392505050565b8082018082111561034457634e487b7160e01b600052601160045260246000fd5b92915050565b60006020828403121561035c57600080fd5b5051919050565b600060a082018783526020878185015260a0604085015281875480845260c0860191508860005282600020935060005b818110156103b85784546001600160a01b031683526001948501949284019201610393565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220c820029e8ca739b3c8f69669c59424332a57097d014cb5a963831c43c769a50f64736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000018fa982b3ff0c1f63f7ec0dcfc429d5c2b0e445d

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x18FA982B3ff0c1F63f7ec0DCFC429d5c2b0e445D

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000018fa982b3ff0c1f63f7ec0dcfc429d5c2b0e445d


Deployed Bytecode Sourcemap

7620:1239:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3464:103;;;:::i;:::-;;8304:552;;;:::i;2789:87::-;2835:7;2862:6;2789:87;;;-1:-1:-1;;;;;2862:6:0;;;160:51:1;;2789:87:0;;;;;148:2:1;2789:87:0;;;3722:220;;;;;;:::i;:::-;;:::i;3464:103::-;2675:13;:11;:13::i;:::-;3529:30:::1;3556:1;3529:18;:30::i;:::-;3464:103::o:0;8304:552::-;2675:13;:11;:13::i;:::-;8391:15:::1;8371:17;;8358:10;;:30;;;;:::i;:::-;:48;8350:99;;;::::0;-1:-1:-1;;;8350:99:0;;942:2:1;8350:99:0::1;::::0;::::1;924:21:1::0;981:2;961:18;;;954:30;1020:34;1000:18;;;993:62;-1:-1:-1;;;1071:18:1;;;1064:36;1117:19;;8350:99:0::1;;;;;;;;;8484:13;::::0;8524:30:::1;::::0;-1:-1:-1;;;8524:30:0;;8548:4:::1;8524:30;::::0;::::1;160:51:1::0;-1:-1:-1;;;;;8484:13:0;;::::1;::::0;8462:12:::1;::::0;8484:13;;8524:15:::1;::::0;133:18:1;;8524:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8612:14;::::0;8706:17:::1;::::0;8509:45;;-1:-1:-1;;;;;;8612:14:0::1;::::0;;;8638:57:::1;::::0;8696:27;::::1;:57;;8746:7;8696:57;;;8726:17;;8696:57;8765:17;::::0;8755:1:::1;::::0;8758:5:::1;::::0;-1:-1:-1;;;;;8765:17:0::1;8784:22;:15;8802:4;8784:22;:::i;:::-;8638:169;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;8833:15:0::1;8820:10;:28:::0;-1:-1:-1;;;;;8304:552:0:o;3722:220::-;2675:13;:11;:13::i;:::-;-1:-1:-1;;;;;3807:22:0;::::1;3803:93;;3853:31;::::0;-1:-1:-1;;;3853:31:0;;3881:1:::1;3853:31;::::0;::::1;160:51:1::0;133:18;;3853:31:0::1;14:203:1::0;3803:93:0::1;3906:28;3925:8;3906:18;:28::i;:::-;3722:220:::0;:::o;2954:166::-;2835:7;2862:6;-1:-1:-1;;;;;2862:6:0;930:10;3014:23;3010:103;;3061:40;;-1:-1:-1;;;3061:40:0;;930:10;3061:40;;;160:51:1;133:18;;3061:40:0;14:203:1;4102:191:0;4176:16;4195:6;;-1:-1:-1;;;;;4212:17:0;;;-1:-1:-1;;;;;;4212:17:0;;;;;;4245:40;;4195:6;;;;;;;4245:40;;4176:16;4245:40;4165:128;4102:191;:::o;222:286:1:-;281:6;334:2;322:9;313:7;309:23;305:32;302:52;;;350:1;347;340:12;302:52;376:23;;-1:-1:-1;;;;;428:31:1;;418:42;;408:70;;474:1;471;464:12;408:70;497:5;222:286;-1:-1:-1;;;222:286:1:o;513:222::-;578:9;;;599:10;;;596:133;;;651:10;646:3;642:20;639:1;632:31;686:4;683:1;676:15;714:4;711:1;704:15;596:133;513:222;;;;:::o;1147:184::-;1217:6;1270:2;1258:9;1249:7;1245:23;1241:32;1238:52;;;1286:1;1283;1276:12;1238:52;-1:-1:-1;1309:16:1;;1147:184;-1:-1:-1;1147:184:1:o;1336:1003::-;1595:4;1643:3;1632:9;1628:19;1674:6;1663:9;1656:25;1700:2;1738:6;1733:2;1722:9;1718:18;1711:34;1781:3;1776:2;1765:9;1761:18;1754:31;1805:6;1840;1834:13;1871:6;1863;1856:22;1909:3;1898:9;1894:19;1887:26;;1932:6;1929:1;1922:17;1975:2;1972:1;1962:16;1948:30;;1996:1;2006:194;2020:6;2017:1;2014:13;2006:194;;;2085:13;;-1:-1:-1;;;;;2081:39:1;2069:52;;2117:1;2176:14;;;;2141:12;;;;2035:9;2006:194;;;-1:-1:-1;;;;;;;2256:32:1;;;;2251:2;2236:18;;2229:60;-1:-1:-1;;;2320:3:1;2305:19;2298:35;2217:3;1336:1003;-1:-1:-1;;;1336:1003:1:o

Swarm Source

ipfs://c820029e8ca739b3c8f69669c59424332a57097d014cb5a963831c43c769a50f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.