Address Contract Verified
Address
0x2471F8F7FC3189015a950f4b76Ea3774ff23bfD6
Balance
2.2742 ETH ($4,474.72)
Nonce
1
Code Size
12349 bytes
Creator
0x956Cd8a2...C0d8 at tx 0x530b09a3...139f4a
Indexed Transactions
0 (1 on-chain, 1.5% indexed)
Contract Bytecode
12349 bytes
0x60806040526004361061028c5760003560e01c8063715018a61161015a578063a69df4b5116100c1578063c49b9a801161007a578063c49b9a8014610952578063d543dbeb1461097e578063dd467064146109a8578063dd62ed3e146109d2578063ea2f0b3714610a0d578063f2fde38b14610a4057610293565b8063a69df4b514610892578063a9059cbb146108a7578063b6c52324146108e0578063b8c9d25c146108f5578063c0d786551461090a578063c21ebd071461093d57610293565b806388f820201161011357806388f82020146107bd5780638da5cb5b146107f05780638ee88c531461080557806395d89b411461082f578063a457c2d714610844578063a4d66daf1461087d57610293565b8063715018a6146106d257806376e2b7ab146106e757806377e5006f146106fc5780637d1db4a51461072f5780638187f51614610744578063862a4bf21461077757610293565b80633685d419116101fe5780634a74bb02116101b75780634a74bb02146105dc5780634dfefc4b146105f157806352390c02146106245780635342acb4146106575780636bc87c3a1461068a57806370a082311461069f57610293565b80633685d419146104cc57806339509351146104ff5780633b124fe7146105385780633bd5d1731461054d578063437823ec146105775780634549b039146105aa57610293565b806318160ddd1161025057806318160ddd146103d757806320b9588c146103ec57806323b872dd1461041f5780632cde6081146104625780632d83811914610477578063313ce567146104a157610293565b8063061c82d01461029857806306fdde03146102c4578063095ea7b31461034e57806313114a9d1461039b578063178ef307146103c257610293565b3661029357005b600080fd5b3480156102a457600080fd5b506102c2600480360360208110156102bb57600080fd5b5035610a73565b005b3480156102d057600080fd5b506102d9610b26565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103135781810151838201526020016102fb565b50505050905090810190601f1680156103405780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035a57600080fd5b506103876004803603604081101561037157600080fd5b506001600160a01b038135169060200135610bbc565b604080519115158252519081900360200190f35b3480156103a757600080fd5b506103b0610bda565b60408051918252519081900360200190f35b3480156103ce57600080fd5b506103b0610be0565b3480156103e357600080fd5b506103b0610be6565b3480156103f857600080fd5b506103b06004803603602081101561040f57600080fd5b50356001600160a01b0316610bec565b34801561042b57600080fd5b506103876004803603606081101561044257600080fd5b506001600160a01b03813581169160208101359091169060400135610bfe565b34801561046e57600080fd5b506102c2610c85565b34801561048357600080fd5b506103b06004803603602081101561049a57600080fd5b5035610d3e565b3480156104ad57600080fd5b506104b6610da0565b6040805160ff9092168252519081900360200190f35b3480156104d857600080fd5b506102c2600480360360208110156104ef57600080fd5b50356001600160a01b0316610da9565b34801561050b57600080fd5b506103876004803603604081101561052257600080fd5b506001600160a01b038135169060200135610f6a565b34801561054457600080fd5b506103b0610fb8565b34801561055957600080fd5b506102c26004803603602081101561057057600080fd5b5035610fbe565b34801561058357600080fd5b506102c26004803603602081101561059a57600080fd5b50356001600160a01b0316611098565b3480156105b657600080fd5b506103b0600480360360408110156105cd57600080fd5b50803590602001351515611114565b3480156105e857600080fd5b506103876111a6565b3480156105fd57600080fd5b506103876004803603602081101561061457600080fd5b50356001600160a01b03166111b6565b34801561063057600080fd5b506102c26004803603602081101561064757600080fd5b50356001600160a01b03166111cb565b34801561066357600080fd5b506103876004803603602081101561067a57600080fd5b50356001600160a01b0316611351565b34801561069657600080fd5b506103b061136f565b3480156106ab57600080fd5b506103b0600480360360208110156106c257600080fd5b50356001600160a01b0316611375565b3480156106de57600080fd5b506102c26113d7565b3480156106f357600080fd5b506103b0611467565b34801561070857600080fd5b506103b06004803603602081101561071f57600080fd5b50356001600160a01b031661146b565b34801561073b57600080fd5b506103b0611518565b34801561075057600080fd5b506102c26004803603602081101561076757600080fd5b50356001600160a01b031661151e565b34801561078357600080fd5b506107a16004803603602081101561079a57600080fd5b5035611598565b604080516001600160a01b039092168252519081900360200190f35b3480156107c957600080fd5b50610387600480360360208110156107e057600080fd5b50356001600160a01b03166115bf565b3480156107fc57600080fd5b506107a16115dd565b34801561081157600080fd5b506102c26004803603602081101561082857600080fd5b50356115ec565b34801561083b57600080fd5b506102d961169f565b34801561085057600080fd5b506103876004803603604081101561086757600080fd5b506001600160a01b038135169060200135611700565b34801561088957600080fd5b50610387611768565b34801561089e57600080fd5b506102c2611771565b3480156108b357600080fd5b50610387600480360360408110156108ca57600080fd5b506001600160a01b03813516906020013561185f565b3480156108ec57600080fd5b506103b0611873565b34801561090157600080fd5b506107a1611879565b34801561091657600080fd5b506102c26004803603602081101561092d57600080fd5b50356001600160a01b0316611888565b34801561094957600080fd5b506107a1611902565b34801561095e57600080fd5b506102c26004803603602081101561097557600080fd5b50351515611911565b34801561098a57600080fd5b506102c2600480360360208110156109a157600080fd5b50356119bc565b3480156109b457600080fd5b506102c2600480360360208110156109cb57600080fd5b5035611a8a565b3480156109de57600080fd5b506103b0600480360360408110156109f557600080fd5b506001600160a01b0381358116916020013516611b28565b348015610a1957600080fd5b506102c260048036036020811015610a3057600080fd5b50356001600160a01b0316611b53565b348015610a4c57600080fd5b506102c260048036036020811015610a6357600080fd5b50356001600160a01b0316611bcc565b610a7b611cb2565b6000546001600160a01b03908116911614610acb576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b600a811115610b21576040805162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20666565206c696d69742069732031302070657263656e7400604482015290519081900360640190fd5b600f55565b600c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bb25780601f10610b8757610100808354040283529160200191610bb2565b820191906000526020600020905b815481529060010190602001808311610b9557829003601f168201915b5050505050905090565b6000610bd0610bc9611cb2565b8484611cb6565b5060015b92915050565b600b5490565b60145481565b60095490565b601d6020526000908152604090205481565b6000610c0b848484611d3e565b610c7b84610c17611cb2565b610c7685604051806060016040528060288152602001612ede602891396001600160a01b038a16600090815260056020526040812090610c55611cb2565b6001600160a01b03168152602081019190915260400160002054919061208a565b611cb6565b5060019392505050565b610c8d611cb2565b6000546001600160a01b03908116911614610cdd576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b601c5460ff161515600114610d32576040805162461bcd60e51b81526020600482015260166024820152756c696d697420697320616c72656164792066616c736560501b604482015290519081900360640190fd5b601c805460ff19169055565b6000600a54821115610d815760405162461bcd60e51b815260040180806020018281038252602a815260200180612e6d602a913960400191505060405180910390fd5b6000610d8b612121565b9050610d978382612144565b9150505b919050565b600e5460ff1690565b610db1611cb2565b6000546001600160a01b03908116911614610e01576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff16610e6e576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b60005b600854811015610f6657816001600160a01b031660088281548110610e9257fe5b6000918252602090912001546001600160a01b03161415610f5e57600880546000198101908110610ebf57fe5b600091825260209091200154600880546001600160a01b039092169183908110610ee557fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600482526040808220829055600790925220805460ff191690556008805480610f3757fe5b600082815260209020810160001990810180546001600160a01b0319169055019055610f66565b600101610e71565b5050565b6000610bd0610f77611cb2565b84610c768560056000610f88611cb2565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061218d565b600f5481565b6000610fc8611cb2565b6001600160a01b03811660009081526007602052604090205490915060ff16156110235760405162461bcd60e51b815260040180806020018281038252602c815260200180612f94602c913960400191505060405180910390fd5b600061102e836121e7565b505050506001600160a01b03841660009081526003602052604090205491925061105a91905082612236565b6001600160a01b038316600090815260036020526040902055600a546110809082612236565b600a55600b54611090908461218d565b600b55505050565b6110a0611cb2565b6000546001600160a01b039081169116146110f0576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b600060095483111561116d576040805162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604482015290519081900360640190fd5b8161118c57600061117d846121e7565b50939550610bd4945050505050565b6000611197846121e7565b50929550610bd4945050505050565b601a54600160a81b900460ff1681565b60156020526000908152604090205460ff1681565b6111d3611cb2565b6000546001600160a01b03908116911614611223576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff1615611291576040805162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604482015290519081900360640190fd5b6001600160a01b038116600090815260036020526040902054156112eb576001600160a01b0381166000908152600360205260409020546112d190610d3e565b6001600160a01b0382166000908152600460205260409020555b6001600160a01b03166000818152600760205260408120805460ff191660019081179091556008805491820181559091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319169091179055565b6001600160a01b031660009081526006602052604090205460ff1690565b60115481565b6001600160a01b03811660009081526007602052604081205460ff16156113b557506001600160a01b038116600090815260046020526040902054610d9b565b6001600160a01b038216600090815260036020526040902054610bd490610d3e565b6113df611cb2565b6000546001600160a01b0390811691161461142f576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b600080546040516001600160a01b0390911690600080516020612f26833981519152908390a3600080546001600160a01b0319169055565b4790565b600047828261147982611375565b90506000805b6008548110156114c7576114bd826114b76008848154811061149d57fe5b6000918252602090912001546001600160a01b0316611375565b9061218d565b915060010161147f565b50601a5460009061150d906114fd9084906114f7906114ee906001600160a01b0316611375565b60095490612236565b90612236565b6115078588612278565b90612144565b979650505050505050565b60165481565b611526611cb2565b6000546001600160a01b03908116911614611576576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b601381815481106115a557fe5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b031660009081526007602052604090205460ff1690565b6000546001600160a01b031690565b6115f4611cb2565b6000546001600160a01b03908116911614611644576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b603281111561169a576040805162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20666565206c696d69742069732035302070657263656e7400604482015290519081900360640190fd5b601155565b600d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610bb25780601f10610b8757610100808354040283529160200191610bb2565b6000610bd061170d611cb2565b84610c7685604051806060016040528060258152602001612fe36025913960056000611737611cb2565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061208a565b601c5460ff1681565b6001546001600160a01b031633146117ba5760405162461bcd60e51b8152600401808060200182810382526023815260200180612fc06023913960400191505060405180910390fd5b6002544211611810576040805162461bcd60e51b815260206004820152601f60248201527f436f6e7472616374206973206c6f636b656420756e74696c2037206461797300604482015290519081900360640190fd5b600154600080546040516001600160a01b039384169390911691600080516020612f2683398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000610bd061186c611cb2565b8484611d3e565b60025490565b601a546001600160a01b031681565b611890611cb2565b6000546001600160a01b039081169116146118e0576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6019546001600160a01b031681565b611919611cb2565b6000546001600160a01b03908116911614611969576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b601a8054821515600160a81b810260ff60a81b199092169190911790915560408051918252517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599181900360200190a150565b6119c4611cb2565b6000546001600160a01b03908116911614611a14576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6032811115611a6a576040805162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20746178206c696d69742069732031302070657263656e7400604482015290519081900360640190fd5b611a8460646115078360095461227890919063ffffffff16565b60165550565b611a92611cb2565b6000546001600160a01b03908116911614611ae2576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b60008054600180546001600160a01b03199081166001600160a01b038416179091551681554282016002556040518190600080516020612f26833981519152908290a350565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b611b5b611cb2565b6000546001600160a01b03908116911614611bab576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19169055565b611bd4611cb2565b6000546001600160a01b03908116911614611c24576040805162461bcd60e51b81526020600482018190526024820152600080516020612f06833981519152604482015290519081900360640190fd5b6001600160a01b038116611c695760405162461bcd60e51b8152600401808060200182810382526026815260200180612e976026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020612f2683398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6001600160a01b038316611cc957600080fd5b6001600160a01b038216611cdc57600080fd5b6001600160a01b03808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611d835760405162461bcd60e51b8152600401808060200182810382526025815260200180612f6f6025913960400191505060405180910390fd5b6001600160a01b038216611dc85760405162461bcd60e51b8152600401808060200182810382526023815260200180612e1e6023913960400191505060405180910390fd5b60008111611e075760405162461bcd60e51b8152600401808060200182810382526029815260200180612f466029913960400191505060405180910390fd5b601c5460ff1615156001148015611e375750611e216115dd565b6001600160a01b0316836001600160a01b031614155b8015611e5c5750611e466115dd565b6001600160a01b0316826001600160a01b031614155b15611ee057601a546001600160a01b03838116911614611e9857681b1ae4d6e2ef500000611e8d826114b785611375565b1115611e9857600080fd5b68056bc75e2d63100000811115611ee05760405162461bcd60e51b815260040180806020018281038252602c815260200180612e41602c913960400191505060405180910390fd5b611ee86115dd565b6001600160a01b0316836001600160a01b031614158015611f225750611f0c6115dd565b6001600160a01b0316826001600160a01b031614155b15611f3657601654811115611f3657600080fd5b6001600160a01b03821660009081526015602052604090205460ff16611fc2576013805460018082019092557f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b03851690811790915560148054830190556000908152601560205260409020805460ff191690911790555b6000611fcd30611375565b601b5490915081108015908190611fee5750601a54600160a01b900460ff16155b80156120085750601a546001600160a01b03868116911614155b801561201d5750601a54600160a81b900460ff165b1561202b5761202b826122d1565b6001600160a01b03851660009081526006602052604090205460019060ff168061206d57506001600160a01b03851660009081526006602052604090205460ff165b15612076575060005b61208286868684612439565b505050505050565b600081848411156121195760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156120de5781810151838201526020016120c6565b50505050905090810190601f16801561210b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600080600061212e6125ad565b909250905061213d8282612144565b9250505090565b600061218683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612710565b9392505050565b600082820183811015612186576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060008060008060008060006121fe8a612775565b925092509250600080600061221c8d8686612217612121565b6127b1565b919f909e50909c50959a5093985091965092945050505050565b600061218683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061208a565b60008261228757506000610bd4565b8282028284828161229457fe5b04146121865760405162461bcd60e51b8152600401808060200182810382526021815260200180612ebd6021913960400191505060405180910390fd5b601a805460ff60a01b1916600160a01b17905560006122f1826003612144565b90506000612300836003612144565b9050600061230f846003612144565b9050600061231e846002612144565b9050600061232c8583612236565b905047612345612340856114b7868961218d565b612801565b60006123514783612236565b90506000612360826003612144565b6017546040519192506001600160a01b03169082156108fc029083906000818181858888f1935050505015801561239b573d6000803e3d6000fd5b506018546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156123d6573d6000803e3d6000fd5b506123e184826129a7565b604080518681526020810183905280820186905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15050601a805460ff60a01b1916905550505050505050565b8061244657612446612a74565b6001600160a01b03841660009081526007602052604090205460ff16801561248757506001600160a01b03831660009081526007602052604090205460ff16155b1561249c57612497848484612aa6565b61259a565b6001600160a01b03841660009081526007602052604090205460ff161580156124dd57506001600160a01b03831660009081526007602052604090205460ff165b156124ed57612497848484612bca565b6001600160a01b03841660009081526007602052604090205460ff1615801561252f57506001600160a01b03831660009081526007602052604090205460ff16155b1561253f57612497848484612c73565b6001600160a01b03841660009081526007602052604090205460ff16801561257f57506001600160a01b03831660009081526007602052604090205460ff165b1561258f57612497848484612cb7565b61259a848484612c73565b806125a7576125a7612d2a565b50505050565b600a546009546000918291825b6008548110156126de578260036000600884815481106125d657fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061263b575081600460006008848154811061261457fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561265257600a546009549450945050505061270c565b612692600360006008848154811061266657fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490612236565b92506126d460046000600884815481106126a857fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390612236565b91506001016125ba565b50600954600a546126ee91612144565b82101561270657600a5460095493509350505061270c565b90925090505b9091565b6000818361275f5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156120de5781810151838201526020016120c6565b50600083858161276b57fe5b0495945050505050565b60008060008061278485612d38565b9050600061279186612d54565b905060006127a3826114f78986612236565b979296509094509092505050565b60008080806127c08886612278565b905060006127ce8887612278565b905060006127dc8888612278565b905060006127ee826114f78686612236565b939b939a50919850919650505050505050565b6040805160028082526060808301845292602083019080368337019050509050308160008151811061282f57fe5b6001600160a01b03928316602091820292909201810191909152601954604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561288357600080fd5b505afa158015612897573d6000803e3d6000fd5b505050506040513d60208110156128ad57600080fd5b50518151829060019081106128be57fe5b6001600160a01b0392831660209182029290920101526019546128e49130911684611cb6565b60195460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561296a578181015183820152602001612952565b505050509050019650505050505050600060405180830381600087803b15801561299357600080fd5b505af1158015612082573d6000803e3d6000fd5b6019546129bf9030906001600160a01b031684611cb6565b6019546001600160a01b031663f305d7198230856000806129de6115dd565b426040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b158015612a4957600080fd5b505af1158015612a5d573d6000803e3d6000fd5b50505050506040513d60608110156125a757600080fd5b600f54158015612a845750601154155b15612a8e57612aa4565b600f805460105560118054601255600091829055555b565b600080600080600080612ab8876121e7565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150612aea9088612236565b6001600160a01b038a16600090815260046020908152604080832093909355600390522054612b199087612236565b6001600160a01b03808b1660009081526003602052604080822093909355908a1681522054612b48908661218d565b6001600160a01b038916600090815260036020526040902055612b6a81612d70565b612b748483612df9565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3505050505050505050565b600080600080600080612bdc876121e7565b6001600160a01b038f16600090815260036020526040902054959b50939950919750955093509150612c0e9087612236565b6001600160a01b03808b16600090815260036020908152604080832094909455918b16815260049091522054612c44908461218d565b6001600160a01b038916600090815260046020908152604080832093909355600390522054612b48908661218d565b600080600080600080612c85876121e7565b6001600160a01b038f16600090815260036020526040902054959b50939950919750955093509150612b199087612236565b600080600080600080612cc9876121e7565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150612cfb9088612236565b6001600160a01b038a16600090815260046020908152604080832093909355600390522054612c0e9087612236565b601054600f55601254601155565b6000610bd46064611507600f548561227890919063ffffffff16565b6000610bd460646115076011548561227890919063ffffffff16565b6000612d7a612121565b90506000612d888383612278565b30600090815260036020526040902054909150612da5908261218d565b3060009081526003602090815260408083209390935560079052205460ff1615612df45730600090815260046020526040902054612de3908461218d565b306000908152600460205260409020555b505050565b600a54612e069083612236565b600a55600b54612e16908261218d565b600b55505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573735472616e7366657220616d6f756e74206d757374206265206c657373207468616e2031303020746f6b656e73416d6f756e74206d757374206265206c657373207468616e20746f74616c207265666c656374696f6e734f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05472616e7366657220616d6f756e74206d7573742062652067726561746572207468616e207a65726f45524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734578636c75646564206164647265737365732063616e6e6f742063616c6c20746869732066756e6374696f6e596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6f636b45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d51192ef0526f2db58ff0c60b7d5fa157f002cb2ecdb13acd9c00fd43065533364736f6c634300060c0033
Verified Source Code Full Match
Compiler: v0.6.12+commit.27d51765
EVM: istanbul
Optimization: Yes (200 runs)
NarutoInu.sol 1203 lines
/**
*
* https://t.me/NarutoInuOfficial
*
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owner = _msgSender();
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
function geUnlockTime() public view returns (uint256) {
return _lockTime;
}
//Locks the contract for owner for the amount of time provided
function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = now + time;
emit OwnershipTransferred(_owner, address(0));
}
//Unlocks the contract for owner when _lockTime is exceeds
function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(now > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
}
// pragma solidity >=0.5.0;
interface IPancakeFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
// pragma solidity >=0.5.0;
interface IPancakePair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
// pragma solidity >=0.6.2;
interface IPancakeRouter01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
// pragma solidity >=0.6.2;
interface IPancakeRouter02 is IPancakeRouter01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract NarutoInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isExcluded;
address[] private _excluded;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 100000000000 * 10**6 * 10**9;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;
string private _name = "Naruto Inu";
string private _symbol = "NARUTO";
uint8 private _decimals = 9;
uint256 public _taxFee = 3;
uint256 private _previousTaxFee = _taxFee;
uint256 public _liquidityFee = 7;
uint256 private _previousLiquidityFee = _liquidityFee;
address [] public tokenHolder;
uint256 public numberOfTokenHolders = 0;
mapping(address => bool) public exist;
//No limit
uint256 public _maxTxAmount = _tTotal;
address payable wallet;
address payable rewardsWallet;
IPancakeRouter02 public pancakeRouter;
address public pancakePair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = false;
uint256 private minTokensBeforeSwap = 8;
event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor () public {
_rOwned[_msgSender()] = _rTotal;
wallet = payable(0x600E20549688Ea9B51b99020E9C6770CECd9fdff);
rewardsWallet= payable(0xccbACbCC4BdcD5eA98F3C70708F3d4af8FBCe4cB);
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}
// @dev set Pair
function setPair(address _pancakePair) external onlyOwner {
pancakePair = _pancakePair;
}
// @dev set Router
function setRouter(address _newPancakeRouter) external onlyOwner {
IPancakeRouter02 _pancakeRouter = IPancakeRouter02(_newPancakeRouter);
pancakeRouter = _pancakeRouter;
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
if (_isExcluded[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function isExcludedFromReward(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFees() public view returns (uint256) {
return _tFeeTotal;
}
function deliver(uint256 tAmount) public {
address sender = _msgSender();
require(!_isExcluded[sender], "Excluded addresses cannot call this function");
(uint256 rAmount,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rTotal = _rTotal.sub(rAmount);
_tFeeTotal = _tFeeTotal.add(tAmount);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount,,,,,) = _getValues(tAmount);
return rAmount;
} else {
(,uint256 rTransferAmount,,,,) = _getValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function excludeFromReward(address account) public onlyOwner() {
// require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude pancake router.');
require(!_isExcluded[account], "Account is already excluded");
if(_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeInReward(address account) external onlyOwner() {
require(_isExcluded[account], "Account is already excluded");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
_excluded[i] = _excluded[_excluded.length - 1];
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded.pop();
break;
}
}
}
function _approve(address owner, address spender, uint256 amount) private {
require(owner != address(0));
require(spender != address(0));
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
bool public limit = true;
function changeLimit() public onlyOwner(){
require(limit == true, 'limit is already false');
limit = false;
}
function expectedRewards(address _sender) external view returns(uint256){
uint256 _balance = address(this).balance;
address sender = _sender;
uint256 holdersBal = balanceOf(sender);
uint totalExcludedBal;
for(uint256 i = 0; i<_excluded.length; i++){
totalExcludedBal = balanceOf(_excluded[i]).add(totalExcludedBal);
}
uint256 rewards = holdersBal.mul(_balance).div(_tTotal.sub(balanceOf(pancakePair)).sub(totalExcludedBal));
return rewards;
}
function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if(limit == true && from != owner() && to != owner()){
if(to != pancakePair){
require(((balanceOf(to).add(amount)) <= 500 ether));
}
require(amount <= 100 ether, 'Transfer amount must be less than 100 tokens');
}
if(from != owner() && to != owner())
require(amount <= _maxTxAmount);
// is the token balance of this contract address over the min number of
// tokens that we need to initiate a swap + liquidity lock?
// also, don't get caught in a circular liquidity event.
// also, don't swap & liquify if sender is pancake pair.
if(!exist[to]){
tokenHolder.push(to);
numberOfTokenHolders++;
exist[to] = true;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinTokenBalance = contractTokenBalance >= minTokensBeforeSwap;
if (
overMinTokenBalance &&
!inSwapAndLiquify &&
from != pancakePair &&
swapAndLiquifyEnabled
) {
//add liquidity
swapAndLiquify(contractTokenBalance);
}
//indicates if fee should be deducted from transfer
bool takeFee = true;
//if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
takeFee = false;
}
//transfer amount, it will take tax, burn, liquidity fee
_tokenTransfer(from,to,amount,takeFee);
}
mapping(address => uint256) public myRewards;
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
// split the contract balance into halves
uint256 forLiquidity = contractTokenBalance.div(3);
uint256 devExp = contractTokenBalance.div(3);
uint256 forRewards = contractTokenBalance.div(3);
// split the liquidity
uint256 half = forLiquidity.div(2);
uint256 otherHalf = forLiquidity.sub(half);
// capture the contract's current ETH balance.
// this is so that we can capture exactly the amount of ETH that the
// swap creates, and not make the liquidity event include any ETH that
// has been manually sent to the contract
uint256 initialBalance = address(this).balance;
// swap tokens for ETH
swapTokensForEth(half.add(devExp).add(forRewards)); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered
// how much ETH did we just swap into?
uint256 Balance = address(this).balance.sub(initialBalance);
uint256 oneThird = Balance.div(3);
wallet.transfer(oneThird);
rewardsWallet.transfer(oneThird);
// for(uint256 i = 0; i < numberOfTokenHolders; i++){
// uint256 share = (balanceOf(tokenHolder[i]).mul(ethFees)).div(totalSupply());
// myRewards[tokenHolder[i]] = myRewards[tokenHolder[i]].add(share);
//}
// add liquidity to pancake
addLiquidity(otherHalf, oneThird);
emit SwapAndLiquify(half, oneThird, otherHalf);
}
function BNBBalance() external view returns(uint256){
return address(this).balance;
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the pancake pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = pancakeRouter.WETH();
_approve(address(this), address(pancakeRouter), tokenAmount);
// make the swap
pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(pancakeRouter), tokenAmount);
// add the liquidity
pancakeRouter.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
owner(),
block.timestamp
);
}
//this method is responsible for taking all fee, if takeFee is true
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipient]) {
_transferToExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
_transferStandard(sender, recipient, amount);
} else if (_isExcluded[sender] && _isExcluded[recipient]) {
_transferBothExcluded(sender, recipient, amount);
} else {
_transferStandard(sender, recipient, amount);
}
if(!takeFee)
restoreAllFee();
}
function _transferStandard(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate());
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
uint256 tFee = calculateTaxFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity);
return (tTransferAmount, tFee, tLiquidity);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
function _takeLiquidity(uint256 tLiquidity) private {
uint256 currentRate = _getRate();
uint256 rLiquidity = tLiquidity.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
if(_isExcluded[address(this)])
_tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
}
function calculateTaxFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_taxFee).div(
10**2
);
}
function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_liquidityFee).div(
10**2
);
}
function removeAllFee() private {
if(_taxFee == 0 && _liquidityFee == 0) return;
_previousTaxFee = _taxFee;
_previousLiquidityFee = _liquidityFee;
_taxFee = 0;
_liquidityFee = 0;
}
function restoreAllFee() private {
_taxFee = _previousTaxFee;
_liquidityFee = _previousLiquidityFee;
}
function isExcludedFromFee(address account) public view returns(bool) {
return _isExcludedFromFee[account];
}
function excludeFromFee(address account) public onlyOwner {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyOwner {
_isExcludedFromFee[account] = false;
}
function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
require(taxFee <= 10, "Maximum fee limit is 10 percent");
_taxFee = taxFee;
}
function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
require(liquidityFee <= 50, "Maximum fee limit is 50 percent");
_liquidityFee = liquidityFee;
}
function setMaxTxPercent(uint256 maxTxPercent) external onlyOwner() {
require(maxTxPercent <= 50, "Maximum tax limit is 10 percent");
_maxTxAmount = _tTotal.mul(maxTxPercent).div(
10**2
);
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
//to recieve ETH from pancakeRouter when swaping
receive() external payable {}
}
Read Contract
BNBBalance 0x76e2b7ab → uint256
_liquidityFee 0x6bc87c3a → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_taxFee 0x3b124fe7 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
exist 0x4dfefc4b → bool
expectedRewards 0x77e5006f → uint256
geUnlockTime 0xb6c52324 → uint256
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
limit 0xa4d66daf → bool
myRewards 0x20b9588c → uint256
name 0x06fdde03 → string
numberOfTokenHolders 0x178ef307 → uint256
owner 0x8da5cb5b → address
pancakePair 0xb8c9d25c → address
pancakeRouter 0xc21ebd07 → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
tokenHolder 0x862a4bf2 → address
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeLimit 0x2cde6081
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
deliver 0x3bd5d173
uint256 tAmount
excludeFromFee 0x437823ec
address account
excludeFromReward 0x52390c02
address account
includeInFee 0xea2f0b37
address account
includeInReward 0x3685d419
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
lock 0xdd467064
uint256 time
renounceOwnership 0x715018a6
No parameters
setLiquidityFeePercent 0x8ee88c53
uint256 liquidityFee
setMaxTxPercent 0xd543dbeb
uint256 maxTxPercent
setPair 0x8187f516
address _pancakePair
setRouter 0xc0d78655
address _newPancakeRouter
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setTaxFeePercent 0x061c82d0
uint256 taxFee
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unlock 0xa69df4b5
No parameters
Recent Transactions
This address has 1 on-chain transactions, but only 1.5% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →