Skip to content
Verified contractExactMIT

BatchClaimer

Address0xc5dfd0f77a68e14edb71e52e851fc79b0eec90b2
Balance

0 ETH

 

Transactions

57

 

Compiler

solc 0.8.34

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,361,463
Creation transaction
0x76cbe7c971…62eb2b4efb

penisbatch/batchclaimer.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.34;

contract Claimer {
    constructor(address token, address target, uint256 amount) {
        token.call(abi.encodeWithSignature("transfer(address,uint256)", target, amount));
    }
}

contract BatchClaimer {
    address public constant TOKEN  = 0xFC8994b01627a9A56b93771e93223533B28ED6a8;
    uint256 public constant AMOUNT = 1000000;

    address public owner;

    event Batch(address indexed target, uint256 count);

    constructor() {
        owner = msg.sender;
    }

    function batchClaim(uint256 count, address target) external {
        require(msg.sender == owner, "not owner");
        require(target != address(0), "zero target");
        for (uint256 i = 0; i < count; i++) {
            new Claimer(TOKEN, target, AMOUNT);
        }
        emit Batch(target, count);
    }

    function setOwner(address newOwner) external {
        require(msg.sender == owner, "not owner");
        owner = newOwner;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.