Skip to content
Verified contractPartialUNLICENSED

MasterPepe

Address0x4629d124b052d33ae4aa9e3eed7ef6eb04d4cc39
Balance

0 ETH

 

Transactions

420

 

Compiler

solc 0.8.17

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.17+commit.8df45f5f
Language
solidity
Optimization
Yes, 200 runs
EVM version
london
License
UNLICENSED
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
17,169,195
Creation transaction
0x62dd947bf9…9c67c116e4

MasterPepe.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

contract MasterPepe  {
    string public constant name = "MasterPepe";
    string public constant symbol = "MasterPepe";
    uint8 public constant decimals = 18;

    uint256 immutable public totalSupply;

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

    event Transfer(address indexed sender, address indexed recipient, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    constructor() {
        totalSupply = 313370000000000  * 10 ** decimals;

        unchecked {
            balanceOf[address(msg.sender)] = balanceOf[address(msg.sender)] + totalSupply;
        }

        emit Transfer(address(0), address(msg.sender), totalSupply);
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        _approve(msg.sender, spender, amount);

        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
        _approve(msg.sender, spender, allowance[msg.sender][spender] + addedValue);

        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        _approve(msg.sender, spender, allowance[msg.sender][spender] - subtractedValue);

        return true;
    }

    function transfer(address recipient, uint256 amount) external returns (bool) {
        _transfer(msg.sender, recipient, amount);

        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
        allowance[sender][msg.sender] -= amount;

        _transfer(sender, recipient, amount);

        return true;
    }

    function _approve(address _owner, address _spender, uint256 amount) private {
        allowance[_owner][_spender] = amount;

        emit Approval(_owner, _spender, amount);
    }

    function _transfer(address sender, address recipient, uint256 amount) private {
        balanceOf[sender] = balanceOf[sender] - amount;

        unchecked {
            balanceOf[recipient] = balanceOf[recipient] + amount;
        }

        allowance[sender][recipient] = 0;

        emit Transfer(sender, recipient, amount);
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "london",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.