Skip to content
Verified contractPartial

Farmer

Address0xd404071eeb2e8b45b6c9cf48d09f3773bc35c4ac
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.24

 

Same code

5 more contracts

 

Details

Compiler
solc 0.4.24+commit.e67f0147
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,542,240
Creation transaction
0xe4f83a79d8…a219e32cad

Farmer.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity 0.4.24;

interface ERC20 {
    function transfer(address to, uint256 value) external;
    function balanceOf(address who) external view returns (uint256);
}

// Created by Farmer in a loop: claims the airdrop of the token by calling it, sends what it got to the collector,
// and destroys itself in the same transaction.
contract Claimer {
    constructor() public {
        ERC20 token = ERC20(0xB64fFdcA47D6c3895608c4E05FaBA6E617b3a031);
        address(token).call.value(0)();
        token.transfer(tx.origin, token.balanceOf(this));
        selfdestruct(0x808284ad89f21c512f9a5d43ad24aaf79780849a);
    }
}

contract Farmer {
    constructor() public {
        for (int i = 0; i < 50; i++) {
            new Claimer();
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.