Address Contract Partially Verified
Address
0x8B227d72570D3EAd66014bCA8305CbeF7f90D1eE
Balance
0 ETH
Nonce
1
Code Size
11329 bytes
Creator
0x1Ae4e3A4...baA5 at tx 0x5c0de47d...eacbaa
Indexed Transactions
0
Contract Bytecode
11329 bytes
0x60806040526004361061036e5760003560e01c80638da5cb5b116101c6578063c0246668116100f7578063e71dc3f511610095578063f48c36f41161006f578063f48c36f41461096d578063f54afa781461098e578063f5648a4f146109a4578063fc155d1d146109b957600080fd5b8063e71dc3f514610917578063e7ad9fcd1461092d578063f2fde38b1461094d57600080fd5b8063d85ba063116100d1578063d85ba063146108ab578063dc3f0d0f146108c1578063dd62ed3e146108e1578063e2f456051461090157600080fd5b8063c02466681461084b578063c18bc1951461086b578063d257b34f1461088b57600080fd5b8063a457c2d711610164578063adb873bd1161013e578063adb873bd146107cf578063b1075943146107e5578063b62496f514610805578063bb8d51311461083557600080fd5b8063a457c2d714610779578063a9059cbb14610799578063aa4bde28146107b957600080fd5b80639a7a23d6116101a05780639a7a23d6146107175780639c3b4fdc146107375780639fccce321461074d578063a0d82dc51461076357600080fd5b80638da5cb5b146106ce57806392136913146106ec57806395d89b411461070257600080fd5b8063452ed4f1116102a057806370a082311161023e5780637571336a116102185780637571336a1461066c57806377a3b6091461068c5780637bce5a04146106a257806388e765ff146106b857600080fd5b806370a0823114610622578063715018a614610642578063751039fc1461065757600080fd5b80635b35f9c91161027a5780635b35f9c9146105b657806366d602ae146105d65780636a486a8e146105ec5780636ade20fb1461060257600080fd5b8063452ed4f11461056157806351f205e414610581578063570e5f621461059657600080fd5b80631f3fed8f1161030d5780632be32b61116102e75780632be32b61146104e35780632e6ed7ef14610505578063313ce56714610525578063395093511461054157600080fd5b80631f3fed8f1461048d57806323b872dd146104a3578063272c57fd146104c357600080fd5b806310d5de531161034957806310d5de53146104095780631694505e1461043857806318160ddd146104585780631d7778561461047757600080fd5b8062851fb31461037a57806306fdde03146103b7578063095ea7b3146103d957600080fd5b3661037557005b600080fd5b34801561038657600080fd5b5060075461039a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156103c357600080fd5b506103cc6109d9565b6040516103ae919061282f565b3480156103e557600080fd5b506103f96103f4366004612899565b610a6b565b60405190151581526020016103ae565b34801561041557600080fd5b506103f96104243660046128c5565b602080526000908152604090205460ff1681565b34801561044457600080fd5b50600e5461039a906001600160a01b031681565b34801561046457600080fd5b506002545b6040519081526020016103ae565b34801561048357600080fd5b50610469601e5481565b34801561049957600080fd5b50610469601c5481565b3480156104af57600080fd5b506103f96104be3660046128e9565b610a83565b3480156104cf57600080fd5b5060065461039a906001600160a01b031681565b3480156104ef57600080fd5b506105036104fe36600461292a565b610aa7565b005b34801561051157600080fd5b50610503610520366004612943565b610b97565b34801561053157600080fd5b50604051601281526020016103ae565b34801561054d57600080fd5b506103f961055c366004612899565b610c2e565b34801561056d57600080fd5b50600f5461039a906001600160a01b031681565b34801561058d57600080fd5b50610503610c50565b3480156105a257600080fd5b5060085461039a906001600160a01b031681565b3480156105c257600080fd5b50600a5461039a906001600160a01b031681565b3480156105e257600080fd5b50610469600c5481565b3480156105f857600080fd5b5061046960165481565b34801561060e57600080fd5b5061050361061d366004612975565b610d41565b34801561062e57600080fd5b5061046961063d3660046128c5565b610dfa565b34801561064e57600080fd5b50610503610e15565b34801561066357600080fd5b50610503610e29565b34801561067857600080fd5b506105036106873660046129c0565b610e69565b34801561069857600080fd5b5061046960125481565b3480156106ae57600080fd5b5061046960135481565b3480156106c457600080fd5b50610469600b5481565b3480156106da57600080fd5b506005546001600160a01b031661039a565b3480156106f857600080fd5b5061046960185481565b34801561070e57600080fd5b506103cc610f0e565b34801561072357600080fd5b506105036107323660046129c0565b610f1d565b34801561074357600080fd5b5061046960145481565b34801561075957600080fd5b50610469601d5481565b34801561076f57600080fd5b5061046960195481565b34801561078557600080fd5b506103f9610794366004612899565b610fef565b3480156107a557600080fd5b506103f96107b4366004612899565b61106a565b3480156107c557600080fd5b50610469600d5481565b3480156107db57600080fd5b50610469601a5481565b3480156107f157600080fd5b5060095461039a906001600160a01b031681565b34801561081157600080fd5b506103f96108203660046128c5565b60216020526000908152604090205460ff1681565b34801561084157600080fd5b5061046960175481565b34801561085757600080fd5b506105036108663660046129c0565b611078565b34801561087757600080fd5b5061050361088636600461292a565b6110df565b34801561089757600080fd5b506105036108a636600461292a565b6111c6565b3480156108b757600080fd5b5061046960115481565b3480156108cd57600080fd5b506105036108dc36600461292a565b6112ef565b3480156108ed57600080fd5b506104696108fc3660046129fe565b6113d4565b34801561090d57600080fd5b5061046960105481565b34801561092357600080fd5b5061046960155481565b34801561093957600080fd5b50610503610948366004612943565b6113ff565b34801561095957600080fd5b506105036109683660046128c5565b611490565b34801561097957600080fd5b50600f546103f990600160a01b900460ff1681565b34801561099a57600080fd5b50610469601b5481565b3480156109b057600080fd5b50610503611509565b3480156109c557600080fd5b506105036109d436600461292a565b611553565b6060600380546109e890612a2c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490612a2c565b8015610a615780601f10610a3657610100808354040283529160200191610a61565b820191906000526020600020905b815481529060010190602001808311610a4457829003601f168201915b5050505050905090565b600033610a79818585611775565b5060019392505050565b600033610a9185828561189a565b610a9c85858561190e565b506001949350505050565b610aaf612087565b670de0b6b3a76400006103e8610ac460025490565b610acf906002612a7c565b610ad99190612a9b565b610ae39190612a9b565b811015610b495760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e322560b81b60648201526084015b60405180910390fd5b610b5b81670de0b6b3a7640000612a7c565b600b8190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009906020015b60405180910390a150565b610b9f612087565b60148490556013839055601282905560158190558082610bbf8587612abd565b610bc99190612abd565b610bd39190612abd565b601181905560191015610c285760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610b40565b50505050565b600033610a79818585610c4183836113d4565b610c4b9190612abd565b611775565b610c58612087565b601054610c6430610dfa565b1015610ce45760405162461bcd60e51b815260206004820152604360248201527f436f6e74726163742073686f756c642068617665206120746f6b656e20616d6f60448201527f756e74207468617420697320686967686572207468616e20726573747269637460648201526234b7b760e91b608482015260a401610b40565b600f805460ff60a81b1916600160a81b179055610cff6120e1565b600f805460ff60a81b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b610d49612087565b6001600160a01b038316610d6f5760405162461bcd60e51b8152600401610b4090612ad5565b6001600160a01b038216610d955760405162461bcd60e51b8152600401610b4090612ad5565b6001600160a01b038116610dbb5760405162461bcd60e51b8152600401610b4090612ad5565b600680546001600160a01b039485166001600160a01b031991821617909155600780549385169382169390931790925560088054919093169116179055565b6001600160a01b031660009081526020819052604090205490565b610e1d612087565b610e2760006122e7565b565b610e31612087565b600f805460ff60a01b191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b610e71612087565b80610ee457600f546001600160a01b0390811690831603610ee45760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610b40565b6001600160a01b039190911660009081526020805260409020805460ff1916911515919091179055565b6060600480546109e890612a2c565b610f25612087565b600f546001600160a01b0390811690831603610fa95760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610b40565b610fb38282612339565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b60003381610ffd82866113d4565b90508381101561105d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b40565b610a9c8286868403611775565b600033610a7981858561190e565b611080612087565b6001600160a01b0382166000818152601f6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6110e7612087565b670de0b6b3a76400006103e86110fc60025490565b611107906003612a7c565b6111119190612a9b565b61111b9190612a9b565b81101561117f5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e332560a01b6064820152608401610b40565b61119181670de0b6b3a7640000612a7c565b600d8190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc90602001610b8c565b6111ce612087565b620186a06111db60025490565b6111e6906001612a7c565b6111f09190612a9b565b81101561125d5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610b40565b6103e861126960025490565b611274906001612a7c565b61127e9190612a9b565b8111156112ea5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610b40565b601055565b6112f7612087565b670de0b6b3a76400006103e861130c60025490565b611317906002612a7c565b6113219190612a9b565b61132b9190612a9b565b81101561138d5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e322560b01b6064820152608401610b40565b61139f81670de0b6b3a7640000612a7c565b600c8190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e90602001610b8c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611407612087565b601984905560188390556017829055601a81905580826114278587612abd565b6114319190612abd565b61143b9190612abd565b601681905560191015610c285760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610b40565b611498612087565b6001600160a01b0381166114fd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b40565b611506816122e7565b50565b611511612087565b604051600090339047908381818185875af1925050503d8060008114610c28576040519150601f19603f3d011682016040523d82523d6000602084013e610c28565b61155b612087565b678ac7230489e800008111156115e95760405162461bcd60e51b815260206004820152604760248201527f4d6179206e6f7420627579206d6f7265207468616e2031302045544820696e2060448201527f612073696e676c652062757920746f207265647563652073616e64776963682060648201526661747461636b7360c81b608482015260a401610b40565b6040805160028082526060820183526000926020830190803683375050600e54604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015611653573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116779190612b0c565b8160008151811061168a5761168a612b29565b60200260200101906001600160a01b031690816001600160a01b03168152505030816001815181106116be576116be612b29565b6001600160a01b039283166020918202929092010152600e5460405163b6f9de9560e01b815291169063b6f9de9590849061170690600090869061dead904290600401612b83565b6000604051808303818588803b15801561171f57600080fd5b505af1158015611733573d6000803e3d6000fd5b50505050507fa017c1567cfcdd2d750a8c01e39fe2a846bcebc293c7d078477014d6848205688260405161176991815260200190565b60405180910390a15050565b6001600160a01b0383166117d75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b40565b6001600160a01b0382166118385760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b40565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006118a684846113d4565b90506000198114610c2857818110156119015760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b40565b610c288484848403611775565b6001600160a01b0383166119725760405162461bcd60e51b815260206004820152602560248201527f63616e6e6f74207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b40565b6001600160a01b0382166119d45760405162461bcd60e51b815260206004820152602360248201527f63616e6e6f74207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b40565b60008111611a245760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610b40565b600f54600160a01b900460ff1615611d1a576005546001600160a01b03848116911614801590611a6257506005546001600160a01b03838116911614155b8015611a7657506001600160a01b03821615155b8015611a8d57506001600160a01b03821661dead14155b8015611ab257506001600160a01b0383166000908152601f602052604090205460ff16155b8015611ad757506001600160a01b0382166000908152601f602052604090205460ff16155b15611d1a576001600160a01b03831660009081526021602052604090205460ff168015611b1c57506001600160a01b038216600090815260208052604090205460ff16155b15611bed57600b54811115611b845760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610b40565b600d54611b9083610dfa565b611b9a9083612abd565b1115611be85760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420457863656564206d61782077616c6c657400000000000000006044820152606401610b40565b611d1a565b6001600160a01b03821660009081526021602052604090205460ff168015611c2d57506001600160a01b038316600090815260208052604090205460ff16155b15611c9757600c54811115611be85760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610b40565b6001600160a01b038216600090815260208052604090205460ff16611d1a57600d54611cc283610dfa565b611ccc9083612abd565b1115611d1a5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420457863656564206d617820616d6f756e7400000000000000006044820152606401610b40565b6000611d2530610dfa565b60105490915081108015908190611d465750600f54600160a81b900460ff16155b8015611d6b57506001600160a01b03851660009081526021602052604090205460ff16155b8015611d9057506001600160a01b0385166000908152601f602052604090205460ff16155b8015611db557506001600160a01b0384166000908152601f602052604090205460ff16155b15611de357600f805460ff60a81b1916600160a81b179055611dd56120e1565b600f805460ff60a81b191690555b6001600160a01b0385166000908152601f602052604090205460019060ff1680611e2557506001600160a01b0385166000908152601f602052604090205460ff165b15611e2e575060005b60008115612073576001600160a01b03861660009081526021602052604090205460ff168015611e6057506000601654115b15611f4857606460165486611e759190612a7c565b611e7f9190612a9b565b905060165460175482611e929190612a7c565b611e9c9190612a9b565b601b6000828254611ead9190612abd565b9091555050601654601954611ec29083612a7c565b611ecc9190612a9b565b601d6000828254611edd9190612abd565b9091555050601654601854611ef29083612a7c565b611efc9190612a9b565b601c6000828254611f0d9190612abd565b9091555050601654601a54611f229083612a7c565b611f2c9190612a9b565b601e6000828254611f3d9190612abd565b909155506120559050565b6001600160a01b03871660009081526021602052604090205460ff168015611f7257506000601154115b1561205557606460115486611f879190612a7c565b611f919190612a9b565b905060115460125482611fa49190612a7c565b611fae9190612a9b565b601b6000828254611fbf9190612abd565b9091555050601154601454611fd49083612a7c565b611fde9190612a9b565b601d6000828254611fef9190612abd565b90915550506011546013546120049083612a7c565b61200e9190612a9b565b601c600082825461201f9190612abd565b90915550506011546015546120349083612a7c565b61203e9190612a9b565b601e600082825461204f9190612abd565b90915550505b8015612066576120668730836123ad565b6120708186612bb8565b94505b61207e8787876123ad565b50505050505050565b6005546001600160a01b03163314610e275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6000601e541180156120fd5750601e546120fa30610dfa565b10155b1561210e5761210e30601e54612551565b6000601e81905561211e30610dfa565b90506000601b54601c54601d546121359190612abd565b61213f9190612abd565b905081158061214c575080155b15612155575050565b601054612163906014612a7c565b82111561217b57601054612178906014612a7c565b91505b60006121868361267b565b601d544790600090849061219a9084612a7c565b6121a49190612a9b565b9050600084601b54846121b79190612a7c565b6121c19190612a9b565b9050600085601c54856121d49190612a7c565b6121de9190612a9b565b6006546040519192506001600160a01b0316908490600081818185875af1925050503d806000811461222c576040519150601f19603f3d011682016040523d82523d6000602084013e612231565b606091505b50506008546040519196506001600160a01b0316908390600081818185875af1925050503d8060008114612281576040519150601f19603f3d011682016040523d82523d6000602084013e612286565b606091505b50506007546040519196506001600160a01b0316904790600081818185875af1925050503d80600081146122d6576040519150601f19603f3d011682016040523d82523d6000602084013e6122db565b606091505b50505050505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f80546001600160a01b039081166000908152602160205260409020805460ff1916841515179055905461236f9116826127d5565b600f54604051821515916001600160a01b0316907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166124115760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b40565b6001600160a01b0382166124735760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b40565b6001600160a01b038316600090815260208190526040902054818110156124eb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b40565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610c28565b6001600160a01b0382166125b15760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b40565b6001600160a01b038216600090815260208190526040902054818110156126255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b40565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161188d565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126b0576126b0612b29565b6001600160a01b03928316602091820292909201810191909152600e54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612709573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061272d9190612b0c565b8160018151811061274057612740612b29565b6001600160a01b039283166020918202929092010152600e546127669130911684611775565b600e5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061279f908590600090869030904290600401612bcf565b600060405180830381600087803b1580156127b957600080fd5b505af11580156127cd573d6000803e3d6000fd5b505050505050565b6001600160a01b03821660008181526020808052604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd67469101611769565b600060208083528351808285015260005b8181101561285c57858101830151858201604001528201612840565b8181111561286e576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461150657600080fd5b600080604083850312156128ac57600080fd5b82356128b781612884565b946020939093013593505050565b6000602082840312156128d757600080fd5b81356128e281612884565b9392505050565b6000806000606084860312156128fe57600080fd5b833561290981612884565b9250602084013561291981612884565b929592945050506040919091013590565b60006020828403121561293c57600080fd5b5035919050565b6000806000806080858703121561295957600080fd5b5050823594602084013594506040840135936060013592509050565b60008060006060848603121561298a57600080fd5b833561299581612884565b925060208401356129a581612884565b915060408401356129b581612884565b809150509250925092565b600080604083850312156129d357600080fd5b82356129de81612884565b9150602083013580151581146129f357600080fd5b809150509250929050565b60008060408385031215612a1157600080fd5b8235612a1c81612884565b915060208301356129f381612884565b600181811c90821680612a4057607f821691505b602082108103612a6057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612a9657612a96612a66565b500290565b600082612ab857634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115612ad057612ad0612a66565b500190565b6020808252601e908201527f616464726573732063616e6e6f74206265207a65726f20616464726573730000604082015260600190565b600060208284031215612b1e57600080fd5b81516128e281612884565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b83811015612b785781516001600160a01b031687529582019590820190600101612b53565b509495945050505050565b848152608060208201526000612b9c6080830186612b3f565b6001600160a01b03949094166040830152506060015292915050565b600082821015612bca57612bca612a66565b500390565b85815284602082015260a060408201526000612bee60a0830186612b3f565b6001600160a01b039490941660608301525060800152939250505056fea26469706673582212209f96b72d93712e34ef234886aa8e9e0c897e50fdf824f358bf7a67538186294964736f6c634300080f0033
Verified Source Code Partial Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: Yes (200 runs)
LizaToken.sol 1009 lines
// File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** Website: https://lizatoken.com Twitter: https://twitter.com/Lizatoken Telegram: https://t.me/Liza_Token Medium: https://medium.com/@Liza_Token */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ 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; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ 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); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File contracts/LizaToken.sol pragma solidity 0.8.15; interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IUniswapV2Router { function factory() external pure returns (address); function WETH() external pure returns (address); function swapExactTokensForETHSupportingFeeOnTransferTokens( 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 addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); } contract LizaToken is ERC20, Ownable { address public devTaxWallet; address public marketingTaxWallet; address public rewardsTaxWallet; address public cexWallet; address public rewardsWallet; uint256 public maxBuyAmount; uint256 public maxSellAmount; uint256 public maxWalletAmount; IUniswapV2Router public uniswapV2Router; address public lpPair; bool public hasLimits = true; bool private swapping; uint256 public swapTokensAtAmount; uint256 public buyTotalFees; uint256 public buyRewardsFee; uint256 public buyMarketingFee; uint256 public buyDevFee; uint256 public buyBurnFee; uint256 public sellTotalFees; uint256 public sellRewardsFee; uint256 public sellMarketingFee; uint256 public sellDevFee; uint256 public sellBurnFee; uint256 public tokensForRewards; uint256 public tokensForMarketing; uint256 public tokensForDev; uint256 public tokensForBurn; mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) public _isExcludedMaxTransactionAmount; // store addresses that a automatic market maker pairs. Any transfer *to* these addresses // could be subject to a maximum transfer amount mapping (address => bool) public automatedMarketMakerPairs; //events event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event MaxTransactionExclusion(address _address, bool excluded); event ExcludeFromFees(address indexed account, bool isExcluded); event OwnerForcedSwapBack(uint256 timestamp); event UpdatedMaxBuyAmount(uint256 newAmount); event UpdatedMaxSellAmount(uint256 newAmount); event UpdatedMaxWalletAmount(uint256 newAmount); event RemovedLimits(); event BuyBackTriggered(uint256 amount); constructor() ERC20("LIZA", "LIZA") { address newOwner = msg.sender; // can leave alone if owner is deployer. IUniswapV2Router _uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Router = _uniswapV2Router; //create pair lpPair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); _excludeFromMaxTransaction(address(lpPair), true); _setAutomatedMarketMakerPair(address(lpPair), true); uint256 totalSupply = 777777777 * 1e18; maxBuyAmount = totalSupply * 1 / 100; maxSellAmount = totalSupply * 1 / 100; maxWalletAmount = totalSupply * 1 / 100; swapTokensAtAmount = totalSupply * 1 / 1000; buyDevFee = 3; buyMarketingFee = 1; buyRewardsFee = 1; buyBurnFee = 1; buyTotalFees = buyBurnFee + buyRewardsFee + buyMarketingFee + buyDevFee; sellDevFee = 13; sellMarketingFee = 10; sellRewardsFee = 1; sellBurnFee = 1; sellTotalFees = sellBurnFee + sellRewardsFee + sellMarketingFee + sellDevFee; devTaxWallet = 0xa8bAE2505e986782BCEFD3A20d6DE02AF0f7001c; marketingTaxWallet = 0x9B197F752d3EE4486A078530a0546aCE65fEA41a; rewardsTaxWallet = 0xB31497898903CEF62Ad6CDA5c449B8BDF9C07596; rewardsWallet = 0xfec13df9f85BC3cE66b7113Fe8b8107bf7AeDf3C; cexWallet = 0x454450ee5C7f64632989993820dBA797702B1C0B; _excludeFromMaxTransaction(devTaxWallet, true); _excludeFromMaxTransaction(marketingTaxWallet, true); _excludeFromMaxTransaction(rewardsTaxWallet, true); _excludeFromMaxTransaction(rewardsWallet, true); _excludeFromMaxTransaction(cexWallet, true); _excludeFromMaxTransaction(address(this), true); excludeFromFees(newOwner, true); excludeFromFees(devTaxWallet, true); excludeFromFees(marketingTaxWallet, true); excludeFromFees(rewardsTaxWallet, true); excludeFromFees(rewardsWallet, true); excludeFromFees(cexWallet, true); excludeFromFees(address(this), true); excludeFromFees(address(0xdead), true); _mint(newOwner, totalSupply * 85/100); _mint(rewardsWallet, totalSupply * 10/100); //mint 10% for rewards _mint(cexWallet, totalSupply * 5/100); //mint 5% for cex transferOwnership(newOwner); } function _transfer(address from, address to, uint256 amount) internal override { require(from != address(0), "cannot transfer from the zero address"); require(to != address(0), "cannot transfer to the zero address"); require(amount > 0, "amount must be greater than 0"); //check for max wallet / max transaction if(hasLimits){ if(from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){ //buy action if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) { require(amount <= maxBuyAmount, "Buy transfer amount exceeds the max buy."); require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet"); } //sell action else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) { require(amount <= maxSellAmount, "Sell transfer amount exceeds the max sell."); } //other transfers else if(!_isExcludedMaxTransactionAmount[to]){ require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max amount"); } } } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if(canSwap && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) { swapping = true; swapBack(); swapping = false; } bool takeFee = true; if(_isExcludedFromFees[from] || _isExcludedFromFees[to]){ takeFee = false; } uint256 fees = 0; if(takeFee){ if (automatedMarketMakerPairs[to] && sellTotalFees > 0){ fees = amount * sellTotalFees / 100; tokensForRewards += fees * sellRewardsFee / sellTotalFees; tokensForDev += fees * sellDevFee / sellTotalFees; tokensForMarketing += fees * sellMarketingFee / sellTotalFees; tokensForBurn += fees * sellBurnFee / sellTotalFees; } else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) { fees = amount * buyTotalFees / 100; tokensForRewards += fees * buyRewardsFee / buyTotalFees; tokensForDev += fees * buyDevFee / buyTotalFees; tokensForMarketing += fees * buyMarketingFee / buyTotalFees; tokensForBurn += fees * buyBurnFee / buyTotalFees; } if(fees > 0){ super._transfer(from, address(this), fees); } amount -= fees; } super._transfer(from, to, amount); } function swapBack() private { //burn if(tokensForBurn > 0 && balanceOf(address(this)) >= tokensForBurn) { _burn(address(this), tokensForBurn); } tokensForBurn = 0; uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensToSwap = tokensForDev + tokensForMarketing + tokensForRewards; if(contractBalance == 0 || totalTokensToSwap == 0){return;} if(contractBalance > swapTokensAtAmount * 20){ contractBalance = swapTokensAtAmount * 20; } bool success; swapTokensForEth(contractBalance); uint256 ethBalance = address(this).balance; uint256 ethForDev = ethBalance * tokensForDev / (totalTokensToSwap); uint256 ethForReward = ethBalance * tokensForRewards / (totalTokensToSwap); uint256 ethForMarketing = ethBalance * tokensForMarketing / (totalTokensToSwap); (success,) = address(devTaxWallet).call{value: ethForDev}(""); (success,) = address(rewardsTaxWallet).call{value: ethForReward}(""); (success,) = address(marketingTaxWallet).call{value: address(this).balance}(""); } receive() external payable {} function excludeFromMaxTransaction(address updAds, bool isEx) external onlyOwner { if(!isEx){ require(updAds != lpPair, "Cannot remove uniswap pair from max txn"); } _isExcludedMaxTransactionAmount[updAds] = isEx; } function _excludeFromMaxTransaction(address adrs, bool isExcluded) private { _isExcludedMaxTransactionAmount[adrs] = isExcluded; emit MaxTransactionExclusion(adrs, isExcluded); } 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] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } // force Swap back if slippage issues. function forceSwapBack() external onlyOwner { require(balanceOf(address(this)) >= swapTokensAtAmount, "Contract should have a token amount that is higher than restriction"); swapping = true; swapBack(); swapping = false; emit OwnerForcedSwapBack(block.timestamp); } // withdraw ETH from contract address function withdrawStuckETH() external onlyOwner { bool success; (success,) = address(msg.sender).call{value: address(this).balance}(""); } function excludeFromFees(address account, bool excluded) public onlyOwner { _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function setWalletsAddresses(address _development, address _marketing, address _rewards) external onlyOwner { require(_development != address(0),"address cannot be zero address"); require(_marketing != address(0),"address cannot be zero address"); require(_rewards != address(0),"address cannot be zero address"); devTaxWallet = payable(_development); marketingTaxWallet = payable(_marketing); rewardsTaxWallet = payable(_rewards); } // change the minimum amount of tokens to sell from fees function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner { require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply."); require(newAmount <= totalSupply() * 1 / 1000, "Swap amount cannot be higher than 0.1% total supply."); swapTokensAtAmount = newAmount; } function updateMaxWalletAmount(uint256 newNum) external onlyOwner { require(newNum >= (totalSupply() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%"); maxWalletAmount = newNum * (10**18); emit UpdatedMaxWalletAmount(maxWalletAmount); } function updateMaxBuyAmount(uint256 newNum) external onlyOwner { require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max buy amount lower than 0.2%"); maxBuyAmount = newNum * (10**18); emit UpdatedMaxBuyAmount(maxBuyAmount); } function updateMaxSellAmount(uint256 newNum) external onlyOwner { require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max sell amount lower than 0.2%"); maxSellAmount = newNum * (10**18); emit UpdatedMaxSellAmount(maxSellAmount); } function updateBuyFees(uint256 _developmentFee, uint256 _marketingFee, uint256 _rewardsFee, uint256 _burnFee) external onlyOwner { buyDevFee = _developmentFee; buyMarketingFee = _marketingFee; buyRewardsFee = _rewardsFee; buyBurnFee = _burnFee; buyTotalFees = buyDevFee + buyMarketingFee + buyRewardsFee + buyBurnFee; require(buyTotalFees <= 25, "Must keep fees at 25% or less"); } function updateSellFees(uint256 _developmentFee, uint256 _marketingFee, uint256 _rewardsFee, uint256 _burnFee) external onlyOwner { sellDevFee = _developmentFee; sellMarketingFee = _marketingFee; sellRewardsFee = _rewardsFee; sellBurnFee = _burnFee; sellTotalFees = sellDevFee + sellMarketingFee + sellRewardsFee + sellBurnFee; require(sellTotalFees <= 25, "Must keep fees at 25% or less"); } function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner { require(pair != lpPair, "The pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); emit SetAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[lpPair] = value; _excludeFromMaxTransaction(lpPair, value); emit SetAutomatedMarketMakerPair(lpPair, value); } //remove limits after token is stable function removeLimits() external onlyOwner { hasLimits = false; emit RemovedLimits(); } // useful for buybacks or to reclaim any ETH on the contract in a way that helps holders. function buyBackTokens(uint256 amountInWei) external onlyOwner { require(amountInWei <= 10 ether, "May not buy more than 10 ETH in a single buy to reduce sandwich attacks"); address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = address(this); uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInWei}( 0, // accept any amount of Ethereum path, address(0xdead), block.timestamp ); emit BuyBackTriggered(amountInWei); } }
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyRewardsFee 0x77a3b609 → uint256
buyTotalFees 0xd85ba063 → uint256
cexWallet 0xb1075943 → address
decimals 0x313ce567 → uint8
devTaxWallet 0x272c57fd → address
hasLimits 0xf48c36f4 → bool
lpPair 0x452ed4f1 → address
marketingTaxWallet 0x00851fb3 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
rewardsTaxWallet 0x570e5f62 → address
rewardsWallet 0x5b35f9c9 → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellMarketingFee 0x92136913 → uint256
sellRewardsFee 0xbb8d5131 → uint256
sellTotalFees 0x6a486a8e → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForMarketing 0x1f3fed8f → uint256
tokensForRewards 0xf54afa78 → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBackTokens 0xfc155d1d
uint256 amountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setWalletsAddresses 0x6ade20fb
address _development
address _marketing
address _rewards
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _developmentFee
uint256 _marketingFee
uint256 _rewardsFee
uint256 _burnFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _developmentFee
uint256 _marketingFee
uint256 _rewardsFee
uint256 _burnFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address