Address Contract Verified
Address
0x0d31DF7dedd78649A14aAe62D99CcB23aBCC3A5A
Balance
0.184752 ETH
Nonce
1
Code Size
20521 bytes
Creator
0x9FA99012...F58e at tx 0xb812859b...e76fc2
Indexed Transactions
0
Contract Bytecode
20521 bytes
0x6080604052600436106102975760003560e01c8063735de9f71161015a578063c816841b116100c1578063dd62ed3e1161007a578063dd62ed3e14610a21578063e5f84e4214610a5e578063ea2f0b3714610a89578063f0f165af14610ab2578063f2fde38b14610adb578063f42cf5b314610b045761029e565b8063c816841b14610925578063ca3ba99514610950578063d12a768814610979578063d543dbeb146109a4578063dac11380146109cd578063dd467064146109f85761029e565b8063a457c2d711610113578063a457c2d714610819578063a69df4b514610856578063a84c19771461086d578063a9059cbb14610896578063bafa57f5146108d3578063c49b9a80146108fc5761029e565b8063735de9f7146107195780638da5cb5b146107445780638ee88c531461076f57806395d22b861461079857806395d89b41146107c3578063982fc6bc146107ee5761029e565b8063437823ec116101fe57806361dd90ad116101b757806361dd90ad1461060b5780636bc87c3a146106485780636cf9f871146106735780636dbdb1cd1461069c57806370a08231146106c5578063715018a6146107025761029e565b8063437823ec146104fd5780634a74bb02146105265780635342acb41461055157806359940aa81461058e5780635eb34f51146105b7578063602bc62b146105e05761029e565b8063216bcc1711610250578063216bcc17146103c757806323b872dd146103f05780632d8381191461042d578063313ce5671461046a57806339509351146104955780633b124fe7146104d25761029e565b8063061c82d0146102a357806306fdde03146102cc578063072b12e2146102f7578063095ea7b31461033457806313114a9d1461037157806318160ddd1461039c5761029e565b3661029e57005b600080fd5b3480156102af57600080fd5b506102ca60048036038101906102c59190613eb5565b610b2d565b005b3480156102d857600080fd5b506102e1610c03565b6040516102ee9190613f7b565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190613ffb565b610c40565b60405161032b9190614043565b60405180910390f35b34801561034057600080fd5b5061035b6004803603810190610356919061405e565b610c96565b6040516103689190614043565b60405180910390f35b34801561037d57600080fd5b50610386610cb4565b60405161039391906140ad565b60405180910390f35b3480156103a857600080fd5b506103b1610cbe565b6040516103be91906140ad565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e99190613eb5565b610cc8565b005b3480156103fc57600080fd5b50610417600480360381019061041291906140c8565b610d9e565b6040516104249190614043565b60405180910390f35b34801561043957600080fd5b50610454600480360381019061044f9190613eb5565b610e77565b60405161046191906140ad565b60405180910390f35b34801561047657600080fd5b5061047f610ee5565b60405161048c9190614137565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b7919061405e565b610eee565b6040516104c99190614043565b60405180910390f35b3480156104de57600080fd5b506104e7610fa1565b6040516104f491906140ad565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f9190613ffb565b610fa7565b005b34801561053257600080fd5b5061053b6110ce565b6040516105489190614043565b60405180910390f35b34801561055d57600080fd5b5061057860048036038101906105739190613ffb565b6110e1565b6040516105859190614043565b60405180910390f35b34801561059a57600080fd5b506105b560048036038101906105b0919061417e565b611137565b005b3480156105c357600080fd5b506105de60048036038101906105d991906141be565b611227565b005b3480156105ec57600080fd5b506105f56112ca565b60405161060291906140ad565b60405180910390f35b34801561061757600080fd5b50610632600480360381019061062d9190613ffb565b6112d4565b60405161063f9190614043565b60405180910390f35b34801561065457600080fd5b5061065d61132a565b60405161066a91906140ad565b60405180910390f35b34801561067f57600080fd5b5061069a60048036038101906106959190613eb5565b611330565b005b3480156106a857600080fd5b506106c360048036038101906106be9190613eb5565b611406565b005b3480156106d157600080fd5b506106ec60048036038101906106e79190613ffb565b6114a7565b6040516106f991906140ad565b60405180910390f35b34801561070e57600080fd5b50610717611592565b005b34801561072557600080fd5b5061072e6116e5565b60405161073b919061425d565b60405180910390f35b34801561075057600080fd5b5061075961170b565b6040516107669190614287565b60405180910390f35b34801561077b57600080fd5b5061079660048036038101906107919190613eb5565b611734565b005b3480156107a457600080fd5b506107ad61180a565b6040516107ba9190614043565b60405180910390f35b3480156107cf57600080fd5b506107d861181d565b6040516107e59190613f7b565b60405180910390f35b3480156107fa57600080fd5b5061080361185a565b60405161081091906140ad565b60405180910390f35b34801561082557600080fd5b50610840600480360381019061083b919061405e565b611860565b60405161084d9190614043565b60405180910390f35b34801561086257600080fd5b5061086b61192d565b005b34801561087957600080fd5b50610894600480360381019061088f91906142a2565b611b01565b005b3480156108a257600080fd5b506108bd60048036038101906108b8919061405e565b611bea565b6040516108ca9190614043565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f5919061417e565b611c08565b005b34801561090857600080fd5b50610923600480360381019061091e91906142a2565b611cf8565b005b34801561093157600080fd5b5061093a611e18565b6040516109479190614287565b60405180910390f35b34801561095c57600080fd5b5061097760048036038101906109729190613eb5565b611e3e565b005b34801561098557600080fd5b5061098e611f47565b60405161099b91906140ad565b60405180910390f35b3480156109b057600080fd5b506109cb60048036038101906109c69190613eb5565b611f4d565b005b3480156109d957600080fd5b506109e261204a565b6040516109ef91906140ad565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190613eb5565b612050565b005b348015610a2d57600080fd5b50610a486004803603810190610a4391906141be565b612217565b604051610a5591906140ad565b60405180910390f35b348015610a6a57600080fd5b50610a7361229e565b604051610a809190614043565b60405180910390f35b348015610a9557600080fd5b50610ab06004803603810190610aab9190613ffb565b6122b1565b005b348015610abe57600080fd5b50610ad96004803603810190610ad49190613eb5565b6123d8565b005b348015610ae757600080fd5b50610b026004803603810190610afd9190613ffb565b612477565b005b348015610b1057600080fd5b50610b2b6004803603810190610b26919061417e565b612639565b005b610b35612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb99061431b565b60405180910390fd5b7f19da908cae03512cf29c19a5842b2904a06fd24ef9982759c78f9379831ed70f81604051610bf191906140ad565b60405180910390a18060108190555050565b60606040518060400160405280600b81526020017f54434720322e3020455448000000000000000000000000000000000000000000815250905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000610caa610ca3612729565b8484612731565b6001905092915050565b6000600e54905090565b6000600c54905090565b610cd0612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d549061431b565b60405180910390fd5b7f19da908cae03512cf29c19a5842b2904a06fd24ef9982759c78f9379831ed70f81604051610d8c91906140ad565b60405180910390a18060148190555050565b6000610dab8484846128fc565b610e6c84610db7612729565b610e6785604051806060016040528060288152602001614fa760289139600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610e1d612729565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6d9092919063ffffffff16565b612731565b600190509392505050565b6000600d54821115610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906143ad565b60405180910390fd5b6000610ec8612ec2565b9050610edd8184612eed90919063ffffffff16565b915050919050565b60006009905090565b6000610f97610efb612729565b84610f928560056000610f0c612729565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f0390919063ffffffff16565b612731565b6001905092915050565b60105481565b610faf612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461103c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110339061431b565b60405180910390fd5b7ff1d6512ec7550bf605a5a38910e48fb6a57938ed74a5afa01753fa023001005c8160405161106b9190614287565b60405180910390a16001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b601760159054906101000a900460ff1681565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61113f612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c39061431b565b60405180910390fd5b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61122f612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b39061431b565b60405180910390fd5b6112c68282612f19565b5050565b6000600254905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60125481565b611338612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bc9061431b565b60405180910390fd5b7f65b5acab4a325162455ef7363784b96e746f3703d63e4e139f33ba0e0260de5d816040516113f491906140ad565b60405180910390a18060188190555050565b61140e612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461149b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114929061431b565b60405180910390fd5b6114a48161319f565b50565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561154257600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061158d565b61158a600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e77565b90505b919050565b61159a612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e9061431b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61173c612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c09061431b565b60405180910390fd5b7fa080f06a1e9c2a432b1d35cf0a54ebca051cf5dce7433c3d8e94948436f10356816040516117f891906140ad565b60405180910390a18060128190555050565b601760149054906101000a900460ff1681565b60606040518060400160405280600781526020017f6574685443473200000000000000000000000000000000000000000000000000815250905090565b60195481565b600061192361186d612729565b8461191e85604051806060016040528060258152602001614fcf6025913960056000611897612729565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6d9092919063ffffffff16565b612731565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b49061443f565b60405180910390fd5b6002544211611a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f8906144ab565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b611b09612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8d9061431b565b60405180910390fd5b7f41bbe7cd012e7bef77126e91d0829d308b727ccf7495b355fea9eb07f99270f281604051611bc59190614043565b60405180910390a180600f60006101000a81548160ff02191690831515021790555050565b6000611bfe611bf7612729565b84846128fc565b6001905092915050565b611c10612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c949061431b565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b611d00612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d849061431b565b60405180910390fd5b7ff2acc1979c00010542ffd8cae4d838ff799fc95287f58db252e6b45eaaa3936b81604051611dbc9190614043565b60405180910390a180601760156101000a81548160ff0219169083151502179055507f9b37996c8b5253e2bc406f4abfdbd8e4d25d2d2cf4864f181d8c263368b3f70281604051611e0d9190614043565b60405180910390a150565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e46612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eca9061431b565b60405180910390fd5b6000811415611f2f57611ee461170b565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611f29573d6000803e3d6000fd5b50611f44565b611f4330611f3b61170b565b836000613275565b5b50565b601a5481565b611f55612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fe2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd99061431b565b60405180910390fd5b7f570636dca93f35bb5dee1663ad99fe3f70745771395df08a5f7732130618b5188160405161201191906140ad565b60405180910390a1612041606461203383600c5461345390919063ffffffff16565b612eed90919063ffffffff16565b60198190555050565b60145481565b612058612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dc9061431b565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550804261219391906144fa565b600281905550600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600f60009054906101000a900460ff1681565b6122b9612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233d9061431b565b60405180910390fd5b7f4f6a6b6efe34ec6478021aa9fb7f6980e78ea3a10c74074a8ce49d5d3ebf1f7e816040516123759190614287565b60405180910390a16000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6123e0612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461246d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124649061431b565b60405180910390fd5b80601a8190555050565b61247f612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461250c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125039061431b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561257c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612573906145c2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612641612729565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146126ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c59061431b565b60405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614654565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612811576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612808906146e6565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516128ef91906140ad565b60405180910390a3505050565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612989576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298090614778565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612a16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0d9061480a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7d9061489c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aed9061492e565b60405180910390fd5b60008111612b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b30906149c0565b60405180910390fd5b612b4161170b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612baf5750612b7f61170b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612bfa57601954811115612bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf090614a52565b60405180910390fd5b5b6000612c05306114a7565b90506019548110612c165760195490505b6000601a548210159050808015612c3a5750601760149054906101000a900460ff16155b8015612c945750601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b8015612cac5750601760159054906101000a900460ff165b15612cc057601a549150612cbf8261319f565b5b6000600f60009054906101000a900460ff169050600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612d775750600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612d975760019050601254601381905550601454601281905550612e45565b600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612e3a5750600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612e4457600190505b5b612e5186868684613275565b600190508015612e65576013546012819055505b505050505050565b6000838311158290612eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eac9190613f7b565b60405180910390fd5b5082840390509392505050565b6000806000612ecf613469565b91509150612ee68183612eed90919063ffffffff16565b9250505090565b60008183612efb9190614aa1565b905092915050565b60008183612f1191906144fa565b905092915050565b60008290508073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8d9190614ae7565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396308373ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ff4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130189190614ae7565b6040518363ffffffff1660e01b8152600401613035929190614b14565b6020604051808303816000875af1158015613054573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130789190614ae7565b601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008290506001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508373ffffffffffffffffffffffffffffffffffffffff167fc6b438e6a8a59579ce6a4406cbd203b740e0d47b458aae6596339bcd40c40d1560405160405180910390a250505050565b6001601760146101000a81548160ff02191690831515021790555060006131d0600283612eed90919063ffffffff16565b905060006131e7828461376690919063ffffffff16565b905060004790506131f78361377c565b600061320c824761376690919063ffffffff16565b905061321883826139bf565b7fba38c3ad648004cf41379049fbd93fd358394610f3a9c40cc72d4738f878f5e384828560405161324b93929190614b3d565b60405180910390a1505050506000601760146101000a81548160ff02191690831515021790555050565b8061328357613282613add565b5b60008060008060008061329588613b20565b9550955095509550955095506132f386600360008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461376690919063ffffffff16565b600360008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061338885600360008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f0390919063ffffffff16565b600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506133d481613b7c565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161343191906140ad565b60405180910390a38661344757613446613d21565b5b50505050505050505050565b600081836134619190614b74565b905092915050565b60008060185460098054905011156134b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ad90614c66565b60405180910390fd5b6000600d5490506000600c54905060005b600980549050811015613729578260036000600984815481106134ed576134ec614c86565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411806135db575081600460006009848154811061357357613572614c86565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b156135f257600d54600c5494509450505050613762565b613682600360006009848154811061360d5761360c614c86565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548461376690919063ffffffff16565b9250613714600460006009848154811061369f5761369e614c86565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361376690919063ffffffff16565b9150808061372190614cb5565b9150506134c7565b50613741600c54600d54612eed90919063ffffffff16565b82101561375957600d54600c54935093505050613762565b81819350935050505b9091565b600081836137749190614cfe565b905092915050565b6000600267ffffffffffffffff81111561379957613798614d32565b5b6040519080825280602002602001820160405280156137c75781602001602082028036833780820191505090505b50905030816000815181106137df576137de614c86565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613886573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138aa9190614ae7565b816001815181106138be576138bd614c86565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061392530601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612731565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613989959493929190614e5a565b600060405180830381600087803b1580156139a357600080fd5b505af11580156139b7573d6000803e3d6000fd5b505050505050565b7fcb1652de9aeec38545fc281847b3dbfc89aab56dfa907b1ab68466f602c36fb482826040516139f0929190614eb4565b60405180910390a1613a2530601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612731565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080613a7161170b565b426040518863ffffffff1660e01b8152600401613a9396959493929190614edd565b60606040518083038185885af1158015613ab1573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613ad69190614f53565b5050505050565b6000601054148015613af157506000601254145b15613afb57613b1e565b601054601181905550601254601381905550600060108190555060006012819055505b565b6000806000806000806000806000613b378a613d35565b9250925092506000806000613b558d8686613b50612ec2565b613d8f565b9250925092508282828888889b509b509b509b509b509b5050505050505091939550919395565b6000613b86612ec2565b90506000613b9d828461345390919063ffffffff16565b9050613bf181600360003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f0390919063ffffffff16565b600360003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600760003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615613d1c57613cd883600460003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f0390919063ffffffff16565b600460003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505050565b601154601081905550601354601281905550565b600080600080613d4485613e18565b90506000613d5186613e49565b90506000613d7a82613d6c858a61376690919063ffffffff16565b61376690919063ffffffff16565b90508083839550955095505050509193909250565b600080600080613da8858961345390919063ffffffff16565b90506000613dbf868961345390919063ffffffff16565b90506000613dd6878961345390919063ffffffff16565b90506000613dff82613df1858761376690919063ffffffff16565b61376690919063ffffffff16565b9050838184965096509650505050509450945094915050565b6000613e426064613e346010548561345390919063ffffffff16565b612eed90919063ffffffff16565b9050919050565b6000613e736064613e656012548561345390919063ffffffff16565b612eed90919063ffffffff16565b9050919050565b600080fd5b6000819050919050565b613e9281613e7f565b8114613e9d57600080fd5b50565b600081359050613eaf81613e89565b92915050565b600060208284031215613ecb57613eca613e7a565b5b6000613ed984828501613ea0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f1c578082015181840152602081019050613f01565b83811115613f2b576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f4d82613ee2565b613f578185613eed565b9350613f67818560208601613efe565b613f7081613f31565b840191505092915050565b60006020820190508181036000830152613f958184613f42565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613fc882613f9d565b9050919050565b613fd881613fbd565b8114613fe357600080fd5b50565b600081359050613ff581613fcf565b92915050565b60006020828403121561401157614010613e7a565b5b600061401f84828501613fe6565b91505092915050565b60008115159050919050565b61403d81614028565b82525050565b60006020820190506140586000830184614034565b92915050565b6000806040838503121561407557614074613e7a565b5b600061408385828601613fe6565b925050602061409485828601613ea0565b9150509250929050565b6140a781613e7f565b82525050565b60006020820190506140c2600083018461409e565b92915050565b6000806000606084860312156140e1576140e0613e7a565b5b60006140ef86828701613fe6565b935050602061410086828701613fe6565b925050604061411186828701613ea0565b9150509250925092565b600060ff82169050919050565b6141318161411b565b82525050565b600060208201905061414c6000830184614128565b92915050565b61415b81614028565b811461416657600080fd5b50565b60008135905061417881614152565b92915050565b6000806040838503121561419557614194613e7a565b5b60006141a385828601613fe6565b92505060206141b485828601614169565b9150509250929050565b600080604083850312156141d5576141d4613e7a565b5b60006141e385828601613fe6565b92505060206141f485828601613fe6565b9150509250929050565b6000819050919050565b600061422361421e61421984613f9d565b6141fe565b613f9d565b9050919050565b600061423582614208565b9050919050565b60006142478261422a565b9050919050565b6142578161423c565b82525050565b6000602082019050614272600083018461424e565b92915050565b61428181613fbd565b82525050565b600060208201905061429c6000830184614278565b92915050565b6000602082840312156142b8576142b7613e7a565b5b60006142c684828501614169565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614305602083613eed565b9150614310826142cf565b602082019050919050565b60006020820190508181036000830152614334816142f8565b9050919050565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260008201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b6000614397602a83613eed565b91506143a28261433b565b604082019050919050565b600060208201905081810360008301526143c68161438a565b9050919050565b7f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c60008201527f6f636b0000000000000000000000000000000000000000000000000000000000602082015250565b6000614429602383613eed565b9150614434826143cd565b604082019050919050565b600060208201905081810360008301526144588161441c565b9050919050565b7f436f6e7472616374206973206c6f636b656420756e74696c2037206461797300600082015250565b6000614495601f83613eed565b91506144a08261445f565b602082019050919050565b600060208201905081810360008301526144c481614488565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061450582613e7f565b915061451083613e7f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614545576145446144cb565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145ac602683613eed565b91506145b782614550565b604082019050919050565b600060208201905081810360008301526145db8161459f565b9050919050565b7f42455032303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061463e602483613eed565b9150614649826145e2565b604082019050919050565b6000602082019050818103600083015261466d81614631565b9050919050565b7f42455032303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006146d0602283613eed565b91506146db82614674565b604082019050919050565b600060208201905081810360008301526146ff816146c3565b9050919050565b7f42455032303a207472616e7366657220746f2074686520626f7420616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614762602283613eed565b915061476d82614706565b604082019050919050565b6000602082019050818103600083015261479181614755565b9050919050565b7f42455032303a207472616e736665722066726f6d2074686520626f742061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006147f4602483613eed565b91506147ff82614798565b604082019050919050565b60006020820190508181036000830152614823816147e7565b9050919050565b7f42455032303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614886602583613eed565b91506148918261482a565b604082019050919050565b600060208201905081810360008301526148b581614879565b9050919050565b7f42455032303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614918602383613eed565b9150614923826148bc565b604082019050919050565b600060208201905081810360008301526149478161490b565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b60006149aa602983613eed565b91506149b58261494e565b604082019050919050565b600060208201905081810360008301526149d98161499d565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61785460008201527f78416d6f756e742e000000000000000000000000000000000000000000000000602082015250565b6000614a3c602883613eed565b9150614a47826149e0565b604082019050919050565b60006020820190508181036000830152614a6b81614a2f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614aac82613e7f565b9150614ab783613e7f565b925082614ac757614ac6614a72565b5b828204905092915050565b600081519050614ae181613fcf565b92915050565b600060208284031215614afd57614afc613e7a565b5b6000614b0b84828501614ad2565b91505092915050565b6000604082019050614b296000830185614278565b614b366020830184614278565b9392505050565b6000606082019050614b52600083018661409e565b614b5f602083018561409e565b614b6c604083018461409e565b949350505050565b6000614b7f82613e7f565b9150614b8a83613e7f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bc357614bc26144cb565b5b828202905092915050565b7f546865206e756d626572206f66206c6f6f7020697465726174696f6e7320696e60008201527f205f67657443757272656e74537570706c79206973206772656174657220746860208201527f616e2074686520616c6c6f7765642076616c75652e0000000000000000000000604082015250565b6000614c50605583613eed565b9150614c5b82614bce565b606082019050919050565b60006020820190508181036000830152614c7f81614c43565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614cc082613e7f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614cf357614cf26144cb565b5b600182019050919050565b6000614d0982613e7f565b9150614d1483613e7f565b925082821015614d2757614d266144cb565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000819050919050565b6000614d86614d81614d7c84614d61565b6141fe565b613e7f565b9050919050565b614d9681614d6b565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614dd181613fbd565b82525050565b6000614de38383614dc8565b60208301905092915050565b6000602082019050919050565b6000614e0782614d9c565b614e118185614da7565b9350614e1c83614db8565b8060005b83811015614e4d578151614e348882614dd7565b9750614e3f83614def565b925050600181019050614e20565b5085935050505092915050565b600060a082019050614e6f600083018861409e565b614e7c6020830187614d8d565b8181036040830152614e8e8186614dfc565b9050614e9d6060830185614278565b614eaa608083018461409e565b9695505050505050565b6000604082019050614ec9600083018561409e565b614ed6602083018461409e565b9392505050565b600060c082019050614ef26000830189614278565b614eff602083018861409e565b614f0c6040830187614d8d565b614f196060830186614d8d565b614f266080830185614278565b614f3360a083018461409e565b979650505050505050565b600081519050614f4d81613e89565b92915050565b600080600060608486031215614f6c57614f6b613e7a565b5b6000614f7a86828701614f3e565b9350506020614f8b86828701614f3e565b9250506040614f9c86828701614f3e565b915050925092509256fe42455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636542455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220680a548488016062e1913285c8294437ae232677d2eb29d9462251bfc7f0bbc064736f6c634300080b0033
Verified Source Code Full Match
Compiler: v0.8.11+commit.d7f03943
EVM: london
Optimization: No
tcg5.sol 966 lines
/** * author: BlockCzech R&D Lab <[email protected]> * * *░░████████╗░█████╗░░██████╗░░░░█████╗░░█████╗░██╗███╗░░██╗░░██████╗░░░░░█████╗░░░ *░░╚══██╔══╝██╔══██╗██╔════╝░░░██╔══██╗██╔══██╗██║████╗░██║░░╚════██╗░░░██╔══██╗░░ *░░░░░██║░░░██║░░╚═╝██║░░██╗░░░██║░░╚═╝██║░░██║██║██╔██╗██║░░░░███╔═╝░░░██║░░██║░░ *░░░░░██║░░░██║░░██╗██║░░╚██╗░░██║░░██╗██║░░██║██║██║╚████║░░██╔══╝░░░░░██║░░██║░░ *░░░░░██║░░░╚█████╔╝╚██████╔╝░░╚█████╔╝╚█████╔╝██║██║░╚███║░░███████╗██╗╚█████╔╝░░ *░░░░░╚═╝░░░░╚════╝░░╚═════╝░░░░╚════╝░░╚════╝░╚═╝╚═╝░░╚══╝░░╚══════╝╚═╝░╚════╝░░░ * * * The TCGCoin20 [ETH] is based on the Automatic Liquidity Pool & Custom Fees Architecture. * * * SPDX-License-Identifier: MIT * */ pragma solidity 0.8.11; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); 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(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function INIT_CODE_PAIR_HASH() external view returns (bytes32); } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint 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 (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint 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 (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); 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 (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) 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 { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 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 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 Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } function owner() public view returns (address) { return _owner; } modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } function getUnlockTime() public view returns (uint256) { return _lockTime; } function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = block.timestamp + time; emit OwnershipTransferred(_owner, address(0)); } function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(block.timestamp > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; } } library Address { function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract ethTCGCoin20 is Context, IERC20, Ownable { using Address for address; using SafeMath for uint256; mapping (address => uint256) private _reflectOwned; mapping (address => uint256) private _takeOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; mapping (address => bool) private _isExcluded; mapping (address => bool) private _isBot; address[] private _excluded; mapping (address => bool) private _isDEXBuyFee; mapping (address => bool) private _isDEXSellFee; uint256 private constant MAX = ~uint256(0); uint256 private _takeTotal = 280 * 10**6 * 10**9; uint256 private _reflectTotal = (MAX - (MAX % _takeTotal)); uint256 private _takeFeeTotal; string private constant _name = "TCG 2.0 ETH"; string private constant _symbol = "ethTCG2"; uint8 private constant _decimals = 9; bool public _taxFeeFlag = false; uint256 public _taxFee = 0; uint256 private _previousTaxFee = _taxFee; uint256 public _liquidityFee = 10; uint256 private _previousLiquidityFee = _liquidityFee; uint256 public _liquiditySellFee = 10; uint256 private _previousLiquiditySellFee = _liquiditySellFee; IUniswapV2Router02 public uniswapRouter; address public uniswapPair; bool public isIntoLiquifySwap; bool public swapAndLiquifyEnabled = true; uint256 private _maxLoopCount = 100; uint256 public _maximumValueOfTransaction = 280 * 10**6 * 10**9 ; uint256 public numTokensSellToAddToLiquidity = 10 * 10**9 ; event SwapAndLiquifyEvent( uint256 coinsForSwapping, uint256 bnbIsReceived, uint256 coinsThatWasAddedIntoLiquidity ); event LiquifySwapUpdatedEnabled(bool enabled); event SetTaxFeePercent(uint value); event SetTaxFeeFlag(bool flag); event SetMaxLoopCount(uint value); event SetMaxTxPercent(uint value); event SetLiquidityFeePercent(uint value); event SetSellFeeLiquidity(uint value); event ExcludedFromFee(address _address); event IncludeInFee(address _address); event ETHReceived(address _address); event Delivery(address _address, uint256 amount); event AddLiquidity(uint256 coin_amount, uint256 bnb_amount); event SwapAndLiquifyEnabled(bool flag); event RouterSet(address indexed router); modifier lockSwaping { isIntoLiquifySwap = true; _; isIntoLiquifySwap = false; } constructor () { _reflectOwned[_msgSender()] = _reflectTotal; _setRouterAddress(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; emit Transfer(address(0), _msgSender(), _takeTotal); } function _setRouterAddressByOwner(address router, address factory) external onlyOwner() { _setRouterAddress(router, factory); } function _setRouterAddress(address router, address factory) private { IUniswapV2Router02 _uniswapRouter = IUniswapV2Router02(router); uniswapPair = IUniswapV2Factory(_uniswapRouter.factory()) .createPair(address(this), _uniswapRouter.WETH()); uniswapRouter = _uniswapRouter; address payable _pancakeFactory = payable(factory); _isExcludedFromFee[_pancakeFactory] = true; emit RouterSet(router); } function _isV2Pair(address account) internal view returns(bool){ return (account == uniswapPair); } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ BEP20 functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function name() external pure returns (string memory) { return _name; } function symbol() external pure returns (string memory) { return _symbol; } function decimals() public pure returns (uint8) { return _decimals; } function totalSupply() external view override returns (uint256) { return _takeTotal; } function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _takeOwned[account]; return tokenFromReflection(_reflectOwned[account]); } function transfer(address recipient, uint256 amount) external override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } function allowance(address owner, address spender) external view override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) external override returns (bool) { _approve(_msgSender(), spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance")); return true; } function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")); return true; } function _getCurrentSupply() private view returns(uint256, uint256) { require(_excluded.length <= _maxLoopCount, "The number of loop iterations in _getCurrentSupply is greater than the allowed value."); uint256 rSupply = _reflectTotal; uint256 tSupply = _takeTotal; for (uint256 i = 0; i < _excluded.length; i++) { if (_reflectOwned[_excluded[i]] > rSupply || _takeOwned[_excluded[i]] > tSupply) return (_reflectTotal, _takeTotal); rSupply = rSupply.sub(_reflectOwned[_excluded[i]]); tSupply = tSupply.sub(_takeOwned[_excluded[i]]); } if (rSupply < _reflectTotal.div(_takeTotal)) return (_reflectTotal, _takeTotal); return (rSupply, tSupply); } function _approve(address owner, address spender, uint256 amount) private { require(owner != address(0), "BEP20: approve from the zero address"); require(spender != address(0), "BEP20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Setter functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function setTaxFeePercent(uint256 taxFee) external onlyOwner() { emit SetTaxFeePercent(taxFee); _taxFee = taxFee; } function setTaxFeeFlag(bool flag) external onlyOwner() { emit SetTaxFeeFlag(flag); _taxFeeFlag = flag; } function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() { emit SetLiquidityFeePercent(liquidityFee); _liquidityFee = liquidityFee; } function setMaxLoopCount(uint256 maxLoopCount) external onlyOwner() { emit SetMaxLoopCount(maxLoopCount); _maxLoopCount = maxLoopCount; } function setMaxTxPercent(uint256 maxTxPercent) external onlyOwner() { emit SetMaxTxPercent(maxTxPercent); _maximumValueOfTransaction = _takeTotal.mul(maxTxPercent).div( 10**2 ); } function setNumTokensSellToAddToLiquidity(uint256 amount) external onlyOwner() { numTokensSellToAddToLiquidity = amount; } function setLiquiditySellFeePercent(uint256 liquiditySellFee) external onlyOwner() { emit SetTaxFeePercent(liquiditySellFee); _liquiditySellFee = liquiditySellFee; } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Fees calculate functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function totalFees() external view returns (uint256) { return _takeFeeTotal; } function calculateTaxFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_taxFee).div( 10**2 ); } function calculateLiquidityFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_liquidityFee).div( 10**2 ); } function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) { (uint256 takeAmountToTransfer, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount); (uint256 reflectAmount, uint256 reflectAmountToTransfer, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate()); return (reflectAmount, reflectAmountToTransfer, rFee, takeAmountToTransfer, tFee, tLiquidity); } function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) { uint256 tFee = calculateTaxFee(tAmount); uint256 tLiquidity = calculateLiquidityFee(tAmount); uint256 takeAmountToTransfer = tAmount.sub(tFee).sub(tLiquidity); return (takeAmountToTransfer, tFee, tLiquidity); } function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) { uint256 reflectAmount = tAmount.mul(currentRate); uint256 rFee = tFee.mul(currentRate); uint256 rLiquidity = tLiquidity.mul(currentRate); uint256 reflectAmountToTransfer = reflectAmount.sub(rFee).sub(rLiquidity); return (reflectAmount, reflectAmountToTransfer, rFee); } function _getRate() private view returns(uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply.div(tSupply); } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Withdraw function \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /// This will allow to rescue ETH sent by mistake directly to the contract function rescueTokensFromContract(uint256 amount) external onlyOwner { if(amount == 0 ){ // ETH payable(owner()).transfer(address(this).balance); }else{ // TCG2 _tokenTransfer(address(this), owner(), amount, false); } } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Fees managing functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function removeAllFee() private { if(_taxFee == 0 && _liquidityFee == 0) return; _previousTaxFee = _taxFee; _previousLiquidityFee = _liquidityFee; _taxFee = 0; _liquidityFee = 0; } function restoreAllFee() private { _taxFee = _previousTaxFee; _liquidityFee = _previousLiquidityFee; } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Fees group mebership functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function setupBot(address account, bool value) external onlyOwner { _isBot[account] = value; } function excludeFromFee(address account) external onlyOwner { emit ExcludedFromFee(account); _isExcludedFromFee[account] = true; } function includeInFee(address account) external onlyOwner { emit IncludeInFee(account); _isExcludedFromFee[account] = false; } function isExcludedFromFee(address account) public view returns(bool) { return _isExcludedFromFee[account]; } function setDexWithSellFee(address account, bool value) external onlyOwner { _isDEXSellFee[account] = value; } function isDexWithSellFee(address account) public view returns(bool) { return _isDEXSellFee[account]; } function setDexWithBuyFee(address account, bool value) external onlyOwner { _isDEXBuyFee[account] = value; } function isDexWithBuyFee(address account) public view returns(bool) { return _isDEXBuyFee[account]; } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ LP functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function setSwapAndLiquifyEnabled(bool _enabled) external onlyOwner { emit SwapAndLiquifyEnabled(_enabled); swapAndLiquifyEnabled = _enabled; emit LiquifySwapUpdatedEnabled(_enabled); } //to receive ETH from uniswapRouter when swapping receive() external payable {} function _takeLiquidity(uint256 tLiquidity) private { uint256 currentRate = _getRate(); uint256 rLiquidity = tLiquidity.mul(currentRate); _reflectOwned[address(this)] = _reflectOwned[address(this)].add(rLiquidity); if(_isExcluded[address(this)]) _takeOwned[address(this)] = _takeOwned[address(this)].add(tLiquidity); } function swapAndLiquifyByOwner(uint256 amount) external onlyOwner { swapAndLiquify(amount); } function swapAndLiquify(uint256 contractTokenBalance) private lockSwaping { // split the contract balance into halves uint256 half = contractTokenBalance.div(2); uint256 otherHalf = contractTokenBalance.sub(half); // capture the contract's current ETH balance. // this is so that we can capture exactly the amount of ETH that the // swap creates, and not make the liquidity event include any ETH that // has been manually sent to the contract uint256 initialBalance = address(this).balance; // swap tokens for ETH swapTokensForETH(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered // how much ETH did we just swap into? uint256 newBalance = address(this).balance.sub(initialBalance); // add liquidity to pancakswap addLiquidity(otherHalf, newBalance); emit SwapAndLiquifyEvent(half, newBalance, otherHalf); } function swapTokensForETH(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapRouter.WETH(); _approve(address(this), address(uniswapRouter), tokenAmount); // make the swap uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { emit AddLiquidity(tokenAmount, ethAmount); // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapRouter), tokenAmount); // add the liquidity uniswapRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Reflection functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function tokenFromReflection(uint256 reflectAmount) public view returns(uint256) { require(reflectAmount <= _reflectTotal, "Amount must be less than total reflections"); uint256 currentRate = _getRate(); return reflectAmount.div(currentRate); } // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Custom transfer functions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function _transfer( address from, address to, uint256 amount ) private { require( !_isBot[to], "BEP20: transfer to the bot address"); require( !_isBot[from], "BEP20: transfer from the bot address"); require(from != address(0), "BEP20: transfer from the zero address"); require(to != address(0), "BEP20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); if(from != owner() && to != owner()) require(amount <= _maximumValueOfTransaction, "Transfer amount exceeds the maxTxAmount."); uint256 contractTokenBalance = balanceOf(address(this)); if(contractTokenBalance >= _maximumValueOfTransaction){contractTokenBalance = _maximumValueOfTransaction;} bool overMinimumCoinBalance = contractTokenBalance >= numTokensSellToAddToLiquidity; if ( overMinimumCoinBalance && !isIntoLiquifySwap && from != uniswapPair && swapAndLiquifyEnabled ) { contractTokenBalance = numTokensSellToAddToLiquidity; //add liquidity swapAndLiquify(contractTokenBalance); } //indicates if fee should be deducted from transfer bool takeFee = _taxFeeFlag; if(_isDEXSellFee[to] && !_isExcludedFromFee[from]){ takeFee = true; _previousLiquidityFee = _liquidityFee; _liquidityFee = _liquiditySellFee; } else if(_isDEXBuyFee[from] && !_isExcludedFromFee[to]){ takeFee = true; } //transfer amount, it will take liquidity fee _tokenTransfer(from,to,amount,takeFee); if(takeFee = true){ _liquidityFee = _previousLiquidityFee; } } //this method is responsible for taking all fee, if takeFee is true function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee){removeAllFee();} (uint256 reflectAmount, uint256 reflectAmountToTransfer, uint256 rFee, uint256 takeAmountToTransfer, uint256 tFee, uint256 tLiquidity) = _getValues(amount); _reflectOwned[sender] = _reflectOwned[sender].sub(reflectAmount); _reflectOwned[recipient] = _reflectOwned[recipient].add(reflectAmountToTransfer); _takeLiquidity(tLiquidity); emit Transfer(sender, recipient, takeAmountToTransfer); if(!takeFee){restoreAllFee();} } }
Read Contract
_liquidityFee 0x6bc87c3a → uint256
_liquiditySellFee 0xdac11380 → uint256
_maximumValueOfTransaction 0x982fc6bc → uint256
_taxFee 0x3b124fe7 → uint256
_taxFeeFlag 0xe5f84e42 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getUnlockTime 0x602bc62b → uint256
isDexWithBuyFee 0x61dd90ad → bool
isDexWithSellFee 0x072b12e2 → bool
isExcludedFromFee 0x5342acb4 → bool
isIntoLiquifySwap 0x95d22b86 → bool
name 0x06fdde03 → string
numTokensSellToAddToLiquidity 0xd12a7688 → uint256
owner 0x8da5cb5b → address
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapPair 0xc816841b → address
uniswapRouter 0x735de9f7 → address
Write Contract 25 functions
These functions modify contract state and require a wallet transaction to execute.
_setRouterAddressByOwner 0x5eb34f51
address router
address factory
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFee 0x437823ec
address account
includeInFee 0xea2f0b37
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
lock 0xdd467064
uint256 time
renounceOwnership 0x715018a6
No parameters
rescueTokensFromContract 0xca3ba995
uint256 amount
setDexWithBuyFee 0xf42cf5b3
address account
bool value
setDexWithSellFee 0x59940aa8
address account
bool value
setLiquidityFeePercent 0x8ee88c53
uint256 liquidityFee
setLiquiditySellFeePercent 0x216bcc17
uint256 liquiditySellFee
setMaxLoopCount 0x6cf9f871
uint256 maxLoopCount
setMaxTxPercent 0xd543dbeb
uint256 maxTxPercent
setNumTokensSellToAddToLiquidity 0xf0f165af
uint256 amount
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setTaxFeeFlag 0xa84c1977
bool flag
setTaxFeePercent 0x061c82d0
uint256 taxFee
setupBot 0xbafa57f5
address account
bool value
swapAndLiquifyByOwner 0x6dbdb1cd
uint256 amount
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unlock 0xa69df4b5
No parameters
Recent Transactions
No transactions found for this address