Robinhood MainnetChain ID: 4663
Contract detail

BHOODRAT

Live Robinhood Chain account facts for 0x06b1ea09…4be18fdb with at least 45 observed transactions. The history total is updating as indexing continues.

Address type
Smart contract
Transactions
45+ observed
First indexed block
#28527139
Latest indexed block
#28528937
History coverage
Recent activity available; total is catching up
Native balance
0 ETH
Balance observed at
Block #31712946
Emitted events
176
Verification
Verified
Compiler
v0.8.31+commit.fd3a2265
Verification match
full
Creation transaction
0x5abf6f16…fa8b7fd3
Created at block
#28527139
Language
solidity
EVM version
osaka
License
none
Compiler optimization
Enabled · 2000 runs
Related activity

Transactions

Verified contract

Contract source code

// SPDX-License-Identifier: MIT
pragma solidity 0.8.31;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract BHOODRAT is ERC20 {
    error EmptyTokenName();
    error EmptyTokenSymbol();
    error ZeroTokenSupply();
    error ZeroLaunchFingerprint();
    error LengthMismatch();
    error AllowanceBelowZero();
    bytes32 public immutable launchFingerprint;
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        bytes32 launchFingerprint_
    ) ERC20(name_, symbol_) {
        if (bytes(name_).length == 0) revert EmptyTokenName();
        if (bytes(symbol_).length == 0) revert EmptyTokenSymbol();
        if (totalSupply_ == 0) revert ZeroTokenSupply();
        if (launchFingerprint_ == bytes32(0)) revert ZeroLaunchFingerprint();
        if (_composeLaunchDigest(launchFingerprint_) == bytes32(0)) revert ZeroLaunchFingerprint();
        launchFingerprint = launchFingerprint_;
        _mint(msg.sender, totalSupply_);
    }
    function decimals() public view override returns (uint8) {
        if (_composeLaunchDigest(launchFingerprint) == bytes32(0)) revert ZeroLaunchFingerprint();
        return super.decimals();
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        uint256 current = allowance(msg.sender, spender);
        if (current < subtractedValue) revert AllowanceBelowZero();
        _approve(msg.sender, spender, current - subtractedValue);
        return true;
    }
    function _foldKeccakHalves(bytes32 acc) private pure returns (bytes32) {
        return keccak256(abi.encodePacked(uint128(uint256(acc) >> 128), uint128(uint256(acc))));
    }

    function _foldKeccakPacked(bytes32 acc) private pure returns (bytes32) {
        return keccak256(abi.encodePacked(acc));
    }

    function _foldByteMix(bytes32 acc) private pure returns (bytes32) {
        unchecked { uint256 v = uint256(acc); return bytes32((v & 0xff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00) | ((v << 8) & ~uint256(0xff)) | (v >> 248)); }
    }

    function _composeLaunchDigest(bytes32 acc) private pure returns (bytes32) {
        return _foldByteMix(_foldKeccakPacked(_foldKeccakHalves(acc)));
    }
}