Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x43A8f41644a3f07818a43455b975d940Ce16A3fa
Balance 0 ETH
Nonce 1
Code Size 14253 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

14253 bytes
0x60806040526004361061036f5760003560e01c806395d89b41116101c6578063d85ba063116100f7578063e7ad9fcd11610095578063f5648a4f1161006f578063f5648a4f14610970578063f637434214610985578063fb002c971461099b578063fc155d1d146109b157600080fd5b8063e7ad9fcd1461091a578063f11a24d31461093a578063f2fde38b1461095057600080fd5b8063e01af92c116100d1578063e01af92c146108b9578063e2cd5fcd146108d9578063e2f45605146108ee578063e71dc3f51461090457600080fd5b8063d85ba0631461083d578063dc3f0d0f14610853578063dd62ed3e1461087357600080fd5b8063aa4bde2811610164578063c02466681161013e578063c0246668146107bd578063c18bc195146107dd578063d0d41fe1146107fd578063d257b34f1461081d57600080fd5b8063aa4bde2814610770578063adb873bd14610786578063bbc0c7421461079c57600080fd5b80639fccce32116101a05780639fccce3214610704578063a0d82dc51461071a578063a457c2d714610730578063a9059cbb1461075057600080fd5b806395d89b41146106b95780639a7a23d6146106ce5780639c3b4fdc146106ee57600080fd5b806351f205e4116102a0578063751039fc1161023e5780638366e79a116102185780638366e79a1461065057806388e765ff146106705780638a8c523c146106865780638da5cb5b1461069b57600080fd5b8063751039fc146105fb5780637571336a146106105780638236802e1461063057600080fd5b80636a486a8e1161027a5780636a486a8e1461058f5780636ddd1713146105a557806370a08231146105c6578063715018a6146105e657600080fd5b806351f205e41461054e5780635a139dd41461056357806366d602ae1461057957600080fd5b80632e6ed7ef1161030d578063452ed4f1116102e7578063452ed4f1146104bf578063499b8394146104f75780634a62bb65146105175780634f77f6c01461053857600080fd5b80632e6ed7ef14610463578063313ce56714610483578063395093511461049f57600080fd5b80631a8145bb116103495780631a8145bb146103f55780631d7778561461040b57806323b872dd146104215780632be32b611461044157600080fd5b806306fdde031461037b578063095ea7b3146103a657806318160ddd146103d657600080fd5b3661037657005b600080fd5b34801561038757600080fd5b506103906109d1565b60405161039d91906132d3565b60405180910390f35b3480156103b257600080fd5b506103c66103c1366004613340565b610a63565b604051901515815260200161039d565b3480156103e257600080fd5b506002545b60405190815260200161039d565b34801561040157600080fd5b506103e760185481565b34801561041757600080fd5b506103e7601a5481565b34801561042d57600080fd5b506103c661043c36600461336c565b610a79565b34801561044d57600080fd5b5061046161045c3660046133ad565b610b28565b005b34801561046f57600080fd5b5061046161047e3660046133c6565b610c35565b34801561048f57600080fd5b506040516012815260200161039d565b3480156104ab57600080fd5b506103c66104ba366004613340565b610cee565b3480156104cb57600080fd5b506009546104df906001600160a01b031681565b6040516001600160a01b03909116815260200161039d565b34801561050357600080fd5b506104616105123660046133f8565b610d2a565b34801561052357600080fd5b50600c546103c690600160a01b900460ff1681565b34801561054457600080fd5b506103e760135481565b34801561055a57600080fd5b50610461610ddb565b34801561056f57600080fd5b506103e7600e5481565b34801561058557600080fd5b506103e760075481565b34801561059b57600080fd5b506103e760125481565b3480156105b157600080fd5b50600c546103c690600160b01b900460ff1681565b3480156105d257600080fd5b506103e76105e13660046133f8565b610ee4565b3480156105f257600080fd5b50610461610eff565b34801561060757600080fd5b50610461610f73565b34801561061c57600080fd5b5061046161062b36600461342a565b610fd5565b34801561063c57600080fd5b5061046161064b36600461342a565b61109d565b34801561065c57600080fd5b506103c661066b366004613463565b6110f2565b34801561067c57600080fd5b506103e760065481565b34801561069257600080fd5b506104616112fb565b3480156106a757600080fd5b506005546001600160a01b03166104df565b3480156106c557600080fd5b506103906113bf565b3480156106da57600080fd5b506104616106e936600461342a565b6113ce565b3480156106fa57600080fd5b506103e760105481565b34801561071057600080fd5b506103e760195481565b34801561072657600080fd5b506103e760155481565b34801561073c57600080fd5b506103c661074b366004613340565b6114c2565b34801561075c57600080fd5b506103c661076b366004613340565b61155b565b34801561077c57600080fd5b506103e760085481565b34801561079257600080fd5b506103e760165481565b3480156107a857600080fd5b50600c546103c690600160a81b900460ff1681565b3480156107c957600080fd5b506104616107d836600461342a565b611568565b3480156107e957600080fd5b506104616107f83660046133ad565b6115f1565b34801561080957600080fd5b506104616108183660046133f8565b6116fa565b34801561082957600080fd5b506104616108383660046133ad565b61179c565b34801561084957600080fd5b506103e7600d5481565b34801561085f57600080fd5b5061046161086e3660046133ad565b6118e7565b34801561087f57600080fd5b506103e761088e366004613463565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108c557600080fd5b506104616108d4366004613491565b6119ee565b3480156108e557600080fd5b50610461611a36565b3480156108fa57600080fd5b506103e7600a5481565b34801561091057600080fd5b506103e760115481565b34801561092657600080fd5b506104616109353660046133c6565b611b80565b34801561094657600080fd5b506103e7600f5481565b34801561095c57600080fd5b5061046161096b3660046133f8565b611c33565b34801561097c57600080fd5b50610461611d1e565b34801561099157600080fd5b506103e760145481565b3480156109a757600080fd5b506103e760175481565b3480156109bd57600080fd5b506104616109cc3660046133ad565b611d8a565b6060600380546109e0906134ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0c906134ae565b8015610a595780601f10610a2e57610100808354040283529160200191610a59565b820191906000526020600020905b815481529060010190602001808311610a3c57829003601f168201915b5050505050905090565b6000610a70338484611fcd565b50600192915050565b6000610a868484846120f2565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610b105760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610b1d8533858403611fcd565b506001949350505050565b6005546001600160a01b03163314610b525760405162461bcd60e51b8152600401610b07906134e8565b670de0b6b3a76400006103e8610b6760025490565b610b72906002613533565b610b7c9190613552565b610b869190613552565b811015610be75760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e322560b81b6064820152608401610b07565b610bf981670de0b6b3a7640000613533565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009906020015b60405180910390a150565b6005546001600160a01b03163314610c5f5760405162461bcd60e51b8152600401610b07906134e8565b600e849055600f839055601082905560118190558082610c7f8587613574565b610c899190613574565b610c939190613574565b600d819055600f1015610ce85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c6573730000006044820152606401610b07565b50505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a70918590610d25908690613574565b611fcd565b6005546001600160a01b03163314610d545760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b038116610db95760405162461bcd60e51b815260206004820152602660248201527f5f6f7065726174696f6e734164647265737320616464726573732063616e6e6f60448201526507420626520360d41b6064820152608401610b07565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610e055760405162461bcd60e51b8152600401610b07906134e8565b600a54610e1130610ee4565b1015610e87576040805162461bcd60e51b81526020600482015260248101919091527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206174206f7220686967686572207468616e207265737472696374696f6e6064820152608401610b07565b6009805460ff60a01b1916600160a01b179055610ea2612b7e565b6009805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b03163314610f295760405162461bcd60e51b8152600401610b07906134e8565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610f9d5760405162461bcd60e51b8152600401610b07906134e8565b600c805460ff60a01b191690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b6005546001600160a01b03163314610fff5760405162461bcd60e51b8152600401610b07906134e8565b80611072576009546001600160a01b03908116908316036110725760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610b07565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110c75760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b03919091166000908152601b60205260409020805460ff1916911515919091179055565b6005546000906001600160a01b0316331461111f5760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b0383166111755760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610b07565b306001600160a01b038416036111cd5760405162461bcd60e51b815260206004820152601c60248201527f43616e2774207769746864726177206e617469766520746f6b656e73000000006044820152606401610b07565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611214573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611238919061358c565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af115801561128b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112af91906135a5565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b031633146113255760405162461bcd60e51b8152600401610b07906134e8565b600c54600160a81b900460ff161561137f5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207265656e61626c652074726164696e670000000000000000006044820152606401610b07565b600c805461ffff60a81b191661010160a81b1790556040517fa56feb2d31b9a7424db0be063fd450863979c9e2382cf5110f869bd1ad361bb790600090a1565b6060600480546109e0906134ae565b6005546001600160a01b031633146113f85760405162461bcd60e51b8152600401610b07906134e8565b6009546001600160a01b039081169083160361147c5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610b07565b6114868282612dbd565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156115445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b07565b6115513385858403611fcd565b5060019392505050565b6000610a703384846120f2565b6005546001600160a01b031633146115925760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b0382166000818152601c6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b0316331461161b5760405162461bcd60e51b8152600401610b07906134e8565b670de0b6b3a76400006103e861163060025490565b61163b906003613533565b6116459190613552565b61164f9190613552565b8110156116b35760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e332560a01b6064820152608401610b07565b6116c581670de0b6b3a7640000613533565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc90602001610c2a565b6005546001600160a01b031633146117245760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b03811661177a5760405162461bcd60e51b815260206004820152601f60248201527f5f6465764164647265737320616464726573732063616e6e6f742062652030006044820152606401610b07565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146117c65760405162461bcd60e51b8152600401610b07906134e8565b620186a06117d360025490565b6117de906001613533565b6117e89190613552565b8110156118555760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610b07565b6103e861186160025490565b61186c906001613533565b6118769190613552565b8111156118e25760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610b07565b600a55565b6005546001600160a01b031633146119115760405162461bcd60e51b8152600401610b07906134e8565b670de0b6b3a76400006103e861192660025490565b611931906002613533565b61193b9190613552565b6119459190613552565b8110156119a75760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e322560b01b6064820152608401610b07565b6119b981670de0b6b3a7640000613533565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e90602001610c2a565b6005546001600160a01b03163314611a185760405162461bcd60e51b8152600401610b07906134e8565b600c8054911515600160b01b0260ff60b01b19909216919091179055565b6005546001600160a01b03163314611a605760405162461bcd60e51b8152600401610b07906134e8565b600360138190556000601481905560158190556016819055908190611a86908290613574565b611a909190613574565b611a9a9190613574565b6012819055601e1015611aef5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420333025206f72206c6573730000006044820152606401610b07565b6003600e8190556000600f81905560108190556011819055908190611b15908290613574565b611b1f9190613574565b611b299190613574565b600d819055600f1015611b7e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c6573730000006044820152606401610b07565b565b6005546001600160a01b03163314611baa5760405162461bcd60e51b8152600401610b07906134e8565b60138490556014839055601582905560168190558082611bca8587613574565b611bd49190613574565b611bde9190613574565b6012819055601e1015610ce85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420333025206f72206c6573730000006044820152606401610b07565b6005546001600160a01b03163314611c5d5760405162461bcd60e51b8152600401610b07906134e8565b6001600160a01b038116611cc25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b07565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611d485760405162461bcd60e51b8152600401610b07906134e8565b604051600090339047908381818185875af1925050503d8060008114610ce8576040519150601f19603f3d011682016040523d82523d6000602084013e610ce8565b6005546001600160a01b03163314611db45760405162461bcd60e51b8152600401610b07906134e8565b678ac7230489e80000811115611e425760405162461bcd60e51b815260206004820152604760248201527f4d6179206e6f7420627579206d6f7265207468616e2031302045544820696e2060448201527f612073696e676c652062757920746f207265647563652073616e64776963682060648201526661747461636b7360c81b608482015260a401610b07565b604080516002808252606082018352600092602083019080368337505060208054604080516315ab88c960e31b815290519495506001600160a01b039091169363ad5c46489350600480830193928290030181865afa158015611ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecd91906135c2565b81600081518110611ee057611ee06135df565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611f1457611f146135df565b6001600160a01b039283166020918202929092018101919091525460405163b6f9de9560e01b815291169063b6f9de95908490611f5e90600090869061dead904290600401613639565b6000604051808303818588803b158015611f7757600080fd5b505af1158015611f8b573d6000803e3d6000fd5b50505050507fa017c1567cfcdd2d750a8c01e39fe2a846bcebc293c7d078477014d68482056882604051611fc191815260200190565b60405180910390a15050565b6001600160a01b03831661202f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b07565b6001600160a01b0382166120905760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b07565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166121185760405162461bcd60e51b8152600401610b079061366e565b6001600160a01b03821661213e5760405162461bcd60e51b8152600401610b07906136b3565b6000811161218e5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610b07565b6001600160a01b0383166000908152601b602052604090205460ff161580156121d057506001600160a01b0382166000908152601b602052604090205460ff16155b61221c5760405162461bcd60e51b815260206004820152601a60248201527f6d757374206e6f7420626520666c616767656420617320626f740000000000006044820152606401610b07565b600c54600160a81b900460ff166122b1576001600160a01b0383166000908152601c602052604090205460ff168061226c57506001600160a01b0382166000908152601c602052604090205460ff165b6122b15760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610b07565b601f60009054906101000a90046001600160a01b03166001600160a01b0316637df058f56040518163ffffffff1660e01b8152600401602060405180830381865afa158015612304573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232891906135a5565b156123e457601f5460405163efb7ad4360e01b81526001600160a01b03858116600483015284811660248301529091169063efb7ad43906044016020604051808303816000875af1158015612381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a591906135a5565b6123e45760405162461bcd60e51b815260206004820152601060248201526f1858dd1a5d9a5d1e48189b1bd8dad95960821b6044820152606401610b07565b601f60009054906101000a90046001600160a01b03166001600160a01b0316633ef776c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015612437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245b91906135a5565b1561250d57601f5460405163c032342360e01b81526001600160a01b0384811660048301529091169063c032342390602401602060405180830381865afa1580156124aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ce91906135a5565b61250d5760405162461bcd60e51b815260206004820152601060248201526f1858dd1a5d9a5d1e48189b1bd8dad95960821b6044820152606401610b07565b600c54600160a01b900460ff16156127fc576005546001600160a01b0384811691161480159061254b57506005546001600160a01b03838116911614155b801561255f57506001600160a01b03821615155b801561257657506001600160a01b03821661dead14155b801561259b57506001600160a01b0383166000908152601c602052604090205460ff16155b80156125c057506001600160a01b0382166000908152601c602052604090205460ff16155b156127fc576001600160a01b0383166000908152601e602052604090205460ff16801561260657506001600160a01b0382166000908152601d602052604090205460ff16155b156126d25760065481111561266e5760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610b07565b60085461267a83610ee4565b6126849083613574565b11156126cd5760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b07565b6127fc565b6001600160a01b0382166000908152601e602052604090205460ff16801561271357506001600160a01b0383166000908152601d602052604090205460ff16155b1561277d576007548111156126cd5760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610b07565b6001600160a01b0382166000908152601d602052604090205460ff166127fc576008546127a983610ee4565b6127b39083613574565b11156127fc5760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b07565b600061280730610ee4565b600a54909150811080159081906128275750600c54600160b01b900460ff165b801561283d5750600954600160a01b900460ff16155b801561286257506001600160a01b0385166000908152601e602052604090205460ff16155b801561288757506001600160a01b0385166000908152601c602052604090205460ff16155b80156128ac57506001600160a01b0384166000908152601c602052604090205460ff16155b156128da576009805460ff60a01b1916600160a01b1790556128cc612b7e565b6009805460ff60a01b191690555b6001600160a01b0385166000908152601c602052604090205460019060ff168061291c57506001600160a01b0385166000908152601c602052604090205460ff165b15612925575060005b60008115612b6a576001600160a01b0386166000908152601e602052604090205460ff16801561295757506000601254115b15612a3f5760646012548661296c9190613533565b6129769190613552565b9050601254601454826129899190613533565b6129939190613552565b601860008282546129a49190613574565b90915550506012546013546129b99083613533565b6129c39190613552565b601760008282546129d49190613574565b90915550506012546015546129e99083613533565b6129f39190613552565b60196000828254612a049190613574565b9091555050601254601654612a199083613533565b612a239190613552565b601a6000828254612a349190613574565b90915550612b4c9050565b6001600160a01b0387166000908152601e602052604090205460ff168015612a6957506000600d54115b15612b4c576064600d5486612a7e9190613533565b612a889190613552565b9050600d54600f5482612a9b9190613533565b612aa59190613552565b60186000828254612ab69190613574565b9091555050600d54600e54612acb9083613533565b612ad59190613552565b60176000828254612ae69190613574565b9091555050600d54601054612afb9083613533565b612b059190613552565b60196000828254612b169190613574565b9091555050600d54601154612b2b9083613533565b612b359190613552565b601a6000828254612b469190613574565b90915550505b8015612b5d57612b5d873083612deb565b612b6781866136f6565b94505b612b75878787612deb565b50505050505050565b6000601a54118015612b9a5750601a54612b9730610ee4565b10155b15612bab57612bab30601a54612f40565b6000601a819055612bbb30610ee4565b90506000601954601754601854612bd29190613574565b612bdc9190613574565b9050811580612be9575080155b15612bf2575050565b600a54612c00906014613533565b821115612c1857600a54612c15906014613533565b91505b60008060028360185486612c2c9190613533565b612c369190613552565b612c409190613552565b9050612c54612c4f82866136f6565b61306a565b60185447908190600090612c6a90600290613552565b612c7490876136f6565b601754612c819085613533565b612c8b9190613552565b905060006002601854612c9e9190613552565b612ca890886136f6565b601954612cb59086613533565b612cbf9190613552565b9050612ccb8183613574565b612cd590846136f6565b6000601881905560178190556019819055601a5592508415801590612cfa5750600083115b15612d0957612d0985846131c5565b600c546040516001600160a01b03909116908290600081818185875af1925050503d8060008114612d56576040519150601f19603f3d011682016040523d82523d6000602084013e612d5b565b606091505b5050600b546040519197506001600160a01b0316904790600081818185875af1925050503d8060008114612dab576040519150601f19603f3d011682016040523d82523d6000602084013e612db0565b606091505b5050505050505050505050565b6001600160a01b0382166000908152601e60205260409020805460ff19168215151790556114868282613277565b6001600160a01b038316612e115760405162461bcd60e51b8152600401610b079061366e565b6001600160a01b038216612e375760405162461bcd60e51b8152600401610b07906136b3565b6001600160a01b03831660009081526020819052604090205481811015612eaf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b07565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612ee6908490613574565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612f3291815260200190565b60405180910390a350505050565b6001600160a01b038216612fa05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b07565b6001600160a01b038216600090815260208190526040902054818110156130145760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b07565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016120e5565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061309f5761309f6135df565b6001600160a01b039283166020918202929092018101919091528054604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156130f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061311b91906135c2565b8160018151811061312e5761312e6135df565b6001600160a01b03928316602091820292909201810191909152546131569130911684611fcd565b60205460405163791ac94760e01b81526001600160a01b039091169063791ac9479061318f90859060009086903090429060040161370d565b600060405180830381600087803b1580156131a957600080fd5b505af11580156131bd573d6000803e3d6000fd5b505050505050565b6020546131dd9030906001600160a01b031684611fcd565b60205460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af115801561324b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906132709190613749565b5050505050565b6001600160a01b0382166000818152601d6020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd67469101611fc1565b600060208083528351808285015260005b81811015613300578581018301518582016040015282016132e4565b81811115613312576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461333d57600080fd5b50565b6000806040838503121561335357600080fd5b823561335e81613328565b946020939093013593505050565b60008060006060848603121561338157600080fd5b833561338c81613328565b9250602084013561339c81613328565b929592945050506040919091013590565b6000602082840312156133bf57600080fd5b5035919050565b600080600080608085870312156133dc57600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561340a57600080fd5b813561341581613328565b9392505050565b801515811461333d57600080fd5b6000806040838503121561343d57600080fd5b823561344881613328565b915060208301356134588161341c565b809150509250929050565b6000806040838503121561347657600080fd5b823561348181613328565b9150602083013561345881613328565b6000602082840312156134a357600080fd5b81356134158161341c565b600181811c908216806134c257607f821691505b6020821081036134e257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561354d5761354d61351d565b500290565b60008261356f57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156135875761358761351d565b500190565b60006020828403121561359e57600080fd5b5051919050565b6000602082840312156135b757600080fd5b81516134158161341c565b6000602082840312156135d457600080fd5b815161341581613328565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b8381101561362e5781516001600160a01b031687529582019590820190600101613609565b509495945050505050565b84815260806020820152600061365260808301866135f5565b6001600160a01b03949094166040830152506060015292915050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000828210156137085761370861351d565b500390565b85815284602082015260a06040820152600061372c60a08301866135f5565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561375e57600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212206900d26a4bcdf4c420fdd5bdae759dec2c8dde23f1793fc07043c102213a6aff64736f6c634300080f0033

Verified Source Code Partial Match

Compiler: v0.8.15+commit.e14f2714 EVM: london Optimization: Yes (200 runs)
Token.sol 973 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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
    );
}

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

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");

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

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

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

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
        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);
    }

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

contract Ownable is Context {
    address private _owner;

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

    constructor() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() external virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

interface IDexRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        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 addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}

interface IDexFactory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

interface IAGuard {
    function isMEVProtected() external view returns (bool);

    function isThrottledMEV(address src, address dst) external returns (bool);

    function isThrottledAccount(address src) external view returns (bool);

    function isThrottledTransfer() external view returns (bool);

    function setMEVProtection(bool isEnabled) external returns (bool);

    function setWindow(uint256 duration) external returns (bool);
}

contract Token is ERC20, Ownable {
    uint256 public maxBuyAmount;
    uint256 public maxSellAmount;
    uint256 public maxWalletAmount;

    address public lpPair;

    bool private swapping;
    uint256 public swapTokensAtAmount;

    address operationsAddress;
    address devAddress;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;

    uint256 public buyTotalFees;
    uint256 public buyOperationsFee;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
    uint256 public buyBurnFee;

    uint256 public sellTotalFees;
    uint256 public sellOperationsFee;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;
    uint256 public sellBurnFee;

    uint256 public tokensForOperations;
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
    uint256 public tokensForBurn;

    mapping(address => bool) private _holderIsBot;
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;
    mapping(address => bool) private _isAutomatedMarketMakerPairs;

    IAGuard private _ABG;
    IDexRouter private _dexRouter;

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event EnabledTrading();

    event RemovedLimits();

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event UpdatedMaxBuyAmount(uint256 newAmount);

    event UpdatedMaxSellAmount(uint256 newAmount);

    event UpdatedMaxWalletAmount(uint256 newAmount);

    event UpdatedOperationsAddress(address indexed newWallet);

    event MaxTransactionExclusion(address _address, bool excluded);

    event BuyBackTriggered(uint256 amount);

    event OwnerForcedSwapBack(uint256 timestamp);

    event CaughtEarlyBuyer(address sniper);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    event TransferForeignToken(address token, uint256 amount);

    constructor(address ABG_) ERC20(unicode"朋友", "FREN") {
        address newOwner = msg.sender;
        _ABG = IAGuard(ABG_);

        IDexRouter _dexrtr = IDexRouter(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        _dexRouter = _dexrtr;

        lpPair = IDexFactory(_dexRouter.factory()).createPair(
            address(this),
            _dexRouter.WETH()
        );
        _excludeFromMaxTransaction(address(lpPair), true);
        _setAutomatedMarketMakerPair(address(lpPair), true);

        uint256 totalSupply = 1_000_000_000 ether;

        maxBuyAmount = (totalSupply * 2) / 100;
        maxSellAmount = (totalSupply * 2) / 100;
        maxWalletAmount = (totalSupply * 2) / 100;
        swapTokensAtAmount = (totalSupply * 1) / 1000;

        buyOperationsFee = 12;
        buyLiquidityFee = 2;
        buyDevFee = 1;
        buyBurnFee = 0;
        buyTotalFees =
            buyOperationsFee +
            buyLiquidityFee +
            buyDevFee +
            buyBurnFee;

        sellOperationsFee = 27;
        sellLiquidityFee = 2;
        sellDevFee = 1;
        sellBurnFee = 0;
        sellTotalFees =
            sellOperationsFee +
            sellLiquidityFee +
            sellDevFee +
            sellBurnFee;

        _excludeFromMaxTransaction(newOwner, true);
        _excludeFromMaxTransaction(address(this), true);
        _excludeFromMaxTransaction(address(0xdead), true);

        excludeFromFees(newOwner, true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        operationsAddress = address(0xf9441C249D46D991e2C5C31EfC9a7560d6e719ea);
        devAddress = address(0xAB567b99D0bF4CbB151502b6a0d7D6B107d26940);

        _createInitialSupply(newOwner, totalSupply);
        transferOwnership(newOwner);
    }

    receive() external payable {}

    // only enable if no plan to airdrop

    function enableTrading() external onlyOwner {
        require(!tradingActive, "Cannot reenable trading");
        tradingActive = true;
        swapEnabled = true;
        emit EnabledTrading();
    }

    function setSwapEnabled(bool isEnabled) external onlyOwner {
        swapEnabled = isEnabled;
    }

    function blacklistBot(address bot, bool isBot) external onlyOwner {
        _holderIsBot[bot] = isBot;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner {
        limitsInEffect = false;
        emit RemovedLimits();
    }

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

    // 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 _excludeFromMaxTransaction(address updAds, bool isExcluded)
        private
    {
        _isExcludedMaxTransactionAmount[updAds] = isExcluded;
        emit MaxTransactionExclusion(updAds, isExcluded);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx)
        external
        onlyOwner
    {
        if (!isEx) {
            require(
                updAds != lpPair,
                "Cannot remove uniswap pair from max txn"
            );
        }
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    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 {
        _isAutomatedMarketMakerPairs[pair] = value;

        _excludeFromMaxTransaction(pair, value);

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateBuyFees(
        uint256 _operationsFee,
        uint256 _liquidityFee,
        uint256 _devFee,
        uint256 _burnFee
    ) external onlyOwner {
        buyOperationsFee = _operationsFee;
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _devFee;
        buyBurnFee = _burnFee;
        buyTotalFees =
            buyOperationsFee +
            buyLiquidityFee +
            buyDevFee +
            buyBurnFee;
        require(buyTotalFees <= 15, "Must keep fees at 15% or less");
    }

    function updateSellFees(
        uint256 _operationsFee,
        uint256 _liquidityFee,
        uint256 _devFee,
        uint256 _burnFee
    ) external onlyOwner {
        sellOperationsFee = _operationsFee;
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _devFee;
        sellBurnFee = _burnFee;
        sellTotalFees =
            sellOperationsFee +
            sellLiquidityFee +
            sellDevFee +
            sellBurnFee;
        require(sellTotalFees <= 30, "Must keep fees at 30% or less");
    }

    function returnToNormalTax() external onlyOwner {
        sellOperationsFee = 3;
        sellLiquidityFee = 0;
        sellDevFee = 0;
        sellBurnFee = 0;
        sellTotalFees =
            sellOperationsFee +
            sellLiquidityFee +
            sellDevFee +
            sellBurnFee;
        require(sellTotalFees <= 30, "Must keep fees at 30% or less");

        buyOperationsFee = 3;
        buyLiquidityFee = 0;
        buyDevFee = 0;
        buyBurnFee = 0;
        buyTotalFees =
            buyOperationsFee +
            buyLiquidityFee +
            buyDevFee +
            buyBurnFee;
        require(buyTotalFees <= 15, "Must keep fees at 15% or less");
    }

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

    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");
        require(amount > 0, "amount must be greater than 0");

        require(
            !_holderIsBot[from] && !_holderIsBot[to],
            "must not be flagged as bot"
        );

        if (!tradingActive) {
            require(
                _isExcludedFromFees[from] || _isExcludedFromFees[to],
                "Trading is not active."
            );
        }

        if (_ABG.isMEVProtected()) {
            require(_ABG.isThrottledMEV(from, to), "activity blocked");
        }
        if (_ABG.isThrottledTransfer()) {
            require(_ABG.isThrottledAccount(to), "activity blocked");
        }

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !_isExcludedFromFees[from] &&
                !_isExcludedFromFees[to]
            ) {
                //when buy
                if (
                    _isAutomatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxBuyAmount,
                        "Buy transfer amount exceeds the max buy."
                    );
                    require(
                        amount + balanceOf(to) <= maxWalletAmount,
                        "Cannot Exceed max wallet"
                    );
                }
                //when sell
                else if (
                    _isAutomatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxSellAmount,
                        "Sell transfer amount exceeds the max sell."
                    );
                } else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWalletAmount,
                        "Cannot Exceed max wallet"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !_isAutomatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            swapBack();

            swapping = false;
        }

        bool takeFee = true;
        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (_isAutomatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = (amount * sellTotalFees) / 100;
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
                tokensForOperations +=
                    (fees * sellOperationsFee) /
                    sellTotalFees;
                tokensForDev += (fees * sellDevFee) / sellTotalFees;
                tokensForBurn += (fees * sellBurnFee) / sellTotalFees;
            }
            // on buy
            else if (_isAutomatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = (amount * buyTotalFees) / 100;
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
                tokensForOperations += (fees * buyOperationsFee) / buyTotalFees;
                tokensForDev += (fees * buyDevFee) / buyTotalFees;
                tokensForBurn += (fees * buyBurnFee) / buyTotalFees;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    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] = _dexRouter.WETH();

        _approve(address(this), address(_dexRouter), tokenAmount);

        // make the swap
        _dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(_dexRouter), tokenAmount);

        // add the liquidity
        _dexRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0xdead),
            block.timestamp
        );
    }

    function swapBack() private {
        if (tokensForBurn > 0 && balanceOf(address(this)) >= tokensForBurn) {
            _burn(address(this), tokensForBurn);
        }
        tokensForBurn = 0;

        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity +
            tokensForOperations +
            tokensForDev;

        if (contractBalance == 0 || totalTokensToSwap == 0) {
            return;
        }

        if (contractBalance > swapTokensAtAmount * 20) {
            contractBalance = swapTokensAtAmount * 20;
        }

        bool success;

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
            totalTokensToSwap /
            2;

        swapTokensForEth(contractBalance - liquidityTokens);

        uint256 ethBalance = address(this).balance;
        uint256 ethForLiquidity = ethBalance;

        uint256 ethForOperations = (ethBalance * tokensForOperations) /
            (totalTokensToSwap - (tokensForLiquidity / 2));
        uint256 ethForDev = (ethBalance * tokensForDev) /
            (totalTokensToSwap - (tokensForLiquidity / 2));

        ethForLiquidity -= ethForOperations + ethForDev;

        tokensForLiquidity = 0;
        tokensForOperations = 0;
        tokensForDev = 0;
        tokensForBurn = 0;

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            addLiquidity(liquidityTokens, ethForLiquidity);
        }

        (success, ) = address(devAddress).call{value: ethForDev}("");

        (success, ) = address(operationsAddress).call{
            value: address(this).balance
        }("");
    }

    function transferForeignToken(address _token, address _to)
        external
        onlyOwner
        returns (bool _sent)
    {
        require(_token != address(0), "_token address cannot be 0");
        require(_token != address(this), "Can't withdraw native tokens");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        _sent = IERC20(_token).transfer(_to, _contractBalance);
        emit TransferForeignToken(_token, _contractBalance);
    }

    // withdraw ETH from contract address
    function withdrawStuckETH() external onlyOwner {
        bool success;
        (success, ) = address(msg.sender).call{value: address(this).balance}(
            ""
        );
    }

    function setOperationsAddress(address _operationsAddress)
        external
        onlyOwner
    {
        require(
            _operationsAddress != address(0),
            "_operationsAddress address cannot be 0"
        );
        operationsAddress = payable(_operationsAddress);
    }

    function setDevAddress(address _devAddress) external onlyOwner {
        require(_devAddress != address(0), "_devAddress address cannot be 0");
        devAddress = payable(_devAddress);
    }

    // force Swap back if slippage issues.
    function forceSwapBack() external onlyOwner {
        require(
            balanceOf(address(this)) >= swapTokensAtAmount,
            "Can only swap when token amount is at or higher than restriction"
        );
        swapping = true;
        swapBack();
        swapping = false;
        emit OwnerForcedSwapBack(block.timestamp);
    }

    // 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] = _dexRouter.WETH();
        path[1] = address(this);

        _dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{
            value: amountInWei
        }(
            0, // accept any amount of Ethereum
            path,
            address(0xdead),
            block.timestamp
        );
        emit BuyBackTriggered(amountInWei);
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyOperationsFee 0x5a139dd4 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellOperationsFee 0x4f77f6c0 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool

Write Contract 27 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistBot 0x8236802e
address bot
bool isBot
buyBackTokens 0xfc155d1d
uint256 amountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
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
returnToNormalTax 0xe2cd5fcd
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setDevAddress 0xd0d41fe1
address _devAddress
setOperationsAddress 0x499b8394
address _operationsAddress
setSwapEnabled 0xe01af92c
bool isEnabled
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _operationsFee
uint256 _liquidityFee
uint256 _devFee
uint256 _burnFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _operationsFee
uint256 _liquidityFee
uint256 _devFee
uint256 _burnFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters

Recent Transactions

No transactions found for this address