Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 632 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All | 19568325 | 217 days ago | IN | 0 ETH | 0.00162971 | ||||
Contribute White... | 17397034 | 522 days ago | IN | 0.05 ETH | 0.00050635 | ||||
Withdraw All | 17396987 | 522 days ago | IN | 0 ETH | 0.00072211 | ||||
Contribute White... | 17396891 | 522 days ago | IN | 0.01 ETH | 0.00055928 | ||||
Contribute White... | 17396884 | 522 days ago | IN | 0.05 ETH | 0.00047705 | ||||
Contribute White... | 17396879 | 522 days ago | IN | 0.05 ETH | 0.0006561 | ||||
Contribute White... | 17396870 | 522 days ago | IN | 0.02 ETH | 0.00051853 | ||||
Contribute White... | 17396854 | 522 days ago | IN | 0.05 ETH | 0.00048094 | ||||
Contribute White... | 17396848 | 522 days ago | IN | 0.09 ETH | 0.00048967 | ||||
Contribute White... | 17396842 | 522 days ago | IN | 0.07 ETH | 0.00049909 | ||||
Contribute White... | 17396830 | 522 days ago | IN | 0.1 ETH | 0.0004862 | ||||
Contribute White... | 17396827 | 522 days ago | IN | 0.2 ETH | 0.00050536 | ||||
Contribute White... | 17396819 | 522 days ago | IN | 0.1 ETH | 0.00047148 | ||||
Contribute White... | 17396815 | 522 days ago | IN | 0.05 ETH | 0.00067447 | ||||
Contribute White... | 17396815 | 522 days ago | IN | 0.05 ETH | 0.00067502 | ||||
Transfer | 17396811 | 522 days ago | IN | 0.05 ETH | 0.00048784 | ||||
Contribute White... | 17396810 | 522 days ago | IN | 0.05 ETH | 0.00052281 | ||||
Contribute White... | 17396808 | 522 days ago | IN | 0.05 ETH | 0.0007513 | ||||
Contribute White... | 17396808 | 522 days ago | IN | 0.05 ETH | 0.00053479 | ||||
Contribute White... | 17396807 | 522 days ago | IN | 0.15 ETH | 0.00056245 | ||||
Contribute White... | 17396805 | 522 days ago | IN | 0.09 ETH | 0.00045868 | ||||
Contribute White... | 17396804 | 522 days ago | IN | 0.3 ETH | 0.00065645 | ||||
Contribute White... | 17396803 | 522 days ago | IN | 0.05 ETH | 0.00050197 | ||||
Contribute White... | 17396802 | 522 days ago | IN | 0.05 ETH | 0.0005004 | ||||
Contribute White... | 17396801 | 522 days ago | IN | 0.05 ETH | 0.00049548 |
Loading...
Loading
Contract Name:
DepositWithdraw
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061081a806100606000396000f3fe6080604052600436106100705760003560e01c8063434b2f3c1161004e578063434b2f3c146100f4578063853828b61461011f5780638da5cb5b146101365780639ad976dd1461016157610070565b806308caa910146100755780630c05c40e146100a05780632e1a7d4d146100cb575b600080fd5b34801561008157600080fd5b5061008a61017d565b6040516100979190610497565b60405180910390f35b3480156100ac57600080fd5b506100b5610185565b6040516100c29190610497565b60405180910390f35b3480156100d757600080fd5b506100f260048036038101906100ed91906104e8565b610192565b005b34801561010057600080fd5b506101096102cd565b6040516101169190610497565b60405180910390f35b34801561012b57600080fd5b506101346102d9565b005b34801561014257600080fd5b5061014b610413565b6040516101589190610556565b60405180910390f35b61017b600480360381019061017691906105d6565b610437565b005b600047905090565b68056bc75e2d6310000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790610680565b60405180910390fd5b47811115610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025a906106ec565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102c9573d6000803e3d6000fd5b5050565b670de0b6b3a764000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035e90610680565b60405180910390fd5b600047116103aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a190610758565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610410573d6000803e3d6000fd5b50565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000341161047a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610471906107c4565b60405180910390fd5b5050565b6000819050919050565b6104918161047e565b82525050565b60006020820190506104ac6000830184610488565b92915050565b600080fd5b600080fd5b6104c58161047e565b81146104d057600080fd5b50565b6000813590506104e2816104bc565b92915050565b6000602082840312156104fe576104fd6104b2565b5b600061050c848285016104d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061054082610515565b9050919050565b61055081610535565b82525050565b600060208201905061056b6000830184610547565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059657610595610571565b5b8235905067ffffffffffffffff8111156105b3576105b2610576565b5b6020830191508360208202830111156105cf576105ce61057b565b5b9250929050565b600080602083850312156105ed576105ec6104b2565b5b600083013567ffffffffffffffff81111561060b5761060a6104b7565b5b61061785828601610580565b92509250509250929050565b600082825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2077697468647261770000000000600082015250565b600061066a601b83610623565b915061067582610634565b602082019050919050565b600060208201905081810360008301526106998161065d565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006106d6601483610623565b91506106e1826106a0565b602082019050919050565b60006020820190508181036000830152610705816106c9565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b6000610742601683610623565b915061074d8261070c565b602082019050919050565b6000602082019050818103600083015261077181610735565b9050919050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b60006107ae600283610623565b91506107b982610778565b602082019050919050565b600060208201905081810360008301526107dd816107a1565b905091905056fea2646970667358221220978446793847a3fb8c8984cd4d0560bd64a7a4e47985b565d5c1278c02e9076064736f6c63430008120033
Deployed Bytecode
0x6080604052600436106100705760003560e01c8063434b2f3c1161004e578063434b2f3c146100f4578063853828b61461011f5780638da5cb5b146101365780639ad976dd1461016157610070565b806308caa910146100755780630c05c40e146100a05780632e1a7d4d146100cb575b600080fd5b34801561008157600080fd5b5061008a61017d565b6040516100979190610497565b60405180910390f35b3480156100ac57600080fd5b506100b5610185565b6040516100c29190610497565b60405180910390f35b3480156100d757600080fd5b506100f260048036038101906100ed91906104e8565b610192565b005b34801561010057600080fd5b506101096102cd565b6040516101169190610497565b60405180910390f35b34801561012b57600080fd5b506101346102d9565b005b34801561014257600080fd5b5061014b610413565b6040516101589190610556565b60405180910390f35b61017b600480360381019061017691906105d6565b610437565b005b600047905090565b68056bc75e2d6310000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790610680565b60405180910390fd5b47811115610263576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161025a906106ec565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102c9573d6000803e3d6000fd5b5050565b670de0b6b3a764000081565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035e90610680565b60405180910390fd5b600047116103aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a190610758565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610410573d6000803e3d6000fd5b50565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000341161047a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610471906107c4565b60405180910390fd5b5050565b6000819050919050565b6104918161047e565b82525050565b60006020820190506104ac6000830184610488565b92915050565b600080fd5b600080fd5b6104c58161047e565b81146104d057600080fd5b50565b6000813590506104e2816104bc565b92915050565b6000602082840312156104fe576104fd6104b2565b5b600061050c848285016104d3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061054082610515565b9050919050565b61055081610535565b82525050565b600060208201905061056b6000830184610547565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059657610595610571565b5b8235905067ffffffffffffffff8111156105b3576105b2610576565b5b6020830191508360208202830111156105cf576105ce61057b565b5b9250929050565b600080602083850312156105ed576105ec6104b2565b5b600083013567ffffffffffffffff81111561060b5761060a6104b7565b5b61061785828601610580565b92509250509250929050565b600082825260208201905092915050565b7f4f6e6c7920746865206f776e65722063616e2077697468647261770000000000600082015250565b600061066a601b83610623565b915061067582610634565b602082019050919050565b600060208201905081810360008301526106998161065d565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006106d6601483610623565b91506106e1826106a0565b602082019050919050565b60006020820190508181036000830152610705816106c9565b9050919050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b6000610742601683610623565b915061074d8261070c565b602082019050919050565b6000602082019050818103600083015261077181610735565b9050919050565b7f4531000000000000000000000000000000000000000000000000000000000000600082015250565b60006107ae600283610623565b91506107b982610778565b602082019050919050565b600060208201905081810360008301526107dd816107a1565b905091905056fea2646970667358221220978446793847a3fb8c8984cd4d0560bd64a7a4e47985b565d5c1278c02e9076064736f6c63430008120033
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.