Address Contract Partially Verified
Address
0x9CBb5BcF2848aE70C6950F4969092f691276A852
Balance
0 ETH
Nonce
1
Code Size
10076 bytes
Creator
0xBFE93B37...C2B0 at tx 0xeedf0e8f...516746
Indexed Transactions
0
Contract Bytecode
10076 bytes
0x6080604052600436106101855760003560e01c806375f0a874116100d1578063b62496f51161008a578063e0f3ccf511610064578063e0f3ccf5146105b9578063e2f45605146105e4578063e4748b9e1461060f578063f2fde38b1461063a5761018c565b8063b62496f514610516578063c024666814610553578063dd62ed3e1461057c5761018c565b806375f0a874146103f25780638da5cb5b1461041d57806395d89b41146104485780639a7a23d614610473578063a457c2d71461049c578063a9059cbb146104d95761018c565b8063395093511161013e57806359d0f7131161011857806359d0f7131461034a5780635d098b381461037557806370a082311461039e578063715018a6146103db5761018c565b806339509351146102b757806349bd5a5e146102f4578063599270441461031f5761018c565b806306fdde0314610191578063095ea7b3146101bc5780631694505e146101f957806318160ddd1461022457806323b872dd1461024f578063313ce5671461028c5761018c565b3661018c57005b600080fd5b34801561019d57600080fd5b506101a6610663565b6040516101b39190611a1e565b60405180910390f35b3480156101c857600080fd5b506101e360048036038101906101de9190611ad9565b6106f5565b6040516101f09190611b34565b60405180910390f35b34801561020557600080fd5b5061020e610718565b60405161021b9190611bae565b60405180910390f35b34801561023057600080fd5b5061023961073e565b6040516102469190611bd8565b60405180910390f35b34801561025b57600080fd5b5061027660048036038101906102719190611bf3565b610748565b6040516102839190611b34565b60405180910390f35b34801561029857600080fd5b506102a1610777565b6040516102ae9190611c62565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190611ad9565b610780565b6040516102eb9190611b34565b60405180910390f35b34801561030057600080fd5b506103096107b7565b6040516103169190611c8c565b60405180910390f35b34801561032b57600080fd5b506103346107dd565b6040516103419190611c8c565b60405180910390f35b34801561035657600080fd5b5061035f610803565b60405161036c9190611c8c565b60405180910390f35b34801561038157600080fd5b5061039c60048036038101906103979190611ca7565b610829565b005b3480156103aa57600080fd5b506103c560048036038101906103c09190611ca7565b610875565b6040516103d29190611bd8565b60405180910390f35b3480156103e757600080fd5b506103f06108bd565b005b3480156103fe57600080fd5b506104076108d1565b6040516104149190611c8c565b60405180910390f35b34801561042957600080fd5b506104326108f7565b60405161043f9190611c8c565b60405180910390f35b34801561045457600080fd5b5061045d610921565b60405161046a9190611a1e565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190611d00565b6109b3565b005b3480156104a857600080fd5b506104c360048036038101906104be9190611ad9565b610a59565b6040516104d09190611b34565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb9190611ad9565b610ad0565b60405161050d9190611b34565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190611ca7565b610af3565b60405161054a9190611b34565b60405180910390f35b34801561055f57600080fd5b5061057a60048036038101906105759190611d00565b610b13565b005b34801561058857600080fd5b506105a3600480360381019061059e9190611d40565b610b76565b6040516105b09190611bd8565b60405180910390f35b3480156105c557600080fd5b506105ce610bfd565b6040516105db9190611bd8565b60405180910390f35b3480156105f057600080fd5b506105f9610c03565b6040516106069190611bd8565b60405180910390f35b34801561061b57600080fd5b50610624610c09565b6040516106319190611bd8565b60405180910390f35b34801561064657600080fd5b50610661600480360381019061065c9190611ca7565b610c0f565b005b60606003805461067290611daf565b80601f016020809104026020016040519081016040528092919081815260200182805461069e90611daf565b80156106eb5780601f106106c0576101008083540402835291602001916106eb565b820191906000526020600020905b8154815290600101906020018083116106ce57829003601f168201915b5050505050905090565b600080610700610c92565b905061070d818585610c9a565b600191505092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600080610753610c92565b9050610760858285610e63565b61076b858585610eef565b60019150509392505050565b60006012905090565b60008061078b610c92565b90506107ac81858561079d8589610b76565b6107a79190611e0f565b610c9a565b600191505092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610831611269565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6108c5611269565b6108cf60006112e7565b565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461093090611daf565b80601f016020809104026020016040519081016040528092919081815260200182805461095c90611daf565b80156109a95780601f1061097e576101008083540402835291602001916109a9565b820191906000526020600020905b81548152906001019060200180831161098c57829003601f168201915b5050505050905090565b6109bb611269565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4290611e8f565b60405180910390fd5b610a5582826113ad565b5050565b600080610a64610c92565b90506000610a728286610b76565b905083811015610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae90611f21565b60405180910390fd5b610ac48286868403610c9a565b60019250505092915050565b600080610adb610c92565b9050610ae8818585610eef565b600191505092915050565b600e6020528060005260406000206000915054906101000a900460ff1681565b610b1b611269565b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600b5481565b600c5481565b600a5481565b610c17611269565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d90611fb3565b60405180910390fd5b610c8f816112e7565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0090612045565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6f906120d7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610e569190611bd8565b60405180910390a3505050565b6000610e6f8484610b76565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ee95781811015610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed290612143565b60405180910390fd5b610ee88484848403610c9a565b5b50505050565b60008111610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f29906121d5565b60405180910390fd5b600960149054906101000a900460ff16158015610f995750600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015610fef5750600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156110455750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611089576001600960146101000a81548160ff02191690831515021790555061106d611408565b6000600960146101000a81548160ff0219169083151502179055505b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156110e657506000600b54115b1561110c576064600b54836110fb91906121f5565b6111059190612266565b905061118a565b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561116757506000600a54115b15611189576064600a548361117c91906121f5565b6111869190612266565b90505b5b600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061122b5750600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561123557600090505b6000811115611258576112498430836114cb565b80826112559190612297565b91505b6112638484846114cb565b50505050565b611271610c92565b73ffffffffffffffffffffffffffffffffffffffff1661128f6108f7565b73ffffffffffffffffffffffffffffffffffffffff16146112e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112dc90612317565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600061141330610875565b905060008082036114255750506114c9565b600c5482106114c65761143782611741565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161147d90612368565b60006040518083038185875af1925050503d80600081146114ba576040519150601f19603f3d011682016040523d82523d6000602084013e6114bf565b606091505b5050809150505b50505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361153a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611531906123ef565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a090612481565b60405180910390fd5b6115b4838383611984565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561163a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163190612513565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516117289190611bd8565b60405180910390a361173b848484611989565b50505050565b6000600267ffffffffffffffff81111561175e5761175d612533565b5b60405190808252806020026020018201604052801561178c5781602001602082028036833780820191505090505b50905030816000815181106117a4576117a3612562565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561184b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186f91906125a6565b8160018151811061188357611882612562565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506118ea30600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610c9a565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b815260040161194e9594939291906126cc565b600060405180830381600087803b15801561196857600080fd5b505af115801561197c573d6000803e3d6000fd5b505050505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156119c85780820151818401526020810190506119ad565b60008484015250505050565b6000601f19601f8301169050919050565b60006119f08261198e565b6119fa8185611999565b9350611a0a8185602086016119aa565b611a13816119d4565b840191505092915050565b60006020820190508181036000830152611a3881846119e5565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a7082611a45565b9050919050565b611a8081611a65565b8114611a8b57600080fd5b50565b600081359050611a9d81611a77565b92915050565b6000819050919050565b611ab681611aa3565b8114611ac157600080fd5b50565b600081359050611ad381611aad565b92915050565b60008060408385031215611af057611aef611a40565b5b6000611afe85828601611a8e565b9250506020611b0f85828601611ac4565b9150509250929050565b60008115159050919050565b611b2e81611b19565b82525050565b6000602082019050611b496000830184611b25565b92915050565b6000819050919050565b6000611b74611b6f611b6a84611a45565b611b4f565b611a45565b9050919050565b6000611b8682611b59565b9050919050565b6000611b9882611b7b565b9050919050565b611ba881611b8d565b82525050565b6000602082019050611bc36000830184611b9f565b92915050565b611bd281611aa3565b82525050565b6000602082019050611bed6000830184611bc9565b92915050565b600080600060608486031215611c0c57611c0b611a40565b5b6000611c1a86828701611a8e565b9350506020611c2b86828701611a8e565b9250506040611c3c86828701611ac4565b9150509250925092565b600060ff82169050919050565b611c5c81611c46565b82525050565b6000602082019050611c776000830184611c53565b92915050565b611c8681611a65565b82525050565b6000602082019050611ca16000830184611c7d565b92915050565b600060208284031215611cbd57611cbc611a40565b5b6000611ccb84828501611a8e565b91505092915050565b611cdd81611b19565b8114611ce857600080fd5b50565b600081359050611cfa81611cd4565b92915050565b60008060408385031215611d1757611d16611a40565b5b6000611d2585828601611a8e565b9250506020611d3685828601611ceb565b9150509250929050565b60008060408385031215611d5757611d56611a40565b5b6000611d6585828601611a8e565b9250506020611d7685828601611a8e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611dc757607f821691505b602082108103611dda57611dd9611d80565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611e1a82611aa3565b9150611e2583611aa3565b9250828201905080821115611e3d57611e3c611de0565b5b92915050565b7f54686520706169722063616e6e6f742062652072656d6f766564000000000000600082015250565b6000611e79601a83611999565b9150611e8482611e43565b602082019050919050565b60006020820190508181036000830152611ea881611e6c565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000611f0b602583611999565b9150611f1682611eaf565b604082019050919050565b60006020820190508181036000830152611f3a81611efe565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611f9d602683611999565b9150611fa882611f41565b604082019050919050565b60006020820190508181036000830152611fcc81611f90565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061202f602483611999565b915061203a82611fd3565b604082019050919050565b6000602082019050818103600083015261205e81612022565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006120c1602283611999565b91506120cc82612065565b604082019050919050565b600060208201905081810360008301526120f0816120b4565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b600061212d601d83611999565b9150612138826120f7565b602082019050919050565b6000602082019050818103600083015261215c81612120565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b60006121bf602983611999565b91506121ca82612163565b604082019050919050565b600060208201905081810360008301526121ee816121b2565b9050919050565b600061220082611aa3565b915061220b83611aa3565b925082820261221981611aa3565b915082820484148315176122305761222f611de0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061227182611aa3565b915061227c83611aa3565b92508261228c5761228b612237565b5b828204905092915050565b60006122a282611aa3565b91506122ad83611aa3565b92508282039050818111156122c5576122c4611de0565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612301602083611999565b915061230c826122cb565b602082019050919050565b60006020820190508181036000830152612330816122f4565b9050919050565b600081905092915050565b50565b6000612352600083612337565b915061235d82612342565b600082019050919050565b600061237382612345565b9150819050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006123d9602583611999565b91506123e48261237d565b604082019050919050565b60006020820190508181036000830152612408816123cc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061246b602383611999565b91506124768261240f565b604082019050919050565b6000602082019050818103600083015261249a8161245e565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006124fd602683611999565b9150612508826124a1565b604082019050919050565b6000602082019050818103600083015261252c816124f0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506125a081611a77565b92915050565b6000602082840312156125bc576125bb611a40565b5b60006125ca84828501612591565b91505092915050565b6000819050919050565b60006125f86125f36125ee846125d3565b611b4f565b611aa3565b9050919050565b612608816125dd565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61264381611a65565b82525050565b6000612655838361263a565b60208301905092915050565b6000602082019050919050565b60006126798261260e565b6126838185612619565b935061268e8361262a565b8060005b838110156126bf5781516126a68882612649565b97506126b183612661565b925050600181019050612692565b5085935050505092915050565b600060a0820190506126e16000830188611bc9565b6126ee60208301876125ff565b8181036040830152612700818661266e565b905061270f6060830185611c7d565b61271c6080830184611bc9565b969550505050505056fea26469706673582212203978abea246e4652c03902d07bd35062dfbf4615a5e88cc5f9e096d684744aaf64736f6c63430008120033
Verified Source Code Partial Match
Compiler: v0.8.18+commit.87f61d96
EVM: paris
Optimization: No
ITIX.sol 775 lines
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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/Ownable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @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
* 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;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
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`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
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/ERC20.sol
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
/**
* @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}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* 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].
*
* 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.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
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;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override 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 value {ERC20} uses, unless this function is
* 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 override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override 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 `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` 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 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
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 `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `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.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` 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.
*/
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);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
// File: ITIX.sol
pragma solidity ^0.8.4;
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract ITIX is ERC20, Ownable {
uint _totalSupply = 10_000_000*10**18;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
address public uniswapV2Factory;
bool private swapping;
uint256 public buyFees = 5;
uint256 public sellFees = 5;
uint256 public swapTokensAtAmount = _totalSupply / 1000; // 0.1% swap tokens at this amount
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public automatedMarketMakerPairs;
address public marketingWallet = 0x2eE5E9d7FBE441bcdb2Ea26D0417f66252Bc4785;
address public teamWallet = 0x974DC11944449Bc680664EDA5530D3aD7886026f;
receive() external payable {}
constructor() ERC20("ITIX technologies", "ITIX") {
_mint(msg.sender, _totalSupply / 100 * 85);
_mint(teamWallet, _totalSupply / 100 * 15);
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Factory = uniswapV2Router.factory();
uniswapV2Pair = _calculatePairAddress(uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(marketingWallet, true);
}
function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) internal {
automatedMarketMakerPairs[pair] = value;
}
function setMarketingWallet(address wallet) public onlyOwner {
marketingWallet = wallet;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
}
function _calculatePairAddress(address _WETH) internal view returns (address) {
address pair = address(uint160(uint(keccak256(abi.encodePacked(
hex'ff',
uniswapV2Factory,
keccak256(abi.encodePacked(address(this), _WETH)),
hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f'
)))));
return pair;
}
function _transfer(address from, address to, uint256 amount) internal override {
require(amount > 0, "Transfer amount must be greater than zero");
if (
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
_swapBack();
swapping = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
// on sell
if (automatedMarketMakerPairs[to] && sellFees > 0) {
fees = amount * sellFees / 100;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyFees > 0) {
fees = amount * buyFees / 100;
}
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
fees = 0;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
amount -= fees;
}
super._transfer(from, to, amount);
}
function _swapTokensForEth(uint256 tokenAmount) internal {
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 _swapBack() internal {
uint contractBalance = balanceOf(address(this));
bool success;
if (contractBalance == 0) {
return;
}
if (contractBalance >= swapTokensAtAmount) {
_swapTokensForEth(contractBalance);
(success, ) = address(marketingWallet).call{value: address(this).balance}("");
}
}
}
Read Contract
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFees 0xe4748b9e → uint256
decimals 0x313ce567 → uint8
marketingWallet 0x75f0a874 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFees 0xe0f3ccf5 → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
totalSupply 0x18160ddd → uint256
uniswapV2Factory 0x59d0f713 → address
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 10 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setMarketingWallet 0x5d098b38
address wallet
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address