Robinhood MainnetChain ID: 4663
Contract detail

MintBurnERC20

Live Robinhood Chain account facts for 0x3dd6b955…5ec5bbde with at least 4 observed transactions. The history total is updating as indexing continues.

Address type
Smart contract
Transactions
4+ observed
First indexed block
#1070429
Latest indexed block
#1132380
History coverage
Recent activity available; total is catching up
ERC-20 transfers
1
Emitted events
13
Verification
Verified
Compiler
v0.8.22+commit.4fc1097e
Verification match
full
Creation transaction
0x9fc5f6bd…23f17e7a
Created at block
#1070429
Language
solidity
EVM version
paris
License
none
Compiler optimization
Enabled · 200 runs
Related activity

Transactions

Verified contract

Contract source code

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

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

contract MintBurnERC20 is ERC20, Ownable {
    uint8 private _decimals;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 initialSupply_,
        uint8 decimals_,
        address owner_
    ) ERC20(name_, symbol_) Ownable(owner_) {
        _decimals = decimals_;
        _mint(msg.sender, initialSupply_ * (10 ** uint256(decimals_)));
    }

    function decimals() public view override returns (uint8) {
        return _decimals;
    }

    function mint(address to, uint256 amount) external onlyOwner {
        _mint(to, amount);
    }

    function burn(address from, uint256 amount) external onlyOwner {
        _burn(from, amount);
    }
}