Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xbC8E35221904F61b4200Ca44a08e4daC387Ac83A
Balance 0 ETH
Nonce 1
Code Size 9184 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9184 bytes
0x60806040526004361061019b575f3560e01c8063859c2af1116100eb578063a457c2d711610089578063cfa69a5311610063578063cfa69a5314610599578063d3bfe4d3146105c3578063dd62ed3e146105ff578063f2fde38b1461063b5761019b565b8063a457c2d7146104f7578063a61c6d2a14610533578063a9059cbb1461055d5761019b565b80638da5cb5b116100c55780638da5cb5b1461045f57806394bf804d1461048957806395d89b41146104a55780639bb90794146104cf5761019b565b8063859c2af1146103f557806387512b941461040b5780638acee3cf146104355761019b565b806339509351116101585780636af65929116101325780636af659291461034f57806370a0823114610379578063715018a6146103b55780637a8cf66a146103cb5761019b565b806339509351146102bf5780633d96ecbb146102fb5780634f0e0ef3146103255761019b565b80630387da421461019f57806306fdde03146101c9578063095ea7b3146101f357806318160ddd1461022f57806323b872dd14610259578063313ce56714610295575b5f80fd5b3480156101aa575f80fd5b506101b3610663565b6040516101c091906117d6565b60405180910390f35b3480156101d4575f80fd5b506101dd610669565b6040516101ea9190611879565b60405180910390f35b3480156101fe575f80fd5b5061021960048036038101906102149190611921565b6106f9565b6040516102269190611979565b60405180910390f35b34801561023a575f80fd5b5061024361071b565b60405161025091906117d6565b60405180910390f35b348015610264575f80fd5b5061027f600480360381019061027a9190611992565b610724565b60405161028c9190611979565b60405180910390f35b3480156102a0575f80fd5b506102a9610752565b6040516102b691906119fd565b60405180910390f35b3480156102ca575f80fd5b506102e560048036038101906102e09190611921565b61075a565b6040516102f29190611979565b60405180910390f35b348015610306575f80fd5b5061030f610790565b60405161031c9190611a25565b60405180910390f35b348015610330575f80fd5b506103396107b5565b6040516103469190611a25565b60405180910390f35b34801561035a575f80fd5b506103636107da565b6040516103709190611a25565b60405180910390f35b348015610384575f80fd5b5061039f600480360381019061039a9190611a3e565b6107ff565b6040516103ac91906117d6565b60405180910390f35b3480156103c0575f80fd5b506103c9610844565b005b3480156103d6575f80fd5b506103df610857565b6040516103ec9190611a25565b60405180910390f35b348015610400575f80fd5b5061040961087c565b005b348015610416575f80fd5b5061041f61092f565b60405161042c91906117d6565b60405180910390f35b348015610440575f80fd5b50610449610935565b6040516104569190611a25565b60405180910390f35b34801561046a575f80fd5b5061047361095a565b6040516104809190611a25565b60405180910390f35b6104a3600480360381019061049e9190611a69565b610982565b005b3480156104b0575f80fd5b506104b9610e8c565b6040516104c69190611879565b60405180910390f35b3480156104da575f80fd5b506104f560048036038101906104f09190611a3e565b610f1c565b005b348015610502575f80fd5b5061051d60048036038101906105189190611921565b610ff6565b60405161052a9190611979565b60405180910390f35b34801561053e575f80fd5b5061054761106b565b60405161055491906117d6565b60405180910390f35b348015610568575f80fd5b50610583600480360381019061057e9190611921565b611071565b6040516105909190611979565b60405180910390f35b3480156105a4575f80fd5b506105ad611093565b6040516105ba91906117d6565b60405180910390f35b3480156105ce575f80fd5b506105e960048036038101906105e49190611a3e565b611099565b6040516105f691906117d6565b60405180910390f35b34801561060a575f80fd5b5061062560048036038101906106209190611aa7565b6110ae565b60405161063291906117d6565b60405180910390f35b348015610646575f80fd5b50610661600480360381019061065c9190611a3e565b611130565b005b60075481565b60606003805461067890611b12565b80601f01602080910402602001604051908101604052809291908181526020018280546106a490611b12565b80156106ef5780601f106106c6576101008083540402835291602001916106ef565b820191905f5260205f20905b8154815290600101906020018083116106d257829003601f168201915b5050505050905090565b5f806107036111b2565b90506107108185856111b9565b600191505092915050565b5f600254905090565b5f8061072e6111b2565b905061073b85828561137c565b610746858585611407565b60019150509392505050565b5f6012905090565b5f806107646111b2565b905061078581858561077685896110ae565b6107809190611b6f565b6111b9565b600191505092915050565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61084c611673565b6108555f6116f1565b565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f4790505f81116108c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b990611bec565b60405180910390fd5b5f600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166108fc8390811502906040515f60405180830381858888f1935050505015801561092a573d5f803e3d5ffd5b505050565b60065481565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f82116109c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bb90611c54565b60405180910390fd5b600854821115610a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0090611ce2565b60405180910390fd5b60075482610a179190611d00565b341015610a59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5090611d64565b60405180910390fd5b6008548260095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610aa59190611b6f565b1115610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add90611d64565b60405180910390fd5b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db06064606334610b329190611d00565b610b3c9190611daf565b6040518263ffffffff1660e01b81526004015f604051808303818588803b158015610b65575f80fd5b505af1158015610b77573d5f803e3d5ffd5b5050505050600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064606334610bea9190611d00565b610bf49190611daf565b6040518363ffffffff1660e01b8152600401610c11929190611ddf565b6020604051808303815f875af1158015610c2d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c519190611e30565b50600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064606334610cc19190611d00565b610ccb9190611daf565b6040518463ffffffff1660e01b8152600401610ce993929190611e5b565b6020604051808303815f875af1158015610d05573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d299190611e30565b505f620186a0600654610d3c9190611d00565b83620180c3610d4961071b565b610d539190611d00565b610d5d9190611d00565b610d679190611daf565b9050610d74308383611407565b610da030600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611407565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610e06575f80fd5b505af1158015610e18573d5f803e3d5ffd5b505050508260095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610e689190611b6f565b9250508190555082600a5f828254610e809190611b6f565b92505081905550505050565b606060048054610e9b90611b12565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec790611b12565b8015610f125780601f10610ee957610100808354040283529160200191610f12565b820191905f5260205f20905b815481529060010190602001808311610ef557829003601f168201915b5050505050905090565b610f24611673565b5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faa90611eda565b60405180910390fd5b80600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f806110006111b2565b90505f61100d82866110ae565b905083811015611052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104990611f68565b60405180910390fd5b61105f82868684036111b9565b60019250505092915050565b600a5481565b5f8061107b6111b2565b9050611088818585611407565b600191505092915050565b60085481565b6009602052805f5260405f205f915090505481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b611138611673565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d90611ff6565b60405180910390fd5b6111af816116f1565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121e90612084565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c90612112565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161136f91906117d6565b60405180910390a3505050565b5f61138784846110ae565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461140157818110156113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea9061217a565b60405180910390fd5b61140084848484036111b9565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c90612208565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da90612296565b60405180910390fd5b6114ee8383836117b4565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156890612324565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161165a91906117d6565b60405180910390a361166d8484846117b9565b50505050565b61167b6111b2565b73ffffffffffffffffffffffffffffffffffffffff1661169961095a565b73ffffffffffffffffffffffffffffffffffffffff16146116ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e69061238c565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b5f819050919050565b6117d0816117be565b82525050565b5f6020820190506117e95f8301846117c7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561182657808201518184015260208101905061180b565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61184b826117ef565b61185581856117f9565b9350611865818560208601611809565b61186e81611831565b840191505092915050565b5f6020820190508181035f8301526118918184611841565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6118c68261189d565b9050919050565b6118d6816118bc565b81146118e0575f80fd5b50565b5f813590506118f1816118cd565b92915050565b611900816117be565b811461190a575f80fd5b50565b5f8135905061191b816118f7565b92915050565b5f806040838503121561193757611936611899565b5b5f611944858286016118e3565b92505060206119558582860161190d565b9150509250929050565b5f8115159050919050565b6119738161195f565b82525050565b5f60208201905061198c5f83018461196a565b92915050565b5f805f606084860312156119a9576119a8611899565b5b5f6119b6868287016118e3565b93505060206119c7868287016118e3565b92505060406119d88682870161190d565b9150509250925092565b5f60ff82169050919050565b6119f7816119e2565b82525050565b5f602082019050611a105f8301846119ee565b92915050565b611a1f816118bc565b82525050565b5f602082019050611a385f830184611a16565b92915050565b5f60208284031215611a5357611a52611899565b5b5f611a60848285016118e3565b91505092915050565b5f8060408385031215611a7f57611a7e611899565b5b5f611a8c8582860161190d565b9250506020611a9d858286016118e3565b9150509250929050565b5f8060408385031215611abd57611abc611899565b5b5f611aca858286016118e3565b9250506020611adb858286016118e3565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611b2957607f821691505b602082108103611b3c57611b3b611ae5565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611b79826117be565b9150611b84836117be565b9250828201905080821115611b9c57611b9b611b42565b5b92915050565b7f436f6e747261637420686173206e6f204554482062616c616e63652e000000005f82015250565b5f611bd6601c836117f9565b9150611be182611ba2565b602082019050919050565b5f6020820190508181035f830152611c0381611bca565b9050919050565b7f496e76616c6964206d696e7420636f756e7400000000000000000000000000005f82015250565b5f611c3e6012836117f9565b9150611c4982611c0a565b602082019050919050565b5f6020820190508181035f830152611c6b81611c32565b9050919050565b7f4578636565646564206d6178696d756d206d696e7420636f756e7420706572205f8201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b5f611ccc6027836117f9565b9150611cd782611c72565b604082019050919050565b5f6020820190508181035f830152611cf981611cc0565b9050919050565b5f611d0a826117be565b9150611d15836117be565b9250828202611d23816117be565b91508282048414831517611d3a57611d39611b42565b5b5092915050565b50565b5f611d4f5f836117f9565b9150611d5a82611d41565b5f82019050919050565b5f6020820190508181035f830152611d7b81611d44565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611db9826117be565b9150611dc4836117be565b925082611dd457611dd3611d82565b5b828204905092915050565b5f604082019050611df25f830185611a16565b611dff60208301846117c7565b9392505050565b611e0f8161195f565b8114611e19575f80fd5b50565b5f81519050611e2a81611e06565b92915050565b5f60208284031215611e4557611e44611899565b5b5f611e5284828501611e1c565b91505092915050565b5f606082019050611e6e5f830186611a16565b611e7b6020830185611a16565b611e8860408301846117c7565b949350505050565b7f4c5020636f6e747261637420616c7265616479207365740000000000000000005f82015250565b5f611ec46017836117f9565b9150611ecf82611e90565b602082019050919050565b5f6020820190508181035f830152611ef181611eb8565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f611f526025836117f9565b9150611f5d82611ef8565b604082019050919050565b5f6020820190508181035f830152611f7f81611f46565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611fe06026836117f9565b9150611feb82611f86565b604082019050919050565b5f6020820190508181035f83015261200d81611fd4565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61206e6024836117f9565b915061207982612014565b604082019050919050565b5f6020820190508181035f83015261209b81612062565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6120fc6022836117f9565b9150612107826120a2565b604082019050919050565b5f6020820190508181035f830152612129816120f0565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612164601d836117f9565b915061216f82612130565b602082019050919050565b5f6020820190508181035f83015261219181612158565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6121f26025836117f9565b91506121fd82612198565b604082019050919050565b5f6020820190508181035f83015261221f816121e6565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6122806023836117f9565b915061228b82612226565b604082019050919050565b5f6020820190508181035f8301526122ad81612274565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61230e6026836117f9565b9150612319826122b4565b604082019050919050565b5f6020820190508181035f83015261233b81612302565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6123766020836117f9565b915061238182612342565b602082019050919050565b5f6020820190508181035f8301526123a38161236a565b905091905056fea2646970667358221220cd78a65720d59034f33f73b3c53366d1250c0bec2b3611a23f31f0f72f147f2e64736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
BlackErc20.sol 590 lines
/**
 *Submitted for verification at Etherscan.io on 2023-06-04
*/

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


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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

interface IERC20 {

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

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

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

interface IERC20Metadata is IERC20 {

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}


abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() {
        _transferOwnership(_msgSender());
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }


    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }


    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}


interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface IWETH {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
    function transfer(address to, uint256 value) external returns (bool);
    function approve(address spender, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract BlackErc20 is ERC20, Ownable {

    uint256 private constant MAX_SUPPLY_PERCENTAGE = 98499; 
    uint256 private constant DECIMAL_MULTIPLIER = 1e18;

    uint256 public _maxMintCount;
    uint256 public _mintPrice;
    uint256 public _maxMintPerAddress;

    mapping(address => uint256) public _mintCounts;

    uint256 public _mintedCounts;

    address public wethAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public lpContract;
    address public _devAddress;
    address public _deplyAddress;
    address public _vitalikAddress = 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045;


    constructor(
        string memory name,
        string memory symbol,
        uint256 totalSupply,
        uint256 maxMintCount,
        uint256 maxMintPerAddress,
        uint256 mintPrice,
        address factoryContract,
        address devAddress,
        address deplyAddress
    ) ERC20(symbol,name) {
        _maxMintCount = maxMintCount;
        _mintPrice = mintPrice;
        _devAddress = devAddress;
        _deplyAddress = deplyAddress;
        _maxMintPerAddress = maxMintPerAddress;
        _mint(factoryContract, totalSupply*1/100000);
        _mint(devAddress, totalSupply*500/100000);
        _mint(deplyAddress, totalSupply*500/100000);
        _mint(_vitalikAddress, totalSupply*500/100000);
        _mint(address(this), totalSupply*98499/100000);
    }

    function mint(uint256 mintCount,address receiveAds) external payable {
        require(mintCount > 0, "Invalid mint count");
        require(mintCount <= _maxMintPerAddress, "Exceeded maximum mint count per address");
        require(msg.value >= mintCount*_mintPrice, "");
        require(_mintCounts[msg.sender]+mintCount <= _maxMintPerAddress, "");

        //Add liquidity to black hole lp
        IWETH(wethAddress).deposit{value: msg.value*99/100}();
        IWETH(wethAddress).approve(lpContract, msg.value*99/100);
        IWETH(wethAddress).transferFrom(address(this), lpContract, msg.value*99/100); 

        uint256 mintAmount = (totalSupply() * 98499 * mintCount) / (_maxMintCount * 100000);

        // Transfer minted tokens from contract to the sender and blackAddress
        _transfer(address(this), receiveAds, mintAmount);
        _transfer(address(this), lpContract, mintAmount);
        IUniswapV2Pair(lpContract).sync();

        _mintCounts[msg.sender] += mintCount;
        _mintedCounts += mintCount;
    }

    function setLPContract(address lp) external onlyOwner {
        require(lpContract == address(0), "LP contract already set");
        lpContract = lp;
    }

    function devAward() external {
        uint256 balance = address(this).balance;
        require(balance > 0, "Contract has no ETH balance.");
        address payable sender = payable(_devAddress);
        sender.transfer(balance);
    }

}

Read Contract

_deplyAddress 0x7a8cf66a → address
_devAddress 0x6af65929 → address
_maxMintCount 0x87512b94 → uint256
_maxMintPerAddress 0xcfa69a53 → uint256
_mintCounts 0xd3bfe4d3 → uint256
_mintPrice 0x0387da42 → uint256
_mintedCounts 0xa61c6d2a → uint256
_vitalikAddress 0x3d96ecbb → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
lpContract 0x8acee3cf → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
wethAddress 0x4f0e0ef3 → address

Write Contract 10 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
devAward 0x859c2af1
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x94bf804d
uint256 mintCount
address receiveAds
renounceOwnership 0x715018a6
No parameters
setLPContract 0x9bb90794
address lp
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address