Skip to content
Verified contractExactMIT

BatchPenisClaim

Address0x1b1bf6461b63f7b428829e6ed4906ff1497d60f2
Balance

0 ETH

 

Transactions

227

 

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,367,746
Creation transaction
0xc678107138…75447eda63

claim/pnscliamer.sol

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

contract Claimer {
    // This token's transfer(address,uint256), by raw selector.
    bytes4 constant TRANSFER_SEL = 0xbef54a5e;

    constructor(address token, address target, uint256 amount) {
        (bool ok, ) = token.call(abi.encodeWithSelector(TRANSFER_SEL, target, amount));
        if (!ok) { } // best-effort: a failed/short claim must not revert the batch
        // Deploy zero-length runtime: the child is never called again.
        assembly { return(0, 0) }
    }
}

contract BatchPenisClaim {
    address internal constant TOKEN  = 0x63A054d9F1886555B794Fe8C0d3305454c5a442D;
    uint256 internal constant AMOUNT = 8008135; // stor1 (slot 1), confirmed = 0x7a31c7

    function batchClaim(uint256 count) external {
        address token  = TOKEN;
        uint256 amount = AMOUNT;
        address target = msg.sender;
        for (uint256 i = 0; i < count; ) {
            new Claimer(token, target, amount);
            unchecked { ++i; }
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.