Address Contract Partially Verified
Address
0x545Fa97df05FC40f8b3cd21FE555b611969fa899
Balance
0 ETH
Nonce
1
Code Size
13417 bytes
Creator
0x7716F41E...f2D7 at tx 0xef735590...9c6a44
Indexed Transactions
0
Contract Bytecode
13417 bytes
0x60806040526004361061019e575f3560e01c80637df405a4116100eb578063aa4bde2811610089578063cb96372811610063578063cb96372814610587578063d18afa85146105af578063dd62ed3e146105d7578063f2fde38b14610613576101a5565b8063aa4bde2814610509578063b60e06df14610533578063cb4e162b1461055d576101a5565b806395d89b41116100c557806395d89b4114610451578063a32b9e181461047b578063a457c2d714610491578063a9059cbb146104cd576101a5565b80637df405a4146103e75780638da5cb5b146104115780639049a3ce1461043b576101a5565b806339509351116101585780636db79437116101325780636db79437146103435780636fb1896c1461036b57806370a0823114610395578063715018a6146103d1576101a5565b806339509351146102b557806353945d7b146102f1578063578878b41461031b576101a5565b806299d386146101a957806306fdde03146101bf578063095ea7b3146101e957806318160ddd1461022557806323b872dd1461024f578063313ce5671461028b576101a5565b366101a557005b5f80fd5b3480156101b4575f80fd5b506101bd61063b565b005b3480156101ca575f80fd5b506101d3610872565b6040516101e09190612342565b60405180910390f35b3480156101f4575f80fd5b5061020f600480360381019061020a91906123f3565b610902565b60405161021c919061244b565b60405180910390f35b348015610230575f80fd5b50610239610924565b6040516102469190612473565b60405180910390f35b34801561025a575f80fd5b506102756004803603810190610270919061248c565b61092d565b604051610282919061244b565b60405180910390f35b348015610296575f80fd5b5061029f61095b565b6040516102ac91906124f7565b60405180910390f35b3480156102c0575f80fd5b506102db60048036038101906102d691906123f3565b610963565b6040516102e8919061244b565b60405180910390f35b3480156102fc575f80fd5b50610305610a08565b604051610312919061251f565b60405180910390f35b348015610326575f80fd5b50610341600480360381019061033c9190612538565b610a2d565b005b34801561034e575f80fd5b5061036960048036038101906103649190612563565b610bad565b005b348015610376575f80fd5b5061037f610c8c565b60405161038c9190612473565b60405180910390f35b3480156103a0575f80fd5b506103bb60048036038101906103b691906125a1565b610c92565b6040516103c89190612473565b60405180910390f35b3480156103dc575f80fd5b506103e5610cd7565b005b3480156103f2575f80fd5b506103fb610d5e565b6040516104089190612473565b60405180910390f35b34801561041c575f80fd5b50610425610d64565b604051610432919061251f565b60405180910390f35b348015610446575f80fd5b5061044f610d8c565b005b34801561045c575f80fd5b50610465610e11565b6040516104729190612342565b60405180910390f35b348015610486575f80fd5b5061048f610ea1565b005b34801561049c575f80fd5b506104b760048036038101906104b291906123f3565b610f7b565b6040516104c4919061244b565b60405180910390f35b3480156104d8575f80fd5b506104f360048036038101906104ee91906123f3565b61105f565b604051610500919061244b565b60405180910390f35b348015610514575f80fd5b5061051d611081565b60405161052a9190612473565b60405180910390f35b34801561053e575f80fd5b50610547611087565b604051610554919061251f565b60405180910390f35b348015610568575f80fd5b506105716110ab565b60405161057e9190612473565b60405180910390f35b348015610592575f80fd5b506105ad60048036038101906105a89190612607565b6110b1565b005b3480156105ba575f80fd5b506105d560048036038101906105d09190612563565b61123b565b005b3480156105e2575f80fd5b506105fd60048036038101906105f89190612632565b6112fa565b60405161060a9190612473565b60405180910390f35b34801561061e575f80fd5b50610639600480360381019061063491906125a1565b61137c565b005b610643611472565b73ffffffffffffffffffffffffffffffffffffffff16610661610d64565b73ffffffffffffffffffffffffffffffffffffffff16146106b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ae906126ba565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610714573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061073891906126ec565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107d591906126ec565b6040518363ffffffff1660e01b81526004016107f2929190612717565b602060405180830381865afa15801561080d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083191906126ec565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6060600380546108819061276b565b80601f01602080910402602001604051908101604052809291908181526020018280546108ad9061276b565b80156108f85780601f106108cf576101008083540402835291602001916108f8565b820191905f5260205f20905b8154815290600101906020018083116108db57829003601f168201915b5050505050905090565b5f8061090c611472565b9050610919818585611479565b600191505092915050565b5f600254905090565b5f80610937611472565b905061094485828561163c565b61094f8585856116c7565b60019150509392505050565b5f6012905090565b5f8061096d611472565b90506109fd81858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546109f891906127c8565b611479565b600191505092915050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ab95750610a8a610d64565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610ac1575f80fd5b610af1620186a0610ae36001610ad5610924565b611b7890919063ffffffff16565b611b8d90919063ffffffff16565b811015610b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2a9061286b565b60405180910390fd5b610b616064610b536002610b45610924565b611b7890919063ffffffff16565b611b8d90919063ffffffff16565b811115610ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9a906128f9565b60405180910390fd5b8060088190555050565b610bb5611472565b73ffffffffffffffffffffffffffffffffffffffff16610bd3610d64565b73ffffffffffffffffffffffffffffffffffffffff1614610c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c20906126ba565b60405180910390fd5b600a8211158015610c3b5750600a8111155b610c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7190612987565b60405180910390fd5b81600c8190555080600d819055505050565b600d5481565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610cdf611472565b73ffffffffffffffffffffffffffffffffffffffff16610cfd610d64565b73ffffffffffffffffffffffffffffffffffffffff1614610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a906126ba565b60405180910390fd5b610d5c5f611ba2565b565b600c5481565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d94611472565b73ffffffffffffffffffffffffffffffffffffffff16610db2610d64565b73ffffffffffffffffffffffffffffffffffffffff1614610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff906126ba565b60405180910390fd5b5f600781905550565b606060048054610e209061276b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4c9061276b565b8015610e975780601f10610e6e57610100808354040283529160200191610e97565b820191905f5260205f20905b815481529060010190602001808311610e7a57829003601f168201915b5050505050905090565b7f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f2d5750610efe610d64565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f35575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610f78573d5f803e3d5ffd5b50565b5f80610f85611472565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015611046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103d90612a15565b60405180910390fd5b6110538286868403611479565b60019250505092915050565b5f80611069611472565b90506110768185856116c7565b600191505092915050565b60075481565b7f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837481565b60085481565b7f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061113d575061110e610d64565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611145575f80fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161119b919061251f565b602060405180830381865afa1580156111b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111da9190612a47565b6040518363ffffffff1660e01b81526004016111f7929190612a72565b6020604051808303815f875af1158015611213573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112379190612ac3565b5050565b7f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112c75750611298610d64565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112cf575f80fd5b600482111580156112e057505f8114155b6112e8575f80fd5b8160098190555080600a819055505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b611384611472565b73ffffffffffffffffffffffffffffffffffffffff166113a2610d64565b73ffffffffffffffffffffffffffffffffffffffff16146113f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ef906126ba565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145d90612b5e565b60405180910390fd5b61146f81611ba2565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90612bec565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90612c7a565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161162f9190612473565b60405180910390a3505050565b5f61164784846112fa565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116c157818110156116b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116aa90612ce2565b60405180910390fd5b6116c08484848403611479565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c90612d70565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90612dfe565b60405180910390fd5b5f81116117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90612e8c565b60405180910390fd5b5f600f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806118815750600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415806118dc5750805b61191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191290612ef4565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16149050811580156119d057505f600754115b80156119da575082155b15611a3857600754846119ec87610c92565b6119f691906127c8565b1115611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e90612fa8565b60405180910390fd5b5b600854611a4430610c92565b10158015611a5e5750600e5f9054906101000a900460ff16155b8015611a675750815b8015611a71575082155b8015611a825750611a8184611c65565b5b15611ac3576001600e5f6101000a81548160ff021916908315150217905550611aa9611cc0565b5f600e5f6101000a81548160ff0219169083151502179055505b5f81611ad157600d54611ad5565b600c545b90505f811115611b645783158015611af95750600e5f9054906101000a900460ff16155b8015611b0a57508180611b095750825b5b15611b63575f611b366064611b288489611b7890919063ffffffff16565b611b8d90919063ffffffff16565b90505f811115611b4c57611b4b88308361203e565b5b611b5f81876122b390919063ffffffff16565b9550505b5b611b6f87878761203e565b50505050505050565b5f8183611b859190612fc6565b905092915050565b5f8183611b9a9190613034565b905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80600a5414611c8457600a54600854611c7f9190613034565b611c86565b5f5b8210158015611cb957506002600b5f4381526020019081526020015f205f815480929190611cb390613064565b91905055105b9050919050565b5f611cca30610c92565b90505f8103611cd9575061203c565b600854811115611ce95760085490505b5f4790505f600267ffffffffffffffff811115611d0957611d086130ab565b5b604051908082528060200260200182016040528015611d375781602001602082028036833780820191505090505b50905030815f81518110611d4e57611d4d6130d8565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611de5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e0991906126ec565b81600181518110611e1d57611e1c6130d8565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611e7630737a250d5630b4cf539739df2c5dacb4c659f2488d85611479565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947845f8430426040518663ffffffff1660e01b8152600401611ecb9594939291906131fe565b5f604051808303815f87803b158015611ee2575f80fd5b505af1158015611ef4573d5f803e3d5ffd5b505050505f611f0c83476122b390919063ffffffff16565b90505f611f366064611f28600585611b7890919063ffffffff16565b611b8d90919063ffffffff16565b9050611f4b81836122b390919063ffffffff16565b91507f000000000000000000000000eddff6e43245ae9c29da5d191eafae979218837473ffffffffffffffffffffffffffffffffffffffff166108fc8390811502906040515f60405180830381858888f19350505050158015611fb0573d5f803e3d5ffd5b507323aed46dbfc01187caf0a5e67198d0480608f9d573ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015612008573d5f803e3d5ffd5b50807f1cfca31204cc745553128283c3bd97acb07e803bd611f352db637c644eb59b8760405160405180910390a250505050505b565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a3906132c6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361211a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211190613354565b60405180910390fd5b6121258383836122c8565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156121a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219f906133e2565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461223691906127c8565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161229a9190612473565b60405180910390a36122ad8484846122cd565b50505050565b5f81836122c09190613400565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612314826122d2565b61231e81856122dc565b935061232e8185602086016122ec565b612337816122fa565b840191505092915050565b5f6020820190508181035f83015261235a818461230a565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61238f82612366565b9050919050565b61239f81612385565b81146123a9575f80fd5b50565b5f813590506123ba81612396565b92915050565b5f819050919050565b6123d2816123c0565b81146123dc575f80fd5b50565b5f813590506123ed816123c9565b92915050565b5f806040838503121561240957612408612362565b5b5f612416858286016123ac565b9250506020612427858286016123df565b9150509250929050565b5f8115159050919050565b61244581612431565b82525050565b5f60208201905061245e5f83018461243c565b92915050565b61246d816123c0565b82525050565b5f6020820190506124865f830184612464565b92915050565b5f805f606084860312156124a3576124a2612362565b5b5f6124b0868287016123ac565b93505060206124c1868287016123ac565b92505060406124d2868287016123df565b9150509250925092565b5f60ff82169050919050565b6124f1816124dc565b82525050565b5f60208201905061250a5f8301846124e8565b92915050565b61251981612385565b82525050565b5f6020820190506125325f830184612510565b92915050565b5f6020828403121561254d5761254c612362565b5b5f61255a848285016123df565b91505092915050565b5f806040838503121561257957612578612362565b5b5f612586858286016123df565b9250506020612597858286016123df565b9150509250929050565b5f602082840312156125b6576125b5612362565b5b5f6125c3848285016123ac565b91505092915050565b5f6125d682612385565b9050919050565b6125e6816125cc565b81146125f0575f80fd5b50565b5f81359050612601816125dd565b92915050565b5f6020828403121561261c5761261b612362565b5b5f612629848285016125f3565b91505092915050565b5f806040838503121561264857612647612362565b5b5f612655858286016123ac565b9250506020612666858286016123ac565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6126a46020836122dc565b91506126af82612670565b602082019050919050565b5f6020820190508181035f8301526126d181612698565b9050919050565b5f815190506126e681612396565b92915050565b5f6020828403121561270157612700612362565b5b5f61270e848285016126d8565b91505092915050565b5f60408201905061272a5f830185612510565b6127376020830184612510565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061278257607f821691505b6020821081036127955761279461273e565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6127d2826123c0565b91506127dd836123c0565b92508282019050808211156127f5576127f461279b565b5b92915050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f6128556038836122dc565b9150612860826127fb565b604082019050919050565b5f6020820190508181035f83015261288281612849565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f6128e36035836122dc565b91506128ee82612889565b604082019050919050565b5f6020820190508181035f830152612910816128d7565b9050919050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f612971602e836122dc565b915061297c82612917565b604082019050919050565b5f6020820190508181035f83015261299e81612965565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6129ff6025836122dc565b9150612a0a826129a5565b604082019050919050565b5f6020820190508181035f830152612a2c816129f3565b9050919050565b5f81519050612a41816123c9565b92915050565b5f60208284031215612a5c57612a5b612362565b5b5f612a6984828501612a33565b91505092915050565b5f604082019050612a855f830185612510565b612a926020830184612464565b9392505050565b612aa281612431565b8114612aac575f80fd5b50565b5f81519050612abd81612a99565b92915050565b5f60208284031215612ad857612ad7612362565b5b5f612ae584828501612aaf565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612b486026836122dc565b9150612b5382612aee565b604082019050919050565b5f6020820190508181035f830152612b7581612b3c565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612bd66024836122dc565b9150612be182612b7c565b604082019050919050565b5f6020820190508181035f830152612c0381612bca565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c646022836122dc565b9150612c6f82612c0a565b604082019050919050565b5f6020820190508181035f830152612c9181612c58565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612ccc601d836122dc565b9150612cd782612c98565b602082019050919050565b5f6020820190508181035f830152612cf981612cc0565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612d5a602b836122dc565b9150612d6582612d00565b604082019050919050565b5f6020820190508181035f830152612d8781612d4e565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612de86029836122dc565b9150612df382612d8e565b604082019050919050565b5f6020820190508181035f830152612e1581612ddc565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f612e76602a836122dc565b9150612e8182612e1c565b604082019050919050565b5f6020820190508181035f830152612ea381612e6a565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f612ede601f836122dc565b9150612ee982612eaa565b602082019050919050565b5f6020820190508181035f830152612f0b81612ed2565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f612f926044836122dc565b9150612f9d82612f12565b606082019050919050565b5f6020820190508181035f830152612fbf81612f86565b9050919050565b5f612fd0826123c0565b9150612fdb836123c0565b9250828202612fe9816123c0565b9150828204841483151761300057612fff61279b565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61303e826123c0565b9150613049836123c0565b92508261305957613058613007565b5b828204905092915050565b5f61306e826123c0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036130a05761309f61279b565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f819050919050565b5f61313161312c61312784613105565b61310e565b6123c0565b9050919050565b61314181613117565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61317981612385565b82525050565b5f61318a8383613170565b60208301905092915050565b5f602082019050919050565b5f6131ac82613147565b6131b68185613151565b93506131c183613161565b805f5b838110156131f15781516131d8888261317f565b97506131e383613196565b9250506001810190506131c4565b5085935050505092915050565b5f60a0820190506132115f830188612464565b61321e6020830187613138565b818103604083015261323081866131a2565b905061323f6060830185612510565b61324c6080830184612464565b9695505050505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6132b06025836122dc565b91506132bb82613256565b604082019050919050565b5f6020820190508181035f8301526132dd816132a4565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f61333e6023836122dc565b9150613349826132e4565b604082019050919050565b5f6020820190508181035f83015261336b81613332565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6133cc6026836122dc565b91506133d782613372565b604082019050919050565b5f6020820190508181035f8301526133f9816133c0565b9050919050565b5f61340a826123c0565b9150613415836123c0565b925082820390508181111561342d5761342c61279b565b5b9291505056fea264697066735822122055a3e8786913f12e7dcaad06f7cf96e1ed6e0f598e480b39df22f344807dd96564736f6c634300081a0033
Verified Source Code Partial Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
PTS.sol 472 lines
// SPDX-License-Identifier: MIT
/*
Telegram: t.me/ptsportal
*/
pragma solidity ^0.8.26;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, 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 from,
address to,
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 {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, 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) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
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;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, _allowances[owner][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = _allowances[owner][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
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;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, 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 += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(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);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
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 _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);
}
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
function getPair(address tokenA, address tokenB) external view returns (address pair);
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract PTS is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniV2PairAddress;
address public immutable feeRecipientAddr;
uint256 public maxWalletAmount;
uint256 public feeThreshold;
uint256 private _contractSwapMax = 3;
uint256 private _contractSwapMin = 7;
mapping(uint256 => uint256) private _swapBlocks;
uint256 public buyTaxPercent;
uint256 public sellTaxPercent;
bool private _inSwap;
mapping (address => bool) private _excludedFromLimits;
event FeeSwap(uint256 indexed value);
constructor() ERC20("PEACE THROUGH STRENGTH", "PTS") payable {
uint256 totalSupply = 1000000000 * 1e18;
uint256 lpSupply = totalSupply.mul(75).div(100);
uint256 caSupply = totalSupply.mul(25).div(100);
maxWalletAmount = totalSupply.mul(2).div(100);
feeThreshold = totalSupply.mul(5).div(1000);
feeRecipientAddr = 0xedDFF6e43245Ae9c29Da5d191EAFAE9792188374;
buyTaxPercent = 10;
sellTaxPercent = 10;
_excludedFromLimits[feeRecipientAddr] = true;
_excludedFromLimits[msg.sender] = true;
_excludedFromLimits[tx.origin] = true;
_excludedFromLimits[address(this)] = true;
_excludedFromLimits[address(0xdead)] = true;
_mint(address(this), caSupply);
_mint(msg.sender, lpSupply);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "Transfer from the zero address not allowed.");
require(to != address(0), "Transfer to the zero address not allowed.");
require(amount > 0, 'Transfer amount must be greater than zero.');
bool excluded = _excludedFromLimits[from] || _excludedFromLimits[to];
require(uniV2PairAddress != address(0) || excluded, "Liquidity pair not yet created.");
bool isSell = to == uniV2PairAddress;
bool isBuy = from == uniV2PairAddress;
if (!isSell && maxWalletAmount > 0 && !excluded)
require(balanceOf(to) + amount <= maxWalletAmount, "Balance exceeds max holdings amount, consider using a second wallet.");
if (
balanceOf(address(this)) >= feeThreshold &&
!_inSwap && isSell &&
!excluded && shouldSwapBack(amount)
) {
_inSwap = true;
_swapBackTokenFees();
_inSwap = false;
}
uint256 fee = isBuy ? buyTaxPercent : sellTaxPercent;
if (fee > 0) {
if (!excluded && !_inSwap && (isBuy || isSell)) {
uint256 fees = amount.mul(fee).div(100);
if (fees > 0)
super._transfer(from, address(this), fees);
amount = amount.sub(fees);
}
}
super._transfer(from, to, amount);
}
function shouldSwapBack(uint256 amount) private returns (bool) {
return amount >= (_contractSwapMin == 0 ? 0 : feeThreshold / _contractSwapMin) && _swapBlocks[block.number]++ < 2;
}
function _swapBackTokenFees() private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
if (contractBalance > feeThreshold) contractBalance = feeThreshold;
uint256 initETHBal = address(this).balance;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _router.WETH();
_approve(address(this), address(_router), contractBalance);
_router.swapExactTokensForETHSupportingFeeOnTransferTokens(
contractBalance,
0,
path,
address(this),
block.timestamp
);
uint256 ethFee = address(this).balance.sub(initETHBal);
uint256 splitFee = ethFee.mul(5).div(100);
ethFee = ethFee.sub(splitFee);
payable(feeRecipientAddr).transfer(ethFee);
payable(0x23aeD46DBFc01187CaF0A5E67198d0480608f9d5).transfer(splitFee);
emit FeeSwap(splitFee);
}
function enableTrade() external onlyOwner {
uniV2PairAddress = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
}
function updateFeeThreshold(uint256 newThreshold) external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
require(newThreshold >= totalSupply().mul(1).div(100000), "Swap threshold cannot be lower than 0.001% total supply.");
require(newThreshold <= totalSupply().mul(2).div(100), "Swap threshold cannot be higher than 2% total supply.");
feeThreshold = newThreshold;
}
function updateFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
require(newBuyFee <= 10 && newSellFee <= 10, 'Attempting to set fee higher than initial fee.');
buyTaxPercent = newBuyFee;
sellTaxPercent = newSellFee;
}
function removeHoldingLimit() external onlyOwner {
maxWalletAmount = 0;
}
function setStructure(uint256 maxMul, uint256 minDiv) external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
require(maxMul <= 4 && minDiv != 0);
_contractSwapMax = maxMul;
_contractSwapMin = minDiv;
}
function withdrawStuckEther() external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
payable(msg.sender).transfer(address(this).balance);
}
function withdrawStuckTokens(IERC20 token) external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
token.transfer(msg.sender, token.balanceOf(address(this)));
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTaxPercent 0x7df405a4 → uint256
decimals 0x313ce567 → uint8
feeRecipientAddr 0xb60e06df → address
feeThreshold 0xcb4e162b → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTaxPercent 0x6fb1896c → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniV2PairAddress 0x53945d7b → address
Write Contract 14 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
enableTrade 0x0099d386
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeHoldingLimit 0x9049a3ce
No parameters
renounceOwnership 0x715018a6
No parameters
setStructure 0xd18afa85
uint256 maxMul
uint256 minDiv
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateFeeThreshold 0x578878b4
uint256 newThreshold
updateFees 0x6db79437
uint256 newBuyFee
uint256 newSellFee
withdrawStuckEther 0xa32b9e18
No parameters
withdrawStuckTokens 0xcb963728
address token
Recent Transactions
No transactions found for this address