Address Contract Verified
Address
0x692bFd8C5915Ef310493120EdfF7d58Fd48306CD
Balance
0 ETH
Nonce
1
Code Size
15578 bytes
Creator
0x1C01CC92...220d at tx 0xb44fb716...0aabd0
Indexed Transactions
0
Contract Bytecode
15578 bytes
0x608060405260043610610228575f3560e01c8063715018a611610122578063a9059cbb116100aa578063dd62ed3e1161006e578063dd62ed3e146107a7578063e2f45605146107e3578063f2fde38b1461080d578063f8b45b0514610835578063ffb54a991461085f5761022f565b8063a9059cbb146106d9578063c024666814610715578063c876d0b91461073d578063c8c8ebe414610767578063c9567bf9146107915761022f565b806395d89b41116100f157806395d89b411461060d57806398a5c315146106375780639a7a23d61461065f5780639b63654514610687578063a457c2d71461069d5761022f565b8063715018a61461057d57806371f5f01a146105935780637571336a146105bb5780638da5cb5b146105e35761022f565b80633edab509116101b057806352f7c9881161017457806352f7c9881461049d578063583e0568146104c55780636d8aa8f8146104ef5780636ddd17131461051757806370a08231146105415761022f565b80633edab509146103cf57806342966c68146103e5578063470624021461040d57806349bd5a5e146104375780634fbee193146104615761022f565b806323b872dd116101f757806323b872dd146102d95780632b14ca5614610315578063311028af1461033f578063313ce5671461036957806339509351146103935761022f565b806306fdde0314610233578063095ea7b31461025d578063139864a81461029957806318160ddd146102af5761022f565b3661022f57005b5f80fd5b34801561023e575f80fd5b50610247610889565b6040516102549190612a97565b60405180910390f35b348015610268575f80fd5b50610283600480360381019061027e9190612b48565b610919565b6040516102909190612ba0565b60405180910390f35b3480156102a4575f80fd5b506102ad61093b565b005b3480156102ba575f80fd5b506102c3610957565b6040516102d09190612bc8565b60405180910390f35b3480156102e4575f80fd5b506102ff60048036038101906102fa9190612be1565b610960565b60405161030c9190612ba0565b60405180910390f35b348015610320575f80fd5b5061032961098e565b6040516103369190612bc8565b60405180910390f35b34801561034a575f80fd5b50610353610994565b6040516103609190612bc8565b60405180910390f35b348015610374575f80fd5b5061037d61099a565b60405161038a9190612c4c565b60405180910390f35b34801561039e575f80fd5b506103b960048036038101906103b49190612b48565b6109a2565b6040516103c69190612ba0565b60405180910390f35b3480156103da575f80fd5b506103e36109d8565b005b3480156103f0575f80fd5b5061040b60048036038101906104069190612c65565b610bff565b005b348015610418575f80fd5b50610421610c13565b60405161042e9190612bc8565b60405180910390f35b348015610442575f80fd5b5061044b610c19565b6040516104589190612c9f565b60405180910390f35b34801561046c575f80fd5b5061048760048036038101906104829190612cb8565b610c3e565b6040516104949190612ba0565b60405180910390f35b3480156104a8575f80fd5b506104c360048036038101906104be9190612ce3565b610c90565b005b3480156104d0575f80fd5b506104d9610caa565b6040516104e69190612d7c565b60405180910390f35b3480156104fa575f80fd5b5061051560048036038101906105109190612dbf565b610cce565b005b348015610522575f80fd5b5061052b610cf3565b6040516105389190612ba0565b60405180910390f35b34801561054c575f80fd5b5061056760048036038101906105629190612cb8565b610d06565b6040516105749190612bc8565b60405180910390f35b348015610588575f80fd5b50610591610d4b565b005b34801561059e575f80fd5b506105b960048036038101906105b49190612c65565b610d5e565b005b3480156105c6575f80fd5b506105e160048036038101906105dc9190612dea565b610df2565b005b3480156105ee575f80fd5b506105f7610e52565b6040516106049190612c9f565b60405180910390f35b348015610618575f80fd5b50610621610e7a565b60405161062e9190612a97565b60405180910390f35b348015610642575f80fd5b5061065d60048036038101906106589190612c65565b610f0a565b005b34801561066a575f80fd5b5061068560048036038101906106809190612dea565b610f1c565b005b348015610692575f80fd5b5061069b610fc1565b005b3480156106a8575f80fd5b506106c360048036038101906106be9190612b48565b611034565b6040516106d09190612ba0565b60405180910390f35b3480156106e4575f80fd5b506106ff60048036038101906106fa9190612b48565b6110a9565b60405161070c9190612ba0565b60405180910390f35b348015610720575f80fd5b5061073b60048036038101906107369190612dea565b6110cb565b005b348015610748575f80fd5b50610751611179565b60405161075e9190612ba0565b60405180910390f35b348015610772575f80fd5b5061077b61118c565b6040516107889190612bc8565b60405180910390f35b34801561079c575f80fd5b506107a5611192565b005b3480156107b2575f80fd5b506107cd60048036038101906107c89190612e28565b6111d1565b6040516107da9190612bc8565b60405180910390f35b3480156107ee575f80fd5b506107f7611253565b6040516108049190612bc8565b60405180910390f35b348015610818575f80fd5b50610833600480360381019061082e9190612cb8565b611259565b005b348015610840575f80fd5b506108496112db565b6040516108569190612bc8565b60405180910390f35b34801561086a575f80fd5b506108736112e1565b6040516108809190612ba0565b60405180910390f35b60606003805461089890612e93565b80601f01602080910402602001604051908101604052809291908181526020018280546108c490612e93565b801561090f5780601f106108e65761010080835404028352916020019161090f565b820191905f5260205f20905b8154815290600101906020018083116108f257829003601f168201915b5050505050905090565b5f806109236112f3565b90506109308185856112fa565b600191505092915050565b6109436114bd565b600954600d81905550600954600c81905550565b5f600254905090565b5f8061096a6112f3565b905061097785828561153b565b6109828585856115c6565b60019150509392505050565b600b5481565b60095481565b5f6009905090565b5f806109ac6112f3565b90506109cd8185856109be85896111d1565b6109c89190612ef0565b6112fa565b600191505092915050565b6109e06114bd565b60115f9054906101000a900460ff1615610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2690612f6d565b60405180910390fd5b610a5c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6009546112fa565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610aa330610d06565b5f80731c01cc92acd38dc6969ee78fd0c4bae03807220d426040518863ffffffff1660e01b8152600401610adc96959493929190612fc4565b60606040518083038185885af1158015610af8573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610b1d9190613037565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610bbc929190613087565b6020604051808303815f875af1158015610bd8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bfc91906130c2565b50565b610c10610c0a6112f3565b826121ae565b50565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610c986114bd565b80600b8190555081600a819055505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b610cd66114bd565b80601160016101000a81548160ff02191690831515021790555050565b601160019054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610d536114bd565b610d5c5f612371565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d9e6112f3565b73ffffffffffffffffffffffffffffffffffffffff1614610dbd575f80fd5b5f610dc730610d06565b90505f60648383610dd891906130ed565b610de2919061315b565b9050610ded81612434565b505050565b610dfa6114bd565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610e8990612e93565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb590612e93565b8015610f005780601f10610ed757610100808354040283529160200191610f00565b820191905f5260205f20905b815481529060010190602001808311610ee357829003601f168201915b5050505050905090565b610f126114bd565b8060108190555050565b610f246114bd565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faa906131fb565b60405180910390fd5b610fbd8282612688565b5050565b610fc96114bd565b600e60019054906101000a900460ff16611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90613263565b60405180910390fd5b5f600e60016101000a81548160ff021916908315150217905550565b5f8061103e6112f3565b90505f61104b82866111d1565b905083811015611090576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611087906132f1565b60405180910390fd5b61109d82868684036112fa565b60019250505092915050565b5f806110b36112f3565b90506110c08185856115c6565b600191505092915050565b6110d36114bd565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df78260405161116d9190612ba0565b60405180910390a25050565b600e60019054906101000a900460ff1681565b600d5481565b61119a6114bd565b6001601160016101000a81548160ff021916908315150217905550600160115f6101000a81548160ff021916908315150217905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b6112616114bd565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c69061337f565b60405180910390fd5b6112d881612371565b50565b600c5481565b60115f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f9061340d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd9061349b565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516114b09190612bc8565b60405180910390a3505050565b6114c56112f3565b73ffffffffffffffffffffffffffffffffffffffff166114e3610e52565b73ffffffffffffffffffffffffffffffffffffffff1614611539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153090613503565b60405180910390fd5b565b5f61154684846111d1565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115c057818110156115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a99061356b565b60405180910390fd5b6115bf84848484036112fa565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162b906135f9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169990613687565b60405180910390fd5b5f81036116b9576116b483835f612726565b6121a9565b6116c1610e52565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561172f57506116ff610e52565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561176757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156117a1575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156117b95750600e5f9054906101000a900460ff16155b15611e3c5760115f9054906101000a900460ff166118ac5760125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061186c575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6118ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a2906136ef565b60405180910390fd5b5b600e60019054906101000a900460ff16801561190f575060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611962575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611b62577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611a10575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611b615743600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015611a9d575043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b611adc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad39061377d565b60405180910390fd5b43600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611bff575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611ca657600d54811115611c49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c409061380b565b60405180910390fd5b600c54611c5583610d06565b82611c609190612ef0565b1115611ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9890613873565b60405180910390fd5b611e3b565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611d43575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611d9257600d54811115611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8490613901565b60405180910390fd5b611e3a565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611e3957600c54611dec83610d06565b82611df79190612ef0565b1115611e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2f90613873565b60405180910390fd5b5b5b5b5b5f611e4630610d06565b90505f6010548210159050808015611e6a5750601160019054906101000a900460ff165b8015611e825750600e5f9054906101000a900460ff16155b8015611ed5575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611f28575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611f7b575060125f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611fbd576001600e5f6101000a81548160ff021916908315150217905550611fa383612992565b5f600e5f6101000a81548160ff0219169083151502179055505b5f600e5f9054906101000a900460ff16158015612021575060125f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612074575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f81156121995760145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156120fb576120f460646120e6600b54886129d990919063ffffffff16565b6129ee90919063ffffffff16565b9050612176565b60145f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612175576121726064612164600a54886129d990919063ffffffff16565b6129ee90919063ffffffff16565b90505b5b5f81111561218a57612189873083612726565b5b8085612196919061391f565b94505b6121a4878787612726565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361221c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612213906139c2565b60405180910390fd5b612227825f83612a03565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156122aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a190613a50565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516123599190612bc8565b60405180910390a361236c835f84612a08565b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff8111156124505761244f613a6e565b5b60405190808252806020026020018201604052801561247e5781602001602082028036833780820191505090505b50905030815f8151811061249557612494613a9b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612538573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061255c9190613adc565b816001815181106125705761256f613a9b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506125d5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846112fa565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401612657959493929190613bbe565b5f604051808303815f87803b15801561266e575f80fd5b505af1158015612680573d5f803e3d5ffd5b505050505050565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278b906135f9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f990613687565b60405180910390fd5b61280d838383612a03565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288790613c86565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516129799190612bc8565b60405180910390a361298c848484612a08565b50505050565b5f61299c30610d06565b90505f81036129ab57506129d6565b5f819050600d5481106129be57600d5490505b828111156129ca578290505b6129d381612434565b50505b50565b5f81836129e691906130ed565b905092915050565b5f81836129fb919061315b565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612a44578082015181840152602081019050612a29565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612a6982612a0d565b612a738185612a17565b9350612a83818560208601612a27565b612a8c81612a4f565b840191505092915050565b5f6020820190508181035f830152612aaf8184612a5f565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612ae482612abb565b9050919050565b612af481612ada565b8114612afe575f80fd5b50565b5f81359050612b0f81612aeb565b92915050565b5f819050919050565b612b2781612b15565b8114612b31575f80fd5b50565b5f81359050612b4281612b1e565b92915050565b5f8060408385031215612b5e57612b5d612ab7565b5b5f612b6b85828601612b01565b9250506020612b7c85828601612b34565b9150509250929050565b5f8115159050919050565b612b9a81612b86565b82525050565b5f602082019050612bb35f830184612b91565b92915050565b612bc281612b15565b82525050565b5f602082019050612bdb5f830184612bb9565b92915050565b5f805f60608486031215612bf857612bf7612ab7565b5b5f612c0586828701612b01565b9350506020612c1686828701612b01565b9250506040612c2786828701612b34565b9150509250925092565b5f60ff82169050919050565b612c4681612c31565b82525050565b5f602082019050612c5f5f830184612c3d565b92915050565b5f60208284031215612c7a57612c79612ab7565b5b5f612c8784828501612b34565b91505092915050565b612c9981612ada565b82525050565b5f602082019050612cb25f830184612c90565b92915050565b5f60208284031215612ccd57612ccc612ab7565b5b5f612cda84828501612b01565b91505092915050565b5f8060408385031215612cf957612cf8612ab7565b5b5f612d0685828601612b34565b9250506020612d1785828601612b34565b9150509250929050565b5f819050919050565b5f612d44612d3f612d3a84612abb565b612d21565b612abb565b9050919050565b5f612d5582612d2a565b9050919050565b5f612d6682612d4b565b9050919050565b612d7681612d5c565b82525050565b5f602082019050612d8f5f830184612d6d565b92915050565b612d9e81612b86565b8114612da8575f80fd5b50565b5f81359050612db981612d95565b92915050565b5f60208284031215612dd457612dd3612ab7565b5b5f612de184828501612dab565b91505092915050565b5f8060408385031215612e0057612dff612ab7565b5b5f612e0d85828601612b01565b9250506020612e1e85828601612dab565b9150509250929050565b5f8060408385031215612e3e57612e3d612ab7565b5b5f612e4b85828601612b01565b9250506020612e5c85828601612b01565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612eaa57607f821691505b602082108103612ebd57612ebc612e66565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612efa82612b15565b9150612f0583612b15565b9250828201905080821115612f1d57612f1c612ec3565b5b92915050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f612f57601783612a17565b9150612f6282612f23565b602082019050919050565b5f6020820190508181035f830152612f8481612f4b565b9050919050565b5f819050919050565b5f612fae612fa9612fa484612f8b565b612d21565b612b15565b9050919050565b612fbe81612f94565b82525050565b5f60c082019050612fd75f830189612c90565b612fe46020830188612bb9565b612ff16040830187612fb5565b612ffe6060830186612fb5565b61300b6080830185612c90565b61301860a0830184612bb9565b979650505050505050565b5f8151905061303181612b1e565b92915050565b5f805f6060848603121561304e5761304d612ab7565b5b5f61305b86828701613023565b935050602061306c86828701613023565b925050604061307d86828701613023565b9150509250925092565b5f60408201905061309a5f830185612c90565b6130a76020830184612bb9565b9392505050565b5f815190506130bc81612d95565b92915050565b5f602082840312156130d7576130d6612ab7565b5b5f6130e4848285016130ae565b91505092915050565b5f6130f782612b15565b915061310283612b15565b925082820261311081612b15565b9150828204841483151761312757613126612ec3565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61316582612b15565b915061317083612b15565b9250826131805761317f61312e565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6131e5603983612a17565b91506131f08261318b565b604082019050919050565b5f6020820190508181035f830152613212816131d9565b9050919050565b7f416c72656164792064697361626c6564210000000000000000000000000000005f82015250565b5f61324d601183612a17565b915061325882613219565b602082019050919050565b5f6020820190508181035f83015261327a81613241565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6132db602583612a17565b91506132e682613281565b604082019050919050565b5f6020820190508181035f830152613308816132cf565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f613369602683612a17565b91506133748261330f565b604082019050919050565b5f6020820190508181035f8301526133968161335d565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6133f7602483612a17565b91506134028261339d565b604082019050919050565b5f6020820190508181035f830152613424816133eb565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613485602283612a17565b91506134908261342b565b604082019050919050565b5f6020820190508181035f8301526134b281613479565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6134ed602083612a17565b91506134f8826134b9565b602082019050919050565b5f6020820190508181035f83015261351a816134e1565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613555601d83612a17565b915061356082613521565b602082019050919050565b5f6020820190508181035f83015261358281613549565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6135e3602583612a17565b91506135ee82613589565b604082019050919050565b5f6020820190508181035f830152613610816135d7565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613671602383612a17565b915061367c82613617565b604082019050919050565b5f6020820190508181035f83015261369e81613665565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6136d9601683612a17565b91506136e4826136a5565b602082019050919050565b5f6020820190508181035f830152613706816136cd565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e202054727920616761696e206c617465722e0000000000000000000000602082015250565b5f613767603583612a17565b91506137728261370d565b604082019050919050565b5f6020820190508181035f8301526137948161375b565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f6137f5603583612a17565b91506138008261379b565b604082019050919050565b5f6020820190508181035f830152613822816137e9565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f61385d601383612a17565b915061386882613829565b602082019050919050565b5f6020820190508181035f83015261388a81613851565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f6138eb603683612a17565b91506138f682613891565b604082019050919050565b5f6020820190508181035f830152613918816138df565b9050919050565b5f61392982612b15565b915061393483612b15565b925082820390508181111561394c5761394b612ec3565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f6139ac602183612a17565b91506139b782613952565b604082019050919050565b5f6020820190508181035f8301526139d9816139a0565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f613a3a602283612a17565b9150613a45826139e0565b604082019050919050565b5f6020820190508181035f830152613a6781613a2e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613ad681612aeb565b92915050565b5f60208284031215613af157613af0612ab7565b5b5f613afe84828501613ac8565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613b3981612ada565b82525050565b5f613b4a8383613b30565b60208301905092915050565b5f602082019050919050565b5f613b6c82613b07565b613b768185613b11565b9350613b8183613b21565b805f5b83811015613bb1578151613b988882613b3f565b9750613ba383613b56565b925050600181019050613b84565b5085935050505092915050565b5f60a082019050613bd15f830188612bb9565b613bde6020830187612fb5565b8181036040830152613bf08186613b62565b9050613bff6060830185612c90565b613c0c6080830184612bb9565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613c70602683612a17565b9150613c7b82613c16565b604082019050919050565b5f6020820190508181035f830152613c9d81613c64565b905091905056fea2646970667358221220f120ec0220031dddbe7631c69a96148b6ebcdfe9709ed74ad35d6d69d16ef30964736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
mpulse.sol 728 lines
// SPDX-License-Identifier: MIT
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 9;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address 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 MPULSE is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable _uniswapV2Router;
address public uniswapV2Pair;
address private devWallet;
address private marketingWallet;
address private constant deadAddress = address(0xdead);
uint8 private constant _decimals = 9;
uint256 public initialTotalSupply = 10000000 * 10**_decimals;
uint256 public buyFee = 10;
uint256 public sellFee = 10;
// 1% is max wallet
uint256 public maxWallet = (initialTotalSupply * 20)/1000;
uint256 public maxTransactionAmount = maxWallet;
bool private swapping;
bool public transferDelayEnabled = true;
mapping(address => uint256) private _holderLastTransferTimestamp;
//swap for 0.1%
uint256 public swapTokensAtAmount = (initialTotalSupply * 1)/1000;
bool public tradingOpen = false;
bool public swapEnabled = false;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
constructor() ERC20("Mind Pulse", "MPULSE"){
_uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
marketingWallet = payable(0x81197357406D7A622817f1778DD1e0151A7269F8);
devWallet = payable(_msgSender());
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
excludeFromMaxTransaction(address(_msgSender()), true);
excludeFromMaxTransaction(marketingWallet, true);
excludeFromMaxTransaction(devWallet, true);
excludeFromFees(address(_msgSender()), true);
excludeFromFees(marketingWallet, true);
excludeFromFees(devWallet, true);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
// mint
_mint(devWallet, initialTotalSupply);
}
receive() external payable {}
function addLPToUniswap() external onlyOwner() {
require(!tradingOpen,"Trading is already open");
_approve(address(this), address(_uniswapV2Router), initialTotalSupply);
_uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
0x1C01CC92aCd38dc6969ee78fd0c4BAe03807220d,
block.timestamp
);
IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
}
function burn(uint256 amount) external {
_burn(_msgSender(), amount);
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function openTrading() external onlyOwner() {
swapEnabled = true;
tradingOpen = true;
}
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 _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) {
if (!tradingOpen) {
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
if (transferDelayEnabled && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
if (to != address(_uniswapV2Router) && to != address(uniswapV2Pair)){
require(_holderLastTransferTimestamp[tx.origin] < block.number && _holderLastTransferTimestamp[to] < block.number, "_transfer:: Transfer Delay enabled. Try again later.");
_holderLastTransferTimestamp[tx.origin] = block.number;
_holderLastTransferTimestamp[to] = block.number;
}
}
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 >= swapTokensAtAmount;
if (canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack(amount);
swapping = false;
}
bool takeFee = !swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to]) {
fees = amount.mul(sellFee).div(100);
}
else if(automatedMarketMakerPairs[from]) {
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 setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
sellFee = _sellFee;
buyFee = _buyFee;
}
function stopTransferDelay() external onlyOwner {
require(transferDelayEnabled, "Already disabled!");
transferDelayEnabled = false;
}
function removeTheLimits() external onlyOwner {
maxTransactionAmount = initialTotalSupply;
maxWallet = initialTotalSupply;
}
function manualSwapToken(uint256 percent) external {
require(_msgSender() == marketingWallet);
uint256 contractBalance = balanceOf(address(this));
uint256 swapAmount = contractBalance * percent / 100;
swapTokensForEth(swapAmount);
}
//Set minimum tokens required to swap.
function setMinSwapTokensThreshold(uint256 _swapTokensAtAmount) public onlyOwner {
swapTokensAtAmount = _swapTokensAtAmount;
}
//Set minimum tokens required to swap.
function toggleSwap(bool _swapEnabled) public onlyOwner {
swapEnabled = _swapEnabled;
}
function swapBack(uint256 tokenAmount) private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) {
return;
}
uint256 tokensToSwap = contractBalance;
if (tokensToSwap >= maxTransactionAmount) {
tokensToSwap = maxTransactionAmount;
}
if(tokensToSwap > tokenAmount) {
tokensToSwap = tokenAmount;
}
swapTokensForEth(tokensToSwap);
}
}
Read Contract
_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
addLPToUniswap 0x3edab509
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
openTrading 0xc9567bf9
No parameters
removeTheLimits 0x139864a8
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
setMinSwapTokensThreshold 0x98a5c315
uint256 _swapTokensAtAmount
stopTransferDelay 0x9b636545
No parameters
toggleSwap 0x6d8aa8f8
bool _swapEnabled
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address