Robinhood MainnetChain ID: 4663
Contract detail

Unitest

Live Robinhood Chain account facts for 0xbecb4b52…ea7ddca6 with at least 7 observed transactions. The history total is updating as indexing continues.

Address type
Smart contract
Transactions
7+ observed
First indexed block
#28296408
Latest indexed block
#28301344
History coverage
Recent activity available; total is catching up
Emitted events
66
Token tracker
Unitest
Verification
Verified
Compiler
v0.8.34+commit.80d5c536
Verification match
full
Creation transaction
0xfba2533f…9b5e0f0f
Created at block
#28296408
Language
solidity
EVM version
default
License
none
Compiler optimization
Enabled · 200 runs
Related activity

Transactions

Verified contract

Contract source code

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/// Author



contract Unitest {
    // ----- Edit these three before deploying -----
    string public constant name     = "Unitest";
    string public constant symbol   = "UNITEST";
    uint256 private constant _SUPPLY = 8_888; 
    // ---------------------------------------------

    uint8   public constant decimals = 18;
    uint256 public immutable totalSupply;

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor() {
        uint256 supply = _SUPPLY * (10 ** decimals);
        totalSupply = supply;
        balanceOf[msg.sender] = supply;
        emit Transfer(address(0), msg.sender, supply);
    }

    function transfer(address to, uint256 value) external returns (bool) {
        return _transfer(msg.sender, to, value);
    }

    function approve(address spender, uint256 value) external returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function transferFrom(address from, address to, uint256 value) external returns (bool) {
        uint256 allowed = allowance[from][msg.sender];
        if (allowed != type(uint256).max) {
            require(allowed >= value, "ERC20: insufficient allowance");
            allowance[from][msg.sender] = allowed - value;
        }
        return _transfer(from, to, value);
    }

    function _transfer(address from, address to, uint256 value) internal returns (bool) {
        require(to != address(0), "ERC20: transfer to zero address");
        uint256 bal = balanceOf[from];
        require(bal >= value, "ERC20: insufficient balance");
        unchecked {
            balanceOf[from] = bal - value;
            balanceOf[to] += value;
        }
        emit Transfer(from, to, value);
        return true;
    }
}