Address Contract Partially Verified
Address
0xD3c51de3E6DD9b53D7f37699AFB3EE3Bf9B9b3F4
Balance
0.112596 ETH
Nonce
1
Code Size
12126 bytes
Creator
0x992Cd46d...7453 at tx 0x8286d77b...9451c8
Indexed Transactions
0
Contract Bytecode
12126 bytes
0x60806040526004361061024a5760003560e01c806352390c021161013957806395d89b41116100b6578063c49b9a801161007a578063c49b9a8014610712578063c9becf1214610732578063d543dbeb14610752578063dd62ed3e14610772578063ea2f0b37146107b8578063f2fde38b146107d857610251565b806395d89b411461066b578063969c5f761461069c5780639dc29fac146106b2578063a457c2d7146106d2578063a9059cbb146106f257610251565b8063716b9abe116100fd578063716b9abe146105be5780637d1db4a5146105de57806388f82020146105f45780638da5cb5b1461062d5780638ee88c531461064b57610251565b806352390c021461051a5780635342acb41461053a5780636bc87c3a1461057357806370a0823114610589578063715018a6146105a957610251565b806339509351116101c7578063437823ec1161018b578063437823ec146104695780634549b0391461048957806349bd5a5e146104a95780634a74bb02146104c95780634ed38faf146104ea57610251565b806339509351146103d35780633b124fe7146103f35780633bd5d1731461040957806340c10f191461042957806341cb87fc1461044957610251565b806318160ddd1161020e57806318160ddd1461034257806323b872dd146103575780632d83811914610377578063313ce567146103975780633685d419146103b357610251565b8063061c82d01461025657806306fdde0314610278578063095ea7b3146102bb57806313114a9d146102eb5780631694505e1461030a57610251565b3661025157005b600080fd5b34801561026257600080fd5b50610276610271366004612c37565b6107f8565b005b34801561028457600080fd5b506040805180820190915260088152671350dbdb9d195b9d60c21b60208201525b6040516102b29190612c9e565b60405180910390f35b3480156102c757600080fd5b506102db6102d6366004612bf2565b6108b3565b60405190151581526020016102b2565b3480156102f757600080fd5b50600b545b6040519081526020016102b2565b34801561031657600080fd5b5060125461032a906001600160a01b031681565b6040516001600160a01b0390911681526020016102b2565b34801561034e57600080fd5b506009546102fc565b34801561036357600080fd5b506102db610372366004612b7e565b6108ca565b34801561038357600080fd5b506102fc610392366004612c37565b610933565b3480156103a357600080fd5b50604051600681526020016102b2565b3480156103bf57600080fd5b506102766103ce366004612b0e565b6109b9565b3480156103df57600080fd5b506102db6103ee366004612bf2565b610ba9565b3480156103ff57600080fd5b506102fc600c5481565b34801561041557600080fd5b50610276610424366004612c37565b610bdf565b34801561043557600080fd5b50610276610444366004612bf2565b610ccb565b34801561045557600080fd5b50610276610464366004612b0e565b610d74565b34801561047557600080fd5b50610276610484366004612b0e565b610f46565b34801561049557600080fd5b506102fc6104a4366004612c4f565b610f94565b3480156104b557600080fd5b5060135461032a906001600160a01b031681565b3480156104d557600080fd5b506013546102db90600160a81b900460ff1681565b3480156104f657600080fd5b506102db610505366004612b0e565b60066020526000908152604090205460ff1681565b34801561052657600080fd5b50610276610535366004612b0e565b611023565b34801561054657600080fd5b506102db610555366004612b0e565b6001600160a01b031660009081526004602052604090205460ff1690565b34801561057f57600080fd5b506102fc60105481565b34801561059557600080fd5b506102fc6105a4366004612b0e565b611176565b3480156105b557600080fd5b506102766111d8565b3480156105ca57600080fd5b506102766105d9366004612c37565b61124c565b3480156105ea57600080fd5b506102fc60145481565b34801561060057600080fd5b506102db61060f366004612b0e565b6001600160a01b031660009081526005602052604090205460ff1690565b34801561063957600080fd5b506000546001600160a01b031661032a565b34801561065757600080fd5b50610276610666366004612c37565b6112df565b34801561067757600080fd5b506040805180820190915260088152671350d3d39511539560c21b60208201526102a5565b3480156106a857600080fd5b506102fc600e5481565b3480156106be57600080fd5b506102766106cd366004612bf2565b611372565b3480156106de57600080fd5b506102db6106ed366004612bf2565b611413565b3480156106fe57600080fd5b506102db61070d366004612bf2565b611462565b34801561071e57600080fd5b5061027661072d366004612c1d565b61146f565b34801561073e57600080fd5b5061027661074d366004612bbe565b6114e6565b34801561075e57600080fd5b5061027661076d366004612c37565b61153b565b34801561077e57600080fd5b506102fc61078d366004612b46565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b3480156107c457600080fd5b506102766107d3366004612b0e565b611657565b3480156107e457600080fd5b506102766107f3366004612b0e565b6116a2565b6000546001600160a01b0316331461082b5760405162461bcd60e51b815260040161082290612cf1565b60405180910390fd5b600c819055601054600e54601991906108449084612e24565b61084e9190612e24565b1061086b5760405162461bcd60e51b815260040161082290612d6f565b7f17530efa98f697f94d4b743a77a3b18dc711815e58fbf6c08da915ce0a17985381335b604080519283526001600160a01b039091166020830152015b60405180910390a150565b60006108c033848461178c565b5060015b92915050565b60006108d78484846118b1565b610929843361092485604051806060016040528060288152602001612edc602891396001600160a01b038a1660009081526003602090815260408083203384529091529020549190611b11565b61178c565b5060019392505050565b6000600a5482111561099a5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610822565b60006109a4611b3d565b90506109b08382611b60565b9150505b919050565b6000546001600160a01b031633146109e35760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b03811660009081526005602052604090205460ff16610a4b5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610822565b60005b600754811015610ba557816001600160a01b031660078281548110610a8357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610b935760078054610aae90600190612e7b565b81548110610acc57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600780546001600160a01b039092169183908110610b0657634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556007805480610b6c57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610ba5565b80610b9d81612e92565b915050610a4e565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490916108c09185906109249086611b73565b3360008181526005602052604090205460ff1615610c545760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610822565b6000610c5f83611b7f565b5050506001600160a01b038616600090815260016020526040902054939450610c8d93925084915050611bda565b6001600160a01b038316600090815260016020526040902055600a54610cb39082611bda565b600a55600b54610cc39084611b73565b600b55505050565b3360009081526006602052604090205460ff16610d245760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba1030b71030b236b4b71760491b6044820152606401610822565b610d2e8282611be6565b604080518281526001600160a01b03841660208201527ff3cea5493d790af0133817606f7350a91d7f154ea52eaa79d179d4d231e5010291015b60405180910390a15050565b6000546001600160a01b03163314610d9e5760405162461bcd60e51b815260040161082290612cf1565b6000819050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610ddc57600080fd5b505afa158015610df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e149190612b2a565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015610e5c57600080fd5b505afa158015610e70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e949190612b2a565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b158015610edc57600080fd5b505af1158015610ef0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f149190612b2a565b601380546001600160a01b039283166001600160a01b0319918216179091556012805493909216921691909117905550565b6000546001600160a01b03163314610f705760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600954831115610fe85760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610822565b81611008576000610ff884611b7f565b509496506108c495505050505050565b600061101384611b7f565b509396506108c495505050505050565b6000546001600160a01b0316331461104d5760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b03811660009081526005602052604090205460ff16156110b65760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610822565b6001600160a01b03811660009081526001602052604090205415611110576001600160a01b0381166000908152600160205260409020546110f690610933565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556007805491820181559091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169091179055565b6001600160a01b03811660009081526005602052604081205460ff16156111b657506001600160a01b0381166000908152600260205260409020546109b4565b6001600160a01b0382166000908152600160205260409020546108c490610933565b6000546001600160a01b031633146112025760405162461bcd60e51b815260040161082290612cf1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146112765760405162461bcd60e51b815260040161082290612cf1565b600e819055601054600c5460199190611290908490612e24565b61129a9190612e24565b106112b75760405162461bcd60e51b815260040161082290612d6f565b7f4950287d26ec5559af0c54fb249944ff394c5a9a8911198b787f9ed91e571a82813361088f565b6000546001600160a01b031633146113095760405162461bcd60e51b815260040161082290612cf1565b6010819055600e54600c5460199183916113239190612e24565b61132d9190612e24565b1061134a5760405162461bcd60e51b815260040161082290612d6f565b7f164e7180062d66adde11738ea6f6630316d58c4c94a919a443d812e3580a6937813361088f565b3360009081526006602052604090205460ff166113cb5760405162461bcd60e51b815260206004820152601760248201527621b0b63632b91034b9903737ba1030b71030b236b4b71760491b6044820152606401610822565b6113d58282611d90565b604080518281526001600160a01b03841660208201527ff6554c3a5d28e08c120b5a69c7edbaf52f935bd2596a60b8a18e282cd257cddb9101610d68565b60006108c0338461092485604051806060016040528060258152602001612f04602591393360009081526003602090815260408083206001600160a01b038d1684529091529020549190611b11565b60006108c03384846118b1565b6000546001600160a01b031633146114995760405162461bcd60e51b815260040161082290612cf1565b60138054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906108a890831515815260200190565b6000546001600160a01b031633146115105760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146115655760405162461bcd60e51b815260040161082290612cf1565b600061159768056bc75e2d6310000061159167016345785d8a0000600954611f0e90919063ffffffff16565b90611b60565b90506115b3606461159184600954611f0e90919063ffffffff16565b60148190558111156116225760405162461bcd60e51b815260206004820152603260248201527f43616e27742073657420746865206d61785478416d6f756e74206c65737320746044820152711a185b880c0b8c49481bd9881d151bdd185b60721b6064820152608401610822565b604080518381523360208201527f5fb12d4dbe8b7d94fac601eebd762a9b75fe8bd8c6061e36a208249fa6ab678b9101610d68565b6000546001600160a01b031633146116815760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b03166000908152600460205260409020805460ff19169055565b6000546001600160a01b031633146116cc5760405162461bcd60e51b815260040161082290612cf1565b6001600160a01b0381166117315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610822565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166117ee5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610822565b6001600160a01b03821661184f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610822565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166119155760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610822565b6001600160a01b0382166119775760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610822565b600081116119975760405162461bcd60e51b815260040161082290612d26565b6000546001600160a01b038481169116148015906119c357506000546001600160a01b03838116911614155b15611a2b57601454811115611a2b5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610822565b6000611a3630611176565b90506014548110611a4657506014545b678ac7230489e8000081108015908190611a6a5750601354600160a01b900460ff16155b8015611a8457506013546001600160a01b03868116911614155b8015611a995750601354600160a81b900460ff165b15611ab257678ac7230489e800009150611ab282611f1a565b6001600160a01b03851660009081526004602052604090205460019060ff1680611af457506001600160a01b03851660009081526004602052604090205460ff165b15611afd575060005b611b0986868684611fc1565b505050505050565b60008184841115611b355760405162461bcd60e51b81526004016108229190612c9e565b505050900390565b6000806000611b4a612144565b9092509050611b598282611b60565b9250505090565b6000611b6c8284612e3c565b9392505050565b6000611b6c8284612e24565b6000806000806000806000806000806000611b998c612301565b93509350935093506000806000611bba8f878787611bb5611b3d565b612356565b919f509d509b509599509397509195509350505050919395979092949650565b6000611b6c8284612e7b565b60008111611c065760405162461bcd60e51b815260040161082290612d26565b69021e19e0c9bab240000081600954611c1f9190612e24565b1115611c7e5760405162461bcd60e51b815260206004820152602860248201527f546f74616c20737570706c792063616e6e6f74206578636565642031302053656044820152673c2a34b63634b7b760c11b6064820152608401610822565b6000611c9b600954611591600a5485611f0e90919063ffffffff16565b600954909150611cab9083611b73565b600955600a54611cbb9082611b73565b600a556001600160a01b03831660009081526005602052604090205460ff1615611d1c576001600160a01b038316600090815260026020526040902054611d029083611b73565b6001600160a01b0384166000908152600260205260409020555b6001600160a01b038316600090815260016020526040902054611d3f9082611b73565b6001600160a01b0384166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118a49086815260200190565b60008111611db05760405162461bcd60e51b815260040161082290612d26565b611db982611176565b811115611dff5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610822565b6000611e1c600954611591600a5485611f0e90919063ffffffff16565b600954909150611e2c9083611bda565b600955600a54611e3c9082611bda565b600a556001600160a01b03831660009081526005602052604090205460ff1615611e9d576001600160a01b038316600090815260026020526040902054611e839083611bda565b6001600160a01b0384166000908152600260205260409020555b6001600160a01b038316600090815260016020526040902054611ec09082611bda565b6001600160a01b0384166000818152600160205260408082209390935591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118a49086815260200190565b6000611b6c8284612e5c565b6013805460ff60a01b1916600160a01b1790556000611f3a826002611b60565b90506000611f488383611bda565b905047611f54836123b8565b6000611f604783611bda565b9050611f6c8382612535565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506013805460ff60a01b19169055505050565b80611fce57611fce612619565b6001600160a01b03841660009081526005602052604090205460ff16801561200f57506001600160a01b03831660009081526005602052604090205460ff16155b156120245761201f848484612656565b612122565b6001600160a01b03841660009081526005602052604090205460ff1615801561206557506001600160a01b03831660009081526005602052604090205460ff165b156120755761201f84848461279c565b6001600160a01b03841660009081526005602052604090205460ff161580156120b757506001600160a01b03831660009081526005602052604090205460ff16155b156120c75761201f84848461285b565b6001600160a01b03841660009081526005602052604090205460ff16801561210757506001600160a01b03831660009081526005602052604090205460ff165b156121175761201f8484846128b5565b61212284848461285b565b8061213e5761213e600d54600c55600f54600e55601154601055565b50505050565b600a546009546000918291825b6007548110156122cf5782600160006007848154811061218157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806121fa57508160026000600784815481106121d357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561221157600a54600954945094505050506122fd565b612265600160006007848154811061223957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490611bda565b92506122bb600260006007848154811061228f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390611bda565b9150806122c781612e92565b915050612151565b50600954600a546122df91611b60565b8210156122f757600a546009549350935050506122fd565b90925090505b9091565b60008060008060006123128661293e565b9050600061231f8761295a565b9050600061232c88612976565b905060006123468261234085818d89611bda565b90611bda565b9993985091965094509092505050565b60008080806123658986611f0e565b905060006123738987611f0e565b905060006123818988611f0e565b9050600061238f8989611f0e565b905060006123a38261234085818989611bda565b949d949c50929a509298505050505050505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106123fb57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561244f57600080fd5b505afa158015612463573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124879190612b2a565b816001815181106124a857634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526012546124ce913091168461178c565b60125460405163791ac94760e01b81526001600160a01b039091169063791ac94790612507908590600090869030904290600401612db4565b600060405180830381600087803b15801561252157600080fd5b505af1158015611b09573d6000803e3d6000fd5b60125461254d9030906001600160a01b03168461178c565b6012546001600160a01b031663f305d7198230856000806125766000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b1580156125d957600080fd5b505af11580156125ed573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906126129190612c71565b5050505050565b600c541580156126295750601054155b1561263357612654565b600c8054600d55600e8054600f556010805460115560009283905590829055555b565b600080600080600080600061266a88611b7f565b96509650965096509650965096506126b088600260008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bda90919063ffffffff16565b6001600160a01b038b166000908152600260209081526040808320939093556001905220546126df9088611bda565b6001600160a01b03808c1660009081526001602052604080822093909355908b168152205461270e9087611b73565b6001600160a01b038a1660009081526001602052604090205561273082612992565b61273981612a1b565b6127438584612ada565b886001600160a01b03168a6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161278891815260200190565b60405180910390a350505050505050505050565b60008060008060008060006127b088611b7f565b96509650965096509650965096506127f687600160008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bda90919063ffffffff16565b6001600160a01b03808c16600090815260016020908152604080832094909455918c1681526002909152205461282c9085611b73565b6001600160a01b038a1660009081526002602090815260408083209390935560019052205461270e9087611b73565b600080600080600080600061286f88611b7f565b96509650965096509650965096506126df87600160008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bda90919063ffffffff16565b60008060008060008060006128c988611b7f565b965096509650965096509650965061290f88600260008d6001600160a01b03166001600160a01b0316815260200190815260200160002054611bda90919063ffffffff16565b6001600160a01b038b166000908152600260209081526040808320939093556001905220546127f69088611bda565b60006108c46064611591600c5485611f0e90919063ffffffff16565b60006108c4606461159160105485611f0e90919063ffffffff16565b60006108c46064611591600e5485611f0e90919063ffffffff16565b600061299c611b3d565b905060006129aa8383611f0e565b306000908152600160205260409020549091506129c79082611b73565b3060009081526001602090815260408083209390935560059052205460ff1615612a165730600090815260026020526040902054612a059084611b73565b306000908152600260205260409020555b505050565b6000612a25611b3d565b90506000612a338383611f0e565b6008546001600160a01b0316600090815260016020526040902054909150612a5b9082611b73565b600880546001600160a01b03908116600090815260016020908152604080832095909555925490911681526005909152205460ff1615612a16576008546001600160a01b0316600090815260026020526040902054612aba9084611b73565b6008546001600160a01b0316600090815260026020526040902055505050565b600a54612ae79083611bda565b600a55600b54612af79082611b73565b600b555050565b803580151581146109b457600080fd5b600060208284031215612b1f578081fd5b8135611b6c81612ec3565b600060208284031215612b3b578081fd5b8151611b6c81612ec3565b60008060408385031215612b58578081fd5b8235612b6381612ec3565b91506020830135612b7381612ec3565b809150509250929050565b600080600060608486031215612b92578081fd5b8335612b9d81612ec3565b92506020840135612bad81612ec3565b929592945050506040919091013590565b60008060408385031215612bd0578182fd5b8235612bdb81612ec3565b9150612be960208401612afe565b90509250929050565b60008060408385031215612c04578182fd5b8235612c0f81612ec3565b946020939093013593505050565b600060208284031215612c2e578081fd5b611b6c82612afe565b600060208284031215612c48578081fd5b5035919050565b60008060408385031215612c61578182fd5b82359150612be960208401612afe565b600080600060608486031215612c85578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015612cca57858101830151858201604001528201612cae565b81811115612cdb5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206040820152687468616e207a65726f60b81b606082015260800190565b60208082526025908201527f43616e27742073657420746865205461784665652067726561746572207468616040820152646e2032352560d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015612e035784516001600160a01b031683529383019391830191600101612dde565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612e3757612e37612ead565b500190565b600082612e5757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615612e7657612e76612ead565b500290565b600082821015612e8d57612e8d612ead565b500390565b6000600019821415612ea657612ea6612ead565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114612ed857600080fd5b5056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b18a8f4ebbd68166bd50f5faca632b98592a033894c5d74bd58222d8432b2eb864736f6c63430008030033
Verified Source Code Partial Match
Compiler: v0.8.3+commit.8d00100c
EVM: istanbul
Optimization: Yes (200 runs)
ethMContent.sol 1281 lines
/**
*Submitted for verification at BscScan.com on 2021-07-10
*/
/**
#MContent
5% fee auto add to the liquidity pool to locked forever when selling
1% fee auto distributed to all holders
4% fee auto contributed to Content Creators Fund wallet
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
/**
* @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.
*/
function mint(address from, uint256 value) external;
function burn(address from, uint256 value) external;
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);
}
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
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) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @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) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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.
*/
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards 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).
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* 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.
*/
}
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
/**
* @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) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @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");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
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.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
_owner = 0x992Cd46dfE21377bef5A5178F8b8349de2C37453;
emit OwnershipTransferred(address(0), _owner);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual 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;
}
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract ethMContent 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;
mapping(address => bool) public adminAddresses;
address[] private _excluded;
address private _contentWalletAddress = 0x38A294f69ce947573bea45D94FbC450109FabBb5;
uint256 private _tTotal =1*10**0;
uint256 private _rTotal = 2**128;
uint256 private _tFeeTotal;
string private constant _name = "MContent";
string private constant _symbol = "MCONTENT";
uint8 private constant _decimals = 6;
uint256 public _taxFee = 1;
uint256 private _previousTaxFee = _taxFee;
uint256 public _contentFee = 4;
uint256 private _previousContentFee = _contentFee;
uint256 public _liquidityFee = 5;
uint256 private _previousLiquidityFee = _liquidityFee;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
uint256 public _maxTxAmount = 100000000000000; //Now set to 1% of totalSupply, "50000 * 10**6 * 10**9" would be 0.5% of supply
uint256 private constant numTokensSellToAddToLiquidity = 10000 * 10**6 * 10**9; //set to 0.1% of totalSupply to trigger LP event
event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
event Mint(uint256 amount, address mintAddress);
event Burn(uint256 amount, address burnAddress);
event LiquidityFeePercentUpdated(uint256 liquidityFee , address updatedBy);
event MaxTxPercentUpdated(uint256 maxTxPercent , address updatedBy);
event ContentFeePercentUpdated(uint256 contentFee , address updatedBy);
event TaxFeePercentUpdated(uint256 taxFee, address updatedBy);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor () {
_rOwned[owner()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
// //Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// // set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
adminAddresses[0x992Cd46dfE21377bef5A5178F8b8349de2C37453] = true;
emit Transfer(address(0), owner(), _tTotal);
}
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) external virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function isExcludedFromReward(address account) external view returns (bool) {
return _isExcluded[account];
}
function totalFees() external view returns (uint256) {
return _tFeeTotal;
}
function deliver(uint256 tAmount) external {
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) external 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) external onlyOwner() {
// require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap 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 included");
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 _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tContent) = _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);
_takeContent(tContent);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function excludeFromFee(address account) external onlyOwner {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) external onlyOwner {
_isExcludedFromFee[account] = false;
}
function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
_taxFee = taxFee;
require(_taxFee+_contentFee+_liquidityFee < 25 , "Can't set the TaxFee greater than 25%");
emit TaxFeePercentUpdated(taxFee , _msgSender());
}
function setContentFeePercent(uint256 contentFee) external onlyOwner() {
_contentFee = contentFee;
require(_taxFee+_contentFee+_liquidityFee < 25 , "Can't set the TaxFee greater than 25%");
emit ContentFeePercentUpdated(contentFee ,_msgSender());
}
function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
_liquidityFee = liquidityFee;
require(_taxFee+_contentFee+_liquidityFee < 25 , "Can't set the TaxFee greater than 25%");
emit LiquidityFeePercentUpdated(liquidityFee ,_msgSender());
}
function setMaxTxPercent(uint256 maxTxPercent) external onlyOwner() {
uint256 _minTxAmount = (_tTotal.mul(100000000000000000)).div(100000000000000000000);
_maxTxAmount = _tTotal.mul(maxTxPercent).div(
10**2
);
require(_maxTxAmount >= _minTxAmount,"Can't set the maxTxAmount less than 0.1% of tTotal");
emit MaxTxPercentUpdated(maxTxPercent ,_msgSender());
}
function setSwapAndLiquifyEnabled(bool _enabled) external onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
//to recieve ETH from uniswapV2Router when swaping
receive() external payable {}
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) {
(uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity, uint256 tContent) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, tContent, _getRate());
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity, tContent);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256) {
uint256 tFee = calculateTaxFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tContent = calculateContentFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity).sub(tContent);
return (tTransferAmount, tFee, tLiquidity, tContent);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 tContent, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rContent = tContent.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity).sub(rContent);
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 _takeContent(uint256 tContent) private {
uint256 currentRate = _getRate();
uint256 rContent = tContent.mul(currentRate);
_rOwned[_contentWalletAddress] = _rOwned[_contentWalletAddress].add(rContent);
if(_isExcluded[_contentWalletAddress])
_tOwned[_contentWalletAddress] = _tOwned[_contentWalletAddress].add(tContent);
}
function calculateTaxFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_taxFee).div(
10**2
);
}
function calculateContentFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_contentFee).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;
_previousContentFee = _contentFee;
_previousLiquidityFee = _liquidityFee;
_taxFee = 0;
_contentFee = 0;
_liquidityFee = 0;
}
function restoreAllFee() private {
_taxFee = _previousTaxFee;
_contentFee = _previousContentFee;
_liquidityFee = _previousLiquidityFee;
}
function isExcludedFromFee(address account) external view returns(bool) {
return _isExcludedFromFee[account];
}
function _approve(address owner, address spender, uint256 amount) private {
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 _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(from != owner() && to != owner())
require(amount <= _maxTxAmount, "Transfer amount exceeds the 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 uniswap pair.
uint256 contractTokenBalance = balanceOf(address(this));
if(contractTokenBalance >= _maxTxAmount)
{
contractTokenBalance = _maxTxAmount;
}
bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
if (
overMinTokenBalance &&
!inSwapAndLiquify &&
from != uniswapV2Pair &&
swapAndLiquifyEnabled
) {
contractTokenBalance = numTokensSellToAddToLiquidity;
//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);
}
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
// split the contract balance into halves
uint256 half = contractTokenBalance.div(2);
uint256 otherHalf = contractTokenBalance.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); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered
// how much ETH did we just swap into?
uint256 newBalance = address(this).balance.sub(initialBalance);
// add liquidity to uniswap
addLiquidity(otherHalf, newBalance);
emit SwapAndLiquify(half, newBalance, otherHalf);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // 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(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.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, uint256 tContent) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeContent(tContent);
_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, uint256 tContent) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeContent(tContent);
_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, uint256 tContent) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_takeContent(tContent);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
//Swaps Pancake router addresses
function setRouterAddress(address newRouter) external onlyOwner() {
IUniswapV2Router02 _newPancakeRouter = IUniswapV2Router02(newRouter);
uniswapV2Pair = IUniswapV2Factory(_newPancakeRouter.factory()).createPair(address(this), _newPancakeRouter.WETH());
uniswapV2Router = _newPancakeRouter;
}
function adminConfig(address adminAddress , bool isAdmin) external onlyOwner {
adminAddresses[adminAddress] = isAdmin;
}
modifier onlyAdmin() {
require(adminAddresses[_msgSender()], "Caller is not an admin.");
_;
}
function _mint(address recipient, uint256 amount) private {
require(amount > 0, "Transfer amount must be greater than zero");
require(_tTotal + amount <= 10000000 * 10**6 * 10**9, "Total supply cannot exceed 10 SexTillion");
uint256 _rTransferAmount = (amount.mul(_rTotal)).div(_tTotal);
_tTotal = _tTotal.add(amount);
_rTotal = _rTotal.add(_rTransferAmount);
if (_isExcluded[recipient]) {
_tOwned[recipient] = _tOwned[recipient].add(amount);
}
_rOwned[recipient] = _rOwned[recipient].add(_rTransferAmount);
emit Transfer(address(0), recipient, amount);
}
function _burn(address senderAddress, uint256 amount) private {
require(amount > 0, "Transfer amount must be greater than zero");
require(amount <= balanceOf(senderAddress), "Insufficient balance");
uint256 _rTransferAmount = (amount.mul(_rTotal)).div(_tTotal);
_tTotal = _tTotal.sub(amount);
_rTotal = _rTotal.sub(_rTransferAmount);
if (_isExcluded[senderAddress]) {
_tOwned[senderAddress] = _tOwned[senderAddress].sub(amount);
}
_rOwned[senderAddress] = _rOwned[senderAddress].sub(_rTransferAmount);
emit Transfer(senderAddress, address(0), amount);
}
function mint(address recipient, uint256 value)
external
override
onlyAdmin
{
_mint(recipient, value);
emit Mint(value, recipient);
}
function burn(address fromAddress, uint256 value) external override onlyAdmin {
_burn(fromAddres...
// [truncated — 50060 bytes total]
Read Contract
_contentFee 0x969c5f76 → uint256
_liquidityFee 0x6bc87c3a → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_taxFee 0x3b124fe7 → uint256
adminAddresses 0x4ed38faf → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
adminConfig 0xc9becf12
address adminAddress
bool isAdmin
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x9dc29fac
address fromAddress
uint256 value
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
mint 0x40c10f19
address recipient
uint256 value
renounceOwnership 0x715018a6
No parameters
setContentFeePercent 0x716b9abe
uint256 contentFee
setLiquidityFeePercent 0x8ee88c53
uint256 liquidityFee
setMaxTxPercent 0xd543dbeb
uint256 maxTxPercent
setRouterAddress 0x41cb87fc
address newRouter
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
Recent Transactions
No transactions found for this address