Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xB40c376D58A84AA713d63742eCdadE52cEbe7e98
Balance 0 ETH
Nonce 1
Code Size 14990 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

14990 bytes
0x608060405260043610610212575f3560e01c8063715018a611610117578063c02466681161009f578063dd62ed3e1161006e578063dd62ed3e14610741578063e2f456051461077d578063f2fde38b146107a7578063f8b45b05146107cf578063ffb54a99146107f957610219565b8063c0246668146106af578063c876d0b9146106d7578063c8c8ebe414610701578063c9567bf91461072b57610219565b806395d89b41116100e657806395d89b41146105cf5780639a7a23d6146105f9578063a0ef91df14610621578063a457c2d714610637578063a9059cbb1461067357610219565b8063715018a61461053f57806371f5f01a146105555780637571336a1461057d5780638da5cb5b146105a557610219565b80633edab5091161019a5780634fbee193116101695780634fbee1931461044b57806352f7c98814610487578063583e0568146104af5780636ddd1713146104d957806370a082311461050357610219565b80633edab509146103b957806342966c68146103cf57806347062402146103f757806349bd5a5e1461042157610219565b806323b872dd116101e157806323b872dd146102c35780632b14ca56146102ff578063311028af14610329578063313ce56714610353578063395093511461037d57610219565b806306fdde031461021d578063095ea7b314610247578063139864a81461028357806318160ddd1461029957610219565b3661021957005b5f80fd5b348015610228575f80fd5b50610231610823565b60405161023e9190612992565b60405180910390f35b348015610252575f80fd5b5061026d60048036038101906102689190612a43565b6108b3565b60405161027a9190612a9b565b60405180910390f35b34801561028e575f80fd5b506102976108d5565b005b3480156102a4575f80fd5b506102ad6108f1565b6040516102ba9190612ac3565b60405180910390f35b3480156102ce575f80fd5b506102e960048036038101906102e49190612adc565b6108fa565b6040516102f69190612a9b565b60405180910390f35b34801561030a575f80fd5b50610313610928565b6040516103209190612ac3565b60405180910390f35b348015610334575f80fd5b5061033d61092e565b60405161034a9190612ac3565b60405180910390f35b34801561035e575f80fd5b50610367610934565b6040516103749190612b47565b60405180910390f35b348015610388575f80fd5b506103a3600480360381019061039e9190612a43565b61093c565b6040516103b09190612a9b565b60405180910390f35b3480156103c4575f80fd5b506103cd610972565b005b3480156103da575f80fd5b506103f560048036038101906103f09190612b60565b610b99565b005b348015610402575f80fd5b5061040b610bad565b6040516104189190612ac3565b60405180910390f35b34801561042c575f80fd5b50610435610bb3565b6040516104429190612b9a565b60405180910390f35b348015610456575f80fd5b50610471600480360381019061046c9190612bb3565b610bd8565b60405161047e9190612a9b565b60405180910390f35b348015610492575f80fd5b506104ad60048036038101906104a89190612bde565b610c2a565b005b3480156104ba575f80fd5b506104c3610c44565b6040516104d09190612c77565b60405180910390f35b3480156104e4575f80fd5b506104ed610c68565b6040516104fa9190612a9b565b60405180910390f35b34801561050e575f80fd5b5061052960048036038101906105249190612bb3565b610c7b565b6040516105369190612ac3565b60405180910390f35b34801561054a575f80fd5b50610553610cc0565b005b348015610560575f80fd5b5061057b60048036038101906105769190612b60565b610cd3565b005b348015610588575f80fd5b506105a3600480360381019061059e9190612cba565b610d67565b005b3480156105b0575f80fd5b506105b9610dc7565b6040516105c69190612b9a565b60405180910390f35b3480156105da575f80fd5b506105e3610def565b6040516105f09190612992565b60405180910390f35b348015610604575f80fd5b5061061f600480360381019061061a9190612cba565b610e7f565b005b34801561062c575f80fd5b50610635610f24565b005b348015610642575f80fd5b5061065d60048036038101906106589190612a43565b61100b565b60405161066a9190612a9b565b60405180910390f35b34801561067e575f80fd5b5061069960048036038101906106949190612a43565b611049565b6040516106a69190612a9b565b60405180910390f35b3480156106ba575f80fd5b506106d560048036038101906106d09190612cba565b61106b565b005b3480156106e2575f80fd5b506106eb611119565b6040516106f89190612a9b565b60405180910390f35b34801561070c575f80fd5b5061071561112c565b6040516107229190612ac3565b60405180910390f35b348015610736575f80fd5b5061073f611132565b005b34801561074c575f80fd5b5061076760048036038101906107629190612cf8565b611171565b6040516107749190612ac3565b60405180910390f35b348015610788575f80fd5b506107916111f3565b60405161079e9190612ac3565b60405180910390f35b3480156107b2575f80fd5b506107cd60048036038101906107c89190612bb3565b6111f9565b005b3480156107da575f80fd5b506107e361127b565b6040516107f09190612ac3565b60405180910390f35b348015610804575f80fd5b5061080d611281565b60405161081a9190612a9b565b60405180910390f35b60606003805461083290612d63565b80601f016020809104026020016040519081016040528092919081815260200182805461085e90612d63565b80156108a95780601f10610880576101008083540402835291602001916108a9565b820191905f5260205f20905b81548152906001019060200180831161088c57829003601f168201915b5050505050905090565b5f806108bd611293565b90506108ca81858561129a565b600191505092915050565b6108dd61145d565b600954600d81905550600954600c81905550565b5f600254905090565b5f80610904611293565b90506109118582856114db565b61091c858585611566565b60019150509392505050565b600b5481565b60095481565b5f6009905090565b5f80610946611293565b90506109678185856109588589611171565b6109629190612dc0565b61129a565b600191505092915050565b61097a61145d565b60115f9054906101000a900460ff16156109c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c090612e3d565b60405180910390fd5b6109f6307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d60095461129a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610a3d30610c7b565b5f8073a49e0758ae81676b61fe396902a3e5cc7961dfb8426040518863ffffffff1660e01b8152600401610a7696959493929190612e94565b60606040518083038185885af1158015610a92573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610ab79190612f07565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610b56929190612f57565b6020604051808303815f875af1158015610b72573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b969190612f92565b50565b610baa610ba4611293565b8261214e565b50565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610c3261145d565b80600b8190555081600a819055505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b601160019054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cc861145d565b610cd15f612311565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d13611293565b73ffffffffffffffffffffffffffffffffffffffff1614610d32575f80fd5b5f610d3c30610c7b565b90505f60648383610d4d9190612fbd565b610d57919061302b565b9050610d62816123d4565b505050565b610d6f61145d565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610dfe90612d63565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2a90612d63565b8015610e755780601f10610e4c57610100808354040283529160200191610e75565b820191905f5260205f20905b815481529060010190602001808311610e5857829003601f168201915b5050505050905090565b610e8761145d565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d906130cb565b60405180910390fd5b610f208282612628565b5050565b5f4711610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d90613133565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610fa6611293565b73ffffffffffffffffffffffffffffffffffffffff1614610fc5575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611008573d5f803e3d5ffd5b50565b5f80611015611293565b90505f6110228286611171565b905083811015611030575f80fd5b61103d828686840361129a565b60019250505092915050565b5f80611053611293565b9050611060818585611566565b600191505092915050565b61107361145d565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df78260405161110d9190612a9b565b60405180910390a25050565b600e60019054906101000a900460ff1681565b600d5481565b61113a61145d565b6001601160016101000a81548160ff021916908315150217905550600160115f6101000a81548160ff021916908315150217905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b61120161145d565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361126f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611266906131c1565b60405180910390fd5b61127881612311565b50565b600c5481565b60115f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611308576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ff9061324f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136d906132dd565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114509190612ac3565b60405180910390a3505050565b611465611293565b73ffffffffffffffffffffffffffffffffffffffff16611483610dc7565b73ffffffffffffffffffffffffffffffffffffffff16146114d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d090613345565b60405180910390fd5b565b5f6114e68484611171565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115605781811015611552576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611549906133ad565b60405180910390fd5b61155f848484840361129a565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9061343b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611642576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611639906134c9565b60405180910390fd5b5f81036116595761165483835f6126c6565b612149565b611661610dc7565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156116cf575061169f610dc7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561170757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611741575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156117595750600e5f9054906101000a900460ff16155b15611ddc5760115f9054906101000a900460ff1661184c5760125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061180c575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61184b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184290613531565b60405180910390fd5b5b600e60019054906101000a900460ff1680156118af575060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611902575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611b02577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156119b0575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611b015743600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015611a3d575043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b611a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a73906135bf565b60405180910390fd5b43600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611b9f575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611c4657600d54811115611be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be09061364d565b60405180910390fd5b600c54611bf583610c7b565b82611c009190612dc0565b1115611c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c38906136b5565b60405180910390fd5b611ddb565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611ce3575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611d3257600d54811115611d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2490613743565b60405180910390fd5b611dda565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611dd957600c54611d8c83610c7b565b82611d979190612dc0565b1115611dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcf906136b5565b60405180910390fd5b5b5b5b5b5f611de630610c7b565b90505f6010548210159050808015611e0a5750601160019054906101000a900460ff165b8015611e225750600e5f9054906101000a900460ff16155b8015611e75575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611ec8575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611f1b575060125f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611f5d576001600e5f6101000a81548160ff021916908315150217905550611f438361288d565b5f600e5f6101000a81548160ff0219169083151502179055505b5f600e5f9054906101000a900460ff16158015611fc1575060125f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612014575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f81156121395760145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561209b576120946064612086600b54886128d490919063ffffffff16565b6128e990919063ffffffff16565b9050612116565b60145f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612115576121126064612104600a54886128d490919063ffffffff16565b6128e990919063ffffffff16565b90505b5b5f81111561212a576121298730836126c6565b5b80856121369190613761565b94505b6121448787876126c6565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b390613804565b60405180910390fd5b6121c7825f836128fe565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561224a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224190613892565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122f99190612ac3565b60405180910390a361230c835f84612903565b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff8111156123f0576123ef6138b0565b5b60405190808252806020026020018201604052801561241e5781602001602082028036833780820191505090505b50905030815f81518110612435576124346138dd565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124d8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124fc919061391e565b816001815181106125105761250f6138dd565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612575307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461129a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b81526004016125f7959493929190613a00565b5f604051808303815f87803b15801561260e575f80fd5b505af1158015612620573d5f803e3d5ffd5b505050505050565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126fd575f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612734575f80fd5b61273f8383836128fe565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561278b575f80fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128749190612ac3565b60405180910390a3612887848484612903565b50505050565b5f61289730610c7b565b90505f81036128a657506128d1565b5f819050600d5481106128b957600d5490505b828111156128c5578290505b6128ce816123d4565b50505b50565b5f81836128e19190612fbd565b905092915050565b5f81836128f6919061302b565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561293f578082015181840152602081019050612924565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61296482612908565b61296e8185612912565b935061297e818560208601612922565b6129878161294a565b840191505092915050565b5f6020820190508181035f8301526129aa818461295a565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6129df826129b6565b9050919050565b6129ef816129d5565b81146129f9575f80fd5b50565b5f81359050612a0a816129e6565b92915050565b5f819050919050565b612a2281612a10565b8114612a2c575f80fd5b50565b5f81359050612a3d81612a19565b92915050565b5f8060408385031215612a5957612a586129b2565b5b5f612a66858286016129fc565b9250506020612a7785828601612a2f565b9150509250929050565b5f8115159050919050565b612a9581612a81565b82525050565b5f602082019050612aae5f830184612a8c565b92915050565b612abd81612a10565b82525050565b5f602082019050612ad65f830184612ab4565b92915050565b5f805f60608486031215612af357612af26129b2565b5b5f612b00868287016129fc565b9350506020612b11868287016129fc565b9250506040612b2286828701612a2f565b9150509250925092565b5f60ff82169050919050565b612b4181612b2c565b82525050565b5f602082019050612b5a5f830184612b38565b92915050565b5f60208284031215612b7557612b746129b2565b5b5f612b8284828501612a2f565b91505092915050565b612b94816129d5565b82525050565b5f602082019050612bad5f830184612b8b565b92915050565b5f60208284031215612bc857612bc76129b2565b5b5f612bd5848285016129fc565b91505092915050565b5f8060408385031215612bf457612bf36129b2565b5b5f612c0185828601612a2f565b9250506020612c1285828601612a2f565b9150509250929050565b5f819050919050565b5f612c3f612c3a612c35846129b6565b612c1c565b6129b6565b9050919050565b5f612c5082612c25565b9050919050565b5f612c6182612c46565b9050919050565b612c7181612c57565b82525050565b5f602082019050612c8a5f830184612c68565b92915050565b612c9981612a81565b8114612ca3575f80fd5b50565b5f81359050612cb481612c90565b92915050565b5f8060408385031215612cd057612ccf6129b2565b5b5f612cdd858286016129fc565b9250506020612cee85828601612ca6565b9150509250929050565b5f8060408385031215612d0e57612d0d6129b2565b5b5f612d1b858286016129fc565b9250506020612d2c858286016129fc565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612d7a57607f821691505b602082108103612d8d57612d8c612d36565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612dca82612a10565b9150612dd583612a10565b9250828201905080821115612ded57612dec612d93565b5b92915050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f612e27601783612912565b9150612e3282612df3565b602082019050919050565b5f6020820190508181035f830152612e5481612e1b565b9050919050565b5f819050919050565b5f612e7e612e79612e7484612e5b565b612c1c565b612a10565b9050919050565b612e8e81612e64565b82525050565b5f60c082019050612ea75f830189612b8b565b612eb46020830188612ab4565b612ec16040830187612e85565b612ece6060830186612e85565b612edb6080830185612b8b565b612ee860a0830184612ab4565b979650505050505050565b5f81519050612f0181612a19565b92915050565b5f805f60608486031215612f1e57612f1d6129b2565b5b5f612f2b86828701612ef3565b9350506020612f3c86828701612ef3565b9250506040612f4d86828701612ef3565b9150509250925092565b5f604082019050612f6a5f830185612b8b565b612f776020830184612ab4565b9392505050565b5f81519050612f8c81612c90565b92915050565b5f60208284031215612fa757612fa66129b2565b5b5f612fb484828501612f7e565b91505092915050565b5f612fc782612a10565b9150612fd283612a10565b9250828202612fe081612a10565b91508282048414831517612ff757612ff6612d93565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61303582612a10565b915061304083612a10565b9250826130505761304f612ffe565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6130b5603983612912565b91506130c08261305b565b604082019050919050565b5f6020820190508181035f8301526130e2816130a9565b9050919050565b7f546f6b656e3a206e6f2045544820696e2074686520636f6e74726163740000005f82015250565b5f61311d601d83612912565b9150613128826130e9565b602082019050919050565b5f6020820190508181035f83015261314a81613111565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6131ab602683612912565b91506131b682613151565b604082019050919050565b5f6020820190508181035f8301526131d88161319f565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613239602483612912565b9150613244826131df565b604082019050919050565b5f6020820190508181035f8301526132668161322d565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6132c7602283612912565b91506132d28261326d565b604082019050919050565b5f6020820190508181035f8301526132f4816132bb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61332f602083612912565b915061333a826132fb565b602082019050919050565b5f6020820190508181035f83015261335c81613323565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613397601d83612912565b91506133a282613363565b602082019050919050565b5f6020820190508181035f8301526133c48161338b565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613425602583612912565b9150613430826133cb565b604082019050919050565b5f6020820190508181035f83015261345281613419565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6134b3602383612912565b91506134be82613459565b604082019050919050565b5f6020820190508181035f8301526134e0816134a7565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f61351b601683612912565b9150613526826134e7565b602082019050919050565b5f6020820190508181035f8301526135488161350f565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e202054727920616761696e206c617465722e0000000000000000000000602082015250565b5f6135a9603583612912565b91506135b48261354f565b604082019050919050565b5f6020820190508181035f8301526135d68161359d565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613637603583612912565b9150613642826135dd565b604082019050919050565b5f6020820190508181035f8301526136648161362b565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f61369f601383612912565b91506136aa8261366b565b602082019050919050565b5f6020820190508181035f8301526136cc81613693565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f61372d603683612912565b9150613738826136d3565b604082019050919050565b5f6020820190508181035f83015261375a81613721565b9050919050565b5f61376b82612a10565b915061377683612a10565b925082820390508181111561378e5761378d612d93565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6137ee602183612912565b91506137f982613794565b604082019050919050565b5f6020820190508181035f83015261381b816137e2565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f61387c602283612912565b915061388782613822565b604082019050919050565b5f6020820190508181035f8301526138a981613870565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613918816129e6565b92915050565b5f60208284031215613933576139326129b2565b5b5f6139408482850161390a565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61397b816129d5565b82525050565b5f61398c8383613972565b60208301905092915050565b5f602082019050919050565b5f6139ae82613949565b6139b88185613953565b93506139c383613963565b805f5b838110156139f35781516139da8882613981565b97506139e583613998565b9250506001810190506139c6565b5085935050505092915050565b5f60a082019050613a135f830188612ab4565b613a206020830187612e85565b8181036040830152613a3281866139a4565b9050613a416060830185612b8b565b613a4e6080830184612ab4565b969550505050505056fea2646970667358221220c35ba753ae7bf8e25a664b6c1b1ac0a9d40eb00ba89003054b5fde842e25c0d064736f6c63430008140033

Verified Source Code Full Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
xyz.sol 732 lines
/**
 *Submitted for verification at Etherscan.io on 2025-07-22
*/

/*
AgentXYZ | Trading Terminal
2025 Seedify Hackathon Winner. AI Trading Terminal with institutional-grade data & analytics. 
Website:        https://www.agentxyz.io/
Twitter/X:      https://x.com/AgentXYZ_ai
Nostradamus:    https://www.nostradamusxyz.io/
Litepaper:      https://docsend.com/view/jhpwgepzx6c4atzq
*/


// SPDX-License-Identifier: MIT

// $XYZ
pragma solidity ^0.8.20;
pragma experimental ABIEncoderV2;

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

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

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IERC20 {

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, 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 from, address to, uint256 amount) external returns (bool);
}

interface IERC20Metadata is IERC20 {

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

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 getPair(address tokenA, address tokenB)
    external
    view
    returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    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 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 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 IUniswapV2Router02 {
    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 swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

library SafeMath {

    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

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

    function per(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= 100);
        return a * b / 100;
    }

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

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual override returns (uint8) {
        return 9;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

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

    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

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

    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;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue);
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0));
        require(to != address(0));

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount);
        unchecked {
            _balances[from] = fromBalance - amount;
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _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);
            }
        }
    }

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

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

// $XYZ
contract XYZ is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable _uniswapV2Router;
    address public uniswapV2Pair;
    address private devWallet;
    address private marketingWallet;
    address private constant deadAddress = address(0xdead);

    uint8 private constant _decimals = 9;
    uint256 public initialTotalSupply = 10000000 * 10**_decimals;

    uint256 public buyFee = 1;
    uint256 public sellFee = 1;

    uint256 public maxWallet = (initialTotalSupply * 20)/1000;
    uint256 public maxTransactionAmount = maxWallet;

    bool private swapping;

    bool public transferDelayEnabled = false;
    mapping(address => uint256) private _holderLastTransferTimestamp;
    
    uint256 public swapTokensAtAmount = (initialTotalSupply * 1)/1000;

    bool public tradingOpen = false;
    bool public swapEnabled = false;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;
    mapping(address => bool) private automatedMarketMakerPairs;

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor() ERC20("AgentXYZ", "XYZ"){
        _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        marketingWallet = payable(0xc670f50a9594977e20294086895f6E3Dfa2F82F7);
        devWallet = payable(_msgSender());

        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(_msgSender()), true);
        excludeFromMaxTransaction(marketingWallet, true);
        excludeFromMaxTransaction(devWallet, true);
        excludeFromFees(address(_msgSender()), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(devWallet, true);

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        _mint(devWallet, initialTotalSupply);
    }

    receive() external payable {}

    function addLPToUniswap() external onlyOwner() {
        require(!tradingOpen,"Trading is already open");
        _approve(address(this), address(_uniswapV2Router), initialTotalSupply);
        _uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            0xa49E0758AE81676B61FE396902a3e5cC7961dfb8,
            block.timestamp
        );
        IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
    }

    function burn(uint256 amount) external {
        _burn(_msgSender(), amount);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }


    function openTrading() external onlyOwner() {
        swapEnabled = true;
        tradingOpen = true;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value)
    public
    onlyOwner
    {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

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

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping) {
            if (!tradingOpen) {
                require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
            }

            if (transferDelayEnabled && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
                    if (to != address(_uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number && _holderLastTransferTimestamp[to] < block.number, "_transfer:: Transfer Delay enabled.  Try again later.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                        _holderLastTransferTimestamp[to] = block.number;
                    }
            }

            if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
            else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
            }
            else if (!_isExcludedMaxTransactionAmount[to]) {
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
        if (canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            swapping = true;
            swapBack(amount);
            swapping = false;
        }

        bool takeFee = !swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];

        uint256 fees = 0;
        if (takeFee) {
            if (automatedMarketMakerPairs[to]) {
                fees = amount.mul(sellFee).div(100);
            }
            else if(automatedMarketMakerPairs[from]) {
                fees = amount.mul(buyFee).div(100);
            }
            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }
            amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        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,
            marketingWallet,
            block.timestamp
        );
    }

    function setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
        sellFee = _sellFee;
        buyFee = _buyFee;
    }

    function removeTheLimits() external onlyOwner {
        maxTransactionAmount = initialTotalSupply;
        maxWallet = initialTotalSupply;
    }

    function manualSwapToken(uint256 percent) external {
        require(_msgSender() == marketingWallet);
        uint256 contractBalance = balanceOf(address(this));
        uint256 swapAmount = contractBalance * percent / 100;
        swapTokensForEth(swapAmount);
    }

    function withdrawEth() external {
        require(address(this).balance > 0, "Token: no ETH in the contract");
        require(_msgSender() == devWallet);
        payable(msg.sender).transfer(address(this).balance);
    }

    function swapBack(uint256 tokenAmount) private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }
        uint256 tokensToSwap = contractBalance;

        if (tokensToSwap >= maxTransactionAmount) {
            tokensToSwap = maxTransactionAmount;
        }

        if(tokensToSwap > tokenAmount) {
            tokensToSwap = tokenAmount;
        }

        swapTokensForEth(tokensToSwap);
    }
}

Read Contract

_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 17 functions

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

addLPToUniswap 0x3edab509
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
openTrading 0xc9567bf9
No parameters
removeTheLimits 0x139864a8
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawEth 0xa0ef91df
No parameters

Recent Transactions

No transactions found for this address