Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x7704b6A495a5Ee97333A5CdDEf36E976179E7D2a
Balance 0 ETH
Nonce 1
Code Size 9129 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9129 bytes
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638cd09d50116100c3578063cc1776d31161007c578063cc1776d3146103b9578063dc1052e2146103d7578063dd62ed3e146103f3578063e30c397814610423578063ea414b2814610441578063f2fde38b1461045d57610158565b80638cd09d50146102e55780638da5cb5b1461030157806395d89b411461031f578063a29a60891461033d578063a457c2d714610359578063a9059cbb1461038957610158565b80633950935111610115578063395093511461023557806349bd5a5e146102655780634f7041a51461028357806370a08231146102a1578063715018a6146102d157806379ba5097146102db57610158565b806306fdde031461015d578063095ea7b31461017b57806318160ddd146101ab57806323b872dd146101c95780632dc0562d146101f9578063313ce56714610217575b600080fd5b610165610479565b60405161017291906117ea565b60405180910390f35b610195600480360381019061019091906118a5565b61050b565b6040516101a29190611900565b60405180910390f35b6101b3610529565b6040516101c0919061192a565b60405180910390f35b6101e360048036038101906101de9190611945565b610533565b6040516101f09190611900565b60405180910390f35b610201610652565b60405161020e91906119a7565b60405180910390f35b61021f610678565b60405161022c91906119de565b60405180910390f35b61024f600480360381019061024a91906118a5565b610681565b60405161025c9190611900565b60405180910390f35b61026d61072d565b60405161027a91906119a7565b60405180910390f35b61028b610753565b604051610298919061192a565b60405180910390f35b6102bb60048036038101906102b691906119f9565b610759565b6040516102c8919061192a565b60405180910390f35b6102d96107a1565b005b6102e36107b5565b005b6102ff60048036038101906102fa9190611a26565b610844565b005b6103096108d7565b60405161031691906119a7565b60405180910390f35b610327610901565b60405161033491906117ea565b60405180910390f35b610357600480360381019061035291906119f9565b610993565b005b610373600480360381019061036e91906118a5565b610b37565b6040516103809190611900565b60405180910390f35b6103a3600480360381019061039e91906118a5565b610c22565b6040516103b09190611900565b60405180910390f35b6103c1610c40565b6040516103ce919061192a565b60405180910390f35b6103f160048036038101906103ec9190611a26565b610c46565b005b61040d60048036038101906104089190611a53565b610cd9565b60405161041a919061192a565b60405180910390f35b61042b610d60565b60405161043891906119a7565b60405180910390f35b61045b600480360381019061045691906119f9565b610d8a565b005b610477600480360381019061047291906119f9565b610f2d565b005b60606003805461048890611ac2565b80601f01602080910402602001604051908101604052809291908181526020018280546104b490611ac2565b80156105015780601f106104d657610100808354040283529160200191610501565b820191906000526020600020905b8154815290600101906020018083116104e457829003601f168201915b5050505050905090565b600061051f610518610fda565b8484610fe2565b6001905092915050565b6000600254905090565b600080600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057f610fda565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461063b5782811015610626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061d90611b65565b60405180910390fd5b61063a85610632610fda565b858403610fe2565b5b6106468585856111ab565b60019150509392505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006012905090565b600061072361068e610fda565b84846001600061069c610fda565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461071e9190611bb4565b610fe2565b6001905092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6107a9611353565b6107b360006113da565b565b60006107bf610fda565b90508073ffffffffffffffffffffffffffffffffffffffff166107e0610d60565b73ffffffffffffffffffffffffffffffffffffffff161461083857806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161082f91906119a7565b60405180910390fd5b610841816113da565b50565b61084c611353565b6009548103610890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088790611c34565b60405180910390fd5b806009819055507fab04935564bd7f43810636a24deb03e99f1516e9ba0b68115f9f8c8e3c08f3336008546009546040516108cc929190611c54565b60405180910390a150565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461091090611ac2565b80601f016020809104026020016040519081016040528092919081815260200182805461093c90611ac2565b80156109895780601f1061095e57610100808354040283529160200191610989565b820191906000526020600020905b81548152906001019060200180831161096c57829003601f168201915b5050505050905090565b61099b611353565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0190611cef565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9190611d81565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa4b0dd282caf0b27d79534f93616ee137652874c49466cb03c5376149d11b87f600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610b2c91906119a7565b60405180910390a150565b60008060016000610b46610fda565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfa90611e13565b60405180910390fd5b610c17610c0e610fda565b85858403610fe2565b600191505092915050565b6000610c36610c2f610fda565b84846111ab565b6001905092915050565b60095481565b610c4e611353565b6008548103610c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8990611e7f565b60405180910390fd5b806008819055507fab04935564bd7f43810636a24deb03e99f1516e9ba0b68115f9f8c8e3c08f333600854600954604051610cce929190611c54565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d92611353565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890611f11565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8890611fa3565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ea263b61aab5ebdcff20c4c0c74c2589ea5ab52149abde19eca17ad52217899600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610f2291906119a7565b60405180910390a150565b610f35611353565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610f956108d7565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104890612035565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b7906120c7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161119e919061192a565b60405180910390a3505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036112235760646008548361121291906120e7565b61121c9190612158565b9050611296565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112955760646009548361128891906120e7565b6112929190612158565b90505b5b6000811115611342576112cc84600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361140b565b80826112d89190612189565b91508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f4b9a052bbc5867cd575ea66f9486d08c22080f51cb61056967ab532b9d550cf18385604051611339929190611c54565b60405180910390a35b61134d84848461140b565b50505050565b61135b610fda565b73ffffffffffffffffffffffffffffffffffffffff166113796108d7565b73ffffffffffffffffffffffffffffffffffffffff16146113d85761139c610fda565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016113cf91906119a7565b60405180910390fd5b565b600660006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556114088161168a565b50565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361147a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114719061222f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e0906122c1565b60405180910390fd5b6114f4838383611750565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561157a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157190612353565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461160d9190611bb4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611671919061192a565b60405180910390a3611684848484611755565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611794578082015181840152602081019050611779565b60008484015250505050565b6000601f19601f8301169050919050565b60006117bc8261175a565b6117c68185611765565b93506117d6818560208601611776565b6117df816117a0565b840191505092915050565b6000602082019050818103600083015261180481846117b1565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061183c82611811565b9050919050565b61184c81611831565b811461185757600080fd5b50565b60008135905061186981611843565b92915050565b6000819050919050565b6118828161186f565b811461188d57600080fd5b50565b60008135905061189f81611879565b92915050565b600080604083850312156118bc576118bb61180c565b5b60006118ca8582860161185a565b92505060206118db85828601611890565b9150509250929050565b60008115159050919050565b6118fa816118e5565b82525050565b600060208201905061191560008301846118f1565b92915050565b6119248161186f565b82525050565b600060208201905061193f600083018461191b565b92915050565b60008060006060848603121561195e5761195d61180c565b5b600061196c8682870161185a565b935050602061197d8682870161185a565b925050604061198e86828701611890565b9150509250925092565b6119a181611831565b82525050565b60006020820190506119bc6000830184611998565b92915050565b600060ff82169050919050565b6119d8816119c2565b82525050565b60006020820190506119f360008301846119cf565b92915050565b600060208284031215611a0f57611a0e61180c565b5b6000611a1d8482850161185a565b91505092915050565b600060208284031215611a3c57611a3b61180c565b5b6000611a4a84828501611890565b91505092915050565b60008060408385031215611a6a57611a6961180c565b5b6000611a788582860161185a565b9250506020611a898582860161185a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611ada57607f821691505b602082108103611aed57611aec611a93565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000611b4f602883611765565b9150611b5a82611af3565b604082019050919050565b60006020820190508181036000830152611b7e81611b42565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611bbf8261186f565b9150611bca8361186f565b9250828201905080821115611be257611be1611b85565b5b92915050565b7f4e65772073656c6c20746178206d75737420626520646966666572656e742e00600082015250565b6000611c1e601f83611765565b9150611c2982611be8565b602082019050919050565b60006020820190508181036000830152611c4d81611c11565b9050919050565b6000604082019050611c69600083018561191b565b611c76602083018461191b565b9392505050565b7f556e697377617020563220706169722063616e6e6f7420626520746865207a6560008201527f726f20616464726573732e000000000000000000000000000000000000000000602082015250565b6000611cd9602b83611765565b9150611ce482611c7d565b604082019050919050565b60006020820190508181036000830152611d0881611ccc565b9050919050565b7f4e657720556e69737761702056322070616972206d757374206265206469666660008201527f6572656e742e0000000000000000000000000000000000000000000000000000602082015250565b6000611d6b602683611765565b9150611d7682611d0f565b604082019050919050565b60006020820190508181036000830152611d9a81611d5e565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611dfd602583611765565b9150611e0882611da1565b604082019050919050565b60006020820190508181036000830152611e2c81611df0565b9050919050565b7f4e65772062757920746178206d75737420626520646966666572656e742e0000600082015250565b6000611e69601e83611765565b9150611e7482611e33565b602082019050919050565b60006020820190508181036000830152611e9881611e5c565b9050919050565b7f5461782077616c6c65742063616e6e6f7420626520746865207a65726f20616460008201527f64726573732e0000000000000000000000000000000000000000000000000000602082015250565b6000611efb602683611765565b9150611f0682611e9f565b604082019050919050565b60006020820190508181036000830152611f2a81611eee565b9050919050565b7f4e6577207461782077616c6c6574206d75737420626520646966666572656e7460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000611f8d602183611765565b9150611f9882611f31565b604082019050919050565b60006020820190508181036000830152611fbc81611f80565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061201f602483611765565b915061202a82611fc3565b604082019050919050565b6000602082019050818103600083015261204e81612012565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006120b1602283611765565b91506120bc82612055565b604082019050919050565b600060208201905081810360008301526120e0816120a4565b9050919050565b60006120f28261186f565b91506120fd8361186f565b925082820261210b8161186f565b9150828204841483151761212257612121611b85565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006121638261186f565b915061216e8361186f565b92508261217e5761217d612129565b5b828204905092915050565b60006121948261186f565b915061219f8361186f565b92508282039050818111156121b7576121b6611b85565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000612219602583611765565b9150612224826121bd565b604082019050919050565b600060208201905081810360008301526122488161220c565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006122ab602383611765565b91506122b68261224f565b604082019050919050565b600060208201905081810360008301526122da8161229e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061233d602683611765565b9150612348826122e1565b604082019050919050565b6000602082019050818103600083015261236c81612330565b905091905056fea2646970667358221220bd9aaa804ce7bcfbfb5e59b52458663508fa586232a0cc1da7d6b9a5ff9bdcf164736f6c63430008130033

Verified Source Code Partial Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: No
JessicaPorkPorksGF.sol 390 lines
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
   
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    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 recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
            unchecked {
                _approve(sender, _msgSender(), currentAllowance - amount);
            }
        }

        _transfer(sender, recipient, amount);

        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

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

abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

contract JessicaPorkPorksGF is ERC20, Ownable2Step {

    address public uniswapV2Pair = 0xC532a74256D3Db42D0Bf7a0400fEFDbad7694008;

    uint256 public buyTax = 3; // 3%
    uint256 public sellTax = 4; // 4%
    address public taxWallet;


    event TaxRateChanged(uint256 newBuyTax, uint256 newSellTax);
    event TaxWalletChanged(address newTaxWallet);
    event UniswapV2PairChanged(address newUniswapV2Pair);
    event TaxApplied(address indexed sender, address indexed recipient, uint256 taxAmount, uint256 netAmount);

    constructor(address _taxWallet) Ownable(msg.sender) ERC20("Jessica Pork Porks Girlfriend", "JPPG") {
        taxWallet = _taxWallet;
        _mint(msg.sender, 420_690_000_000_000 * (10 ** uint256(decimals())));
    }
    
    function setBuyTax(uint256 _buyTax) external onlyOwner {
        require(_buyTax != buyTax, "New buy tax must be different.");
        buyTax = _buyTax;
        emit TaxRateChanged(buyTax, sellTax);
    }

    function setSellTax(uint256 _sellTax) external onlyOwner {
        require(_sellTax != sellTax, "New sell tax must be different.");
        sellTax = _sellTax;
        emit TaxRateChanged(buyTax, sellTax);
    }

    function setTaxWallet(address _taxWallet) external onlyOwner {
        require(_taxWallet != address(0), "Tax wallet cannot be the zero address.");
        require(_taxWallet != taxWallet, "New tax wallet must be different.");
        taxWallet = _taxWallet;
        emit TaxWalletChanged(taxWallet);
    }

    function setUniswapV2Pair(address _uniswapV2Pair) external onlyOwner {
        require(_uniswapV2Pair != address(0), "Uniswap V2 pair cannot be the zero address.");
        require(_uniswapV2Pair != uniswapV2Pair, "New Uniswap V2 pair must be different.");
        uniswapV2Pair = _uniswapV2Pair;
        emit UniswapV2PairChanged(uniswapV2Pair);
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual override {
        uint256 taxAmount = 0;

        if (sender == uniswapV2Pair) {
            // Buy transaction
            taxAmount = (amount * buyTax) / 100;
        } else if (recipient == uniswapV2Pair) {
            // Sell transaction
            taxAmount = (amount * sellTax) / 100;
        }

        if (taxAmount > 0) {
            super._transfer(sender, taxWallet, taxAmount);
            amount -= taxAmount;
            emit TaxApplied(sender, recipient, taxAmount, amount);
        }

        super._transfer(sender, recipient, amount);
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pendingOwner 0xe30c3978 → address
sellTax 0xcc1776d3 → uint256
symbol 0x95d89b41 → string
taxWallet 0x2dc0562d → address
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address

Write Contract 12 functions

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

acceptOwnership 0x79ba5097
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setBuyTax 0xdc1052e2
uint256 _buyTax
setSellTax 0x8cd09d50
uint256 _sellTax
setTaxWallet 0xea414b28
address _taxWallet
setUniswapV2Pair 0xa29a6089
address _uniswapV2Pair
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address