Skip to content
Verified contractPartial

PiggyBank

Address0x1df60b5e655b30df0a7cfadeaebb8bac94cc72b2
Balance

0 ETH

 

Transactions

133

 

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,225,391
Creation transaction
0x63da4b5673…ac5eb852e9
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.