Address Contract Verified
Address
0xA82FF3a0DDA92aF2BE8B539C6982c1bf742786Bd
Balance
0 ETH
Nonce
1
Code Size
17149 bytes
Creator
0xc3dB378D...a6a8 at tx 0x1d2ca746...a13084
Indexed Transactions
0
Contract Bytecode
17149 bytes
0x6080604052600436106102815760003560e01c80638da5cb5b1161014f578063c0246668116100c1578063e01af92c1161007a578063e01af92c14610992578063e2f45605146109bb578063f2fde38b146109e6578063f66895a314610a0f578063f887ea4014610a3b578063f8b45b0514610a6657610288565b8063c024666814610888578063c18bc195146108b1578063c492f046146108da578063c851cc3214610903578063d2fcc0011461092c578063dd62ed3e1461095557610288565b8063a457c2d711610113578063a457c2d714610754578063a8aa1b3114610791578063a9059cbb146107bc578063aa35822c146107f9578063afa4f3b214610822578063b62496f51461084b57610288565b80638da5cb5b146106815780638ea5220f146106ac57806395d89b41146106d75780639a7a23d614610702578063a11a16821461072b57610288565b806339509351116101f35780636ddd1713116101ac5780636ddd17131461058257806370a08231146105ad578063715018a6146105ea57806379b447bd14610601578063864701a51461062a57806388e765ff1461065657610288565b8063395093511461045c5780634626402b1461049957806346469afb146104c45780634ada218b146104ef5780634fbee1931461051a57806366d602ae1461055757610288565b806318160ddd1161024557806318160ddd1461034c5780631bff7898146103775780631f53ac02146103a257806323b872dd146103cb57806330d36c1d14610408578063313ce5671461043157610288565b806306fdde031461028d578063095ea7b3146102b85780630a78097d146102f55780630bd05b691461031e57806312b77e8a1461033557610288565b3661028857005b600080fd5b34801561029957600080fd5b506102a2610a91565b6040516102af9190612ce4565b60405180910390f35b3480156102c457600080fd5b506102df60048036038101906102da9190612da4565b610b23565b6040516102ec9190612dff565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190612e1a565b610b46565b005b34801561032a57600080fd5b50610333610c50565b005b34801561034157600080fd5b5061034a610cc5565b005b34801561035857600080fd5b50610361610d9e565b60405161036e9190612e56565b60405180910390f35b34801561038357600080fd5b5061038c610da8565b6040516103999190612e56565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190612e1a565b610dae565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190612e71565b610dfa565b6040516103ff9190612dff565b60405180910390f35b34801561041457600080fd5b5061042f600480360381019061042a9190612e1a565b610e29565b005b34801561043d57600080fd5b50610446610e75565b6040516104539190612ee0565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190612da4565b610e7e565b6040516104909190612dff565b60405180910390f35b3480156104a557600080fd5b506104ae610eb5565b6040516104bb9190612f0a565b60405180910390f35b3480156104d057600080fd5b506104d9610edb565b6040516104e69190612e56565b60405180910390f35b3480156104fb57600080fd5b50610504610ee1565b6040516105119190612dff565b60405180910390f35b34801561052657600080fd5b50610541600480360381019061053c9190612e1a565b610ef4565b60405161054e9190612dff565b60405180910390f35b34801561056357600080fd5b5061056c610f4a565b6040516105799190612e56565b60405180910390f35b34801561058e57600080fd5b50610597610f50565b6040516105a49190612dff565b60405180910390f35b3480156105b957600080fd5b506105d460048036038101906105cf9190612e1a565b610f63565b6040516105e19190612e56565b60405180910390f35b3480156105f657600080fd5b506105ff610fab565b005b34801561060d57600080fd5b5061062860048036038101906106239190612f25565b610fbf565b005b34801561063657600080fd5b5061063f61108b565b60405161064d929190612f65565b60405180910390f35b34801561066257600080fd5b5061066b61109d565b6040516106789190612e56565b60405180910390f35b34801561068d57600080fd5b506106966110a3565b6040516106a39190612f0a565b60405180910390f35b3480156106b857600080fd5b506106c16110cd565b6040516106ce9190612f0a565b60405180910390f35b3480156106e357600080fd5b506106ec6110f3565b6040516106f99190612ce4565b60405180910390f35b34801561070e57600080fd5b5061072960048036038101906107249190612fba565b611185565b005b34801561073757600080fd5b50610752600480360381019061074d9190612f25565b61119b565b005b34801561076057600080fd5b5061077b60048036038101906107769190612da4565b611236565b6040516107889190612dff565b60405180910390f35b34801561079d57600080fd5b506107a66112ad565b6040516107b39190612f0a565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190612da4565b6112d3565b6040516107f09190612dff565b60405180910390f35b34801561080557600080fd5b50610820600480360381019061081b9190612f25565b6112f6565b005b34801561082e57600080fd5b5061084960048036038101906108449190612ffa565b611391565b005b34801561085757600080fd5b50610872600480360381019061086d9190612e1a565b6113fb565b60405161087f9190612dff565b60405180910390f35b34801561089457600080fd5b506108af60048036038101906108aa9190612fba565b61141b565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190612ffa565b61155e565b005b3480156108e657600080fd5b5061090160048036038101906108fc919061308c565b6115c9565b005b34801561090f57600080fd5b5061092a60048036038101906109259190612e1a565b6116b1565b005b34801561093857600080fd5b50610953600480360381019061094e9190612fba565b6116fd565b005b34801561096157600080fd5b5061097c600480360381019061097791906130ec565b611760565b6040516109899190612e56565b60405180910390f35b34801561099e57600080fd5b506109b960048036038101906109b4919061312c565b6117e7565b005b3480156109c757600080fd5b506109d061180c565b6040516109dd9190612e56565b60405180910390f35b3480156109f257600080fd5b50610a0d6004803603810190610a089190612e1a565b611812565b005b348015610a1b57600080fd5b50610a24611895565b604051610a32929190612f65565b60405180910390f35b348015610a4757600080fd5b50610a506118a7565b604051610a5d91906131b8565b60405180910390f35b348015610a7257600080fd5b50610a7b6118cd565b604051610a889190612e56565b60405180910390f35b606060038054610aa090613202565b80601f0160208091040260200160405190810160405280929190818152602001828054610acc90613202565b8015610b195780601f10610aee57610100808354040283529160200191610b19565b820191906000526020600020905b815481529060010190602001808311610afc57829003601f168201915b5050505050905090565b600080610b2e6118d3565b9050610b3b8185856118db565b600191505092915050565b610b4e611aa4565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610b726110a3565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bab9190612f0a565b602060405180830381865afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190613248565b6040518363ffffffff1660e01b8152600401610c09929190613275565b6020604051808303816000875af1158015610c28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4c91906132b3565b5050565b610c58611aa4565b601160029054906101000a900460ff1615610ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9f9061332c565b60405180910390fd5b6001601160026101000a81548160ff021916908315150217905550565b610ccd611aa4565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610d159061337d565b60006040518083038185875af1925050503d8060008114610d52576040519150601f19603f3d011682016040523d82523d6000602084013e610d57565b606091505b5050905080610d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9290613404565b60405180910390fd5b50565b6000600254905090565b60175481565b610db6611aa4565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080610e056118d3565b9050610e12858285611b22565b610e1d858585611bae565b60019150509392505050565b610e31611aa4565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006012905090565b600080610e896118d3565b9050610eaa818585610e9b8589611760565b610ea59190613453565b6118db565b600191505092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60165481565b601160029054906101000a900460ff1681565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600c5481565b601160019054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fb3611aa4565b610fbd60006123bb565b565b610fc7611aa4565b62061a8182101561100d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611004906134f5565b60405180910390fd5b62061a81811015611053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104a90613587565b60405180910390fd5b670de0b6b3a76400008261106791906135a7565b600b81905550670de0b6b3a76400008161108191906135a7565b600c819055505050565b60128060000154908060010154905082565b600b5481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461110290613202565b80601f016020809104026020016040519081016040528092919081815260200182805461112e90613202565b801561117b5780601f106111505761010080835404028352916020019161117b565b820191906000526020600020905b81548152906001019060200180831161115e57829003601f168201915b5050505050905090565b61118d611aa4565b6111978282612481565b5050565b6111a3611aa4565b601481836111b19190613453565b11156111f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e99061364d565b60405180910390fd5b60405180604001604052808381526020018281525060146000820151816000015560208201518160010155905050808261122c9190613453565b6017819055505050565b6000806112416118d3565b9050600061124f8286611760565b905083811015611294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128b906136df565b60405180910390fd5b6112a182868684036118db565b60019250505092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806112de6118d3565b90506112eb818585611bae565b600191505092915050565b6112fe611aa4565b6014818361130c9190613453565b111561134d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113449061364d565b60405180910390fd5b6040518060400160405280838152602001828152506012600082015181600001556020820151816001015590505080826113879190613453565b6016819055505050565b611399611aa4565b620303e081106113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d590613771565b60405180910390fd5b670de0b6b3a7640000816113f291906135a7565b600a8190555050565b60106020528060005260406000206000915054906101000a900460ff1681565b611423611aa4565b801515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515036114b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ac90613803565b60405180910390fd5b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516115529190612dff565b60405180910390a25050565b611566611aa4565b62061a818110156115ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a390613895565b60405180910390fd5b670de0b6b3a7640000816115c091906135a7565b600d8190555050565b6115d1611aa4565b60005b838390508110156116705781600e60008686858181106115f7576115f66138b5565b5b905060200201602081019061160c9190612e1a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611668906138e4565b9150506115d4565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b358383836040516116a4939291906139ef565b60405180910390a1505050565b6116b9611aa4565b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611705611aa4565b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6117ef611aa4565b80601160016101000a81548160ff02191690831515021790555050565b600a5481565b61181a611aa4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188090613a93565b60405180910390fd5b611892816123bb565b50565b60148060000154908060010154905082565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361194a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194190613b25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b090613bb7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611a979190612e56565b60405180910390a3505050565b611aac6118d3565b73ffffffffffffffffffffffffffffffffffffffff16611aca6110a3565b73ffffffffffffffffffffffffffffffffffffffff1614611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790613c23565b60405180910390fd5b565b6000611b2e8484611760565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611ba85781811015611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190613c8f565b60405180910390fd5b611ba784848484036118db565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1490613d21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8390613db3565b60405180910390fd5b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16158015611d305750600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015611d495750601160009054906101000a900460ff16155b15611f7d57601160029054906101000a900460ff16611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9490613e1f565b60405180910390fd5b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611e3957600c54811115611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b90613e8b565b60405180910390fd5b611ed2565b601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611ed157600b54811115611ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec790613ef7565b60405180910390fd5b5b5b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611f7c57600d54611f2f83610f63565b82611f3a9190613453565b1115611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290613f63565b60405180910390fd5b5b5b60008103611f9657611f91838360006125b4565b6123b6565b6000611fa130610f63565b90506000600a548210159050808015611fc75750601160009054906101000a900460ff16155b8015611fdf5750601160019054906101000a900460ff165b80156120345750601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b801561208a5750600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156120e05750600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612133576001601160006101000a81548160ff0219169083151502179055506000601754111561211757612116600a5461282a565b5b6000601160006101000a81548160ff0219169083151502179055505b6000601160009054906101000a900460ff16159050600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806121e95750600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156121f357600090505b601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156122975750601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156122a157600090505b80156123a7576000601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561231c5760646017548661230b91906135a7565b6123159190613fb2565b905061238c565b601060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561238b5760646016548661237e91906135a7565b6123889190613fb2565b90505b5b80856123989190613fe3565b94506123a58730836125b4565b505b6123b28686866125b4565b5050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b801515601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151503612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250a90614089565b60405180910390fd5b80601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261a90613d21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268990613db3565b60405180910390fd5b61269d8383836129fe565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271a9061411b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128119190612e56565b60405180910390a3612824848484612a03565b50505050565b600081905061283881612a08565b6000479050600060175490506000816014600101548461285891906135a7565b6128629190613fb2565b9050600081111561293d576000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516128b59061337d565b60006040518083038185875af1925050503d80600081146128f2576040519150601f19603f3d011682016040523d82523d6000602084013e6128f7565b606091505b505090508061293b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293290613404565b60405180910390fd5b505b6000826014600001548561295191906135a7565b61295b9190613fb2565b905060008111156129f6576000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516129ae9061337d565b60006040518083038185875af1925050503d80600081146129eb576040519150601f19603f3d011682016040523d82523d6000602084013e6129f0565b606091505b50509050505b505050505050565b505050565b505050565b6000600267ffffffffffffffff811115612a2557612a2461413b565b5b604051908082528060200260200182016040528015612a535781602001602082028036833780820191505090505b5090503081600081518110612a6b57612a6a6138b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b36919061417f565b81600181518110612b4a57612b496138b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612bb130600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846118db565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612c1595949392919061426d565b600060405180830381600087803b158015612c2f57600080fd5b505af1158015612c43573d6000803e3d6000fd5b505050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c85578082015181840152602081019050612c6a565b83811115612c94576000848401525b50505050565b6000601f19601f8301169050919050565b6000612cb682612c4b565b612cc08185612c56565b9350612cd0818560208601612c67565b612cd981612c9a565b840191505092915050565b60006020820190508181036000830152612cfe8184612cab565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d3b82612d10565b9050919050565b612d4b81612d30565b8114612d5657600080fd5b50565b600081359050612d6881612d42565b92915050565b6000819050919050565b612d8181612d6e565b8114612d8c57600080fd5b50565b600081359050612d9e81612d78565b92915050565b60008060408385031215612dbb57612dba612d06565b5b6000612dc985828601612d59565b9250506020612dda85828601612d8f565b9150509250929050565b60008115159050919050565b612df981612de4565b82525050565b6000602082019050612e146000830184612df0565b92915050565b600060208284031215612e3057612e2f612d06565b5b6000612e3e84828501612d59565b91505092915050565b612e5081612d6e565b82525050565b6000602082019050612e6b6000830184612e47565b92915050565b600080600060608486031215612e8a57612e89612d06565b5b6000612e9886828701612d59565b9350506020612ea986828701612d59565b9250506040612eba86828701612d8f565b9150509250925092565b600060ff82169050919050565b612eda81612ec4565b82525050565b6000602082019050612ef56000830184612ed1565b92915050565b612f0481612d30565b82525050565b6000602082019050612f1f6000830184612efb565b92915050565b60008060408385031215612f3c57612f3b612d06565b5b6000612f4a85828601612d8f565b9250506020612f5b85828601612d8f565b9150509250929050565b6000604082019050612f7a6000830185612e47565b612f876020830184612e47565b9392505050565b612f9781612de4565b8114612fa257600080fd5b50565b600081359050612fb481612f8e565b92915050565b60008060408385031215612fd157612fd0612d06565b5b6000612fdf85828601612d59565b9250506020612ff085828601612fa5565b9150509250929050565b6000602082840312156130105761300f612d06565b5b600061301e84828501612d8f565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261304c5761304b613027565b5b8235905067ffffffffffffffff8111156130695761306861302c565b5b60208301915083602082028301111561308557613084613031565b5b9250929050565b6000806000604084860312156130a5576130a4612d06565b5b600084013567ffffffffffffffff8111156130c3576130c2612d0b565b5b6130cf86828701613036565b935093505060206130e286828701612fa5565b9150509250925092565b6000806040838503121561310357613102612d06565b5b600061311185828601612d59565b925050602061312285828601612d59565b9150509250929050565b60006020828403121561314257613141612d06565b5b600061315084828501612fa5565b91505092915050565b6000819050919050565b600061317e61317961317484612d10565b613159565b612d10565b9050919050565b600061319082613163565b9050919050565b60006131a282613185565b9050919050565b6131b281613197565b82525050565b60006020820190506131cd60008301846131a9565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061321a57607f821691505b60208210810361322d5761322c6131d3565b5b50919050565b60008151905061324281612d78565b92915050565b60006020828403121561325e5761325d612d06565b5b600061326c84828501613233565b91505092915050565b600060408201905061328a6000830185612efb565b6132976020830184612e47565b9392505050565b6000815190506132ad81612f8e565b92915050565b6000602082840312156132c9576132c8612d06565b5b60006132d78482850161329e565b91505092915050565b7f54726164696e6720616c726561647920656e61626c6564000000000000000000600082015250565b6000613316601783612c56565b9150613321826132e0565b602082019050919050565b6000602082019050818103600083015261334581613309565b9050919050565b600081905092915050565b50565b600061336760008361334c565b915061337282613357565b600082019050919050565b60006133888261335a565b9150819050919050565b7f4661696c656420746f2073656e6420457468657220746f206465762077616c6c60008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b60006133ee602283612c56565b91506133f982613392565b604082019050919050565b6000602082019050818103600083015261341d816133e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061345e82612d6e565b915061346983612d6e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561349e5761349d613424565b5b828201905092915050565b7f43616e6e6f7420736574206d6178627579206c6f776572207468616e20322520600082015250565b60006134df602083612c56565b91506134ea826134a9565b602082019050919050565b6000602082019050818103600083015261350e816134d2565b9050919050565b7f43616e6e6f7420736574206d617873656c6c206c6f776572207468616e20322560008201527f2000000000000000000000000000000000000000000000000000000000000000602082015250565b6000613571602183612c56565b915061357c82613515565b604082019050919050565b600060208201905081810360008301526135a081613564565b9050919050565b60006135b282612d6e565b91506135bd83612d6e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135f6576135f5613424565b5b828202905092915050565b7f466565206d757374206265203c3d203230250000000000000000000000000000600082015250565b6000613637601283612c56565b915061364282613601565b602082019050919050565b600060208201905081810360008301526136668161362a565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006136c9602583612c56565b91506136d48261366d565b604082019050919050565b600060208201905081810360008301526136f8816136bc565b9050919050565b7f43616e6e6f742073657420737761702d746f6b656e732068696768657220746860008201527f656e207468616e20313025200000000000000000000000000000000000000000602082015250565b600061375b602c83612c56565b9150613766826136ff565b604082019050919050565b6000602082019050818103600083015261378a8161374e565b9050919050565b7f204163636f756e7420697320616c7265616479207468652076616c7565206f6660008201527f20276578636c7564656427000000000000000000000000000000000000000000602082015250565b60006137ed602b83612c56565b91506137f882613791565b604082019050919050565b6000602082019050818103600083015261381c816137e0565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f3225000000000000000000000000000000000000000000000000000000000000602082015250565b600061387f602283612c56565b915061388a82613823565b604082019050919050565b600060208201905081810360008301526138ae81613872565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006138ef82612d6e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361392157613920613424565b5b600182019050919050565b600082825260208201905092915050565b6000819050919050565b61395081612d30565b82525050565b60006139628383613947565b60208301905092915050565b600061397d6020840184612d59565b905092915050565b6000602082019050919050565b600061399e838561392c565b93506139a98261393d565b8060005b858110156139e2576139bf828461396e565b6139c98882613956565b97506139d483613985565b9250506001810190506139ad565b5085925050509392505050565b60006040820190508181036000830152613a0a818587613992565b9050613a196020830184612df0565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a7d602683612c56565b9150613a8882613a21565b604082019050919050565b60006020820190508181036000830152613aac81613a70565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613b0f602483612c56565b9150613b1a82613ab3565b604082019050919050565b60006020820190508181036000830152613b3e81613b02565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ba1602283612c56565b9150613bac82613b45565b604082019050919050565b60006020820190508181036000830152613bd081613b94565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613c0d602083612c56565b9150613c1882613bd7565b602082019050919050565b60006020820190508181036000830152613c3c81613c00565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613c79601d83612c56565b9150613c8482613c43565b602082019050919050565b60006020820190508181036000830152613ca881613c6c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613d0b602583612c56565b9150613d1682613caf565b604082019050919050565b60006020820190508181036000830152613d3a81613cfe565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613d9d602383612c56565b9150613da882613d41565b604082019050919050565b60006020820190508181036000830152613dcc81613d90565b9050919050565b7f54726164696e67206e6f74206163746976650000000000000000000000000000600082015250565b6000613e09601283612c56565b9150613e1482613dd3565b602082019050919050565b60006020820190508181036000830152613e3881613dfc565b9050919050565b7f596f752061726520657863656564696e67206d617853656c6c416d6f756e7400600082015250565b6000613e75601f83612c56565b9150613e8082613e3f565b602082019050919050565b60006020820190508181036000830152613ea481613e68565b9050919050565b7f596f752061726520657863656564696e67206d6178427579416d6f756e740000600082015250565b6000613ee1601e83612c56565b9150613eec82613eab565b602082019050919050565b60006020820190508181036000830152613f1081613ed4565b9050919050565b7f556e61626c6520746f20657863656564204d61782057616c6c65740000000000600082015250565b6000613f4d601b83612c56565b9150613f5882613f17565b602082019050919050565b60006020820190508181036000830152613f7c81613f40565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613fbd82612d6e565b9150613fc883612d6e565b925082613fd857613fd7613f83565b5b828204905092915050565b6000613fee82612d6e565b9150613ff983612d6e565b92508282101561400c5761400b613424565b5b828203905092915050565b7f4175746f6d61746564206d61726b6574206d616b65722070616972206973206160008201527f6c72656164792073657420746f20746861742076616c75650000000000000000602082015250565b6000614073603883612c56565b915061407e82614017565b604082019050919050565b600060208201905081810360008301526140a281614066565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614105602683612c56565b9150614110826140a9565b604082019050919050565b60006020820190508181036000830152614134816140f8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008151905061417981612d42565b92915050565b60006020828403121561419557614194612d06565b5b60006141a38482850161416a565b91505092915050565b6000819050919050565b60006141d16141cc6141c7846141ac565b613159565b612d6e565b9050919050565b6141e1816141b6565b82525050565b600081519050919050565b6000819050602082019050919050565b6000602082019050919050565b600061421a826141e7565b614224818561392c565b935061422f836141f2565b8060005b838110156142605781516142478882613956565b975061425283614202565b925050600181019050614233565b5085935050505092915050565b600060a0820190506142826000830188612e47565b61428f60208301876141d8565b81810360408301526142a1818661420f565b90506142b06060830185612efb565b6142bd6080830184612e47565b969550505050505056fea264697066735822122059c2acd209218e29d205a2919ebb6b08a0cb3ae316abb77d8becbe419808bc4d64736f6c634300080f0033
Verified Source Code Full Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: No
Pointone.sol 411 lines
/*
We're here to prove one ponit.
Telegram: t.me/Point_One_Entry
*/
// SPDX-License-Identifier: MIT
pragma solidity =0.8.15;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
interface IFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
}
interface IRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract PointOne is ERC20, Ownable {
IRouter public router;
address public pair;
address public treasuryWallet;
address public devWallet = 0xc3dB378DDD0ec8dD83BF80dE2154821e1C03a6a8;
uint256 public swapTokensAtAmount;
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWallet;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedFromMaxWallet;
mapping(address => bool) public automatedMarketMakerPairs;
bool private swapping;
bool public swapEnabled = true;
bool public tradingEnabled;
event ExcludeFromFees(address indexed account, bool isExcluded);
event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
struct Taxes {
uint256 treasury;
uint256 dev;
}
Taxes public buyTaxes = Taxes(0, 0);
Taxes public sellTaxes = Taxes(0, 0);
uint256 public totalBuyTax = 0;
uint256 public totalSellTax = 0;
constructor(address _treasury) ERC20("Point One", ".1") {
setSwapTokensAtAmount(55000); //
updateMaxWalletAmount(400001);
setMaxBuyAndSell(400001, 400001);
UpdateTreasuryAddress(_treasury);
IRouter _router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address _pair = IFactory(_router.factory()).createPair(
address(this),
_router.WETH()
);
router = _router;
pair = _pair;
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromMaxWallet(_pair, true);
excludeFromMaxWallet(address(this), true);
excludeFromMaxWallet(address(_router), true);
_setAutomatedMarketMakerPair(_pair, true);
/*
_mint is an internal function that is only called here,
and cannot be called ever again
*/
_mint(owner(), 20000000 * (10**18));
}
receive() external payable {}
function UpdateTreasuryAddress(address newtreasury) public onlyOwner {
treasuryWallet = newtreasury;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
require(
_isExcludedFromFees[account] != excluded,
" Account is already the value of 'excluded'"
);
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function excludeFromMaxWallet(address account, bool excluded)
public
onlyOwner
{
_isExcludedFromMaxWallet[account] = excluded;
}
function excludeMultipleAccountsFromFees(
address[] calldata accounts,
bool excluded
) public onlyOwner {
for (uint256 i = 0; i < accounts.length; i++) {
_isExcludedFromFees[accounts[i]] = excluded;
}
emit ExcludeMultipleAccountsFromFees(accounts, excluded);
}
function setDevWallet(address newWallet) public onlyOwner {
devWallet = newWallet;
}
function updateMaxWalletAmount(uint256 newNum) public onlyOwner {
require(newNum >= 400001, "Cannot set maxWallet lower than 2%");
maxWallet = newNum * (10**18);
}
function setMaxBuyAndSell(uint256 maxBuy, uint256 maxSell)
public
onlyOwner
{
require(maxBuy >= 400001, "Cannot set maxbuy lower than 2% ");
require(maxSell >= 400001, "Cannot set maxsell lower than 2% ");
maxBuyAmount = maxBuy * 10**18;
maxSellAmount = maxSell * 10**18;
}
function setBuyTaxes(
uint256 _treasury,
uint256 _dev
) external onlyOwner {
require(_treasury + _dev <= 20, "Fee must be <= 20%");
buyTaxes = Taxes( _treasury, _dev);
totalBuyTax = _treasury + _dev;
}
function setSellTaxes(
uint256 _treasury,
uint256 _dev
) external onlyOwner {
require(_treasury + _dev <= 20, "Fee must be <= 20%");
sellTaxes = Taxes(_treasury, _dev);
totalSellTax = _treasury + _dev;
}
/// @notice Update the threshold to swap tokens for liquidity,
/// treasury and dividends.
function setSwapTokensAtAmount(uint256 amount) public onlyOwner {
require(
amount < 197600,
"Cannot set swap-tokens higher then than 10% "
);
swapTokensAtAmount = amount * 10**18;
}
/// @notice Enable or disable internal swaps
/// @dev Set "true" to enable internal swaps for liquidity, treasury and dividends
function setSwapEnabled(bool _enabled) external onlyOwner {
swapEnabled = _enabled;
}
/// @notice Withdraw tokens sent by mistake.
/// @param tokenAddress The address of the token to withdraw
function rescueETH20Tokens(address tokenAddress) external onlyOwner {
IERC20(tokenAddress).transfer(
owner(),
IERC20(tokenAddress).balanceOf(address(this))
);
}
function forceSend() external onlyOwner {
(bool success, ) = payable(devWallet).call{
value: address(this).balance
}("");
require(success, "Failed to send Ether to dev wallet");
}
function updateRouter(address newRouter) external onlyOwner {
router = IRouter(newRouter);
}
function activateTrading() external onlyOwner {
require(!tradingEnabled, "Trading already enabled");
tradingEnabled = true;
}
/// @dev Set new pairs created due to listing in new DEX
function setAutomatedMarketMakerPair(address newPair, bool value)
external
onlyOwner
{
_setAutomatedMarketMakerPair(newPair, value);
}
function _setAutomatedMarketMakerPair(address newPair, bool value) private {
require(
automatedMarketMakerPairs[newPair] != value,
"Automated market maker pair is already set to that value"
);
automatedMarketMakerPairs[newPair] = value;
emit SetAutomatedMarketMakerPair(newPair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (
!_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !swapping
) {
require(tradingEnabled, "Trading not active");
if (automatedMarketMakerPairs[to]) {
require(
amount <= maxSellAmount,
"You are exceeding maxSellAmount"
);
} else if (automatedMarketMakerPairs[from])
require(
amount <= maxBuyAmount,
"You are exceeding maxBuyAmount"
);
if (!_isExcludedFromMaxWallet[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Unable to exceed Max Wallet"
);
}
}
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
!swapping &&
swapEnabled &&
automatedMarketMakerPairs[to] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
if (totalSellTax > 0) {
swapAndLiquify(swapTokensAtAmount);
}
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
if (!automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from])
takeFee = false;
if (takeFee) {
uint256 feeAmt;
if (automatedMarketMakerPairs[to])
feeAmt = (amount * totalSellTax) / 100;
else if (automatedMarketMakerPairs[from])
feeAmt = (amount * totalBuyTax) / 100;
amount = amount - feeAmt;
super._transfer(from, address(this), feeAmt);
}
super._transfer(from, to, amount);
}
function swapAndLiquify(uint256 tokens) private {
uint256 toSwap = tokens;
swapTokensForETH(toSwap);
uint256 contractrewardbalance = address(this).balance;
uint256 totalTax = (totalSellTax);
uint256 devAmt = (contractrewardbalance * sellTaxes.dev) / totalTax;
if (devAmt > 0) {
(bool success, ) = payable(devWallet).call{value: devAmt}("");
require(success, "Failed to send Ether to dev wallet");
}
uint256 treasuryAmt = (contractrewardbalance * sellTaxes.treasury) /
totalTax;
if (treasuryAmt > 0) {
(bool success, ) = payable(treasuryWallet).call{value: treasuryAmt}(
""
);
if (success) {}
}
}
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);
// make the swap
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
Read Contract
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyTaxes 0x864701a5 → uint256, uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
router 0xf887ea40 → address
sellTaxes 0xf66895a3 → uint256, uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalBuyTax 0x46469afb → uint256
totalSellTax 0x1bff7898 → uint256
totalSupply 0x18160ddd → uint256
tradingEnabled 0x4ada218b → bool
treasuryWallet 0x4626402b → address
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
UpdateTreasuryAddress 0x30d36c1d
address newtreasury
activateTrading 0x0bd05b69
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxWallet 0xd2fcc001
address account
bool excluded
excludeMultipleAccountsFromFees 0xc492f046
address[] accounts
bool excluded
forceSend 0x12b77e8a
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
rescueETH20Tokens 0x0a78097d
address tokenAddress
setAutomatedMarketMakerPair 0x9a7a23d6
address newPair
bool value
setBuyTaxes 0xaa35822c
uint256 _treasury
uint256 _dev
setDevWallet 0x1f53ac02
address newWallet
setMaxBuyAndSell 0x79b447bd
uint256 maxBuy
uint256 maxSell
setSellTaxes 0xa11a1682
uint256 _treasury
uint256 _dev
setSwapEnabled 0xe01af92c
bool _enabled
setSwapTokensAtAmount 0xafa4f3b2
uint256 amount
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateRouter 0xc851cc32
address newRouter
Recent Transactions
No transactions found for this address