Verified contractPartial
PiggyBank
Address0x8a4ee50f77149a92cfde3852d50f49645eb12308
- Balance
0 ETH
- Transactions
193
- Compiler
solc 0.4.3
- Same code
1,100 more contracts
Details
- Compiler
- solc 0.4.3+commit.2353da71
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 3,272,957
- Creation transaction
- 0xffb2ce93a0…fa15b82a4f
- Main copy (most transactions)
- 0x33babc6c…24463397
PiggyBank.sol
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.0;
contract PiggyBank {
address owner;
event Deposit(address indexed user, uint256 indexed id, uint256 amount);
function PiggyBank() {
owner = msg.sender;
}
function() payable {
if (msg.value > 0) {
Deposit(msg.sender, 88, msg.value);
}
}
function kill() {
if (msg.sender == owner) {
suicide(owner);
}
}
function collect() {
if (msg.sender == owner) {
owner.send(this.balance);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.