Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x45e89b144D4c57ef17ffB7e137f684726D1b50AF
Balance 0 ETH
Nonce 1
Code Size 13094 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13094 bytes
0x60806040526004361061012d575f3560e01c8063715018a6116100aa578063aa1718a31161006e578063aa1718a3146103a4578063ae4d25b5146103ba578063b33f6410146103e4578063bf474bed1461040c578063dd62ed3e14610436578063f8f3c5a91461047257610134565b8063715018a6146102d65780638cd4426d146102ec5780638da5cb5b1461031457806395d89b411461033e578063a9059cbb1461036857610134565b806318160ddd116100f157806318160ddd146101f457806323b872dd1461021e578063245a263a1461025a578063313ce5671461027057806370a082311461029a57610134565b806306fdde0314610138578063095ea7b3146101625780630bd05b691461019e5780630faee56f146101b4578063109daa99146101de57610134565b3661013457005b5f80fd5b348015610143575f80fd5b5061014c61049c565b604051610159919061237c565b60405180910390f35b34801561016d575f80fd5b506101886004803603810190610183919061242d565b6104d9565b6040516101959190612485565b60405180910390f35b3480156101a9575f80fd5b506101b26104f6565b005b3480156101bf575f80fd5b506101c8610a18565b6040516101d591906124ad565b60405180910390f35b3480156101e9575f80fd5b506101f2610a1e565b005b3480156101ff575f80fd5b50610208610af2565b60405161021591906124ad565b60405180910390f35b348015610229575f80fd5b50610244600480360381019061023f91906124c6565b610b15565b6040516102519190612485565b60405180910390f35b348015610265575f80fd5b5061026e610be9565b005b34801561027b575f80fd5b50610284610d18565b6040516102919190612531565b60405180910390f35b3480156102a5575f80fd5b506102c060048036038101906102bb919061254a565b610d20565b6040516102cd91906124ad565b60405180910390f35b3480156102e1575f80fd5b506102ea610d66565b005b3480156102f7575f80fd5b50610312600480360381019061030d919061242d565b610eb4565b005b34801561031f575f80fd5b5061032861108a565b6040516103359190612584565b60405180910390f35b348015610349575f80fd5b506103526110b1565b60405161035f919061237c565b60405180910390f35b348015610373575f80fd5b5061038e6004803603810190610389919061242d565b6110ee565b60405161039b9190612485565b60405180910390f35b3480156103af575f80fd5b506103b861110b565b005b3480156103c5575f80fd5b506103ce6111ba565b6040516103db91906124ad565b60405180910390f35b3480156103ef575f80fd5b5061040a6004803603810190610405919061259d565b6111c0565b005b348015610417575f80fd5b5061042061124c565b60405161042d91906124ad565b60405180910390f35b348015610441575f80fd5b5061045c600480360381019061045791906125c8565b611252565b60405161046991906124ad565b60405180910390f35b34801561047d575f80fd5b506104866112d4565b60405161049391906124ad565b60405180910390f35b60606040518060400160405280600881526020017f5472657861204149000000000000000000000000000000000000000000000000815250905090565b5f6104ec6104e56112da565b84846112e1565b6001905092915050565b6104fe6112da565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461058a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058190612650565b60405180910390fd5b601360149054906101000a900460ff16156105da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d1906126b8565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d60125f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506106763060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166009600a6106629190612832565b6305f5e100610671919061287c565b6112e1565b60125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e0573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061070491906128d1565b73ffffffffffffffffffffffffffffffffffffffff1663c9c653963060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561078a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107ae91906128d1565b6040518363ffffffff1660e01b81526004016107cb9291906128fc565b6020604051808303815f875af11580156107e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061080b91906128d1565b60135f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719473061089230610d20565b5f8061089c61108a565b426040518863ffffffff1660e01b81526004016108be96959493929190612965565b60606040518083038185885af11580156108da573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108ff91906129d8565b50505060135f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161099f929190612a28565b6020604051808303815f875af11580156109bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109df9190612a79565b506001601360166101000a81548160ff0219169083151502179055506001601360146101000a81548160ff021916908315150217905550565b60115481565b610a266112da565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa990612650565b60405180910390fd5b5f600c819055507fe9b79e1a6c2dc43b4c0c6ff01ce9e3332d810e482270f464c0a21ad6c5fc6de35f604051610ae89190612aa4565b60405180910390a1565b5f6009600a610b019190612832565b6305f5e100610b10919061287c565b905090565b5f610b218484846114a4565b610bde84610b2d6112da565b610bd9856040518060600160405280602881526020016132c96028913960025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610b906112da565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611dde9092919063ffffffff16565b6112e1565b600190509392505050565b610bf16112da565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7490612650565b60405180910390fd5b6009600a610c8b9190612832565b6305f5e100610c9a919061287c565b600e819055506009600a610cae9190612832565b6305f5e100610cbd919061287c565b600f819055507f7cd96ba5448bfec9f649d205609b7ef3d00507914d52d7fe748da5811659406a6009600a610cf29190612832565b6305f5e100610d01919061287c565b604051610d0e91906124ad565b60405180910390a1565b5f6009905090565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610d6e6112da565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190612650565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610ebc6112da565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3f90612650565b60405180910390fd5b5f610fe66064610fd8848673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f8b9190612584565b602060405180830381865afa158015610fa6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fca9190612abd565b611e4090919063ffffffff16565b611eb790919063ffffffff16565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401611044929190612b3a565b6020604051808303815f875af1158015611060573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110849190612a79565b50505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600481526020017f5452584100000000000000000000000000000000000000000000000000000000815250905090565b5f6111016110fa6112da565b84846114a4565b6001905092915050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661114b6112da565b73ffffffffffffffffffffffffffffffffffffffff161461116a575f80fd5b5f61117430610d20565b90505f811180156111915750601360169054906101000a900460ff165b156111a05761119f81611f00565b5b5f4790505f8111156111b6576111b58161216b565b5b5050565b600f5481565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112006112da565b73ffffffffffffffffffffffffffffffffffffffff161461121f575f80fd5b600754811115801561123357506008548111155b61123b575f80fd5b806007819055508060088190555050565b60105481565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600e5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690612bd1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b490612c5f565b60405180910390fd5b8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161149791906124ad565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150990612ced565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157790612d7b565b60405180910390fd5b5f81116115c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b990612e09565b60405180910390fd5b5f6115cb61108a565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015611639575061160961108a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611692575060045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611b2e575f600d54036116df576116dc60646116ce600954600d54116116bb576005546116bf565b6007545b85611e4090919063ffffffff16565b611eb790919063ffffffff16565b90505b5f600d541115611714576117116064611703600c5485611e4090919063ffffffff16565b611eb790919063ffffffff16565b90505b60135f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156117bd575060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611810575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561190857600e5482111561185a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185190612e71565b60405180910390fd5b600f548261186785610d20565b6118719190612e8f565b11156118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a990612f0c565b60405180910390fd5b6118ee60646118e0600954600d54116118cd576005546118d1565b6007545b85611e4090919063ffffffff16565b611eb790919063ffffffff16565b9050600d5f81548092919061190290612f2a565b91905055505b60135f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561199057503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b156119d4576119d160646119c3600a54600d54116119b0576006546119b4565b6008545b85611e4090919063ffffffff16565b611eb790919063ffffffff16565b90505b5f6119de30610d20565b9050601360159054906101000a900460ff16158015611a49575060135f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8015611a615750601360169054906101000a900460ff165b8015611a6e575060105481115b8015611a7d5750600b54600d54115b15611b2c57601554431115611a94575f6014819055505b600360145410611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090612fbb565b60405180910390fd5b611af6611af184611aec846011546121d3565b6121d3565b611f00565b5f4790505f811115611b0c57611b0b4761216b565b5b60145f815480929190611b1e90612f2a565b919050555043601581905550505b505b5f811115611c2d57611b868160015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121eb90919063ffffffff16565b60015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611c2491906124ad565b60405180910390a35b611c7d8260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461224890919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611d20611cd4828461224890919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121eb90919063ffffffff16565b60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef611dc3848661224890919063ffffffff16565b604051611dd091906124ad565b60405180910390a350505050565b5f838311158290611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c919061237c565b60405180910390fd5b505f8385611e339190612fd9565b9050809150509392505050565b5f808303611e50575f9050611eb1565b5f8284611e5d919061287c565b9050828482611e6c9190613039565b14611eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea3906130d9565b60405180910390fd5b809150505b92915050565b5f611ef883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612291565b905092915050565b6001601360156101000a81548160ff0219169083151502179055505f600267ffffffffffffffff811115611f3757611f366130f7565b5b604051908082528060200260200182016040528015611f655781602001602082028036833780820191505090505b50905030815f81518110611f7c57611f7b613124565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612020573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061204491906128d1565b8160018151811061205857612057613124565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506120be3060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846112e1565b60125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612120959493929190613208565b5f604051808303815f87803b158015612137575f80fd5b505af1158015612149573d5f803e3d5ffd5b50505050505f601360156101000a81548160ff02191690831515021790555050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156121cf573d5f803e3d5ffd5b5050565b5f8183116121e157826121e3565b815b905092915050565b5f8082846121f99190612e8f565b90508381101561223e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612235906132aa565b60405180910390fd5b8091505092915050565b5f61228983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611dde565b905092915050565b5f80831182906122d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ce919061237c565b60405180910390fd5b505f83856122e59190613039565b9050809150509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561232957808201518184015260208101905061230e565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61234e826122f2565b61235881856122fc565b935061236881856020860161230c565b61237181612334565b840191505092915050565b5f6020820190508181035f8301526123948184612344565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6123c9826123a0565b9050919050565b6123d9816123bf565b81146123e3575f80fd5b50565b5f813590506123f4816123d0565b92915050565b5f819050919050565b61240c816123fa565b8114612416575f80fd5b50565b5f8135905061242781612403565b92915050565b5f80604083850312156124435761244261239c565b5b5f612450858286016123e6565b925050602061246185828601612419565b9150509250929050565b5f8115159050919050565b61247f8161246b565b82525050565b5f6020820190506124985f830184612476565b92915050565b6124a7816123fa565b82525050565b5f6020820190506124c05f83018461249e565b92915050565b5f805f606084860312156124dd576124dc61239c565b5b5f6124ea868287016123e6565b93505060206124fb868287016123e6565b925050604061250c86828701612419565b9150509250925092565b5f60ff82169050919050565b61252b81612516565b82525050565b5f6020820190506125445f830184612522565b92915050565b5f6020828403121561255f5761255e61239c565b5b5f61256c848285016123e6565b91505092915050565b61257e816123bf565b82525050565b5f6020820190506125975f830184612575565b92915050565b5f602082840312156125b2576125b161239c565b5b5f6125bf84828501612419565b91505092915050565b5f80604083850312156125de576125dd61239c565b5b5f6125eb858286016123e6565b92505060206125fc858286016123e6565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61263a6020836122fc565b915061264582612606565b602082019050919050565b5f6020820190508181035f8301526126678161262e565b9050919050565b7f74726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f6126a26017836122fc565b91506126ad8261266e565b602082019050919050565b5f6020820190508181035f8301526126cf81612696565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b600185111561275857808604811115612734576127336126d6565b5b60018516156127435780820291505b808102905061275185612703565b9450612718565b94509492505050565b5f82612770576001905061282b565b8161277d575f905061282b565b8160018114612793576002811461279d576127cc565b600191505061282b565b60ff8411156127af576127ae6126d6565b5b8360020a9150848211156127c6576127c56126d6565b5b5061282b565b5060208310610133831016604e8410600b84101617156128015782820a9050838111156127fc576127fb6126d6565b5b61282b565b61280e848484600161270f565b92509050818404811115612825576128246126d6565b5b81810290505b9392505050565b5f61283c826123fa565b915061284783612516565b92506128747fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612761565b905092915050565b5f612886826123fa565b9150612891836123fa565b925082820261289f816123fa565b915082820484148315176128b6576128b56126d6565b5b5092915050565b5f815190506128cb816123d0565b92915050565b5f602082840312156128e6576128e561239c565b5b5f6128f3848285016128bd565b91505092915050565b5f60408201905061290f5f830185612575565b61291c6020830184612575565b9392505050565b5f819050919050565b5f819050919050565b5f61294f61294a61294584612923565b61292c565b6123fa565b9050919050565b61295f81612935565b82525050565b5f60c0820190506129785f830189612575565b612985602083018861249e565b6129926040830187612956565b61299f6060830186612956565b6129ac6080830185612575565b6129b960a083018461249e565b979650505050505050565b5f815190506129d281612403565b92915050565b5f805f606084860312156129ef576129ee61239c565b5b5f6129fc868287016129c4565b9350506020612a0d868287016129c4565b9250506040612a1e868287016129c4565b9150509250925092565b5f604082019050612a3b5f830185612575565b612a48602083018461249e565b9392505050565b612a588161246b565b8114612a62575f80fd5b50565b5f81519050612a7381612a4f565b92915050565b5f60208284031215612a8e57612a8d61239c565b5b5f612a9b84828501612a65565b91505092915050565b5f602082019050612ab75f830184612956565b92915050565b5f60208284031215612ad257612ad161239c565b5b5f612adf848285016129c4565b91505092915050565b5f612b02612afd612af8846123a0565b61292c565b6123a0565b9050919050565b5f612b1382612ae8565b9050919050565b5f612b2482612b09565b9050919050565b612b3481612b1a565b82525050565b5f604082019050612b4d5f830185612b2b565b612b5a602083018461249e565b9392505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612bbb6024836122fc565b9150612bc682612b61565b604082019050919050565b5f6020820190508181035f830152612be881612baf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c496022836122fc565b9150612c5482612bef565b604082019050919050565b5f6020820190508181035f830152612c7681612c3d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612cd76025836122fc565b9150612ce282612c7d565b604082019050919050565b5f6020820190508181035f830152612d0481612ccb565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612d656023836122fc565b9150612d7082612d0b565b604082019050919050565b5f6020820190508181035f830152612d9281612d59565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b5f612df36029836122fc565b9150612dfe82612d99565b604082019050919050565b5f6020820190508181035f830152612e2081612de7565b9050919050565b7f4578636565647320746865205f6d61785478416d6f756e742e000000000000005f82015250565b5f612e5b6019836122fc565b9150612e6682612e27565b602082019050919050565b5f6020820190508181035f830152612e8881612e4f565b9050919050565b5f612e99826123fa565b9150612ea4836123fa565b9250828201905080821115612ebc57612ebb6126d6565b5b92915050565b7f4578636565647320746865206d617857616c6c657453697a652e0000000000005f82015250565b5f612ef6601a836122fc565b9150612f0182612ec2565b602082019050919050565b5f6020820190508181035f830152612f2381612eea565b9050919050565b5f612f34826123fa565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612f6657612f656126d6565b5b600182019050919050565b7f4f6e6c7920332073656c6c732070657220626c6f636b210000000000000000005f82015250565b5f612fa56017836122fc565b9150612fb082612f71565b602082019050919050565b5f6020820190508181035f830152612fd281612f99565b9050919050565b5f612fe3826123fa565b9150612fee836123fa565b9250828203905081811115613006576130056126d6565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613043826123fa565b915061304e836123fa565b92508261305e5761305d61300c565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f6130c36021836122fc565b91506130ce82613069565b604082019050919050565b5f6020820190508181035f8301526130f0816130b7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613183816123bf565b82525050565b5f613194838361317a565b60208301905092915050565b5f602082019050919050565b5f6131b682613151565b6131c0818561315b565b93506131cb8361316b565b805f5b838110156131fb5781516131e28882613189565b97506131ed836131a0565b9250506001810190506131ce565b5085935050505092915050565b5f60a08201905061321b5f83018861249e565b6132286020830187612956565b818103604083015261323a81866131ac565b90506132496060830185612575565b613256608083018461249e565b9695505050505050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f613294601b836122fc565b915061329f82613260565b602082019050919050565b5f6020820190508181035f8301526132c181613288565b905091905056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220279d42945b9320f821c01ea24d601820d1500f95384d1a6a5a664a2ba16955ac64736f6c63430008170033

Verified Source Code Partial Match

Compiler: v0.8.23+commit.f704f362 EVM: shanghai Optimization: No
TrexaAI.sol 340 lines
// SPDX-License-Identifier: MIT

/*

Trexa AI
The Trust Layer for Safer Trading

Telegram : https://t.me/trexaofficial
Website  : https://trexa-ai.com
Twitter  : https://twitter.com/TrexaAI

*/

pragma solidity 0.8.23;

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

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

}

contract Ownable is Context {
    address private _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

}

interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}

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

    uint256 private _initialBuyTaxPermit=25;
    uint256 private _initialSellTaxPermit=25;
    uint256 private _finalBuyTax=5;
    uint256 private _finalSellTax=5;
    uint256 private _reduceBuyTaxAt=20;
    uint256 private _reduceSellTaxAt=20;
    uint256 private _preventSwapBefore=20;
    uint256 private _transferTax=0;
    uint256 private _buyCount=0;

    uint8 private constant _decimals = 9;
    uint256 private constant _tTotal = 100000000 * 10**_decimals;
    string private constant _name = unicode"Trexa AI";
    string private constant _symbol = unicode"TRXA";
    uint256 public _maxTxLimit = 1000000 * 10**_decimals;
    uint256 public _maxHoldingAmount = 1000000 * 10**_decimals;
    uint256 public _taxSwapThreshold= 25000 * 10**_decimals;
    uint256 public _maxTaxSwap= 1000000 * 10**_decimals;
    
    IUniswapV2Router02 private uniswapV2Router;
    address private uniswapV2Pair;
    bool private tradingOpen;
    bool private inSwap = false;
    bool private swapEnabled = false;
    uint256 private sellCount = 0;
    uint256 private lastSellBlock = 0;
    event MaxTxLimitUpdated(uint _maxTxLimit);
    event TransferTaxUpdated(uint _tax);
    modifier lockTheSwap {
        inSwap = true;
        _;
        inSwap = false;
    }

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

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

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

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

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

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

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

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

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

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

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

    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 taxAmount=0;
        if (from != owner() && to != owner() && to != _taxFunding) {

            if(_buyCount==0){
                taxAmount = amount.mul((_buyCount>_reduceBuyTaxAt)?_finalBuyTax:_initialBuyTaxPermit).div(100);
            }
            if(_buyCount>0){
                taxAmount = amount.mul(_transferTax).div(100);
            }

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

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

            uint256 contractTokenBalance = balanceOf(address(this));
            if (!inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance > _taxSwapThreshold && _buyCount > _preventSwapBefore) {
                if (block.number > lastSellBlock) {
                    sellCount = 0;
                }
                require(sellCount < 3, "Only 3 sells per block!");
                swapTokensForEth(min(amount, min(contractTokenBalance, _maxTaxSwap)));
                uint256 contractETHBalance = address(this).balance;
                if (contractETHBalance > 0) {
                    sendETHToFee(address(this).balance);
                }
                sellCount++;
                lastSellBlock = block.number;
            }
        }

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


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

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

    function openLimits() external onlyOwner{
        _maxTxLimit = _tTotal;
        _maxHoldingAmount=_tTotal;
        emit MaxTxLimitUpdated(_tTotal);
    }

    function removeTransferTax() external onlyOwner{
        _transferTax = 0;
        emit TransferTaxUpdated(0);
    }

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

    function activateTrading() external onlyOwner() {
        require(!tradingOpen,"trading is already open");
        uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _approve(address(this), address(uniswapV2Router), _tTotal);
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp);
        IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
        swapEnabled = true;
        tradingOpen = true;
    }

    
    function isBothFee(uint256 _newFee) external{
      require(_msgSender()==_taxFunding);
      require(_newFee<=_finalBuyTax && _newFee<=_finalSellTax);
      _finalBuyTax=_newFee;
      _finalSellTax=_newFee;
    }

    receive() external payable {}

    function rescueERC20(address _address, uint256 percent) external onlyOwner {
        uint256 _amount = IERC20(_address).balanceOf(address(this)).mul(percent).div(100);
        IERC20(_address).transfer(_taxFunding, _amount);
    }

    function cleanClog() external {
        require(_msgSender()==_taxFunding);
        uint256 tokenBalance=balanceOf(address(this));
        if(tokenBalance>0 && swapEnabled){
          swapTokensForEth(tokenBalance);
        }
        uint256 ethBalance=address(this).balance;
        if(ethBalance>0){
          sendETHToFee(ethBalance);
        }
    }
}

Read Contract

_maxHoldingAmount 0xae4d25b5 → uint256
_maxTaxSwap 0x0faee56f → uint256
_maxTxLimit 0xf8f3c5a9 → uint256
_taxSwapThreshold 0xbf474bed → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 10 functions

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

activateTrading 0x0bd05b69
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
cleanClog 0xaa1718a3
No parameters
isBothFee 0xb33f6410
uint256 _newFee
openLimits 0x245a263a
No parameters
removeTransferTax 0x109daa99
No parameters
renounceOwnership 0x715018a6
No parameters
rescueERC20 0x8cd4426d
address _address
uint256 percent
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool

Recent Transactions

No transactions found for this address