Address Contract Verified
Address
0x2bff8ddbc1F13F6F976a8f4d7feE677272fB6e0e
Balance
0 ETH
Nonce
1
Code Size
11505 bytes
Creator
0x8c3B1394...84b2 at tx 0x6cf45c9c...67008a
Indexed Transactions
0
Contract Bytecode
11505 bytes
0x6080604052600436106102815760003560e01c806395d89b411161014f578063cb963728116100c1578063e8a3d4851161007a578063e8a3d48514610799578063f0f6de00146107ae578063f2fde38b146107ce578063f5648a4f146107ee578063f8b45b0514610803578063fe575a871461081957600080fd5b8063cb963728146106ed578063d257b34f1461070d578063d85ba0631461072d578063dd62ed3e14610743578063e01af92c14610763578063e2f456051461078357600080fd5b8063aacebbe311610113578063aacebbe31461063d578063adee28ff1461065d578063bbc0c7421461067d578063c024666814610697578063c8c8ebe4146106b7578063c997eb8d146106cd57600080fd5b806395d89b41146105b357806396188399146105c8578063a457c2d7146105e8578063a598479214610608578063a9059cbb1461061d57600080fd5b80634fbee193116101f357806375f0a874116101ac57806375f0a87414610500578063782c4e99146105205780638a4fd42a146105405780638a8c523c146105605780638da5cb5b14610575578063938e3d7b1461059357600080fd5b80634fbee193146104275780636a486a8e146104605780636ddd17131461047657806370a0823114610495578063715018a6146104cb5780637571336a146104e057600080fd5b806327c8f8351161024557806327c8f83514610373578063313ce5671461038957806339509351146103a557806342966c68146103c5578063469e4f62146103e757806349bd5a5e1461040757600080fd5b806306fdde031461028d578063095ea7b3146102b85780631694505e146102e857806318160ddd1461033457806323b872dd1461035357600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102a2610852565b6040516102af9190612651565b60405180910390f35b3480156102c457600080fd5b506102d86102d3366004612679565b6108e4565b60405190151581526020016102af565b3480156102f457600080fd5b5061031c7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016102af565b34801561034057600080fd5b506002545b6040519081526020016102af565b34801561035f57600080fd5b506102d861036e3660046126a5565b6108fe565b34801561037f57600080fd5b5061031c61dead81565b34801561039557600080fd5b50604051601281526020016102af565b3480156103b157600080fd5b506102d86103c0366004612679565b610922565b3480156103d157600080fd5b506103e56103e03660046126e6565b610944565b005b3480156103f357600080fd5b50600a5461031c906001600160a01b031681565b34801561041357600080fd5b5060075461031c906001600160a01b031681565b34801561043357600080fd5b506102d86104423660046126ff565b6001600160a01b031660009081526015602052604090205460ff1690565b34801561046c57600080fd5b5061034560115481565b34801561048257600080fd5b50600e546102d890610100900460ff1681565b3480156104a157600080fd5b506103456104b03660046126ff565b6001600160a01b031660009081526020819052604090205490565b3480156104d757600080fd5b506103e5610951565b3480156104ec57600080fd5b506103e56104fb36600461272a565b610965565b34801561050c57600080fd5b5060085461031c906001600160a01b031681565b34801561052c57600080fd5b5060095461031c906001600160a01b031681565b34801561054c57600080fd5b506103e561055b366004612763565b610998565b34801561056c57600080fd5b506103e56109ae565b34801561058157600080fd5b506005546001600160a01b031661031c565b34801561059f57600080fd5b506103e56105ae3660046127a5565b610dce565b3480156105bf57600080fd5b506102a2610e1c565b3480156105d457600080fd5b506103e56105e3366004612856565b610e2b565b3480156105f457600080fd5b506102d8610603366004612679565b610f40565b34801561061457600080fd5b506103e5610fbb565b34801561062957600080fd5b506102d8610638366004612679565b61101c565b34801561064957600080fd5b506103e56106583660046126ff565b61102a565b34801561066957600080fd5b506103e56106783660046126ff565b6110a9565b34801561068957600080fd5b50600e546102d89060ff1681565b3480156106a357600080fd5b506103e56106b236600461272a565b611128565b3480156106c357600080fd5b50610345600b5481565b3480156106d957600080fd5b506103e56106e8366004612878565b61118f565b3480156106f957600080fd5b506103e56107083660046126ff565b6112f1565b34801561071957600080fd5b506102d86107283660046126e6565b611481565b34801561073957600080fd5b5061034560105481565b34801561074f57600080fd5b5061034561075e3660046128fe565b611494565b34801561076f57600080fd5b506103e561077e36600461292c565b6114bf565b34801561078f57600080fd5b50610345600c5481565b3480156107a557600080fd5b506102a26114e1565b3480156107ba57600080fd5b506103e56107c93660046126ff565b61156f565b3480156107da57600080fd5b506103e56107e93660046126ff565b6115ee565b3480156107fa57600080fd5b506103e5611664565b34801561080f57600080fd5b50610345600d5481565b34801561082557600080fd5b506102d86108343660046126ff565b6001600160a01b03166000908152600f602052604090205460ff1690565b60606003805461086190612949565b80601f016020809104026020016040519081016040528092919081815260200182805461088d90612949565b80156108da5780601f106108af576101008083540402835291602001916108da565b820191906000526020600020905b8154815290600101906020018083116108bd57829003601f168201915b5050505050905090565b6000336108f28185856116ae565b60019150505b92915050565b60003361090c8582856117d2565b610917858585611846565b506001949350505050565b6000336108f28185856109358383611494565b61093f9190612999565b6116ae565b61094e3382611ede565b50565b61095961202c565b6109636000612086565b565b61096d61202c565b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b6109a061202c565b601292909255601355601455565b6109b661202c565b600e5460ff1615610a085760405162461bcd60e51b81526020600482015260176024820152762a3930b234b7339030b63932b0b23c9030b1ba34bb329760491b60448201526064015b60405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a91906129ac565b6001600160a01b031663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610af7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1b91906129ac565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8c91906129ac565b600780546001600160a01b0319166001600160a01b03929092169182179055610bb99030906000196116ae565b60075460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116600483015260001960248301529091169063095ea7b3906044016020604051808303816000875af1158015610c2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5191906129c9565b50600754610c69906001600160a01b031660016120d8565b600754610c80906001600160a01b03166001610965565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7194730610cd0306001600160a01b031660009081526020819052604090205490565b600080610ce56005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610d4d573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d7291906129e6565b505050612710610d8160025490565b610d8c906019612a14565b610d969190612a2b565b600b55612710610da560025490565b610db0906019612a14565b610dba9190612a2b565b600d55600e805461ffff1916610101179055565b610dd661212c565b610e135760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016109ff565b61094e81612159565b60606004805461086190612949565b610e3361202c565b6103e8610e3f60025490565b610e4a906005612a14565b610e549190612a2b565b821015610eb45760405162461bcd60e51b815260206004820152602860248201527f45524332303a2043616e6e6f7420736574206d617854786e206c6f776572207460448201526768616e20302e352560c01b60648201526084016109ff565b6103e8610ec060025490565b610ecb906005612a14565b610ed59190612a2b565b811015610f385760405162461bcd60e51b815260206004820152602b60248201527f45524332303a2043616e6e6f7420736574206d617857616c6c6574206c6f776560448201526a72207468616e20302e352560a81b60648201526084016109ff565b600d55600b55565b60003381610f4e8286611494565b905083811015610fae5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016109ff565b61091782868684036116ae565b610fc361202c565b600e5460ff16156110105760405162461bcd60e51b81526020600482015260176024820152762a3930b234b7339030b63932b0b23c9030b1ba34bb329760491b60448201526064016109ff565b612710610d8160025490565b6000336108f2818585611846565b61103261202c565b6001600160a01b0381166110585760405162461bcd60e51b81526004016109ff90612a4d565b600880546001600160a01b038381166001600160a01b03198316811790935560405191169182917fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567490600090a35050565b6110b161202c565b6001600160a01b0381166110d75760405162461bcd60e51b81526004016109ff90612a4d565b600980546001600160a01b038381166001600160a01b03198316811790935560405191169182917fc9f2d63eee8632b33d7a7db5252eb29036e81ee4fbe29260febe0c49ffb8a7bb90600090a35050565b61113061202c565b6001600160a01b038216600081815260156020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b61119761202c565b60005b828110156112eb576007546001600160a01b03168484838181106111c0576111c0612a77565b90506020020160208101906111d591906126ff565b6001600160a01b03161415801561124457507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031684848381811061122357611223612a77565b905060200201602081019061123891906126ff565b6001600160a01b031614155b801561127f57503084848381811061125e5761125e612a77565b905060200201602081019061127391906126ff565b6001600160a01b031614155b156112d95781600f600086868581811061129b5761129b612a77565b90506020020160208101906112b091906126ff565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555b806112e381612a8d565b91505061119a565b50505050565b6112f961202c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611340573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113649190612aa6565b1161139d5760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b60448201526064016109ff565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156113e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114089190612aa6565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147c91906129c9565b505050565b600061148b61202c565b50600c55600190565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6114c761202c565b600e80549115156101000261ff0019909216919091179055565b600680546114ee90612949565b80601f016020809104026020016040519081016040528092919081815260200182805461151a90612949565b80156115675780601f1061153c57610100808354040283529160200191611567565b820191906000526020600020905b81548152906001019060200180831161154a57829003601f168201915b505050505081565b61157761202c565b6001600160a01b03811661159d5760405162461bcd60e51b81526004016109ff90612a4d565b600a80546001600160a01b038381166001600160a01b03198316811790935560405191169182917f57f8a303048ec858afb57775e14c50d4dfe0353613de76ec3d403c150242b83190600090a35050565b6115f661202c565b6001600160a01b03811661165b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ff565b61094e81612086565b61166c61202c565b604051600090339047908381818185875af1925050503d80600081146112eb576040519150601f19603f3d011682016040523d82523d6000602084013e6112eb565b6001600160a01b0383166117105760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109ff565b6001600160a01b0382166117715760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109ff565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006117de8484611494565b905060001981146112eb57818110156118395760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109ff565b6112eb84848484036116ae565b6001600160a01b03831661186c5760405162461bcd60e51b81526004016109ff90612abf565b6001600160a01b0382166118925760405162461bcd60e51b81526004016109ff90612b04565b6001600160a01b0383166000908152600f602052604090205460ff16156118cb5760405162461bcd60e51b81526004016109ff90612b47565b336000908152600f602052604090205460ff16156118fb5760405162461bcd60e51b81526004016109ff90612b47565b326000908152600f602052604090205460ff161561192b5760405162461bcd60e51b81526004016109ff90612b47565b8060000361193f5761147c83836000612235565b6005546001600160a01b0384811691161480159061196b57506005546001600160a01b03838116911614155b801561197f57506001600160a01b03821615155b801561199657506001600160a01b03821661dead14155b80156119ac5750600754600160a01b900460ff16155b15611ccf57600e5460ff16611a46576001600160a01b03831660009081526015602052604090205460ff16806119fa57506001600160a01b03821660009081526015602052604090205460ff165b611a465760405162461bcd60e51b815260206004820152601d60248201527f45524332303a2054726164696e67206973206e6f74206163746976652e00000060448201526064016109ff565b6001600160a01b03831660009081526017602052604090205460ff168015611a8757506001600160a01b03821660009081526016602052604090205460ff16155b15611b7d57600b54811115611b045760405162461bcd60e51b815260206004820152603c60248201527f45524332303a20427579207472616e7366657220616d6f756e7420657863656560448201527f647320746865206d61785472616e73616374696f6e416d6f756e742e0000000060648201526084016109ff565b600d546001600160a01b038316600090815260208190526040902054611b2a9083612999565b1115611b785760405162461bcd60e51b815260206004820152601a60248201527f45524332303a204d61782077616c6c657420657863656564656400000000000060448201526064016109ff565b611ccf565b6001600160a01b03821660009081526017602052604090205460ff168015611bbe57506001600160a01b03831660009081526016602052604090205460ff16155b15611c3b57600b54811115611b785760405162461bcd60e51b815260206004820152603d60248201527f45524332303a2053656c6c207472616e7366657220616d6f756e74206578636560448201527f65647320746865206d61785472616e73616374696f6e416d6f756e742e00000060648201526084016109ff565b6001600160a01b03821660009081526016602052604090205460ff16611ccf57600d546001600160a01b038316600090815260208190526040902054611c819083612999565b1115611ccf5760405162461bcd60e51b815260206004820152601a60248201527f45524332303a204d61782077616c6c657420657863656564656400000000000060448201526064016109ff565b600c5430600090815260208190526040902054108015908190611cf95750600e54610100900460ff165b8015611d0f5750600754600160a01b900460ff16155b8015611d3457506001600160a01b03841660009081526017602052604090205460ff16155b8015611d5957506001600160a01b03841660009081526015602052604090205460ff16155b8015611d7e57506001600160a01b03831660009081526015602052604090205460ff16155b15611dac576007805460ff60a01b1916600160a01b179055611d9e612389565b6007805460ff60a01b191690555b6007546001600160a01b03851660009081526015602052604090205460ff600160a01b909204821615911680611dfa57506001600160a01b03841660009081526015602052604090205460ff165b15611e03575060005b60008115611ecb576001600160a01b03851660009081526017602052604090205460ff168015611e3557506000601154115b15611e6157611e5a6064611e54601154876125ec90919063ffffffff16565b906125ff565b9050611ead565b6001600160a01b03861660009081526017602052604090205460ff168015611e8b57506000601054115b15611ead57611eaa6064611e54601054876125ec90919063ffffffff16565b90505b8015611ebe57611ebe863083612235565b611ec88185612b74565b93505b611ed6868686612235565b505050505050565b6001600160a01b038216611f3e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109ff565b6001600160a01b03821660009081526020819052604090205481811015611fb25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109ff565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611fe1908490612b74565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6005546001600160a01b031633146109635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ff565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216600081815260176020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b60006121406005546001600160a01b031690565b6001600160a01b0316336001600160a01b031614905090565b60006006805461216890612949565b80601f016020809104026020016040519081016040528092919081815260200182805461219490612949565b80156121e15780601f106121b6576101008083540402835291602001916121e1565b820191906000526020600020905b8154815290600101906020018083116121c457829003601f168201915b5050505050905081600690816121f79190612bcd565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a168183604051612229929190612c8d565b60405180910390a15050565b6001600160a01b03831661225b5760405162461bcd60e51b81526004016109ff90612abf565b6001600160a01b0382166122815760405162461bcd60e51b81526004016109ff90612b04565b6001600160a01b038316600090815260208190526040902054818110156122f95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016109ff565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612330908490612999565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161237c91815260200190565b60405180910390a36112eb565b6040516370a0823160e01b815230600482018190529060009082906370a0823190602401602060405180830381865afa1580156123ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ee9190612aa6565b90506000811161242c5760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b60448201526064016109ff565b601254600090612447906124418460646125ff565b906125ec565b905060006124656013546124416064866125ff90919063ffffffff16565b905060006124836014546124416064876125ff90919063ffffffff16565b60095460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925086169063a9059cbb906044016020604051808303816000875af11580156124d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124fc91906129c9565b50600a5460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018590529086169063a9059cbb906044016020604051808303816000875af1158015612550573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061257491906129c9565b5060085460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529086169063a9059cbb906044016020604051808303816000875af11580156125c8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed691906129c9565b60006125f88284612a14565b9392505050565b60006125f88284612a2b565b6000815180845260005b8181101561263157602081850181015186830182015201612615565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006125f8602083018461260b565b6001600160a01b038116811461094e57600080fd5b6000806040838503121561268c57600080fd5b823561269781612664565b946020939093013593505050565b6000806000606084860312156126ba57600080fd5b83356126c581612664565b925060208401356126d581612664565b929592945050506040919091013590565b6000602082840312156126f857600080fd5b5035919050565b60006020828403121561271157600080fd5b81356125f881612664565b801515811461094e57600080fd5b6000806040838503121561273d57600080fd5b823561274881612664565b915060208301356127588161271c565b809150509250929050565b60008060006060848603121561277857600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156127b757600080fd5b813567ffffffffffffffff808211156127cf57600080fd5b818401915084601f8301126127e357600080fd5b8135818111156127f5576127f561278f565b604051601f8201601f19908116603f0116810190838211818310171561281d5761281d61278f565b8160405282815287602084870101111561283657600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806040838503121561286957600080fd5b50508035926020909101359150565b60008060006040848603121561288d57600080fd5b833567ffffffffffffffff808211156128a557600080fd5b818601915086601f8301126128b957600080fd5b8135818111156128c857600080fd5b8760208260051b85010111156128dd57600080fd5b602092830195509350508401356128f38161271c565b809150509250925092565b6000806040838503121561291157600080fd5b823561291c81612664565b9150602083013561275881612664565b60006020828403121561293e57600080fd5b81356125f88161271c565b600181811c9082168061295d57607f821691505b60208210810361297d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156108f8576108f8612983565b6000602082840312156129be57600080fd5b81516125f881612664565b6000602082840312156129db57600080fd5b81516125f88161271c565b6000806000606084860312156129fb57600080fd5b8351925060208401519150604084015190509250925092565b80820281158282048414176108f8576108f8612983565b600082612a4857634e487b7160e01b600052601260045260246000fd5b500490565b60208082526010908201526f045524332303a204164647265737320360841b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201612a9f57612a9f612983565b5060010190565b600060208284031215612ab857600080fd5b5051919050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b602080825260139082015272115490cc8c0e88189bdd0819195d1958dd1959606a1b604082015260600190565b818103818111156108f8576108f8612983565b601f82111561147c57600081815260208120601f850160051c81016020861015612bae5750805b601f850160051c820191505b81811015611ed657828155600101612bba565b815167ffffffffffffffff811115612be757612be761278f565b612bfb81612bf58454612949565b84612b87565b602080601f831160018114612c305760008415612c185750858301515b600019600386901b1c1916600185901b178555611ed6565b600085815260208120601f198616915b82811015612c5f57888601518255948401946001909101908401612c40565b5085821015612c7d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000612ca0604083018561260b565b8281036020840152612cb2818561260b565b9594505050505056fea264697066735822122059c9a5d6b151a94bd49a1cf9ccf09c2b3a5a6bb78ce5d51d18bb38c225e17a5464736f6c63430008110033
Verified Source Code Full Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: Yes (200 runs)
AuraToken.sol 415 lines
pragma solidity ^0.8.17;
interface IUniswapV2Router02 {
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function WETH() external view returns (address);
function factory() external view returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
// Add other functions as needed
}
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external view returns (address pair);
function createPair(address tokenA, address tokenB) external returns (address pair);
// Add other functions as needed
}
// ▄▄▄ █ ██ ██▀███ ▄▄▄ ▄████▄ ▒█████ ██▓ ███▄ █
// ▒████▄ ██ ▓██▒▓██ ▒ ██▒▒████▄ ▒██▀ ▀█ ▒██▒ ██▒▓██▒ ██ ▀█ █
// ▒██ ▀█▄ ▓██ ▒██░▓██ ░▄█ ▒▒██ ▀█▄ ▒▓█ ▄ ▒██░ ██▒▒██▒▓██ ▀█ ██▒
// ░██▄▄▄▄██ ▓▓█ ░██░▒██▀▀█▄ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▒██ ██░░██░▓██▒ ▐▌██▒
// ▓█ ▓██▒▒▒█████▓ ░██▓ ▒██▒ ▓█ ▓██▒ ▒ ▓███▀ ░░ ████▓▒░░██░▒██░ ▓██░
// ▒▒ ▓▒█░░▒▓▒ ▒ ▒ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░ ░ ░▒ ▒ ░░ ▒░▒░▒░ ░▓ ░ ▒░ ▒ ▒
// ▒ ▒▒ ░░░▒░ ░ ░ ░▒ ░ ▒░ ▒ ▒▒ ░ ░ ▒ ░ ▒ ▒░ ▒ ░░ ░░ ░ ▒░
// ░ ▒ ░░░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ▒ ▒ ░ ░ ░ ░
// ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
// ░
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@thirdweb-dev/contracts/extension/ContractMetadata.sol";
contract AURA is ERC20, Ownable, ContractMetadata {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public revShareWallet;
address public auraAccountWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => bool) blacklisted;
uint256 public buyTotalFees;
uint256 public sellTotalFees;
uint256 accountSharePerc;
uint256 marketingSharePerc;
uint256 revSharePerc;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event revShareWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event auraAccountWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
constructor() ERC20("$AURA", "$AURA") Ownable() {
uint256 totalSupply = 8_000_000 ether;
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
maxTransactionAmount = totalSupply;
maxWallet = totalSupply;
swapTokensAtAmount = (totalSupply * 5) / 10000;
marketingWallet = address(0xc37683a890398B7e61b895Cf17e7A61842F46D05);
revShareWallet = address(0x7d5A404A2472964420983Ec4B348749575142D2b);
auraAccountWallet = address(0x9B265957bCC2E275d6b3657E9F5caC1a5C72024c);
accountSharePerc = 40;
marketingSharePerc = 40;
revSharePerc = 20;
buyTotalFees = 5;
sellTotalFees = 5;
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(deadAddress, true);
excludeFromFees(marketingWallet, true);
excludeFromFees(revShareWallet, true);
excludeFromFees(auraAccountWallet, true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(deadAddress, true);
excludeFromMaxTransaction(address(uniswapV2Router), true);
excludeFromMaxTransaction(marketingWallet, true);
excludeFromMaxTransaction(revShareWallet, true);
excludeFromMaxTransaction(auraAccountWallet, true);
_mint(owner(), 8_000_000 ether);
}
receive() external payable {}
function burn(uint256 amount) external {
_burn(msg.sender, amount);
}
function enableTrading() external onlyOwner
{
require(!tradingActive, "Trading already active.");
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_approve(address(this), address(uniswapV2Pair), type(uint256).max);
IERC20(uniswapV2Pair).approve(
address(uniswapV2Router),
type(uint256).max
);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(uniswapV2Pair), true);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
maxTransactionAmount = (totalSupply() * 25) / 10000;
maxWallet = (totalSupply() * 25) / 10000;
tradingActive = true;
swapEnabled = true;
}
//Fallback in case we want to create the LP manually
function noLiqEnableTrading() external onlyOwner
{
require(!tradingActive, "Trading already active.");
maxTransactionAmount = (totalSupply() * 25) / 10000;
maxWallet = (totalSupply() * 25) / 10000;
tradingActive = true;
swapEnabled = true;
}
function _canSetContractURI() internal view virtual override returns (bool) {
// You can specify the logic for who can set the contract's metadata here
// For example, you can restrict it to the contract owner
return msg.sender == owner();
}
//Emergency function in case we want to stop the automatic splitter
function setSwapEnabled(bool _swapEnabled) external onlyOwner
{
swapEnabled = _swapEnabled;
}
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool)
{
swapTokensAtAmount = newAmount;
return true;
}
function updateSplitPercentages(uint256 _accountSharePerc,uint256 _marketingSharePerc,uint256 _revSharePerc) external onlyOwner
{
accountSharePerc = _accountSharePerc;
marketingSharePerc = _marketingSharePerc;
revSharePerc = _revSharePerc;
}
function updateMaxWalletAndTxnAmount(uint256 newTxnNum, uint256 newMaxWalletNum) external onlyOwner
{
require(
newTxnNum >= ((totalSupply() * 5) / 1000),
"ERC20: Cannot set maxTxn lower than 0.5%"
);
require(
newMaxWalletNum >= ((totalSupply() * 5) / 1000),
"ERC20: Cannot set maxWallet lower than 0.5%"
);
maxWallet = newMaxWalletNum;
maxTransactionAmount = newTxnNum;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateMarketingWallet(address _marketingWallet) external onlyOwner
{
require(_marketingWallet != address(0), "ERC20: Address 0");
address oldWallet = marketingWallet;
marketingWallet = _marketingWallet;
emit marketingWalletUpdated(marketingWallet, oldWallet);
}
function updateRevShareWallet(address _revShareWallet) external onlyOwner
{
require(_revShareWallet != address(0), "ERC20: Address 0");
address oldWallet = revShareWallet;
revShareWallet = _revShareWallet;
emit revShareWalletUpdated(revShareWallet, oldWallet);
}
function updateAuraAccountWallet(address _auraAccountWallet) external onlyOwner
{
require(_auraAccountWallet != address(0), "ERC20: Address 0");
address oldWallet = auraAccountWallet;
auraAccountWallet = _auraAccountWallet;
emit auraAccountWalletUpdated(auraAccountWallet, oldWallet);
}
function excludeFromFees(address account, bool excluded) public onlyOwner
{
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function blacklist(address[] calldata accounts, bool value) public onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++)
{
if (
(accounts[i] != uniswapV2Pair) &&
(accounts[i] != address(uniswapV2Router)) &&
(accounts[i] != address(this))
) blacklisted[accounts[i]] = value;
}
}
function withdrawStuckETH() public onlyOwner
{
bool success;
(success, ) = address(msg.sender).call{value: address(this).balance}(
""
);
}
function withdrawStuckTokens(address tkn) public onlyOwner
{
require(IERC20(tkn).balanceOf(address(this)) > 0, "No tokens");
uint256 amount = IERC20(tkn).balanceOf(address(this));
IERC20(tkn).transfer(msg.sender, amount);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function isBlacklisted(address account) public view returns (bool) {
return blacklisted[account];
}
function _transfer(address from, address to, uint256 amount) internal override
{
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!blacklisted[from], "ERC20: bot detected");
require(!blacklisted[msg.sender], "ERC20: bot detected");
require(!blacklisted[tx.origin], "ERC20: bot detected");
if (amount == 0)
{
super._transfer(from, to, 0);
return;
}
if (from != owner() && to != owner() && to != address(0) && to != deadAddress && !swapping)
{
if (!tradingActive)
{
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "ERC20: Trading is not active.");
}
//BUY Transaction
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to])
{
require(
amount <= maxTransactionAmount,
"ERC20: Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"ERC20: Max wallet exceeded"
);
}
//SELL Transaction
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from])
{
require(amount <= maxTransactionAmount, "ERC20: Sell transfer amount exceeds the maxTransactionAmount.");
}
else if (!_isExcludedMaxTransactionAmount[to])
{
require(amount + balanceOf(to) <= maxWallet, "ERC20: Max wallet exceeded");
}
}
bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount;
if (canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to])
{
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee)
{
// SELL Transaction
if (automatedMarketMakerPairs[to] && sellTotalFees > 0)
{
fees = amount.mul(sellTotalFees).div(100);
}
// BUY Transaction
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapBack() private
{
IERC20 erc20Token = IERC20(this);
uint256 erc20Balance = erc20Token.balanceOf(address(this));
require(erc20Balance > 0, "No tokens");
uint256 tokensForAuraAccount = erc20Balance.div(100).mul(accountSharePerc);
uint256 tokensForMarketing = erc20Balance.div(100).mul(marketingSharePerc);
uint256 tokensForRevShare = erc20Balance.div(100).mul(revSharePerc);
erc20Token.transfer(revShareWallet, tokensForRevShare);
erc20Token.transfer(auraAccountWallet, tokensForAuraAccount);
erc20Token.transfer(marketingWallet, tokensForMarketing);
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @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() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
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 {
_transferOwnership(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");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ERC20.sol 383 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
IERC20.sol 82 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
uint256 amount
) external returns (bool);
}
SafeMath.sol 227 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// 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 generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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 (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @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.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @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. 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.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
ContractMetadata.sol 45 lines
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/// @author thirdweb
import "./interface/IContractMetadata.sol";
/**
* @title Contract Metadata
* @notice Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
* for you contract.
* Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
*/
abstract contract ContractMetadata is IContractMetadata {
/// @notice Returns the contract metadata URI.
string public override contractURI;
/**
* @notice Lets a contract admin set the URI for contract-level metadata.
* @dev Caller should be authorized to setup contractURI, e.g. contract admin.
* See {_canSetContractURI}.
* Emits {ContractURIUpdated Event}.
*
* @param _uri keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
*/
function setContractURI(string memory _uri) external override {
if (!_canSetContractURI()) {
revert("Not authorized");
}
_setupContractURI(_uri);
}
/// @dev Lets a contract admin set the URI for contract-level metadata.
function _setupContractURI(string memory _uri) internal {
string memory prevURI = contractURI;
contractURI = _uri;
emit ContractURIUpdated(prevURI, _uri);
}
/// @dev Returns whether contract metadata can be set in the given execution context.
function _canSetContractURI() internal view virtual returns (bool);
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
IContractMetadata.sol 25 lines
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/// @author thirdweb
/**
* Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
* for you contract.
*
* Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
*/
interface IContractMetadata {
/// @dev Returns the metadata URI of the contract.
function contractURI() external view returns (string memory);
/**
* @dev Sets contract URI for the storefront-level metadata of the contract.
* Only module admin can call this function.
*/
function setContractURI(string calldata _uri) external;
/// @dev Emitted when the contract URI is updated.
event ContractURIUpdated(string prevURI, string newURI);
}
Read Contract
allowance 0xdd62ed3e → uint256
auraAccountWallet 0x469e4f62 → address
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
contractURI 0xe8a3d485 → string
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
revShareWallet 0x782c4e99 → address
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklist 0xc997eb8d
address[] accounts
bool value
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
noLiqEnableTrading 0xa5984792
No parameters
renounceOwnership 0x715018a6
No parameters
setContractURI 0x938e3d7b
string _uri
setSwapEnabled 0xe01af92c
bool _swapEnabled
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateAuraAccountWallet 0xf0f6de00
address _auraAccountWallet
updateMarketingWallet 0xaacebbe3
address _marketingWallet
updateMaxWalletAndTxnAmount 0x96188399
uint256 newTxnNum
uint256 newMaxWalletNum
updateRevShareWallet 0xadee28ff
address _revShareWallet
updateSplitPercentages 0x8a4fd42a
uint256 _accountSharePerc
uint256 _marketingSharePerc
uint256 _revSharePerc
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
withdrawStuckETH 0xf5648a4f
No parameters
withdrawStuckTokens 0xcb963728
address tkn
Recent Transactions
No transactions found for this address