Address Contract Partially Verified
Address
0x320385231c35FfA51aEB9dbFd9229d37311D303A
Balance
0 ETH
Nonce
1
Code Size
8694 bytes
Creator
0x72F857EF...9d26 at tx 0x07382ae6...dae838
Indexed Transactions
0
Contract Bytecode
8694 bytes
0x60806040526004361061013f575f3560e01c8063715018a6116100b5578063a9059cbb1161006e578063a9059cbb1461042b578063ad5c464814610467578063b7bda68f14610491578063d7acff50146104bb578063dd62ed3e146104d7578063f2fde38b146105135761013f565b8063715018a6146103475780638da5cb5b1461035d578063935050521461038757806395d89b41146103b15780639de7ed73146103db578063a2fcdea8146104035761013f565b8063313ce56711610107578063313ce567146102395780633c8463a114610263578063407c1eab1461028d5780634147c6a7146102b75780636caae832146102e157806370a082311461030b5761013f565b806306fdde0314610143578063095ea7b31461016d5780630b41a6db146101a957806318160ddd146101d357806323b872dd146101fd575b5f80fd5b34801561014e575f80fd5b5061015761053b565b60405161016491906117f3565b60405180910390f35b348015610178575f80fd5b50610193600480360381019061018e91906118a4565b6105cb565b6040516101a091906118fc565b60405180910390f35b3480156101b4575f80fd5b506101bd6105ed565b6040516101ca9190611970565b60405180910390f35b3480156101de575f80fd5b506101e7610611565b6040516101f49190611998565b60405180910390f35b348015610208575f80fd5b50610223600480360381019061021e91906119b1565b61061a565b60405161023091906118fc565b60405180910390f35b348015610244575f80fd5b5061024d610648565b60405161025a9190611a1c565b60405180910390f35b34801561026e575f80fd5b5061027761065d565b6040516102849190611998565b60405180910390f35b348015610298575f80fd5b506102a1610663565b6040516102ae9190611a55565b60405180910390f35b3480156102c2575f80fd5b506102cb610688565b6040516102d89190611a1c565b60405180910390f35b3480156102ec575f80fd5b506102f561069b565b6040516103029190611998565b60405180910390f35b348015610316575f80fd5b50610331600480360381019061032c9190611a6e565b6106a1565b60405161033e9190611998565b60405180910390f35b348015610352575f80fd5b5061035b6106e6565b005b348015610368575f80fd5b506103716106f9565b60405161037e9190611aa8565b60405180910390f35b348015610392575f80fd5b5061039b610721565b6040516103a89190611a1c565b60405180910390f35b3480156103bc575f80fd5b506103c5610734565b6040516103d291906117f3565b60405180910390f35b3480156103e6575f80fd5b5061040160048036038101906103fc9190611aeb565b6107c4565b005b34801561040e575f80fd5b5061042960048036038101906104249190611aeb565b61085d565b005b348015610436575f80fd5b50610451600480360381019061044c91906118a4565b610910565b60405161045e91906118fc565b60405180910390f35b348015610472575f80fd5b5061047b610932565b6040516104889190611aa8565b60405180910390f35b34801561049c575f80fd5b506104a5610956565b6040516104b29190611aa8565b60405180910390f35b6104d560048036038101906104d09190611b29565b61097c565b005b3480156104e2575f80fd5b506104fd60048036038101906104f89190611b79565b610abc565b60405161050a9190611998565b60405180910390f35b34801561051e575f80fd5b5061053960048036038101906105349190611a6e565b610b3e565b005b60606003805461054a90611be4565b80601f016020809104026020016040519081016040528092919081815260200182805461057690611be4565b80156105c15780601f10610598576101008083540402835291602001916105c1565b820191905f5260205f20905b8154815290600101906020018083116105a457829003601f168201915b5050505050905090565b5f806105d5610bc2565b90506105e2818585610bc9565b600191505092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b5f80610624610bc2565b9050610631858285610bdb565b61063c858585610c6d565b60019150509392505050565b5f60095f9054906101000a900460ff16905090565b600b5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960019054906101000a900460ff1681565b600a5481565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6106ee611147565b6106f75f6111ce565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960029054906101000a900460ff1681565b60606004805461074390611be4565b80601f016020809104026020016040519081016040528092919081815260200182805461076f90611be4565b80156107ba5780601f10610791576101008083540402835291602001916107ba565b820191905f5260205f20905b81548152906001019060200180831161079d57829003601f168201915b5050505050905090565b6107cc611147565b60328260ff16111580156107e4575060328160ff1611155b610823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081a90611c5e565b60405180910390fd5b81600960016101000a81548160ff021916908360ff16021790555080600960026101000a81548160ff021916908360ff1602179055505050565b610865611147565b60648260ff161115801561087d575060648160ff1611155b6108bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b390611cc6565b60405180910390fd5b8160ff1660646108ca610611565b6108d49190611d3e565b6108de9190611d6e565b600b819055508060ff1660646108f2610611565b6108fc9190611d3e565b6109069190611d6e565b600a819055505050565b5f8061091a610bc2565b9050610927818585610c6d565b600191505092915050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001600d5f6101000a81548160ff02191690831515021790555061099e611147565b6109ea307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f611291565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198330865f8087606442610a399190611daf565b6040518863ffffffff1660e01b8152600401610a5a96959493929190611e1b565b60606040518083038185885af1158015610a76573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610a9b9190611e8e565b5050505f600d5f6101000a81548160ff021916908315150217905550505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610b46611147565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bb6575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610bad9190611aa8565b60405180910390fd5b610bbf816111ce565b50565b5f33905090565b610bd68383836001611291565b505050565b5f610be68484610abc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c675781811015610c58578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c4f93929190611ede565b60405180910390fd5b610c6684848484035f611291565b5b50505050565b600c54431115610cae575f600960016101000a81548160ff021916908360ff1602179055505f600960026101000a81548160ff021916908360ff1602179055505b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1390611f83565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8190612011565b60405180910390fd5b80610d94846106a1565b1015610dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcc9061209f565b60405180910390fd5b600a54811115610e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1190612107565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610ec1575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8015610ed95750600d5f9054906101000a900460ff16155b156110de575f8190505f600960019054906101000a900460ff1660ff16606484610f039190611d3e565b610f0d9190611d6e565b90505f600960029054906101000a900460ff1660ff16606485610f309190611d3e565b610f3a9190611d6e565b905060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff160361103157600b54610f9c866106a1565b85610fa79190611daf565b1115610fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdf9061216f565b60405180910390fd5b5f82111561102c5761101d86600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611460565b8184611029919061218d565b92505b6110cb565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036110ca575f8111156110c9576110ba86600960039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611460565b80846110c6919061218d565b92505b5b5b6110d6868685611460565b505050611142565b600b546110ea836106a1565b826110f59190611daf565b1115611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d9061216f565b60405180910390fd5b611141838383611460565b5b505050565b61114f610bc2565b73ffffffffffffffffffffffffffffffffffffffff1661116d6106f9565b73ffffffffffffffffffffffffffffffffffffffff16146111cc57611190610bc2565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016111c39190611aa8565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611301575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016112f89190611aa8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611371575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016113689190611aa8565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561145a578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516114519190611998565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114d0575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016114c79190611aa8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611540575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016115379190611aa8565b60405180910390fd5b61154b838383611550565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115a0578060025f8282546115949190611daf565b9250508190555061166e565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611629578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161162093929190611ede565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116b5578060025f82825403925050819055506116ff565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161175c9190611998565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156117a0578082015181840152602081019050611785565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6117c582611769565b6117cf8185611773565b93506117df818560208601611783565b6117e8816117ab565b840191505092915050565b5f6020820190508181035f83015261180b81846117bb565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61184082611817565b9050919050565b61185081611836565b811461185a575f80fd5b50565b5f8135905061186b81611847565b92915050565b5f819050919050565b61188381611871565b811461188d575f80fd5b50565b5f8135905061189e8161187a565b92915050565b5f80604083850312156118ba576118b9611813565b5b5f6118c78582860161185d565b92505060206118d885828601611890565b9150509250929050565b5f8115159050919050565b6118f6816118e2565b82525050565b5f60208201905061190f5f8301846118ed565b92915050565b5f819050919050565b5f61193861193361192e84611817565b611915565b611817565b9050919050565b5f6119498261191e565b9050919050565b5f61195a8261193f565b9050919050565b61196a81611950565b82525050565b5f6020820190506119835f830184611961565b92915050565b61199281611871565b82525050565b5f6020820190506119ab5f830184611989565b92915050565b5f805f606084860312156119c8576119c7611813565b5b5f6119d58682870161185d565b93505060206119e68682870161185d565b92505060406119f786828701611890565b9150509250925092565b5f60ff82169050919050565b611a1681611a01565b82525050565b5f602082019050611a2f5f830184611a0d565b92915050565b5f611a3f8261193f565b9050919050565b611a4f81611a35565b82525050565b5f602082019050611a685f830184611a46565b92915050565b5f60208284031215611a8357611a82611813565b5b5f611a908482850161185d565b91505092915050565b611aa281611836565b82525050565b5f602082019050611abb5f830184611a99565b92915050565b611aca81611a01565b8114611ad4575f80fd5b50565b5f81359050611ae581611ac1565b92915050565b5f8060408385031215611b0157611b00611813565b5b5f611b0e85828601611ad7565b9250506020611b1f85828601611ad7565b9150509250929050565b5f805f60608486031215611b4057611b3f611813565b5b5f611b4d86828701611890565b9350506020611b5e86828701611890565b9250506040611b6f8682870161185d565b9150509250925092565b5f8060408385031215611b8f57611b8e611813565b5b5f611b9c8582860161185d565b9250506020611bad8582860161185d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611bfb57607f821691505b602082108103611c0e57611c0d611bb7565b5b50919050565b7f546178206c696d697400000000000000000000000000000000000000000000005f82015250565b5f611c48600983611773565b9150611c5382611c14565b602082019050919050565b5f6020820190508181035f830152611c7581611c3c565b9050919050565b7f4c696d697420746f6f20686967680000000000000000000000000000000000005f82015250565b5f611cb0600e83611773565b9150611cbb82611c7c565b602082019050919050565b5f6020820190508181035f830152611cdd81611ca4565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611d4882611871565b9150611d5383611871565b925082611d6357611d62611ce4565b5b828204905092915050565b5f611d7882611871565b9150611d8383611871565b9250828202611d9181611871565b91508282048414831517611da857611da7611d11565b5b5092915050565b5f611db982611871565b9150611dc483611871565b9250828201905080821115611ddc57611ddb611d11565b5b92915050565b5f819050919050565b5f611e05611e00611dfb84611de2565b611915565b611871565b9050919050565b611e1581611deb565b82525050565b5f60c082019050611e2e5f830189611a99565b611e3b6020830188611989565b611e486040830187611e0c565b611e556060830186611e0c565b611e626080830185611a99565b611e6f60a0830184611989565b979650505050505050565b5f81519050611e888161187a565b92915050565b5f805f60608486031215611ea557611ea4611813565b5b5f611eb286828701611e7a565b9350506020611ec386828701611e7a565b9250506040611ed486828701611e7a565b9150509250925092565b5f606082019050611ef15f830186611a99565b611efe6020830185611989565b611f0b6040830184611989565b949350505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f611f6d602583611773565b9150611f7882611f13565b604082019050919050565b5f6020820190508181035f830152611f9a81611f61565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f611ffb602383611773565b915061200682611fa1565b604082019050919050565b5f6020820190508181035f83015261202881611fef565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612089602683611773565b91506120948261202f565b604082019050919050565b5f6020820190508181035f8301526120b68161207d565b9050919050565b7f5478206c696d69742065786365656465640000000000000000000000000000005f82015250565b5f6120f1601183611773565b91506120fc826120bd565b602082019050919050565b5f6020820190508181035f83015261211e816120e5565b9050919050565b7f57616c6c6574206c696d697420657863656564656400000000000000000000005f82015250565b5f612159601583611773565b915061216482612125565b602082019050919050565b5f6020820190508181035f8301526121868161214d565b9050919050565b5f61219782611871565b91506121a283611871565b92508282039050818111156121ba576121b9611d11565b5b9291505056fea2646970667358221220bfb2777470fc1a519eb9f6d5b8743b2f523ece55d35e93aab7646a043b34d8f064736f6c63430008140033
Verified Source Code Partial Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
SEAGAL.sol 1222 lines
// _____ _ _____ _ // / ____| | | / ____| (_) // | (___ ___ __ _ __ _ __ _| | | | ___ _ _ __ // \___ \ / _ \/ _` |/ _` |/ _` | | | | / _ \| | '_ \ // ____) | __/ (_| | (_| | (_| | | | |___| (_) | | | | | // |_____/ \___|\__,_|\__, |\__,_|_| \_____\___/|_|_| |_| // __/ | // |___/ // Twitter/X: https://twitter.com/seagalcoin // Telegram: https://t.me/seagalcoin // Website: https://seagalcoin.com/ // Sources flattened with hardhat v2.18.3 https://hardhat.org // SPDX-License-Identifier: MIT AND UNLICENSED // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 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; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * 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; /** * @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); } } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`ÔÇÖs `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`ÔÇÖs approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`ÔÇÖs approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal virtual { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } // File contracts/Token.sol // Original license: SPDX_License_Identifier: UNLICENSED pragma solidity ^0.8.19; // Uncomment this line to use console.log // import "hardhat/console.sol"; // import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"; // import "@uniswap/v2-core/contracts/UniswapV2Pair.sol"; // import "@uniswap/v2-core/contracts/UniswapV2Factory.sol"; // import "@uniswap/v2-periphery/contracts/UniswapV2Router02.sol"; interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function allPairsLength() external view returns (uint256); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 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 (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); 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 (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } // interface IERC20 { // function approve(address spender, uint256 amount) external returns (bool); // } contract SEAGAL is ERC20, Ownable { IUniswapV2Router02 public immutable ROUTER_V2 = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address public immutable WETH; IUniswapV2Pair public POOL_PAIR_V2; uint256 private constant MAX_INT = 115792089237316195423570985008687907853269984665640564039457584007913129639935; string private tokenName = "Seagal Coin"; string private tokenSymbol = "SEAGAL"; uint8 newDecimals = 18; uint8 public buy_tax = 0; // 0%-100% uint8 public sell_tax = 0; // 0%-100% address public taxAddress = 0x81AF5388ea805C6283bB67Cb566bf76603f368F9; uint256 public txLimit; uint256 public walletLimit; uint256 private fourWeeksInBlocks; bool inSwapAndLiquify; modifier lockTheSwap() { inSwapAndLiquify = true; _; inSwapAndLiquify = false; } constructor() ERC20(tokenName, tokenSymbol) Ownable(msg.sender) { WETH = ROUTER_V2.WETH(); _mint(address(this), 1_988_000_000_000 * 10 ** decimals()); POOL_PAIR_V2 = IUniswapV2Pair(IUniswapV2Factory(ROUTER_V2.factory()).createPair(address(this), ROUTER_V2.WETH())); txLimit = totalSupply(); walletLimit = totalSupply(); fourWeeksInBlocks = block.number + 180000; // IERC20(path[i]).safeApprove(address(_router), MAX_INT); } function decimals() public view override returns (uint8) { return newDecimals; } function addLiquidityETH(uint256 tokenAmount, uint256 ethAmount, address to) external lockTheSwap onlyOwner payable { // POOL_PAIR_V2 = IUniswapV2Pair(IUniswapV2Factory(ROUTER_V2.factory()).createPair(address(this), ROUTER_V2.WETH())); _approve(address(this), address(ROUTER_V2), MAX_INT, false); ROUTER_V2.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, 0, to, block.timestamp + 100 ); } function _transfer(address from, address to, uint256 amount) internal virtual override { if(block.number > fourWeeksInBlocks) { buy_tax = 0; // 0%-100% sell_tax = 0; // 0%-100% } require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(balanceOf(from) >= amount, "ERC20: transfer amount exceeds balance"); require(amount <= txLimit, "Tx limit exceeded"); if ((from == address(POOL_PAIR_V2) || to == address(POOL_PAIR_V2)) && !inSwapAndLiquify) { uint256 transferAmount = amount; uint256 buyTaxAmount = (amount / 100) * buy_tax; uint256 sellTaxAmount = (amount / 100) * sell_tax; if(from == address(POOL_PAIR_V2)) { require((amount + balanceOf(to)) <= walletLimit, "Wallet limit exceeded"); if(buyTaxAmount > 0) { super._transfer(from, taxAddress, buyTaxAmount); transferAmount = (amount - buyTaxAmount); } } else if(to == address(POOL_PAIR_V2)) { if(sellTaxAmount > 0) { super._transfer(from, taxAddress, sellTaxAmount); transferAmount = (amount - sellTaxAmount); } } super._transfer(from, to, transferAmount); } else { require((amount + balanceOf(to)) <= walletLimit, "Wallet limit exceeded"); super._transfer(from, to, amount); } } function changeLimits(uint8 newWalletLimitPercentage, uint8 newTxLimitPercentage) external onlyOwner { require(newWalletLimitPercentage <= 100 && newTxLimitPercentage <= 100, "Limit too high"); walletLimit = (totalSupply() / 100) * newWalletLimitPercentage; txLimit = (totalSupply() / 100) * newTxLimitPercentage; } function changeTaxes(uint8 newBuyTax, uint8 newSellTax) external onlyOwner { require(newBuyTax <= 50 && newSellTax <= 50, "Tax limit"); buy_tax = newBuyTax; // 0%-100% sell_tax = newSellTax; // 0%-100% } }
Read Contract
POOL_PAIR_V2 0x407c1eab → address
ROUTER_V2 0x0b41a6db → address
WETH 0xad5c4648 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buy_tax 0x4147c6a7 → uint8
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sell_tax 0x93505052 → uint8
symbol 0x95d89b41 → string
taxAddress 0xb7bda68f → address
totalSupply 0x18160ddd → uint256
txLimit 0x6caae832 → uint256
walletLimit 0x3c8463a1 → uint256
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
addLiquidityETH 0xd7acff50
uint256 tokenAmount
uint256 ethAmount
address to
approve 0x095ea7b3
address spender
uint256 value
returns: bool
changeLimits 0xa2fcdea8
uint8 newWalletLimitPercentage
uint8 newTxLimitPercentage
changeTaxes 0x9de7ed73
uint8 newBuyTax
uint8 newSellTax
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address