Address Contract Partially Verified
Address
0x976bf616F61685e0E7E36419Aee3f7Cde24B0Dc9
Balance
0.001113 ETH
Nonce
1
Code Size
16891 bytes
Creator
0x5a18cb3a...D04A at tx 0xb4c0999a...3a0944
Indexed Transactions
0
Contract Bytecode
16891 bytes
0x6080604052600436106101fd5760003560e01c806375f0a8741161010d578063bbc0c742116100a0578063d85ba0631161006f578063d85ba06314610744578063dd62ed3e1461076f578063e2f45605146107ac578063f2fde38b146107d7578063f8b45b051461080057610204565b8063bbc0c74214610688578063c0246668146106b3578063c8c8ebe4146106dc578063d257b34f1461070757610204565b806396188399116100dc57806396188399146105bc5780639a7a23d6146105e5578063a457c2d71461060e578063a9059cbb1461064b57610204565b806375f0a874146105245780638a8c523c1461054f5780638da5cb5b1461056657806395d89b411461059157610204565b806339509351116101905780636a486a8e1161015f5780636a486a8e146104515780636ddd17131461047c57806370a08231146104a7578063715018a6146104e45780637571336a146104fb57610204565b8063395093511461038357806349bd5a5e146103c05780634fbee193146103eb57806366ca9b831461042857610204565b806318160ddd116101cc57806318160ddd146102c557806323b872dd146102f057806327c8f8351461032d578063313ce5671461035857610204565b806302dbd8f81461020957806306fdde0314610232578063095ea7b31461025d5780631694505e1461029a57610204565b3661020457005b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612e0d565b61082b565b005b34801561023e57600080fd5b5061024761091e565b6040516102549190612edd565b60405180910390f35b34801561026957600080fd5b50610284600480360381019061027f9190612f5d565b6109b0565b6040516102919190612fb8565b60405180910390f35b3480156102a657600080fd5b506102af6109ce565b6040516102bc9190613032565b60405180910390f35b3480156102d157600080fd5b506102da6109f2565b6040516102e7919061305c565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613077565b6109fc565b6040516103249190612fb8565b60405180910390f35b34801561033957600080fd5b50610342610af4565b60405161034f91906130d9565b60405180910390f35b34801561036457600080fd5b5061036d610afa565b60405161037a9190613110565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190612f5d565b610b03565b6040516103b79190612fb8565b60405180910390f35b3480156103cc57600080fd5b506103d5610baf565b6040516103e291906130d9565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d919061312b565b610bd3565b60405161041f9190612fb8565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a9190612e0d565b610c29565b005b34801561045d57600080fd5b50610466610d13565b604051610473919061305c565b60405180910390f35b34801561048857600080fd5b50610491610d19565b60405161049e9190612fb8565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c9919061312b565b610d2c565b6040516104db919061305c565b60405180910390f35b3480156104f057600080fd5b506104f9610d74565b005b34801561050757600080fd5b50610522600480360381019061051d9190613184565b610dfc565b005b34801561053057600080fd5b50610539610ed3565b60405161054691906130d9565b60405180910390f35b34801561055b57600080fd5b50610564610ef9565b005b34801561057257600080fd5b5061057b610fad565b60405161058891906130d9565b60405180910390f35b34801561059d57600080fd5b506105a6610fd7565b6040516105b39190612edd565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de9190612e0d565b611069565b005b3480156105f157600080fd5b5061060c60048036038101906106079190613184565b611209565b005b34801561061a57600080fd5b5061063560048036038101906106309190612f5d565b611321565b6040516106429190612fb8565b60405180910390f35b34801561065757600080fd5b50610672600480360381019061066d9190612f5d565b61140c565b60405161067f9190612fb8565b60405180910390f35b34801561069457600080fd5b5061069d61142a565b6040516106aa9190612fb8565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d59190613184565b61143d565b005b3480156106e857600080fd5b506106f1611562565b6040516106fe919061305c565b60405180910390f35b34801561071357600080fd5b5061072e600480360381019061072991906131c4565b611568565b60405161073b9190612fb8565b60405180910390f35b34801561075057600080fd5b506107596116bd565b604051610766919061305c565b60405180910390f35b34801561077b57600080fd5b50610796600480360381019061079191906131f1565b6116c3565b6040516107a3919061305c565b60405180910390f35b3480156107b857600080fd5b506107c161174a565b6040516107ce919061305c565b60405180910390f35b3480156107e357600080fd5b506107fe60048036038101906107f9919061312b565b611750565b005b34801561080c57600080fd5b50610815611847565b604051610822919061305c565b60405180910390f35b61083361184d565b73ffffffffffffffffffffffffffffffffffffffff16610851610fad565b73ffffffffffffffffffffffffffffffffffffffff16146108a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089e9061327d565b60405180910390fd5b81600f8190555080601081905550601054600f546108c591906132cc565b600e81905550600e54601381905550605f600e54111561091a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109119061334c565b60405180910390fd5b5050565b60606003805461092d9061339b565b80601f01602080910402602001604051908101604052809291908181526020018280546109599061339b565b80156109a65780601f1061097b576101008083540402835291602001916109a6565b820191906000526020600020905b81548152906001019060200180831161098957829003601f168201915b5050505050905090565b60006109c46109bd61184d565b8484611855565b6001905092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b6000610a09848484611a1e565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610a5461184d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610ad4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acb9061343e565b60405180910390fd5b610ae885610ae061184d565b858403611855565b60019150509392505050565b61dead81565b60006012905090565b6000610ba5610b1061184d565b848460016000610b1e61184d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ba091906132cc565b611855565b6001905092915050565b7f000000000000000000000000bea53ac583b1af11f5b4b3f15ce163bc77b0c1bc81565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610c3161184d565b73ffffffffffffffffffffffffffffffffffffffff16610c4f610fad565b73ffffffffffffffffffffffffffffffffffffffff1614610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c9061327d565b60405180910390fd5b81600c8190555080600d81905550600d54600c54610cc391906132cc565b600b819055506005600b541115610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d06906134aa565b60405180910390fd5b5050565b600e5481565b600a60019054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610d7c61184d565b73ffffffffffffffffffffffffffffffffffffffff16610d9a610fad565b73ffffffffffffffffffffffffffffffffffffffff1614610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de79061327d565b60405180910390fd5b610dfa600061247a565b565b610e0461184d565b73ffffffffffffffffffffffffffffffffffffffff16610e22610fad565b73ffffffffffffffffffffffffffffffffffffffff1614610e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f9061327d565b60405180910390fd5b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f0161184d565b73ffffffffffffffffffffffffffffffffffffffff16610f1f610fad565b73ffffffffffffffffffffffffffffffffffffffff1614610f75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6c9061327d565b60405180910390fd5b6001600a60006101000a81548160ff0219169083151502179055506001600a60016101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610fe69061339b565b80601f01602080910402602001604051908101604052809291908181526020018280546110129061339b565b801561105f5780601f106110345761010080835404028352916020019161105f565b820191906000526020600020905b81548152906001019060200180831161104257829003601f168201915b5050505050905090565b61107161184d565b73ffffffffffffffffffffffffffffffffffffffff1661108f610fad565b73ffffffffffffffffffffffffffffffffffffffff16146110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc9061327d565b60405180910390fd5b670de0b6b3a76400006103e860056110fb6109f2565b61110591906134ca565b61110f9190613553565b6111199190613553565b82101561115b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611152906135f6565b60405180910390fd5b670de0b6b3a76400006103e860056111716109f2565b61117b91906134ca565b6111859190613553565b61118f9190613553565b8110156111d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c890613688565b60405180910390fd5b670de0b6b3a7640000816111e591906134ca565b600981905550670de0b6b3a7640000826111ff91906134ca565b6007819055505050565b61121161184d565b73ffffffffffffffffffffffffffffffffffffffff1661122f610fad565b73ffffffffffffffffffffffffffffffffffffffff1614611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061327d565b60405180910390fd5b7f000000000000000000000000bea53ac583b1af11f5b4b3f15ce163bc77b0c1bc73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130a9061371a565b60405180910390fd5b61131d8282612540565b5050565b6000806001600061133061184d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156113ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e4906137ac565b60405180910390fd5b6114016113f861184d565b85858403611855565b600191505092915050565b600061142061141961184d565b8484611a1e565b6001905092915050565b600a60009054906101000a900460ff1681565b61144561184d565b73ffffffffffffffffffffffffffffffffffffffff16611463610fad565b73ffffffffffffffffffffffffffffffffffffffff16146114b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b09061327d565b60405180910390fd5b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516115569190612fb8565b60405180910390a25050565b60075481565b600061157261184d565b73ffffffffffffffffffffffffffffffffffffffff16611590610fad565b73ffffffffffffffffffffffffffffffffffffffff16146115e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dd9061327d565b60405180910390fd5b620186a060016115f46109f2565b6115fe91906134ca565b6116089190613553565b82101561164a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116419061383e565b60405180910390fd5b6103e860056116576109f2565b61166191906134ca565b61166b9190613553565b8211156116ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a4906138d0565b60405180910390fd5b8160088190555060019050919050565b600b5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60085481565b61175861184d565b73ffffffffffffffffffffffffffffffffffffffff16611776610fad565b73ffffffffffffffffffffffffffffffffffffffff16146117cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c39061327d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361183b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183290613962565b60405180910390fd5b6118448161247a565b50565b60095481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb906139f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a90613a86565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611a11919061305c565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8490613b18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af390613baa565b60405180910390fd5b60008103611b1557611b10838360006125e1565b612475565b611b1d610fad565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611b8b5750611b5b610fad565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611bc45750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611bfe575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611c175750600560149054906101000a900460ff16155b15611ffa57600a60009054906101000a900460ff16611d1157601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611cd15750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0790613c16565b60405180910390fd5b5b601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015611db45750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611e5b57600754811115611dfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df590613ca8565b60405180910390fd5b600954611e0a83610d2c565b82611e1591906132cc565b1115611e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4d90613d14565b60405180910390fd5b611ff9565b601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015611efe5750601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611f4d57600754811115611f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3f90613da6565b60405180910390fd5b611ff8565b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611ff757600954611faa83610d2c565b82611fb591906132cc565b1115611ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fed90613d14565b60405180910390fd5b5b5b5b5b600061200530610d2c565b90506000600854821015905080801561202a5750600a60019054906101000a900460ff165b80156120435750600560149054906101000a900460ff16155b80156120995750601660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156120ef5750601460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156121455750601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612189576001600560146101000a81548160ff02191690831515021790555061216d612860565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061223f5750601460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561224957600090505b6000811561245c57601660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156122ac57506000600e54115b15612346576122d960646122cb600e5488612a6d90919063ffffffff16565b612a8390919063ffffffff16565b9050600e54601054826122ec91906134ca565b6122f69190613553565b6012600082825461230791906132cc565b92505081905550600e54600f548261231f91906134ca565b6123299190613553565b6011600082825461233a91906132cc565b92505081905550612438565b601660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156123a157506000600b54115b15612437576123ce60646123c0600b5488612a6d90919063ffffffff16565b612a8390919063ffffffff16565b9050600b54600d54826123e191906134ca565b6123eb9190613553565b601260008282546123fc91906132cc565b92505081905550600b54600c548261241491906134ca565b61241e9190613553565b6011600082825461242f91906132cc565b925050819055505b5b600081111561244d5761244c8730836125e1565b5b80856124599190613dc6565b94505b6124678787876125e1565b601354600e81905550505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264790613b18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b690613baa565b60405180910390fd5b6126ca838383612a99565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274790613e6c565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e391906132cc565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612847919061305c565b60405180910390a361285a848484612a9e565b50505050565b600061286b30610d2c565b9050600060115460125461287f91906132cc565b90506000808314806128915750600082145b1561289e57505050612a6b565b60146008546128ad91906134ca565b8311156128c65760146008546128c391906134ca565b92505b6000600283601254866128d991906134ca565b6128e39190613553565b6128ed9190613553565b905060006129048286612aa390919063ffffffff16565b9050600047905061291482612ab9565b60006129298247612aa390919063ffffffff16565b905060006129548761294660115485612a6d90919063ffffffff16565b612a8390919063ffffffff16565b9050600081836129649190613dc6565b9050600060128190555060006011819055506000861180156129865750600081115b156129d3576129958682612cf6565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56185826012546040516129ca93929190613e8c565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612a1990613ef4565b60006040518083038185875af1925050503d8060008114612a56576040519150601f19603f3d011682016040523d82523d6000602084013e612a5b565b606091505b5050809750505050505050505050505b565b60008183612a7b91906134ca565b905092915050565b60008183612a919190613553565b905092915050565b505050565b505050565b60008183612ab19190613dc6565b905092915050565b6000600267ffffffffffffffff811115612ad657612ad5613f09565b5b604051908082528060200260200182016040528015612b045781602001602082028036833780820191505090505b5090503081600081518110612b1c57612b1b613f38565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be59190613f7c565b81600181518110612bf957612bf8613f38565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612c5e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611855565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612cc09594939291906140a2565b600060405180830381600087803b158015612cda57600080fd5b505af1158015612cee573d6000803e3d6000fd5b505050505050565b612d21307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611855565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71982308560008061dead426040518863ffffffff1660e01b8152600401612d88969594939291906140fc565b60606040518083038185885af1158015612da6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612dcb9190614172565b5050505050565b600080fd5b6000819050919050565b612dea81612dd7565b8114612df557600080fd5b50565b600081359050612e0781612de1565b92915050565b60008060408385031215612e2457612e23612dd2565b5b6000612e3285828601612df8565b9250506020612e4385828601612df8565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e87578082015181840152602081019050612e6c565b60008484015250505050565b6000601f19601f8301169050919050565b6000612eaf82612e4d565b612eb98185612e58565b9350612ec9818560208601612e69565b612ed281612e93565b840191505092915050565b60006020820190508181036000830152612ef78184612ea4565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f2a82612eff565b9050919050565b612f3a81612f1f565b8114612f4557600080fd5b50565b600081359050612f5781612f31565b92915050565b60008060408385031215612f7457612f73612dd2565b5b6000612f8285828601612f48565b9250506020612f9385828601612df8565b9150509250929050565b60008115159050919050565b612fb281612f9d565b82525050565b6000602082019050612fcd6000830184612fa9565b92915050565b6000819050919050565b6000612ff8612ff3612fee84612eff565b612fd3565b612eff565b9050919050565b600061300a82612fdd565b9050919050565b600061301c82612fff565b9050919050565b61302c81613011565b82525050565b60006020820190506130476000830184613023565b92915050565b61305681612dd7565b82525050565b6000602082019050613071600083018461304d565b92915050565b6000806000606084860312156130905761308f612dd2565b5b600061309e86828701612f48565b93505060206130af86828701612f48565b92505060406130c086828701612df8565b9150509250925092565b6130d381612f1f565b82525050565b60006020820190506130ee60008301846130ca565b92915050565b600060ff82169050919050565b61310a816130f4565b82525050565b60006020820190506131256000830184613101565b92915050565b60006020828403121561314157613140612dd2565b5b600061314f84828501612f48565b91505092915050565b61316181612f9d565b811461316c57600080fd5b50565b60008135905061317e81613158565b92915050565b6000806040838503121561319b5761319a612dd2565b5b60006131a985828601612f48565b92505060206131ba8582860161316f565b9150509250929050565b6000602082840312156131da576131d9612dd2565b5b60006131e884828501612df8565b91505092915050565b6000806040838503121561320857613207612dd2565b5b600061321685828601612f48565b925050602061322785828601612f48565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613267602083612e58565b915061327282613231565b602082019050919050565b600060208201905081810360008301526132968161325a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132d782612dd7565b91506132e283612dd7565b92508282019050808211156132fa576132f961329d565b5b92915050565b7f4d757374206b656570206665657320617420393525206f72206c657373000000600082015250565b6000613336601d83612e58565b915061334182613300565b602082019050919050565b6000602082019050818103600083015261336581613329565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133b357607f821691505b6020821081036133c6576133c561336c565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613428602883612e58565b9150613433826133cc565b604082019050919050565b600060208201905081810360008301526134578161341b565b9050919050565b7f4d757374206b6565702066656573206174203525206f72206c65737300000000600082015250565b6000613494601c83612e58565b915061349f8261345e565b602082019050919050565b600060208201905081810360008301526134c381613487565b9050919050565b60006134d582612dd7565b91506134e083612dd7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135195761351861329d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061355e82612dd7565b915061356983612dd7565b92508261357957613578613524565b5b828204905092915050565b7f43616e6e6f7420736574206d617854786e206c6f776572207468616e20302e3560008201527f2500000000000000000000000000000000000000000000000000000000000000602082015250565b60006135e0602183612e58565b91506135eb82613584565b604082019050919050565b6000602082019050818103600083015261360f816135d3565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b6000613672602483612e58565b915061367d82613616565b604082019050919050565b600060208201905081810360008301526136a181613665565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b6000613704603983612e58565b915061370f826136a8565b604082019050919050565b60006020820190508181036000830152613733816136f7565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613796602583612e58565b91506137a18261373a565b604082019050919050565b600060208201905081810360008301526137c581613789565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b6000613828603583612e58565b9150613833826137cc565b604082019050919050565b600060208201905081810360008301526138578161381b565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b60006138ba603483612e58565b91506138c58261385e565b604082019050919050565b600060208201905081810360008301526138e9816138ad565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061394c602683612e58565b9150613957826138f0565b604082019050919050565b6000602082019050818103600083015261397b8161393f565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006139de602483612e58565b91506139e982613982565b604082019050919050565b60006020820190508181036000830152613a0d816139d1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a70602283612e58565b9150613a7b82613a14565b604082019050919050565b60006020820190508181036000830152613a9f81613a63565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613b02602583612e58565b9150613b0d82613aa6565b604082019050919050565b60006020820190508181036000830152613b3181613af5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613b94602383612e58565b9150613b9f82613b38565b604082019050919050565b60006020820190508181036000830152613bc381613b87565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000613c00601683612e58565b9150613c0b82613bca565b602082019050919050565b60006020820190508181036000830152613c2f81613bf3565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b6000613c92603583612e58565b9150613c9d82613c36565b604082019050919050565b60006020820190508181036000830152613cc181613c85565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000613cfe601383612e58565b9150613d0982613cc8565b602082019050919050565b60006020820190508181036000830152613d2d81613cf1565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b6000613d90603683612e58565b9150613d9b82613d34565b604082019050919050565b60006020820190508181036000830152613dbf81613d83565b9050919050565b6000613dd182612dd7565b9150613ddc83612dd7565b9250828203905081811115613df457613df361329d565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613e56602683612e58565b9150613e6182613dfa565b604082019050919050565b60006020820190508181036000830152613e8581613e49565b9050919050565b6000606082019050613ea1600083018661304d565b613eae602083018561304d565b613ebb604083018461304d565b949350505050565b600081905092915050565b50565b6000613ede600083613ec3565b9150613ee982613ece565b600082019050919050565b6000613eff82613ed1565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050613f7681612f31565b92915050565b600060208284031215613f9257613f91612dd2565b5b6000613fa084828501613f67565b91505092915050565b6000819050919050565b6000613fce613fc9613fc484613fa9565b612fd3565b612dd7565b9050919050565b613fde81613fb3565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61401981612f1f565b82525050565b600061402b8383614010565b60208301905092915050565b6000602082019050919050565b600061404f82613fe4565b6140598185613fef565b935061406483614000565b8060005b8381101561409557815161407c888261401f565b975061408783614037565b925050600181019050614068565b5085935050505092915050565b600060a0820190506140b7600083018861304d565b6140c46020830187613fd5565b81810360408301526140d68186614044565b90506140e560608301856130ca565b6140f2608083018461304d565b9695505050505050565b600060c08201905061411160008301896130ca565b61411e602083018861304d565b61412b6040830187613fd5565b6141386060830186613fd5565b61414560808301856130ca565b61415260a083018461304d565b979650505050505050565b60008151905061416c81612de1565b92915050565b60008060006060848603121561418b5761418a612dd2565b5b60006141998682870161415d565b93505060206141aa8682870161415d565b92505060406141bb8682870161415d565b915050925092509256fea26469706673582212200bea35f0c444887d71570fcc62ccd656639ae3b7b1c5ec1721c2f6425ba8792564736f6c63430008100033
Verified Source Code Partial Match
Compiler: v0.8.16+commit.07a7930e
EVM: london
Optimization: No
main.sol 889 lines
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023.
/*
*/
// SPDX-License-Identifier: MIT
pragma solidity =0.8.16;
pragma experimental ABIEncoderV2;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner { //Change
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IERC20 {
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);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function 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;
}
}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function 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 SYRANT is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 private buyMarketingFee;
uint256 private buyLiquidityFee;
uint256 public sellTotalFees;
uint256 private sellMarketingFee;
uint256 private sellLiquidityFee;
uint256 private tokensForMarketing;
uint256 private tokensForLiquidity;
uint256 private previousFee;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("Fable Of The Shiba", "SYRANT") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 15;
uint256 _buyLiquidityFee = 0;
uint256 _sellMarketingFee = 80;
uint256 _sellLiquidityFee = 0;
uint256 totalSupply = 1000000000 * 1e18;
maxTransactionAmount = 20000000 * 1e18;
maxWallet = 30000000 * 1e18;
swapTokensAtAmount = (totalSupply * 5) / 10000;
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee;
previousFee = sellTotalFees;
marketingWallet = address(0x5a18cb3aFe379257698ab87e912A883F2bA4D04A);
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_mint(msg.sender, totalSupply);
}
receive() external payable {}
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxWalletAndTxnAmount(uint256 newTxnNum, uint256 newMaxWalletNum) external onlyOwner {
require(
newTxnNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxTxn lower than 0.5%"
);
require(
newMaxWalletNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxWallet lower than 0.5%"
);
maxWallet = newMaxWalletNum * (10**18);
maxTransactionAmount = newTxnNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee;
require(buyTotalFees <= 5, "Must keep fees at 5% or less");
}
function updateSellFees(
uint256 _marketingFee,
uint256 _liquidityFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee;
previousFee = sellTotalFees;
require(sellTotalFees <= 95, "Must keep fees at 95% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"Sell transfer amount exceeds the maxTransactionAmount."
);
}
else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(100);
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
sellTotalFees = previousFee;
}
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);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
deadAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
totalTokensToSwap /
2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(
totalTokensToSwap
);
uint256 ethForLiquidity = ethBalance - ethForMarketing;
tokensForLiquidity = 0;
tokensForMarketing = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(marketingWallet).call{value: address(this).balance}("");
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 15 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
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _marketingFee
uint256 _liquidityFee
updateMaxWalletAndTxnAmount 0x96188399
uint256 newTxnNum
uint256 newMaxWalletNum
updateSellFees 0x02dbd8f8
uint256 _marketingFee
uint256 _liquidityFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address