Back to Home

WeiFaucet

Unknown
0x793ae8c1b1a1...5eab1a71f4f2
FrontierContract #133Exact Bytecode MatchEdit this contract
Deployed August 10, 2015 (10 years ago)Block 63,809

Faucet with per-address block-number cooldown.

Key Facts

Deployment Block
63,809
Deployment Date
Aug 10, 2015, 12:41 PM
Code Size
377.0 B
Gas at Deploy
148,265
Transactions by Year
20152,007
20167
20225
20231
20242
20262

Description

Faucet with per-address block-number cooldown. Functions include getWei(). Verified with soljson-v0.1.1+commit.6ff4cd6 and optimizer OFF.

Source Verified

SolidityExact bytecode match(377 bytes)
Compiler: soljson

Backfilled from awesome-ethereum-proofs PR #42.

Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Unknown

Frontier Era

The initial release of Ethereum. A bare-bones implementation for technical users.

Block span: 01,149,999
July 30, 2015March 14, 2016

Bytecode Overview

Opcodes377
Unique Opcodes59
Jump Instructions12
Storage Operations7

Verified Source Available

Source verified through compiler archaeology and exact bytecode matching.

View Verification Proof
Show source code (Solidity)
contract WeiFaucet {

    uint256 amount;
    mapping(address => uint256) lastAccess;
    uint256 cooldown;

    function WeiFaucet() {
        amount = 10000000000000000;
        cooldown = 5760;
    }

    function getWei() returns (bool) {
        if (lastAccess[msg.sender] < block.number - cooldown && address(this).balance > amount) {
            msg.sender.send(amount);
            lastAccess[msg.sender] = block.number;
            return true;
        } else {
            return false;
        }
    }

}

External Links