ETH Price: $3,329.49 (-8.46%)

Contract

0x6A0e55FCf9d0460d5d5f10F26455428470A52384
 
Transaction Hash
Method
Block
From
To
Withdraw All195683252024-04-02 13:11:23262 days ago1712063483IN
0x6A0e55FC...470A52384
0 ETH0.0016297153.50160709
Contribute White...173970342023-06-03 1:57:35566 days ago1685757455IN
0x6A0e55FC...470A52384
0.05 ETH0.0005063523.15302267
Withdraw All173969872023-06-03 1:47:59566 days ago1685756879IN
0x6A0e55FC...470A52384
0 ETH0.0007221123.70620939
Contribute White...173968912023-06-03 1:28:35566 days ago1685755715IN
0x6A0e55FC...470A52384
0.01 ETH0.0005592825.57302604
Contribute White...173968842023-06-03 1:27:11566 days ago1685755631IN
0x6A0e55FC...470A52384
0.05 ETH0.0004770521.81327711
Contribute White...173968792023-06-03 1:26:11566 days ago1685755571IN
0x6A0e55FC...470A52384
0.05 ETH0.000656130
Contribute White...173968702023-06-03 1:24:23566 days ago1685755463IN
0x6A0e55FC...470A52384
0.02 ETH0.0005185323.70978191
Contribute White...173968542023-06-03 1:20:59566 days ago1685755259IN
0x6A0e55FC...470A52384
0.05 ETH0.0004809421.99096829
Contribute White...173968482023-06-03 1:19:47566 days ago1685755187IN
0x6A0e55FC...470A52384
0.09 ETH0.0004896722.39028289
Contribute White...173968422023-06-03 1:18:35566 days ago1685755115IN
0x6A0e55FC...470A52384
0.07 ETH0.0004990922.82094216
Contribute White...173968302023-06-03 1:16:11566 days ago1685754971IN
0x6A0e55FC...470A52384
0.1 ETH0.000486222.23145864
Contribute White...173968272023-06-03 1:15:35566 days ago1685754935IN
0x6A0e55FC...470A52384
0.2 ETH0.0005053623.10771107
Contribute White...173968192023-06-03 1:13:59566 days ago1685754839IN
0x6A0e55FC...470A52384
0.1 ETH0.0004714821.5585953
Contribute White...173968152023-06-03 1:13:11566 days ago1685754791IN
0x6A0e55FC...470A52384
0.05 ETH0.0006744722.84350433
Contribute White...173968152023-06-03 1:13:11566 days ago1685754791IN
0x6A0e55FC...470A52384
0.05 ETH0.0006750222.84350433
Transfer173968112023-06-03 1:12:23566 days ago1685754743IN
0x6A0e55FC...470A52384
0.05 ETH0.0004878423.2306835
Contribute White...173968102023-06-03 1:12:11566 days ago1685754731IN
0x6A0e55FC...470A52384
0.05 ETH0.0005228123.90553511
Contribute White...173968082023-06-03 1:11:47566 days ago1685754707IN
0x6A0e55FC...470A52384
0.05 ETH0.000751334.35337908
Contribute White...173968082023-06-03 1:11:47566 days ago1685754707IN
0x6A0e55FC...470A52384
0.05 ETH0.0005347924.45337908
Contribute White...173968072023-06-03 1:11:35566 days ago1685754695IN
0x6A0e55FC...470A52384
0.15 ETH0.0005624525.71825475
Contribute White...173968052023-06-03 1:11:11566 days ago1685754671IN
0x6A0e55FC...470A52384
0.09 ETH0.0004586820.97337049
Contribute White...173968042023-06-03 1:10:59566 days ago1685754659IN
0x6A0e55FC...470A52384
0.3 ETH0.0006564522.21495434
Contribute White...173968032023-06-03 1:10:47566 days ago1685754647IN
0x6A0e55FC...470A52384
0.05 ETH0.0005019722.95289075
Contribute White...173968022023-06-03 1:10:35566 days ago1685754635IN
0x6A0e55FC...470A52384
0.05 ETH0.000500422.88078597
Contribute White...173968012023-06-03 1:10:23566 days ago1685754623IN
0x6A0e55FC...470A52384
0.05 ETH0.0004954822.65603774
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
195683252024-04-02 13:11:23262 days ago1712063483
0x6A0e55FC...470A52384
0.05 ETH
173969872023-06-03 1:47:59566 days ago1685756879
0x6A0e55FC...470A52384
160.8071 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DepositWithdraw

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : DepositWithdraw.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

contract DepositWithdraw {
    address payable public owner;
    uint256 public constant PRESALE_HARD_CAP = 100 ether;
    uint256 public constant MAX_INDIVIDUAL_CONTRIBUTION = 1 ether;

    constructor() {
        owner = payable(msg.sender);
    }

    function contributeWhitelist(bytes32[] calldata proof) external payable {
        require(msg.value > 0, "E1");
    }

    function getTotalContribution() external view returns (uint256) {
        return address(this).balance;
    }

    function withdraw(uint256 amount) external {
        require(msg.sender == owner, "Only the owner can withdraw");
        require(amount <= address(this).balance, "Insufficient balance");

        owner.transfer(amount);
    }

    function withdrawAll() external {
        require(msg.sender == owner, "Only the owner can withdraw");
        require(address(this).balance > 0, "No balance to withdraw");

        owner.transfer(address(this).balance);
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MAX_INDIVIDUAL_CONTRIBUTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_HARD_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"contributeWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getTotalContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061081a806100606000396000f3fe6080604052600436106100705760003560e01c8063434b2f3c1161004e578063434b2f3c146100f4578063853828b61461011f5780638da5cb5b146101365780639ad976dd1461016157610070565b806308caa910146100755780630c05c40e146100a05780632e1a7d4d146100cb575b600080fd5b34801561008157600080fd5b5061008a61017d565b6040516100979190610497565b60405180910390f35b3480156100ac57600080fd5b506100b5610185565b6040516100c29190610497565b60405180910390f35b3480156100d757600080fd5b506100f260048036038101906100ed91906104e8565b610192565b005b34801561010057600080fd5b506101096102cd565b6040516101169190610497565b60405180910390f35b34801561012b57600080fd5b506101346102d9565b005b34801561014257600080fd5b5061014b610413565b6040516101589190610556565b60405180910390f35b61017b600480360381019061017691906105d6565b610437565b005b600047905090565b68056bc75e2d6310000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790610680565b60405180910390fd5b47811115610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025a906106ec565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102c9573d6000803e3d6000fd5b5050565b670de0b6b3a764000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035e90610680565b60405180910390fd5b600047116103aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a190610758565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610410573d6000803e3d6000fd5b50565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000341161047a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610471906107c4565b60405180910390fd5b5050565b6000819050919050565b6104918161047e565b82525050565b60006020820190506104ac6000830184610488565b92915050565b600080fd5b600080fd5b6104c58161047e565b81146104d057600080fd5b50565b6000813590506104e2816104bc565b92915050565b6000602082840312156104fe576104fd6104b2565b5b600061050c848285016104d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061054082610515565b9050919050565b61055081610535565b82525050565b600060208201905061056b6000830184610547565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059657610595610571565b5b8235905067ffffffffffffffff8111156105b3576105b2610576565b5b6020830191508360208202830111156105cf576105ce61057b565b5b9250929050565b600080602083850312156105ed576105ec6104b2565b5b600083013567ffffffffffffffff81111561060b5761060a6104b7565b5b61061785828601610580565b92509250509250929050565b600082825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2077697468647261770000000000600082015250565b600061066a601b83610623565b915061067582610634565b602082019050919050565b600060208201905081810360008301526106998161065d565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006106d6601483610623565b91506106e1826106a0565b602082019050919050565b60006020820190508181036000830152610705816106c9565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b6000610742601683610623565b915061074d8261070c565b602082019050919050565b6000602082019050818103600083015261077181610735565b9050919050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b60006107ae600283610623565b91506107b982610778565b602082019050919050565b600060208201905081810360008301526107dd816107a1565b905091905056fea2646970667358221220978446793847a3fb8c8984cd4d0560bd64a7a4e47985b565d5c1278c02e9076064736f6c63430008120033

Deployed Bytecode

0x6080604052600436106100705760003560e01c8063434b2f3c1161004e578063434b2f3c146100f4578063853828b61461011f5780638da5cb5b146101365780639ad976dd1461016157610070565b806308caa910146100755780630c05c40e146100a05780632e1a7d4d146100cb575b600080fd5b34801561008157600080fd5b5061008a61017d565b6040516100979190610497565b60405180910390f35b3480156100ac57600080fd5b506100b5610185565b6040516100c29190610497565b60405180910390f35b3480156100d757600080fd5b506100f260048036038101906100ed91906104e8565b610192565b005b34801561010057600080fd5b506101096102cd565b6040516101169190610497565b60405180910390f35b34801561012b57600080fd5b506101346102d9565b005b34801561014257600080fd5b5061014b610413565b6040516101589190610556565b60405180910390f35b61017b600480360381019061017691906105d6565b610437565b005b600047905090565b68056bc75e2d6310000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790610680565b60405180910390fd5b47811115610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025a906106ec565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102c9573d6000803e3d6000fd5b5050565b670de0b6b3a764000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035e90610680565b60405180910390fd5b600047116103aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a190610758565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610410573d6000803e3d6000fd5b50565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000341161047a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610471906107c4565b60405180910390fd5b5050565b6000819050919050565b6104918161047e565b82525050565b60006020820190506104ac6000830184610488565b92915050565b600080fd5b600080fd5b6104c58161047e565b81146104d057600080fd5b50565b6000813590506104e2816104bc565b92915050565b6000602082840312156104fe576104fd6104b2565b5b600061050c848285016104d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061054082610515565b9050919050565b61055081610535565b82525050565b600060208201905061056b6000830184610547565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059657610595610571565b5b8235905067ffffffffffffffff8111156105b3576105b2610576565b5b6020830191508360208202830111156105cf576105ce61057b565b5b9250929050565b600080602083850312156105ed576105ec6104b2565b5b600083013567ffffffffffffffff81111561060b5761060a6104b7565b5b61061785828601610580565b92509250509250929050565b600082825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2077697468647261770000000000600082015250565b600061066a601b83610623565b915061067582610634565b602082019050919050565b600060208201905081810360008301526106998161065d565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006106d6601483610623565b91506106e1826106a0565b602082019050919050565b60006020820190508181036000830152610705816106c9565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b6000610742601683610623565b915061074d8261070c565b602082019050919050565b6000602082019050818103600083015261077181610735565b9050919050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b60006107ae600283610623565b91506107b982610778565b602082019050919050565b600060208201905081810360008301526107dd816107a1565b905091905056fea2646970667358221220978446793847a3fb8c8984cd4d0560bd64a7a4e47985b565d5c1278c02e9076064736f6c63430008120033

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  ]
[ 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.