Address Contract Partially Verified
Address
0x8b3bbECDf48002Ab2A0FD2894459D8d0737578B2
Balance
0 ETH
Nonce
1
Code Size
18839 bytes
Creator
0x483ECaeC...0083 at tx 0x0a74fcdd...aadb51
Indexed Transactions
0 (1 on-chain, 0.7% indexed)
Contract Bytecode
18839 bytes
0x6080604052600436106102975760003560e01c80638095d5641161015a578063c17b5b8c116100c1578063e71dc3f51161007a578063e71dc3f514610a3f578063efdee94f14610a6a578063f11a24d314610a95578063f2fde38b14610ac0578063f637434214610ae9578063f8b45b0514610b145761029e565b8063c17b5b8c1461091b578063c8c8ebe414610944578063d257b34f1461096f578063d85ba063146109ac578063dd62ed3e146109d7578063e2f4560514610a145761029e565b8063a457c2d711610113578063a457c2d7146107e7578063a9059cbb14610824578063aacebbe314610861578063adb873bd1461088a578063b62496f5146108b5578063c0246668146108f25761029e565b80638095d564146106eb5780638da5cb5b14610714578063921369131461073f578063924de9b71461076a57806395d89b41146107935780639a7a23d6146107be5761029e565b8063313ce567116101fe57806370a08231116101b757806370a0823114610601578063715018a61461063e578063751039fc146106555780637571336a1461066c57806375f0a874146106955780637bce5a04146106c05761029e565b8063313ce567146104db578063395093511461050657806349bd5a5e146105435780634fbee1931461056e5780636a486a8e146105ab5780636ddd1713146105d65761029e565b806318160ddd1161025057806318160ddd146103c75780631a8145bb146103f25780631d7778561461041d5780631f3fed8f1461044857806323b872dd1461047357806327c8f835146104b05761029e565b806303fc2013146102a357806306fdde03146102ce578063095ea7b3146102f9578063106b5da11461033657806310d5de531461035f5780631694505e1461039c5761029e565b3661029e57005b600080fd5b3480156102af57600080fd5b506102b8610b3f565b6040516102c591906136ca565b60405180910390f35b3480156102da57600080fd5b506102e3610b65565b6040516102f09190613775565b60405180910390f35b34801561030557600080fd5b50610320600480360381019061031b91906137fe565b610bf7565b60405161032d9190613859565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613874565b610c15565b005b34801561036b57600080fd5b50610386600480360381019061038191906138a1565b610d3b565b6040516103939190613859565b60405180910390f35b3480156103a857600080fd5b506103b1610d5b565b6040516103be919061392d565b60405180910390f35b3480156103d357600080fd5b506103dc610d7f565b6040516103e99190613957565b60405180910390f35b3480156103fe57600080fd5b50610407610d89565b6040516104149190613957565b60405180910390f35b34801561042957600080fd5b50610432610d8f565b60405161043f9190613957565b60405180910390f35b34801561045457600080fd5b5061045d610d95565b60405161046a9190613957565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190613972565b610d9b565b6040516104a79190613859565b60405180910390f35b3480156104bc57600080fd5b506104c5610e74565b6040516104d291906136ca565b60405180910390f35b3480156104e757600080fd5b506104f0610e7a565b6040516104fd91906139e1565b60405180910390f35b34801561051257600080fd5b5061052d600480360381019061052891906137fe565b610e83565b60405161053a9190613859565b60405180910390f35b34801561054f57600080fd5b50610558610f36565b60405161056591906136ca565b60405180910390f35b34801561057a57600080fd5b50610595600480360381019061059091906138a1565b610f5a565b6040516105a29190613859565b60405180910390f35b3480156105b757600080fd5b506105c0610fb0565b6040516105cd9190613957565b60405180910390f35b3480156105e257600080fd5b506105eb610fb6565b6040516105f89190613859565b60405180910390f35b34801561060d57600080fd5b50610628600480360381019061062391906138a1565b610fc9565b6040516106359190613957565b60405180910390f35b34801561064a57600080fd5b50610653611011565b005b34801561066157600080fd5b5061066a611169565b005b34801561067857600080fd5b50610693600480360381019061068e9190613a28565b61121e565b005b3480156106a157600080fd5b506106aa611310565b6040516106b791906136ca565b60405180910390f35b3480156106cc57600080fd5b506106d5611336565b6040516106e29190613957565b60405180910390f35b3480156106f757600080fd5b50610712600480360381019061070d9190613a68565b61133c565b005b34801561072057600080fd5b50610729611456565b60405161073691906136ca565b60405180910390f35b34801561074b57600080fd5b50610754611480565b6040516107619190613957565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c9190613abb565b611486565b005b34801561079f57600080fd5b506107a861153a565b6040516107b59190613775565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190613a28565b6115cc565b005b3480156107f357600080fd5b5061080e600480360381019061080991906137fe565b6116ff565b60405161081b9190613859565b60405180910390f35b34801561083057600080fd5b5061084b600480360381019061084691906137fe565b6117cc565b6040516108589190613859565b60405180910390f35b34801561086d57600080fd5b50610888600480360381019061088391906138a1565b6117ea565b005b34801561089657600080fd5b5061089f611941565b6040516108ac9190613957565b60405180910390f35b3480156108c157600080fd5b506108dc60048036038101906108d791906138a1565b611947565b6040516108e99190613859565b60405180910390f35b3480156108fe57600080fd5b5061091960048036038101906109149190613a28565b611967565b005b34801561092757600080fd5b50610942600480360381019061093d9190613a68565b611aa7565b005b34801561095057600080fd5b50610959611bc1565b6040516109669190613957565b60405180910390f35b34801561097b57600080fd5b5061099660048036038101906109919190613874565b611bc7565b6040516109a39190613859565b60405180910390f35b3480156109b857600080fd5b506109c1611d37565b6040516109ce9190613957565b60405180910390f35b3480156109e357600080fd5b506109fe60048036038101906109f99190613ae8565b611d3d565b604051610a0b9190613957565b60405180910390f35b348015610a2057600080fd5b50610a29611dc4565b604051610a369190613957565b60405180910390f35b348015610a4b57600080fd5b50610a54611dca565b604051610a619190613957565b60405180910390f35b348015610a7657600080fd5b50610a7f611dd0565b604051610a8c91906136ca565b60405180910390f35b348015610aa157600080fd5b50610aaa611df6565b604051610ab79190613957565b60405180910390f35b348015610acc57600080fd5b50610ae76004803603810190610ae291906138a1565b611dfc565b005b348015610af557600080fd5b50610afe611fc2565b604051610b0b9190613957565b60405180910390f35b348015610b2057600080fd5b50610b29611fc8565b604051610b369190613957565b60405180910390f35b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060038054610b7490613b57565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090613b57565b8015610bed5780601f10610bc257610100808354040283529160200191610bed565b820191906000526020600020905b815481529060010190602001808311610bd057829003601f168201915b5050505050905090565b6000610c0b610c0461202c565b8484612034565b6001905092915050565b610c1d61202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca390613bd4565b60405180910390fd5b633b9aca006103e86005610cbe610d7f565b610cc89190613c23565b610cd29190613c94565b610cdc9190613c94565b811015610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1590613d37565b60405180910390fd5b670de0b6b3a764000081610d329190613c23565b60098190555050565b60196020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60165481565b60175481565b60155481565b6000610da88484846121fd565b610e6984610db461202c565b610e648560405180606001604052806028815260200161491560289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610e1a61202c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bf19092919063ffffffff16565b612034565b600190509392505050565b61dead81565b60006009905090565b6000610f2c610e9061202c565b84610f278560016000610ea161202c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fce90919063ffffffff16565b612034565b6001905092915050565b7f00000000000000000000000050e0ab60f0964ffdb226a9ff894fb224dffe5e1081565b6000601860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60115481565b600c60009054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61101961202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109f90613bd4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61117161202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f790613bd4565b60405180910390fd5b611208610d7f565b600981905550611216610d7f565b600b81905550565b61122661202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ac90613bd4565b60405180910390fd5b80601960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b61134461202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ca90613bd4565b60405180910390fd5b82600e8190555081600f8190555080601081905550601054600f54600e546113fb9190613d57565b6114059190613d57565b600d81905550601e600d541115611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890613dd7565b60405180910390fd5b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60125481565b61148e61202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461151d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151490613bd4565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b60606004805461154990613b57565b80601f016020809104026020016040519081016040528092919081815260200182805461157590613b57565b80156115c25780601f10611597576101008083540402835291602001916115c2565b820191906000526020600020905b8154815290600101906020018083116115a557829003601f168201915b5050505050905090565b6115d461202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90613bd4565b60405180910390fd5b7f00000000000000000000000050e0ab60f0964ffdb226a9ff894fb224dffe5e1073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e890613e69565b60405180910390fd5b6116fb8282612c55565b5050565b60006117c261170c61202c565b846117bd8560405180606001604052806025815260200161493d602591396001600061173661202c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bf19092919063ffffffff16565b612034565b6001905092915050565b60006117e06117d961202c565b84846121fd565b6001905092915050565b6117f261202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187890613bd4565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60145481565b601a6020528060005260406000206000915054906101000a900460ff1681565b61196f61202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f590613bd4565b60405180910390fd5b80601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611a9b9190613859565b60405180910390a25050565b611aaf61202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3590613bd4565b60405180910390fd5b826012819055508160138190555080601481905550601454601354601254611b669190613d57565b611b709190613d57565b60118190555060636011541115611bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb390613ed5565b60405180910390fd5b505050565b60095481565b6000611bd161202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5790613bd4565b60405180910390fd5b620186a06001611c6e610d7f565b611c789190613c23565b611c829190613c94565b821015611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb90613f67565b60405180910390fd5b6103e86005611cd1610d7f565b611cdb9190613c23565b611ce59190613c94565b821115611d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1e90613ff9565b60405180910390fd5b81600a8190555060019050919050565b600d5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b60105481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b611e0461202c565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8a90613bd4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef99061408b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60135481565b600b5481565b6000808284611fdd9190613d57565b905083811015612022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612019906140f7565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209a90614189565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612112576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121099061421b565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516121f09190613957565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361226c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612263906142ad565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036122db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d29061433f565b60405180910390fd5b600081036122f4576122ef83836000612cf6565b612bec565b6122fc611456565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561236a575061233a611456565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156123a35750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156123dd575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156123f65750600560149054906101000a900460ff16155b156126e457601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561249e5750601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612545576009548111156124e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124df906143d1565b60405180910390fd5b600b546124f483610fc9565b826124ff9190613d57565b1115612540576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125379061443d565b60405180910390fd5b6126e3565b601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156125e85750601960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561263757600954811115612632576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612629906144cf565b60405180910390fd5b6126e2565b601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166126e157600b5461269483610fc9565b8261269f9190613d57565b11156126e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d79061443d565b60405180910390fd5b5b5b5b5b60006126ef30610fc9565b90506000600a5482101590508080156127145750600c60009054906101000a900460ff165b801561272d5750600560149054906101000a900460ff16155b80156127835750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156127d95750601860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561282f5750601860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612873576001600560146101000a81548160ff021916908315150217905550612857612f89565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806129295750601860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561293357600090505b60008115612bdc57601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561299657506000601154115b15612a63576129c360646129b5601154886131fa90919063ffffffff16565b61327490919063ffffffff16565b9050601154601354826129d69190613c23565b6129e09190613c94565b601660008282546129f19190613d57565b9250508190555060115460125482612a099190613c23565b612a139190613c94565b60156000828254612a249190613d57565b9250508190555060115460145482612a3c9190613c23565b612a469190613c94565b60176000828254612a579190613d57565b92505081905550612b88565b601a60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612abe57506000600d54115b15612b8757612aeb6064612add600d54886131fa90919063ffffffff16565b61327490919063ffffffff16565b9050600d54600f5482612afe9190613c23565b612b089190613c94565b60166000828254612b199190613d57565b92505081905550600d54600e5482612b319190613c23565b612b3b9190613c94565b60156000828254612b4c9190613d57565b92505081905550600d5460105482612b649190613c23565b612b6e9190613c94565b60176000828254612b7f9190613d57565b925050819055505b5b6000811115612baa57612ba9873060175484612ba491906144ef565b612cf6565b5b60006017541115612bcd57612bc48761dead601754612cf6565b60006017819055505b8085612bd991906144ef565b94505b612be7878787612cf6565b505050505b505050565b6000838311158290612c39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c309190613775565b60405180910390fd5b5060008385612c4891906144ef565b9050809150509392505050565b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5c906142ad565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcb9061433f565b60405180910390fd5b612ddf8383836132be565b612e4a816040518060600160405280602681526020016148ef602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612bf19092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612edd816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fce90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612f7c9190613957565b60405180910390a3505050565b6000612f9430610fc9565b90506000601554601654612fa89190613d57565b90506000821480612fb95750600081145b15612fc55750506131f8565b600060028260165485612fd89190613c23565b612fe29190613c94565b612fec9190613c94565b9050600061300382856132c390919063ffffffff16565b905060004790506130138261330d565b600061302882476132c390919063ffffffff16565b9050600061305386613045601554856131fa90919063ffffffff16565b61327490919063ffffffff16565b90506000818361306391906144ef565b9050600060168190555060006015819055506000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516130bd90614554565b60006040518083038185875af1925050503d80600081146130fa576040519150601f19603f3d011682016040523d82523d6000602084013e6130ff565b606091505b505090506000871180156131135750600082115b1561316057613122878361354a565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561868360165460405161315793929190614569565b60405180910390a15b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516131a690614554565b60006040518083038185875af1925050503d80600081146131e3576040519150601f19603f3d011682016040523d82523d6000602084013e6131e8565b606091505b5050809150505050505050505050505b565b600080830361320c576000905061326e565b6000828461321a9190613c23565b90508284826132299190613c94565b14613269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326090614612565b60405180910390fd5b809150505b92915050565b60006132b683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613626565b905092915050565b505050565b600061330583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612bf1565b905092915050565b6000600267ffffffffffffffff81111561332a57613329614632565b5b6040519080825280602002602001820160405280156133585781602001602082028036833780820191505090505b50905030816000815181106133705761336f614661565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613415573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061343991906146a5565b8160018151811061344d5761344c614661565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506134b2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612034565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b81526004016135149594939291906147cb565b600060405180830381600087803b15801561352e57600080fd5b505af1158015613542573d6000803e3d6000fd5b505050505050565b613575307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612034565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71982308560008061dead426040518863ffffffff1660e01b81526004016135dc96959493929190614825565b60606040518083038185885af11580156135fa573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061361f919061489b565b5050505050565b6000808311829061366d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136649190613775565b60405180910390fd5b506000838561367c9190613c94565b9050809150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136b482613689565b9050919050565b6136c4816136a9565b82525050565b60006020820190506136df60008301846136bb565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561371f578082015181840152602081019050613704565b60008484015250505050565b6000601f19601f8301169050919050565b6000613747826136e5565b61375181856136f0565b9350613761818560208601613701565b61376a8161372b565b840191505092915050565b6000602082019050818103600083015261378f818461373c565b905092915050565b600080fd5b6137a5816136a9565b81146137b057600080fd5b50565b6000813590506137c28161379c565b92915050565b6000819050919050565b6137db816137c8565b81146137e657600080fd5b50565b6000813590506137f8816137d2565b92915050565b6000806040838503121561381557613814613797565b5b6000613823858286016137b3565b9250506020613834858286016137e9565b9150509250929050565b60008115159050919050565b6138538161383e565b82525050565b600060208201905061386e600083018461384a565b92915050565b60006020828403121561388a57613889613797565b5b6000613898848285016137e9565b91505092915050565b6000602082840312156138b7576138b6613797565b5b60006138c5848285016137b3565b91505092915050565b6000819050919050565b60006138f36138ee6138e984613689565b6138ce565b613689565b9050919050565b6000613905826138d8565b9050919050565b6000613917826138fa565b9050919050565b6139278161390c565b82525050565b6000602082019050613942600083018461391e565b92915050565b613951816137c8565b82525050565b600060208201905061396c6000830184613948565b92915050565b60008060006060848603121561398b5761398a613797565b5b6000613999868287016137b3565b93505060206139aa868287016137b3565b92505060406139bb868287016137e9565b9150509250925092565b600060ff82169050919050565b6139db816139c5565b82525050565b60006020820190506139f660008301846139d2565b92915050565b613a058161383e565b8114613a1057600080fd5b50565b600081359050613a22816139fc565b92915050565b60008060408385031215613a3f57613a3e613797565b5b6000613a4d858286016137b3565b9250506020613a5e85828601613a13565b9150509250929050565b600080600060608486031215613a8157613a80613797565b5b6000613a8f868287016137e9565b9350506020613aa0868287016137e9565b9250506040613ab1868287016137e9565b9150509250925092565b600060208284031215613ad157613ad0613797565b5b6000613adf84828501613a13565b91505092915050565b60008060408385031215613aff57613afe613797565b5b6000613b0d858286016137b3565b9250506020613b1e858286016137b3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b6f57607f821691505b602082108103613b8257613b81613b28565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bbe6020836136f0565b9150613bc982613b88565b602082019050919050565b60006020820190508181036000830152613bed81613bb1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613c2e826137c8565b9150613c39836137c8565b9250828202613c47816137c8565b91508282048414831517613c5e57613c5d613bf4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c9f826137c8565b9150613caa836137c8565b925082613cba57613cb9613c65565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e35250000000000000000000000000000000000602082015250565b6000613d21602f836136f0565b9150613d2c82613cc5565b604082019050919050565b60006020820190508181036000830152613d5081613d14565b9050919050565b6000613d62826137c8565b9150613d6d836137c8565b9250828201905080821115613d8557613d84613bf4565b5b92915050565b7f4d757374206b656570206665657320617420333025206f72206c657373000000600082015250565b6000613dc1601d836136f0565b9150613dcc82613d8b565b602082019050919050565b60006020820190508181036000830152613df081613db4565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b6000613e536039836136f0565b9150613e5e82613df7565b604082019050919050565b60006020820190508181036000830152613e8281613e46565b9050919050565b7f4d757374206b656570206665657320617420393925206f72206c657373000000600082015250565b6000613ebf601d836136f0565b9150613eca82613e89565b602082019050919050565b60006020820190508181036000830152613eee81613eb2565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b6000613f516035836136f0565b9150613f5c82613ef5565b604082019050919050565b60006020820190508181036000830152613f8081613f44565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b6000613fe36034836136f0565b9150613fee82613f87565b604082019050919050565b6000602082019050818103600083015261401281613fd6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140756026836136f0565b915061408082614019565b604082019050919050565b600060208201905081810360008301526140a481614068565b9050919050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b60006140e1601b836136f0565b91506140ec826140ab565b602082019050919050565b60006020820190508181036000830152614110816140d4565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006141736024836136f0565b915061417e82614117565b604082019050919050565b600060208201905081810360008301526141a281614166565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006142056022836136f0565b9150614210826141a9565b604082019050919050565b60006020820190508181036000830152614234816141f8565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006142976025836136f0565b91506142a28261423b565b604082019050919050565b600060208201905081810360008301526142c68161428a565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006143296023836136f0565b9150614334826142cd565b604082019050919050565b600060208201905081810360008301526143588161431c565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b60006143bb6035836136f0565b91506143c68261435f565b604082019050919050565b600060208201905081810360008301526143ea816143ae565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006144276013836136f0565b9150614432826143f1565b602082019050919050565b600060208201905081810360008301526144568161441a565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006144b96036836136f0565b91506144c48261445d565b604082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b60006144fa826137c8565b9150614505836137c8565b925082820390508181111561451d5761451c613bf4565b5b92915050565b600081905092915050565b50565b600061453e600083614523565b91506145498261452e565b600082019050919050565b600061455f82614531565b9150819050919050565b600060608201905061457e6000830186613948565b61458b6020830185613948565b6145986040830184613948565b949350505050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b60006145fc6021836136f0565b9150614607826145a0565b604082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061469f8161379c565b92915050565b6000602082840312156146bb576146ba613797565b5b60006146c984828501614690565b91505092915050565b6000819050919050565b60006146f76146f26146ed846146d2565b6138ce565b6137c8565b9050919050565b614707816146dc565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614742816136a9565b82525050565b60006147548383614739565b60208301905092915050565b6000602082019050919050565b60006147788261470d565b6147828185614718565b935061478d83614729565b8060005b838110156147be5781516147a58882614748565b97506147b083614760565b925050600181019050614791565b5085935050505092915050565b600060a0820190506147e06000830188613948565b6147ed60208301876146fe565b81810360408301526147ff818661476d565b905061480e60608301856136bb565b61481b6080830184613948565b9695505050505050565b600060c08201905061483a60008301896136bb565b6148476020830188613948565b61485460408301876146fe565b61486160608301866146fe565b61486e60808301856136bb565b61487b60a0830184613948565b979650505050505050565b600081519050614895816137d2565b92915050565b6000806000606084860312156148b4576148b3613797565b5b60006148c286828701614886565b93505060206148d386828701614886565b92505060406148e486828701614886565b915050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220154bb063f4a553eaeb9adba0515ebd7e619c8b55f9ade72e44e61d60452a461964736f6c63430008110033
Verified Source Code Partial Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: No
NickSzabo.sol 950 lines
pragma solidity ^0.8.17;
//SPDX-License-Identifier: Unlicensed
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
return msg.data;
}
}
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 9;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
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;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
function div(int256 a, int256 b) internal pure returns (int256) {
require(b != -1 || a != MIN_INT256);
return a / b;
}
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;
}
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;
}
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);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
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);
}
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;
}
contract NickSzabo is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public deployerAddress;
address public marketingWallet;
address public lpLocker;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public swapEnabled = true;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyBurnFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellBurnFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForBurn;
/******************/
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
mapping (address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event BuyBackTriggered(uint256 amount);
constructor() ERC20("Nick Szabo", "SZABO") {
address newOwner = address(owner());
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 20;
uint256 _buyLiquidityFee = 0;
uint256 _buyBurnFee = 0;
uint256 _sellMarketingFee = 50;
uint256 _sellLiquidityFee = 0;
uint256 _sellBurnFee = 0;
uint256 totalSupply = 19941998 * 1e9;
maxTransactionAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap wallet
maxWallet = totalSupply * 2 / 100; // 2% max wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyBurnFee = _buyBurnFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyBurnFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellBurnFee = _sellBurnFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellBurnFee;
deployerAddress = address(0x483ECaeC3Db6db8aC39Bb2044298fB39A4530083);
marketingWallet = address(0x11698aD67F9be6B11B2b23724a575fa8a7935eAD);
lpLocker = address(0x407993575c91ce7643a4d4cCACc9A98c36eE1BBE);
excludeFromFees(newOwner, true); // Owner address
excludeFromFees(address(this), true); // CA
excludeFromFees(address(0xdead), true); // Burn address
excludeFromFees(marketingWallet, true); // Marketing wallet
excludeFromFees(lpLocker, true); // LP Locker
excludeFromFees(deployerAddress, true); // Deployer Address
excludeFromMaxTransaction(newOwner, true); // Owner address
excludeFromMaxTransaction(address(this), true); // CA
excludeFromMaxTransaction(address(0xdead), true); // Burn address
excludeFromMaxTransaction(marketingWallet, true); // Marketing wallet
excludeFromMaxTransaction(lpLocker, true); // LP Locker
excludeFromMaxTransaction(deployerAddress, true); // Deployer Address
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {
}
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 5 / 1000)/1e9, "Cannot set maxTransactionAmount lower than 0.5%");
maxTransactionAmount = newNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _burnFee) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyBurnFee = _burnFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyBurnFee;
require(buyTotalFees <= 30, "Must keep fees at 30% or less");
}
function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _burnFee) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellBurnFee = _burnFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellBurnFee;
require(sellTotalFees <= 99, "Must keep fees at 99% or less");
}
function removeLimits() external onlyOwner {
maxTransactionAmount = totalSupply();
maxWallet = totalSupply();
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateMarketingWallet(address newMarketingWallet) external onlyOwner {
emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
marketingWallet = newMarketingWallet;
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
){
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
}
else if (!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if(takeFee){
if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount.mul(sellTotalFees).div(100);
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForMarketing += fees * sellMarketingFee / sellTotalFees;
tokensForBurn += fees * sellBurnFee / sellTotalFees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForMarketing += fees * buyMarketingFee / buyTotalFees;
tokensForBurn += fees * buyBurnFee / buyTotalFees;
}
if(fees > 0){
super._transfer(from, address(this), (fees - tokensForBurn));
}
if(tokensForBurn > 0){
super._transfer(from, deadAddress, tokensForBurn);
tokensForBurn = 0;
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
deadAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing;
tokensForLiquidity = 0;
tokensForMarketing = 0;
(bool success,) = address(marketingWallet).call{value: ethForMarketing}("");
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
}
(success,) = address(marketingWallet).call{value: address(this).balance}("");
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBurnFee 0xe71dc3f5 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
deployerAddress 0xefdee94f → address
isExcludedFromFees 0x4fbee193 → bool
lpLocker 0x03fc2013 → address
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnFee 0xadb873bd → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _marketingFee
uint256 _liquidityFee
uint256 _burnFee
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxAmount 0x106b5da1
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _burnFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
This address has 1 on-chain transactions, but only 0.7% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →