Address Contract Verified
Address
0x98F6C670528B0Ff55E33b6D2AbEb6407C27067D8
Balance
0 ETH
Nonce
1
Code Size
17254 bytes
Creator
0x077905FA...f56E at tx 0xdbea1597...b4116a
Indexed Transactions
0
Contract Bytecode
17254 bytes
0x6080604052600436106102125760003560e01c806385a6b3ae11610118578063ab42d066116100a0578063c9e7cc131161006f578063c9e7cc13146107b6578063dd62ed3e146107e1578063deb906e71461081e578063f2fde38b1461085f578063fbcbc0f11461088857610221565b8063ab42d06614610710578063ac09ea4014610739578063ace6d23f14610762578063b42568881461078b57610221565b80639aa7693d116100e75780639aa7693d146105f3578063a457c2d71461061c578063a8b9d24014610659578063a9059cbb14610696578063aafd847a146106d357610221565b806385a6b3ae146105355780638da5cb5b1461056057806391b89fba1461058b57806395d89b41146105c857610221565b8063395093511161019b5780634e7b827f1161016a5780634e7b827f14610462578063627749e61461049f5780636a474002146104ca57806370a08231146104e1578063715018a61461051e57610221565b806339509351146103a857806340b8405a146103e557806343d726d61461040e5780634c4431271461042557610221565b806318160ddd116101e257806318160ddd146102af57806323b872dd146102da57806327ce014714610317578063313ce5671461035457806331e79db01461037f57610221565b8062788b561461022657806303c833021461023d57806306fdde0314610247578063095ea7b31461027257610221565b366102215761021f6108c7565b005b600080fd5b34801561023257600080fd5b5061023b61098b565b005b6102456108c7565b005b34801561025357600080fd5b5061025c610ac0565b6040516102699190613060565b60405180910390f35b34801561027e57600080fd5b5061029960048036038101906102949190613120565b610b52565b6040516102a6919061317b565b60405180910390f35b3480156102bb57600080fd5b506102c4610b70565b6040516102d191906131a5565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc91906131c0565b610b7a565b60405161030e919061317b565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190613213565b610c72565b60405161034b91906131a5565b60405180910390f35b34801561036057600080fd5b50610369610d15565b604051610376919061325c565b60405180910390f35b34801561038b57600080fd5b506103a660048036038101906103a19190613213565b610d1e565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190613120565b610e5e565b6040516103dc919061317b565b60405180910390f35b3480156103f157600080fd5b5061040c600480360381019061040791906132b5565b610f0a565b005b34801561041a57600080fd5b50610423611091565b005b34801561043157600080fd5b5061044c60048036038101906104479190613213565b611139565b60405161045991906131a5565b60405180910390f35b34801561046e57600080fd5b5061048960048036038101906104849190613213565b611151565b604051610496919061317b565b60405180910390f35b3480156104ab57600080fd5b506104b4611171565b6040516104c191906131a5565b60405180910390f35b3480156104d657600080fd5b506104df611177565b005b3480156104ed57600080fd5b5061050860048036038101906105039190613213565b6111e3565b60405161051591906131a5565b60405180910390f35b34801561052a57600080fd5b5061053361122b565b005b34801561054157600080fd5b5061054a611291565b60405161055791906131a5565b60405180910390f35b34801561056c57600080fd5b50610575611297565b60405161058291906132f1565b60405180910390f35b34801561059757600080fd5b506105b260048036038101906105ad9190613213565b6112c1565b6040516105bf91906131a5565b60405180910390f35b3480156105d457600080fd5b506105dd6112d3565b6040516105ea9190613060565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613338565b611365565b005b34801561062857600080fd5b50610643600480360381019061063e9190613120565b61178a565b604051610650919061317b565b60405180910390f35b34801561066557600080fd5b50610680600480360381019061067b9190613213565b611875565b60405161068d91906131a5565b60405180910390f35b3480156106a257600080fd5b506106bd60048036038101906106b89190613120565b6118d8565b6040516106ca919061317b565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190613213565b6118f6565b60405161070791906131a5565b60405180910390f35b34801561071c57600080fd5b50610737600480360381019061073291906133f0565b61193f565b005b34801561074557600080fd5b50610760600480360381019061075b9190613493565b611b1e565b005b34801561076e57600080fd5b5061078960048036038101906107849190613213565b611f17565b005b34801561079757600080fd5b506107a06120df565b6040516107ad91906131a5565b60405180910390f35b3480156107c257600080fd5b506107cb6120e5565b6040516107d891906131a5565b60405180910390f35b3480156107ed57600080fd5b50610808600480360381019061080391906134e0565b6120ec565b60405161081591906131a5565b60405180910390f35b34801561082a57600080fd5b5061084560048036038101906108409190613213565b612173565b604051610856959493929190613520565b60405180910390f35b34801561086b57600080fd5b5061088660048036038101906108819190613213565b612246565b005b34801561089457600080fd5b506108af60048036038101906108aa9190613213565b61231b565b6040516108be93929190613573565b60405180910390f35b60006108d1610b70565b116108db57600080fd5b60003411156109895761092e6108ef610b70565b6109137001000000000000000000000000000000003461234090919063ffffffff16565b61091d9190613608565b6005546123ba90919063ffffffff16565b6005819055507fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165113334604051610965929190613639565b60405180910390a1610982346008546123ba90919063ffffffff16565b6008819055505b565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109e557600080fd5b6000600f5410158015610a085750624f1a00600f54610a049190613662565b4210155b610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e906136e2565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610a6d90613733565b60006040518083038185875af1925050503d8060008114610aaa576040519150601f19603f3d011682016040523d82523d6000602084013e610aaf565b606091505b5050905080610abd57600080fd5b50565b606060038054610acf90613777565b80601f0160208091040260200160405190810160405280929190818152602001828054610afb90613777565b8015610b485780601f10610b1d57610100808354040283529160200191610b48565b820191906000526020600020905b815481529060010190602001808311610b2b57829003601f168201915b5050505050905090565b6000610b66610b5f612418565b8484612420565b6001905092915050565b6000600254905090565b6000610b878484846125e9565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610bd2612418565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c499061381a565b60405180910390fd5b610c6685610c5e612418565b858403612420565b60019150509392505050565b6000700100000000000000000000000000000000610d04610cff600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cf1610cec610cdb886111e3565b60055461234090919063ffffffff16565b612658565b61267590919063ffffffff16565b6126c0565b610d0e9190613608565b9050919050565b60006012905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610dac5750610d7d611297565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610db557600080fd5b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610e188160006126d7565b8073ffffffffffffffffffffffffffffffffffffffff167fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2560405160405180910390a250565b6000610f00610e6b612418565b848460016000610e79612418565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610efb9190613662565b612420565b6001905092915050565b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661108e57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e36fec9826040518263ffffffff1660e01b8152600401610fb69190613899565b600060405180830381600087803b158015610fd057600080fd5b505af1158015610fe4573d6000803e3d6000fd5b5050505061108d81600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110479190613899565b602060405180830381865afa158015611064573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108891906138c9565b6126d7565b5b50565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110eb57600080fd5b6000600f5414611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112790613942565b60405180910390fd5b42600f81905550565b600d6020528060005260406000206000915090505481565b600c6020528060005260406000206000915054906101000a900460ff1681565b600f5481565b60006111b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111af906139d4565b60405180910390fd5b601060009054906101000a900460ff16601060006101000a81548160ff021916908315150217905550565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461128557600080fd5b61128f6000612744565b565b60085481565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006112cc82611875565b9050919050565b6060600480546112e290613777565b80601f016020809104026020016040519081016040528092919081815260200182805461130e90613777565b801561135b5780601f106113305761010080835404028352916020019161135b565b820191906000526020600020905b81548152906001019060200180831161133e57829003601f168201915b5050505050905090565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ca90613a40565b60405180910390fd5b6000600f5414806113f35750624f1a00600f546113f09190613662565b42105b611432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142990613aac565b60405180910390fd5b81611446576114408361280a565b50611741565b6000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000600267ffffffffffffffff81111561147c5761147b613acc565b5b6040519080825280602002602001820160405280156114aa5781602001602082028036833780820191505090505b5090508173ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151c9190613b10565b816000815181106115305761152f613b3d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816001815181106115a1576115a0613b3d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060006115e686611875565b90508273ffffffffffffffffffffffffffffffffffffffff1663b6f9de958286858a426040518663ffffffff1660e01b81526004016116289493929190613c2a565b6000604051808303818588803b15801561164157600080fd5b505af1158015611655573d6000803e3d6000fd5b50505050506116ac81600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ba90919063ffffffff16565b600760008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508573ffffffffffffffffffffffffffffffffffffffff167f555c9630513a2379ecd363941c664c4f07c9d4ad58e60e8f25a5481079763ad68260405161173591906131a5565b60405180910390a25050505b42600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b60008060016000611799612418565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184d90613ce8565b60405180910390fd5b61186a611861612418565b85858403612420565b600191505092915050565b60006118d1600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118c384610c72565b612a1a90919063ffffffff16565b9050919050565b60006118ec6118e5612418565b84846125e9565b6001905092915050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60005b82829050811015611b1857600083838381811061196257611961613b3d565b5b905060200201602081019061197791906132b5565b9050600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156119d2575050611b1a565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e36fec9826040518263ffffffff1660e01b8152600401611a2d91906132f1565b600060405180830381600087803b158015611a4757600080fd5b505af1158015611a5b573d6000803e3d6000fd5b50505050611b0481600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611abe91906132f1565b602060405180830381865afa158015611adb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aff91906138c9565b6126d7565b508080611b1090613d08565b915050611942565b505b5050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b7857600080fd5b60005b82829050811015611f12576000838383818110611b9b57611b9a613b3d565b5b9050602002016020810190611bb09190613213565b90506000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054148015611c105750624f1a00600e54611c0d9190613662565b42105b15611c1b5750611eff565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054118015611cb65750624f1a00600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611cb39190613662565b42105b15611cc15750611eff565b6000611ccc82611875565b905060008103611cdd575050611eff565b611d2f81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ba90919063ffffffff16565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d8282604051611da3929190613639565b60405180910390a160003373ffffffffffffffffffffffffffffffffffffffff1682610bb890604051611dd590613733565b600060405180830381858888f193505050503d8060008114611e13576040519150601f19603f3d011682016040523d82523d6000602084013e611e18565b606091505b5050905080611eb757611e7382600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a1a90919063ffffffff16565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b42600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b8080611f0a90613d08565b915050611b7b565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f7157600080fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e36fec9336040518263ffffffff1660e01b815260040161200d91906132f1565b600060405180830381600087803b15801561202757600080fd5b505af115801561203b573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161209a91906132f1565b602060405180830381865afa1580156120b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120db91906138c9565b5050565b600e5481565b624f1a0081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600080600080600085945061218785611875565b935061219285610c72565b925061219d856111e3565b9150600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b81526004016121fa91906132f1565b602060405180830381865afa158015612217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223b91906138c9565b905091939590929450565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146122a057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361230f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230690613dc2565b60405180910390fd5b61231881612744565b50565b600080600083925061232c83611875565b915061233783610c72565b90509193909250565b600080830361235257600090506123b4565b600082846123609190613de2565b905082848261236f9190613608565b146123af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a690613e96565b60405180910390fd5b809150505b92915050565b60008082846123c99190613662565b90508381101561240e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240590613f02565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361248f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248690613f94565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f590614026565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516125dc91906131a5565b60405180910390a3505050565b600061262a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262190614092565b60405180910390fd5b601060009054906101000a900460ff16601060006101000a81548160ff021916908315150217905550505050565b600080829050600081121561266c57600080fd5b80915050919050565b600080828461268491906140bc565b9050600083121580156126975750838112155b806126ad57506000831280156126ac57508381125b5b6126b657600080fd5b8091505092915050565b6000808212156126cf57600080fd5b819050919050565b60006126e2836111e3565b9050808211156127135760006127018284612a1a90919063ffffffff16565b905061270d8482612a64565b5061273f565b8082101561273e5760006127308383612a1a90919063ffffffff16565b905061273c8482612b23565b505b5b505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008061281683611875565b90506000811115612a0f5761287381600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ba90919063ffffffff16565b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d83826040516128e7929190614100565b60405180910390a160008373ffffffffffffffffffffffffffffffffffffffff1682610bb89060405161291990613733565b600060405180830381858888f193505050503d8060008114612957576040519150601f19603f3d011682016040523d82523d6000602084013e61295c565b606091505b5050905080612a05576129b782600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a1a90919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600092505050612a15565b8192505050612a15565b60009150505b919050565b6000612a5c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612be2565b905092915050565b612a6e8282612c46565b612adc612a8e612a898360055461234090919063ffffffff16565b612658565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612da590919063ffffffff16565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b612b2d8282612df0565b612b9b612b4d612b488360055461234090919063ffffffff16565b612658565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461267590919063ffffffff16565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000838311158290612c2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c219190613060565b60405180910390fd5b5060008385612c399190614129565b9050809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cac906141a9565b60405180910390fd5b612cc160008383612fc6565b8060026000828254612cd39190613662565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d289190613662565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612d8d91906131a5565b60405180910390a3612da160008383612fcb565b5050565b6000808284612db491906141c9565b905060008312158015612dc75750838113155b80612ddd5750600083128015612ddc57508381135b5b612de657600080fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e569061427e565b60405180910390fd5b612e6b82600083612fc6565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee890614310565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254612f489190614129565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612fad91906131a5565b60405180910390a3612fc183600084612fcb565b505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561300a578082015181840152602081019050612fef565b60008484015250505050565b6000601f19601f8301169050919050565b600061303282612fd0565b61303c8185612fdb565b935061304c818560208601612fec565b61305581613016565b840191505092915050565b6000602082019050818103600083015261307a8184613027565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130b78261308c565b9050919050565b6130c7816130ac565b81146130d257600080fd5b50565b6000813590506130e4816130be565b92915050565b6000819050919050565b6130fd816130ea565b811461310857600080fd5b50565b60008135905061311a816130f4565b92915050565b6000806040838503121561313757613136613082565b5b6000613145858286016130d5565b92505060206131568582860161310b565b9150509250929050565b60008115159050919050565b61317581613160565b82525050565b6000602082019050613190600083018461316c565b92915050565b61319f816130ea565b82525050565b60006020820190506131ba6000830184613196565b92915050565b6000806000606084860312156131d9576131d8613082565b5b60006131e7868287016130d5565b93505060206131f8868287016130d5565b92505060406132098682870161310b565b9150509250925092565b60006020828403121561322957613228613082565b5b6000613237848285016130d5565b91505092915050565b600060ff82169050919050565b61325681613240565b82525050565b6000602082019050613271600083018461324d565b92915050565b60006132828261308c565b9050919050565b61329281613277565b811461329d57600080fd5b50565b6000813590506132af81613289565b92915050565b6000602082840312156132cb576132ca613082565b5b60006132d9848285016132a0565b91505092915050565b6132eb816130ac565b82525050565b600060208201905061330660008301846132e2565b92915050565b61331581613160565b811461332057600080fd5b50565b6000813590506133328161330c565b92915050565b60008060006060848603121561335157613350613082565b5b600061335f868287016130d5565b935050602061337086828701613323565b92505060406133818682870161310b565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126133b0576133af61338b565b5b8235905067ffffffffffffffff8111156133cd576133cc613390565b5b6020830191508360208202830111156133e9576133e8613395565b5b9250929050565b6000806020838503121561340757613406613082565b5b600083013567ffffffffffffffff81111561342557613424613087565b5b6134318582860161339a565b92509250509250929050565b60008083601f8401126134535761345261338b565b5b8235905067ffffffffffffffff8111156134705761346f613390565b5b60208301915083602082028301111561348c5761348b613395565b5b9250929050565b600080602083850312156134aa576134a9613082565b5b600083013567ffffffffffffffff8111156134c8576134c7613087565b5b6134d48582860161343d565b92509250509250929050565b600080604083850312156134f7576134f6613082565b5b6000613505858286016130d5565b9250506020613516858286016130d5565b9150509250929050565b600060a08201905061353560008301886132e2565b6135426020830187613196565b61354f6040830186613196565b61355c6060830185613196565b6135696080830184613196565b9695505050505050565b600060608201905061358860008301866132e2565b6135956020830185613196565b6135a26040830184613196565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613613826130ea565b915061361e836130ea565b92508261362e5761362d6135aa565b5b828204905092915050565b600060408201905061364e60008301856132e2565b61365b6020830184613196565b9392505050565b600061366d826130ea565b9150613678836130ea565b92508282019050808211156136905761368f6135d9565b5b92915050565b7f63616e6e6f742074616b65207965740000000000000000000000000000000000600082015250565b60006136cc600f83612fdb565b91506136d782613696565b602082019050919050565b600060208201905081810360008301526136fb816136bf565b9050919050565b600081905092915050565b50565b600061371d600083613702565b91506137288261370d565b600082019050919050565b600061373e82613710565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061378f57607f821691505b6020821081036137a2576137a1613748565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613804602883612fdb565b915061380f826137a8565b604082019050919050565b60006020820190508181036000830152613833816137f7565b9050919050565b6000819050919050565b600061385f61385a6138558461308c565b61383a565b61308c565b9050919050565b600061387182613844565b9050919050565b600061388382613866565b9050919050565b61389381613878565b82525050565b60006020820190506138ae600083018461388a565b92915050565b6000815190506138c3816130f4565b92915050565b6000602082840312156138df576138de613082565b5b60006138ed848285016138b4565b91505092915050565b7f616c726561647920636c6f736564000000000000000000000000000000000000600082015250565b600061392c600e83612fdb565b9150613937826138f6565b602082019050919050565b6000602082019050818103600083015261395b8161391f565b9050919050565b7f77697468647261774469766964656e642064697361626c65642e20557365207460008201527f68652027636c61696d272066756e6374696f6e20696e73746561642e00000000602082015250565b60006139be603c83612fdb565b91506139c982613962565b604082019050919050565b600060208201905081810360008301526139ed816139b1565b9050919050565b7f496e76616c696420636c61696d65722e00000000000000000000000000000000600082015250565b6000613a2a601083612fdb565b9150613a35826139f4565b602082019050919050565b60006020820190508181036000830152613a5981613a1d565b9050919050565b7f636c6f7365640000000000000000000000000000000000000000000000000000600082015250565b6000613a96600683612fdb565b9150613aa182613a60565b602082019050919050565b60006020820190508181036000830152613ac581613a89565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050613b0a816130be565b92915050565b600060208284031215613b2657613b25613082565b5b6000613b3484828501613afb565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ba1816130ac565b82525050565b6000613bb38383613b98565b60208301905092915050565b6000602082019050919050565b6000613bd782613b6c565b613be18185613b77565b9350613bec83613b88565b8060005b83811015613c1d578151613c048882613ba7565b9750613c0f83613bbf565b925050600181019050613bf0565b5085935050505092915050565b6000608082019050613c3f6000830187613196565b8181036020830152613c518186613bcc565b9050613c6060408301856132e2565b613c6d6060830184613196565b95945050505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613cd2602583612fdb565b9150613cdd82613c76565b604082019050919050565b60006020820190508181036000830152613d0181613cc5565b9050919050565b6000613d13826130ea565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613d4557613d446135d9565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613dac602683612fdb565b9150613db782613d50565b604082019050919050565b60006020820190508181036000830152613ddb81613d9f565b9050919050565b6000613ded826130ea565b9150613df8836130ea565b9250828202613e06816130ea565b91508282048414831517613e1d57613e1c6135d9565b5b5092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e80602183612fdb565b9150613e8b82613e24565b604082019050919050565b60006020820190508181036000830152613eaf81613e73565b9050919050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b6000613eec601b83612fdb565b9150613ef782613eb6565b602082019050919050565b60006020820190508181036000830152613f1b81613edf565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613f7e602483612fdb565b9150613f8982613f22565b604082019050919050565b60006020820190508181036000830152613fad81613f71565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614010602283612fdb565b915061401b82613fb4565b604082019050919050565b6000602082019050818103600083015261403f81614003565b9050919050565b7f4e6f207472616e736665727320616c6c6f776564000000000000000000000000600082015250565b600061407c601483612fdb565b915061408782614046565b602082019050919050565b600060208201905081810360008301526140ab8161406f565b9050919050565b6000819050919050565b60006140c7826140b2565b91506140d2836140b2565b9250828201905082811215600083121683821260008412151617156140fa576140f96135d9565b5b92915050565b6000604082019050614115600083018561388a565b6141226020830184613196565b9392505050565b6000614134826130ea565b915061413f836130ea565b9250828203905081811115614157576141566135d9565b5b92915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6000614193601f83612fdb565b915061419e8261415d565b602082019050919050565b600060208201905081810360008301526141c281614186565b9050919050565b60006141d4826140b2565b91506141df836140b2565b9250828203905081811260008412168282136000851215161715614206576142056135d9565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614268602183612fdb565b91506142738261420c565b604082019050919050565b600060208201905081810360008301526142978161425b565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006142fa602283612fdb565b91506143058261429e565b604082019050919050565b60006020820190508181036000830152614329816142ed565b905091905056fea26469706673582212208b0feb59cb96e0406eb9c2da0cb99f2a21152a50040de4b16221bea117173af264736f6c63430008130033
Verified Source Code Full Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
ERC20.sol 330 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "./Context.sol";
import "./IERC20.sol";
import "./IERC20Metadata.sol";
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}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 value {ERC20} uses, unless this function is
* 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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), 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}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
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;
}
/**
* @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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @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;
_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;
}
_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 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 {}
}
AimBot.sol 227 lines
// https://aim-bot.app/
// https://t.me/Aimbotportal
// https://twitter.com/aimbot_coin
// SPDX-License-Identifier: MIT
import "./AimBotDividends.sol";
import "./Ownable.sol";
import "./Context.sol";
import "./ERC20.sol";
import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./IUniswapV2Factory.sol";
import "./IUniswapV2Router.sol";
pragma solidity ^0.8.19;
contract AimBot is Ownable, ERC20 {
uint256 public maxWallet;
address public uniswapV2Pair;
IUniswapV2Router02 immutable router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
AimBotDividends public dividends;
uint256 SUPPLY = 1000000 * 10**18;
uint256 snipeFee = 30;
uint256 totalFee = 5;
uint256 botFee = 3;
bool private inSwap = false;
address public marketingWallet;
address public devWallet;
address public botWallet;
uint256 public openTradingBlock;
mapping (address => uint256) public receiveBlock;
uint256 public swapAt = SUPPLY / 1000; //0.1%
constructor() ERC20("AimBot", "AIMBOT") payable {
_mint(msg.sender, SUPPLY * 5 / 100);
_mint(address(this), SUPPLY * 95 / 100);
maxWallet = SUPPLY;
marketingWallet = 0x3be53c7D961F3595515E9905E7507b33A5DC7c5A;
devWallet = 0x092A071a3322166A840B06Ace845761f98FbBAa0;
botWallet = 0x88054E4FF95395d43286b52D97451C71a974D8c9;
dividends = new AimBotDividends();
dividends.excludeFromDividends(address(dividends));
dividends.excludeFromDividends(address(this));
dividends.excludeFromDividends(owner());
}
receive() external payable {}
function isContract(address account) private view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function updateBotWallet(address _botWallet) external onlyOwner {
botWallet = _botWallet;
}
function updateDividends(address _dividends) external onlyOwner {
dividends = AimBotDividends(payable(_dividends));
dividends.excludeFromDividends(address(dividends));
dividends.excludeFromDividends(address(this));
dividends.excludeFromDividends(owner());
dividends.excludeFromDividends(uniswapV2Pair);
dividends.excludeFromDividends(address(router));
}
function updateFee(uint256 _totalFee, uint256 _botFee) external onlyOwner {
require(_totalFee <= 5 && _botFee <= _totalFee);
totalFee = _totalFee;
botFee = _botFee;
}
function updateMaxHoldingPercent(uint256 percent) public onlyOwner {
require(percent >= 1 && percent <= 100, "invalid percent");
maxWallet = SUPPLY * percent / 100;
}
function updateSwapAt(uint256 value) external onlyOwner() {
require(value <= SUPPLY / 50);
swapAt = value;
}
function stats(address account) external view returns (uint256 withdrawableDividends, uint256 totalDividends) {
(,withdrawableDividends,totalDividends) = dividends.getAccount(account);
}
function claim() external {
dividends.claim(msg.sender);
}
function openTrading() external onlyOwner {
address pair = IUniswapV2Factory(router.factory()).createPair(address(this), router.WETH());
_approve(address(this), address(router), balanceOf(address(this)));
router.addLiquidityETH{
value: address(this).balance
} (
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
uniswapV2Pair = pair;
openTradingBlock = block.number;
dividends.excludeFromDividends(address(router));
dividends.excludeFromDividends(pair);
updateMaxHoldingPercent(1);
}
function _transfer(address from, address to, uint256 amount) internal override {
if(uniswapV2Pair == address(0)) {
require(from == address(this) || from == address(0) || from == owner() || to == owner(), "Not started");
super._transfer(from, to, amount);
return;
}
if(from == uniswapV2Pair && to != address(this) && to != owner() && to != address(router)) {
require(super.balanceOf(to) + amount <= maxWallet, "max wallet");
}
uint256 swapAmount = balanceOf(address(this));
if(swapAmount > swapAt) {
swapAmount = swapAt;
}
if(
swapAt > 0 &&
swapAmount == swapAt &&
!inSwap &&
from != uniswapV2Pair) {
inSwap = true;
swapTokensForEth(swapAmount);
uint256 balance = address(this).balance;
if(balance > 0) {
withdraw(balance);
}
inSwap = false;
}
uint256 fee;
if(block.number <= openTradingBlock + 4 && from == uniswapV2Pair) {
require(!isContract(to));
fee = snipeFee;
}
else if(totalFee > 0) {
fee = totalFee;
}
if(
fee > 0 &&
from != address(this) &&
from != owner() &&
from != address(router)
) {
uint256 feeTokens = amount * fee / 100;
amount -= feeTokens;
super._transfer(from, address(this), feeTokens);
}
super._transfer(from, to, amount);
dividends.updateBalance(payable(from));
dividends.updateBalance(payable(to));
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = router.WETH();
_approve(address(this), address(router), tokenAmount);
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function sendFunds(address user, uint256 value) private {
if(value > 0) {
(bool success,) = user.call{value: value}("");
success;
}
}
function withdraw(uint256 amount) private {
uint256 botShare = totalFee > 0 ? botFee * 10000 / totalFee : 0;
uint256 toBot = amount * botShare / 10000;
uint256 toMarketing = (amount - toBot) / 2;
uint256 toDev = toMarketing;
sendFunds(marketingWallet, toMarketing);
sendFunds(devWallet, toDev);
sendFunds(botWallet, toBot);
}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
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);
}
Context.sol 13 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Ownable.sol 48 lines
// SPDX-License-Identifier: MIT
import "./Context.sol";
pragma solidity ^0.8.19;
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() {
_owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == msg.sender);
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
SafeMath.sol 118 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
}
/**
* @title SafeMathUint
* @dev Math operations with safety checks that revert on error
*/
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
/**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
AimBotDivs2.sol 371 lines
//
//
//
// SPDX-License-Identifier: MIT
import "./Ownable.sol";
import "./ERC20.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./AimBot.sol";
import "./IUniswapV2Router.sol";
pragma solidity ^0.8.19;
contract DivPayingToken is ERC20 {
using SafeMath for uint256;
using SafeMathUint for uint256;
using SafeMathInt for int256;
// With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
// For more discussion about choosing the value of `magnitude`,
// see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
uint256 constant internal magnitude = 2**128;
uint256 internal magnifiedDividendPerShare;
// About dividendCorrection:
// If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
// `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
// When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
// `dividendOf(_user)` should not be changed,
// but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
// To keep the `dividendOf(_user)` unchanged, we add a correction term:
// `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
// where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
// `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
// So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
mapping(address => int256) internal magnifiedDividendCorrections;
mapping(address => uint256) internal withdrawnDividends;
uint256 public totalDividendsDistributed;
event DividendsDistributed(address user, uint256 amount);
event DividendWithdrawn(address user, uint256 amount);
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {
}
/// @dev Distributes dividends whenever ether is paid to this contract.
receive() external payable {
distributeDividends();
}
/// @notice Distributes ether to token holders as dividends.
/// @dev It reverts if the total supply of tokens is 0.
/// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
/// About undistributed ether:
/// In each distribution, there is a small amount of ether not distributed,
/// the magnified amount of which is
/// `(msg.value * magnitude) % totalSupply()`.
/// With a well-chosen `magnitude`, the amount of undistributed ether
/// (de-magnified) in a distribution can be less than 1 wei.
/// We can actually keep track of the undistributed ether in a distribution
/// and try to distribute it in the next distribution,
/// but keeping track of such data on-chain costs much more than
/// the saved ether, so we don't do that.
function distributeDividends() public virtual payable {
require(totalSupply() > 0);
if (msg.value > 0) {
magnifiedDividendPerShare = magnifiedDividendPerShare.add(
(msg.value).mul(magnitude) / totalSupply()
);
emit DividendsDistributed(msg.sender, msg.value);
totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
}
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
function withdrawDividend() public virtual {
_withdrawDividendOfUser(payable(msg.sender));
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
uint256 _withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
emit DividendWithdrawn(user, _withdrawableDividend);
(bool success,) = user.call{value: _withdrawableDividend, gas: 3000}("");
if(!success) {
withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
return 0;
}
return _withdrawableDividend;
}
return 0;
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` can withdraw.
function dividendOf(address _owner) public view returns(uint256) {
return withdrawableDividendOf(_owner);
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` can withdraw.
function withdrawableDividendOf(address _owner) public view returns(uint256) {
return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
}
/// @notice View the amount of dividend in wei that an address has withdrawn.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` has withdrawn.
function withdrawnDividendOf(address _owner) public view returns(uint256) {
return withdrawnDividends[_owner];
}
/// @notice View the amount of dividend in wei that an address has earned in total.
/// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
/// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` has earned in total.
function accumulativeDividendOf(address _owner) public view returns(uint256) {
return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
.add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
}
/// @dev Internal function that transfer tokens from one address to another.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param from The address to transfer from.
/// @param to The address to transfer to.
/// @param value The amount to be transferred.
function _transfer(address from, address to, uint256 value) internal virtual override {
require(false);
int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
}
/// @dev Internal function that mints tokens to an account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account that will receive the created tokens.
/// @param value The amount that will be created.
function _mint(address account, uint256 value) internal override {
super._mint(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
/// @dev Internal function that burns an amount of the token of a given account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account whose tokens will be burnt.
/// @param value The amount that will be burnt.
function _burn(address account, uint256 value) internal override {
super._burn(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
function _setBalance(address account, uint256 newBalance) internal {
uint256 currentBalance = balanceOf(account);
if(newBalance > currentBalance) {
uint256 mintAmount = newBalance.sub(currentBalance);
_mint(account, mintAmount);
} else if(newBalance < currentBalance) {
uint256 burnAmount = currentBalance.sub(newBalance);
_burn(account, burnAmount);
}
}
}
interface IAimBotDivsBalanceHandler {
function handleBalanceChanged(address account) external;
function balanceOf(address account) external view returns (uint256);
}
contract AimBotDivs2 is DivPayingToken, Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
AimBot token = AimBot(payable(0x0c48250Eb1f29491F1eFBeEc0261eb556f0973C7));
IAimBotDivsBalanceHandler balanceHandler;
mapping (address => bool) public excludedFromDividends;
mapping (address => uint256) public claimTime;
uint256 public openTime;
uint256 public closeTime;
uint256 public constant claimGracePeriod = 60 days;
event ExcludeFromDividends(address indexed account);
event Claim(address indexed account, uint256 amount, bool indexed automatic);
event DividendReinvested(address indexed account, uint256 amount);
constructor() DivPayingToken("AIMBOT_DIVS", "AIMBOT_DIVS") {
balanceHandler = IAimBotDivsBalanceHandler(0xc23211D7FE22Ae0a607Af7D61d064274A4772898);
openTime = block.timestamp;
}
function updateBalanceHandler(address _balanceHandler) external onlyOwner {
balanceHandler = IAimBotDivsBalanceHandler(_balanceHandler);
balanceHandler.handleBalanceChanged(msg.sender);
balanceHandler.balanceOf(msg.sender);
}
bool noWarning;
function _transfer(address, address, uint256) internal override {
require(false, "No transfers allowed");
noWarning = noWarning;
}
function withdrawDividend() public override {
require(false, "withdrawDividend disabled. Use the 'claim' function instead.");
noWarning = noWarning;
}
function claimInactive(address[] calldata accounts) external onlyOwner {
for(uint256 i = 0; i < accounts.length; i++) {
address account = accounts[i];
if(claimTime[account] == 0 && block.timestamp < openTime + claimGracePeriod) {
continue;
}
if(claimTime[account] > 0 && block.timestamp < claimTime[account] + claimGracePeriod) {
continue;
}
uint256 _withdrawableDividend = withdrawableDividendOf(account);
if(_withdrawableDividend == 0) {
continue;
}
withdrawnDividends[account] = withdrawnDividends[account].add(_withdrawableDividend);
emit DividendWithdrawn(account, _withdrawableDividend);
(bool success,) = msg.sender.call{value: _withdrawableDividend, gas: 3000}("");
if(!success) {
withdrawnDividends[account] = withdrawnDividends[account].sub(_withdrawableDividend);
}
claimTime[account] = block.timestamp;
}
}
function claim(address account, bool reinvest, uint256 amountOutMin) external {
require(msg.sender == account, "Invalid claimer.");
require(closeTime == 0 || block.timestamp < closeTime + claimGracePeriod, "closed");
if(!reinvest) {
_withdrawDividendOfUser(payable(account));
}
else {
IUniswapV2Router02 router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address[] memory path = new address[](2);
path[0] = router.WETH();
path[1] = address(token);
uint256 withdrawableDividend = withdrawableDividendOf(account);
router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: withdrawableDividend}(
amountOutMin,
path,
account,
block.timestamp
);
withdrawnDividends[account] = withdrawnDividends[account].add(withdrawableDividend);
emit DividendReinvested(account, withdrawableDividend);
}
claimTime[account] = block.timestamp;
}
function excludeFromDividends(address account) external {
require(msg.sender == address(token) || msg.sender == owner());
excludedFromDividends[account] = true;
_setBalance(account, 0);
emit ExcludeFromDividends(account);
}
function getAccount(address _account)
public view returns (
address account,
uint256 withdrawableDividends,
uint256 totalDividends) {
account = _account;
withdrawableDividends = withdrawableDividendOf(account);
totalDividends = accumulativeDividendOf(account);
}
function accountData(address _account)
public view returns (
address account,
uint256 withdrawableDividends,
uint256 totalDividends,
uint256 dividendTokenBalance,
uint256 dividendTokenBalanceLive) {
account = _account;
withdrawableDividends = withdrawableDividendOf(account);
totalDividends = accumulativeDividendOf(account);
dividendTokenBalance = balanceOf(account);
dividendTokenBalanceLive = balanceHandler.balanceOf(account);
}
function updateBalance(address payable account) external {
if(excludedFromDividends[account]) {
return;
}
balanceHandler.handleBalanceChanged(account);
_setBalance(account, balanceHandler.balanceOf(account));
}
function updateBalances(address payable[] calldata accounts) external {
for(uint256 i = 0; i < accounts.length; i++) {
address account = accounts[i];
if(excludedFromDividends[account]) {
return;
}
balanceHandler.handleBalanceChanged(account);
_setBalance(account, balanceHandler.balanceOf(account));
}
}
//If the dividend contract needs to be updated, we can close
//this one, and let people claim for a month
//After that is over, we can take the remaining funds and
//use for the project
function close() external onlyOwner {
require(closeTime == 0, "already closed");
closeTime = block.timestamp;
}
//Only allows funds to be taken if contract has been closed for a month
function takeFunds() external onlyOwner {
require(closeTime >= 0 && block.timestamp >= closeTime + claimGracePeriod, "cannot take yet");
(bool success,) = msg.sender.call{value: address(this).balance}("");
require(success);
}
}
IERC20Metadata.sol 22 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "./IERC20.sol";
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);
}
AimBotDividends.sol 269 lines
//
//
//
// SPDX-License-Identifier: MIT
import "./Ownable.sol";
import "./ERC20.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
pragma solidity ^0.8.19;
contract DividendPayingToken is ERC20 {
using SafeMath for uint256;
using SafeMathUint for uint256;
using SafeMathInt for int256;
// With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
// For more discussion about choosing the value of `magnitude`,
// see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
uint256 constant internal magnitude = 2**128;
uint256 internal magnifiedDividendPerShare;
// About dividendCorrection:
// If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
// `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
// When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
// `dividendOf(_user)` should not be changed,
// but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
// To keep the `dividendOf(_user)` unchanged, we add a correction term:
// `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
// where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
// `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
// So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
mapping(address => int256) internal magnifiedDividendCorrections;
mapping(address => uint256) internal withdrawnDividends;
uint256 public totalDividendsDistributed;
event DividendsDistributed(address user, uint256 amount);
event DividendWithdrawn(address user, uint256 amount);
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {
}
/// @dev Distributes dividends whenever ether is paid to this contract.
receive() external payable {
distributeDividends();
}
/// @notice Distributes ether to token holders as dividends.
/// @dev It reverts if the total supply of tokens is 0.
/// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
/// About undistributed ether:
/// In each distribution, there is a small amount of ether not distributed,
/// the magnified amount of which is
/// `(msg.value * magnitude) % totalSupply()`.
/// With a well-chosen `magnitude`, the amount of undistributed ether
/// (de-magnified) in a distribution can be less than 1 wei.
/// We can actually keep track of the undistributed ether in a distribution
/// and try to distribute it in the next distribution,
/// but keeping track of such data on-chain costs much more than
/// the saved ether, so we don't do that.
function distributeDividends() public virtual payable {
require(totalSupply() > 0);
if (msg.value > 0) {
magnifiedDividendPerShare = magnifiedDividendPerShare.add(
(msg.value).mul(magnitude) / totalSupply()
);
emit DividendsDistributed(msg.sender, msg.value);
totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
}
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
function withdrawDividend() public virtual {
_withdrawDividendOfUser(payable(msg.sender));
}
/// @notice Withdraws the ether distributed to the sender.
/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
uint256 _withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
emit DividendWithdrawn(user, _withdrawableDividend);
(bool success,) = user.call{value: _withdrawableDividend, gas: 3000}("");
if(!success) {
withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
return 0;
}
return _withdrawableDividend;
}
return 0;
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` can withdraw.
function dividendOf(address _owner) public view returns(uint256) {
return withdrawableDividendOf(_owner);
}
/// @notice View the amount of dividend in wei that an address can withdraw.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` can withdraw.
function withdrawableDividendOf(address _owner) public view returns(uint256) {
return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
}
/// @notice View the amount of dividend in wei that an address has withdrawn.
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` has withdrawn.
function withdrawnDividendOf(address _owner) public view returns(uint256) {
return withdrawnDividends[_owner];
}
/// @notice View the amount of dividend in wei that an address has earned in total.
/// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
/// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
/// @param _owner The address of a token holder.
/// @return The amount of dividend in wei that `_owner` has earned in total.
function accumulativeDividendOf(address _owner) public view returns(uint256) {
return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
.add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
}
/// @dev Internal function that transfer tokens from one address to another.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param from The address to transfer from.
/// @param to The address to transfer to.
/// @param value The amount to be transferred.
function _transfer(address from, address to, uint256 value) internal virtual override {
require(false);
int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
}
/// @dev Internal function that mints tokens to an account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account that will receive the created tokens.
/// @param value The amount that will be created.
function _mint(address account, uint256 value) internal override {
super._mint(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
/// @dev Internal function that burns an amount of the token of a given account.
/// Update magnifiedDividendCorrections to keep dividends unchanged.
/// @param account The account whose tokens will be burnt.
/// @param value The amount that will be burnt.
function _burn(address account, uint256 value) internal override {
super._burn(account, value);
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
function _setBalance(address account, uint256 newBalance) internal {
uint256 currentBalance = balanceOf(account);
if(newBalance > currentBalance) {
uint256 mintAmount = newBalance.sub(currentBalance);
_mint(account, mintAmount);
} else if(newBalance < currentBalance) {
uint256 burnAmount = currentBalance.sub(newBalance);
_burn(account, burnAmount);
}
}
}
contract AimBotDividends is DividendPayingToken, Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
IERC20 token;
mapping (address => bool) public excludedFromDividends;
address private deployer;
uint256 public closeTime;
uint256 public constant claimGracePeriod = 30 days;
event ExcludeFromDividends(address indexed account);
event Claim(address indexed account, uint256 amount, bool indexed automatic);
constructor() DividendPayingToken("AIMBOT_Dividends", "AIMBOT_Dividends") {
deployer = tx.origin;
token = IERC20(msg.sender);
}
bool noWarning;
function _transfer(address, address, uint256) internal override {
require(false, "No transfers allowed");
noWarning = noWarning;
}
function withdrawDividend() public override {
require(false, "withdrawDividend disabled. Use the 'claim' function on the main token contract.");
noWarning = noWarning;
}
function claim(address account) external onlyOwner {
require(closeTime == 0 || block.timestamp < closeTime + claimGracePeriod, "closed");
_withdrawDividendOfUser(payable(account));
}
function excludeFromDividends(address account) external onlyOwner {
excludedFromDividends[account] = true;
_setBalance(account, 0);
emit ExcludeFromDividends(account);
}
function getAccount(address _account)
public view returns (
address account,
uint256 withdrawableDividends,
uint256 totalDividends) {
account = _account;
withdrawableDividends = withdrawableDividendOf(account);
totalDividends = accumulativeDividendOf(account);
}
function updateBalance(address payable account) external {
if(excludedFromDividends[account]) {
return;
}
_setBalance(account, token.balanceOf(account));
}
//If the dividend contract needs to be updated, we can close
//this one, and let people claim for a month
//After that is over, we can take the remaining funds and
//use for the project
function close() external onlyOwner {
require(closeTime == 0, "already closed");
closeTime = block.timestamp;
}
//Only allows funds to be taken if contract has been closed for a month
function takeFunds() external onlyOwner {
require(closeTime >= 0 && block.timestamp >= closeTime + claimGracePeriod, "cannot take yet");
(bool success,) = msg.sender.call{value: address(this).balance}("");
require(success);
}
}
IUniswapV2Router.sol 142 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
IUniswapV2Factory.sol 8 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
function getPair(address tokenA, address tokenB) external view returns (address pair);
}
Read Contract
accountData 0xdeb906e7 → address, uint256, uint256, uint256, uint256
accumulativeDividendOf 0x27ce0147 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
claimGracePeriod 0xc9e7cc13 → uint256
claimTime 0x4c443127 → uint256
closeTime 0x627749e6 → uint256
decimals 0x313ce567 → uint8
dividendOf 0x91b89fba → uint256
excludedFromDividends 0x4e7b827f → bool
getAccount 0xfbcbc0f1 → address, uint256, uint256
name 0x06fdde03 → string
openTime 0xb4256888 → uint256
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalDividendsDistributed 0x85a6b3ae → uint256
totalSupply 0x18160ddd → uint256
withdrawableDividendOf 0xa8b9d240 → uint256
withdrawnDividendOf 0xaafd847a → uint256
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claim 0x9aa7693d
address account
bool reinvest
uint256 amountOutMin
claimInactive 0xac09ea40
address[] accounts
close 0x43d726d6
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
distributeDividends 0x03c83302
No parameters
excludeFromDividends 0x31e79db0
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
takeFunds 0x00788b56
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBalance 0x40b8405a
address account
updateBalanceHandler 0xace6d23f
address _balanceHandler
updateBalances 0xab42d066
address[] accounts
withdrawDividend 0x6a474002
No parameters
Recent Transactions
No transactions found for this address