Address Contract Partially Verified
Address
0x79Fe521199697c9cF94d16d5D49277c933CcC38B
Balance
0 ETH
Nonce
1
Code Size
11761 bytes
Creator
0xA263c353...5548 at tx 0x7bb78198...f61432
Indexed Transactions
0
Contract Bytecode
11761 bytes
0x6080604052600436106102b25760003560e01c80637571336a11610175578063bbc0c742116100dc578063dd62ed3e11610095578063ee40166e1161006f578063ee40166e1461082a578063f2fde38b14610840578063f8b45b0514610860578063fb002c971461087657600080fd5b8063dd62ed3e146107ae578063e2f45605146107f4578063ea4cfe121461080a57600080fd5b8063bbc0c74214610709578063c024666814610728578063c4c6571b14610748578063cef3f8861461075e578063d257b34f14610778578063d85ba0631461079857600080fd5b80638da5cb5b1161012e5780638da5cb5b1461065057806395d89b411461066e5780639679266914610683578063a457c2d714610699578063a9059cbb146106b9578063b62496f5146106d957600080fd5b80637571336a146105b05780637e926b4b146105d05780638068c757146105f05780638366e79a1461060557806388e765ff146106255780638a8c523c1461063b57600080fd5b8063452ed4f11161021957806366d602ae116101d257806366d602ae1461050f578063672fc7be146105255780636a486a8e146105455780636ddd17131461055b57806370a082311461057b578063751039fc1461059b57600080fd5b8063452ed4f114610473578063499b8394146104935780634a62bb65146104b35780634f77f6c0146104cd578063591f09eb146104e35780635a139dd4146104f957600080fd5b806318160ddd1161026b57806318160ddd146103b85780632307b441146103d757806323b872dd146103f7578063313ce567146104175780633950935114610433578063436d33401461045357600080fd5b80630614117a146102be57806306fdde03146102d55780630758d92414610300578063095ea7b31461033857806310d5de531461036857806312185a391461039857600080fd5b366102b957005b600080fd5b3480156102ca57600080fd5b506102d361088c565b005b3480156102e157600080fd5b506102ea61090c565b6040516102f791906127d9565b60405180910390f35b34801561030c57600080fd5b50600954610320906001600160a01b031681565b6040516001600160a01b0390911681526020016102f7565b34801561034457600080fd5b5061035861035336600461283c565b61099e565b60405190151581526020016102f7565b34801561037457600080fd5b50610358610383366004612868565b60196020526000908152604090205460ff1681565b3480156103a457600080fd5b506102d36103b336600461288c565b6109b5565b3480156103c457600080fd5b506002545b6040519081526020016102f7565b3480156103e357600080fd5b506102d36103f236600461297b565b610a3d565b34801561040357600080fd5b50610358610412366004612a3d565b610b95565b34801561042357600080fd5b50604051601281526020016102f7565b34801561043f57600080fd5b5061035861044e36600461283c565b610c3f565b34801561045f57600080fd5b506102d361046e36600461288c565b610c7b565b34801561047f57600080fd5b50600a54610320906001600160a01b031681565b34801561049f57600080fd5b506102d36104ae366004612868565b610cfe565b3480156104bf57600080fd5b50600e546103589060ff1681565b3480156104d957600080fd5b506103c960125481565b3480156104ef57600080fd5b506103c960155481565b34801561050557600080fd5b506103c960105481565b34801561051b57600080fd5b506103c960075481565b34801561053157600080fd5b506102d3610540366004612a8c565b610dd7565b34801561055157600080fd5b506103c960115481565b34801561056757600080fd5b50600e546103589062010000900460ff1681565b34801561058757600080fd5b506103c9610596366004612868565b610e7b565b3480156105a757600080fd5b506102d3610e96565b3480156105bc57600080fd5b506102d36105cb366004612aaa565b610ecc565b3480156105dc57600080fd5b506102d36105eb366004612ae3565b610f94565b3480156105fc57600080fd5b506102d3611056565b34801561061157600080fd5b50610358610620366004612b00565b61158e565b34801561063157600080fd5b506103c960065481565b34801561064757600080fd5b506102d36117c8565b34801561065c57600080fd5b506005546001600160a01b0316610320565b34801561067a57600080fd5b506102ea61188a565b34801561068f57600080fd5b506103c960165481565b3480156106a557600080fd5b506103586106b436600461283c565b611899565b3480156106c557600080fd5b506103586106d436600461283c565b611932565b3480156106e557600080fd5b506103586106f4366004612868565b601a6020526000908152604090205460ff1681565b34801561071557600080fd5b50600e5461035890610100900460ff1681565b34801561073457600080fd5b506102d3610743366004612aaa565b61193f565b34801561075457600080fd5b506103c960175481565b34801561076a57600080fd5b506014546103589060ff1681565b34801561078457600080fd5b506102d361079336600461288c565b6119c8565b3480156107a457600080fd5b506103c9600f5481565b3480156107ba57600080fd5b506103c96107c9366004612b00565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561080057600080fd5b506103c9600b5481565b34801561081657600080fd5b50600c54610320906001600160a01b031681565b34801561083657600080fd5b506103c9600d5481565b34801561084c57600080fd5b506102d361085b366004612868565b611b10565b34801561086c57600080fd5b506103c960085481565b34801561088257600080fd5b506103c960135481565b6005546001600160a01b031633146108bf5760405162461bcd60e51b81526004016108b690612b2e565b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610901576040519150601f19603f3d011682016040523d82523d6000602084013e610906565b606091505b50505050565b60606003805461091b90612b63565b80601f016020809104026020016040519081016040528092919081815260200182805461094790612b63565b80156109945780601f1061096957610100808354040283529160200191610994565b820191906000526020600020905b81548152906001019060200180831161097757829003601f168201915b5050505050905090565b60006109ab338484611bfb565b5060015b92915050565b6005546001600160a01b031633146109df5760405162461bcd60e51b81526004016108b690612b2e565b60128190556011819055600f811115610a3a5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c65737300000060448201526064016108b6565b50565b6005546001600160a01b03163314610a675760405162461bcd60e51b81526004016108b690612b2e565b8051825114610ab85760405162461bcd60e51b815260206004820152601e60248201527f617272617973206d757374206265207468652073616d65206c656e677468000060448201526064016108b6565b60c8825110610b285760405162461bcd60e51b815260206004820152603660248201527f43616e206f6e6c792061697264726f70203230302077616c6c657473207065726044820152752074786e2064756520746f20676173206c696d69747360501b60648201526084016108b6565b60005b8251811015610b90576000838281518110610b4857610b48612b9d565b602002602001015190506000838381518110610b6657610b66612b9d565b60200260200101519050610b7b338383611d1f565b50508080610b8890612bc9565b915050610b2b565b505050565b6000610ba2848484611e74565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610c275760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016108b6565b610c348533858403611bfb565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109ab918590610c76908690612be2565b611bfb565b6005546001600160a01b03163314610ca55760405162461bcd60e51b81526004016108b690612b2e565b6010819055600f818155811115610a3a5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c65737300000060448201526064016108b6565b6005546001600160a01b03163314610d285760405162461bcd60e51b81526004016108b690612b2e565b6001600160a01b038116610d8d5760405162461bcd60e51b815260206004820152602660248201527f5f6f7065726174696f6e734164647265737320616464726573732063616e6e6f60448201526507420626520360d41b60648201526084016108b6565b600c80546001600160a01b0319166001600160a01b0383169081179091556040517f4efa56652237561d0f1fd31311aeaaa41f3b754a461545ed3cf6ced5876d298290600090a250565b6005546001600160a01b03163314610e015760405162461bcd60e51b81526004016108b690612b2e565b60008111610e645760405162461bcd60e51b815260206004820152602a60248201527f4d61782073776170732070657220626c6f636b206d75737420626520677265616044820152690746572207468616e20360b41b60648201526084016108b6565b6014805460ff191692151592909217909155601655565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b03163314610ec05760405162461bcd60e51b81526004016108b690612b2e565b600e805460ff19169055565b6005546001600160a01b03163314610ef65760405162461bcd60e51b81526004016108b690612b2e565b80610f6957600a546001600160a01b0390811690831603610f695760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b60648201526084016108b6565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314610fbe5760405162461bcd60e51b81526004016108b690612b2e565b8061100b5760405162461bcd60e51b815260206004820152601860248201527f506c6561736520636f6e6669726d2072656e6f756e636521000000000000000060448201526064016108b6565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a350600580546001600160a01b0319169055565b6005546001600160a01b031633146110805760405162461bcd60e51b81526004016108b690612b2e565b600e54610100900460ff16156110ec5760405162461bcd60e51b815260206004820152602b60248201527f54726164696e6720697320616c7265616479206163746976652c2063616e6e6f60448201526a3a103932b630bab731b41760a91b60648201526084016108b6565b6000466001036111115750737a250d5630b4cf539739df2c5dacb4c659f2488d611228565b4662aa36a7036111365750737a250d5630b4cf539739df2c5dacb4c659f2488d611228565b4660380361115957507310ed43c718714eb63d5aa57b78b54704e256024e611228565b4660610361117c575073d99d1c33f9fc3444f8101754abc46c52416550d1611228565b4661a4b1036111a05750731b02da8cb0d097eb8d57a175b88c7d8b47997506611228565b46612105036111c45750734752ba5dbc23f44d87826276bf6fd6b1c372ad24611228565b4662014a34036111e95750734752ba5dbc23f44d87826276bf6fd6b1c372ad24611228565b60405162461bcd60e51b815260206004820152601460248201527310da185a5b881b9bdd0818dbdb999a59dd5c995960621b60448201526064016108b6565b600980546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015611281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a59190612bf5565b6001600160a01b031663c9c6539630600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611307573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132b9190612bf5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611378573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139c9190612bf5565b600a80546001600160a01b0319166001600160a01b039290921691821790556113c6906001612451565b600a546113dd906001600160a01b031660016124b4565b6009546113f4906001600160a01b03166001612451565b60095461140b906001600160a01b0316600161193f565b600047116114675760405162461bcd60e51b815260206004820152602360248201527f4d757374206861766520455448206f6e20636f6e747261637420746f206c61756044820152620dcc6d60eb1b60648201526084016108b6565b600061147230610e7b565b116114ce5760405162461bcd60e51b815260206004820152602660248201527f4d757374206861766520546f6b656e73206f6e20636f6e747261637420746f206044820152650d8c2eadcc6d60d31b60648201526084016108b6565b6009546114e99030906001600160a01b0316610c7682610e7b565b6009546001600160a01b031663f305d719473061150581610e7b565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015611569573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109069190612c12565b6005546000906001600160a01b031633146115bb5760405162461bcd60e51b81526004016108b690612b2e565b6001600160a01b0383166116115760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f74206265203000000000000060448201526064016108b6565b6001600160a01b038316301415806116315750600e54610100900460ff16155b61169a5760405162461bcd60e51b815260206004820152603460248201527f43616e2774207769746864726177206e617469766520746f6b656e73207768696044820152736c652074726164696e672069732061637469766560601b60648201526084016108b6565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa1580156116e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117059190612c40565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af1158015611758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177c9190612c59565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b031633146117f25760405162461bcd60e51b81526004016108b690612b2e565b600e54610100900460ff161561184a5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207265656e61626c652074726164696e6700000000000000000060448201526064016108b6565b600e805462ffff0019166201010017905543600d556040517fa56feb2d31b9a7424db0be063fd450863979c9e2382cf5110f869bd1ad361bb790600090a1565b60606004805461091b90612b63565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561191b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108b6565b6119283385858403611bfb565b5060019392505050565b60006109ab338484611e74565b6005546001600160a01b031633146119695760405162461bcd60e51b81526004016108b690612b2e565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146119f25760405162461bcd60e51b81526004016108b690612b2e565b620186a06119ff60025490565b611a0a906001612c76565b611a149190612c8d565b811015611a815760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b60648201526084016108b6565b6064611a8c60025490565b611a97906001612c76565b611aa19190612c8d565b811115611b0b5760405162461bcd60e51b815260206004820152603260248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527137101892903a37ba30b61039bab838363c9760711b60648201526084016108b6565b600b55565b6005546001600160a01b03163314611b3a5760405162461bcd60e51b81526004016108b690612b2e565b6001600160a01b038116611b9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108b6565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316611c5d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108b6565b6001600160a01b038216611cbe5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108b6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611d455760405162461bcd60e51b81526004016108b690612caf565b6001600160a01b038216611d6b5760405162461bcd60e51b81526004016108b690612cf4565b6001600160a01b03831660009081526020819052604090205481811015611de35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108b6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611e1a908490612be2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e6691815260200190565b60405180910390a350505050565b6001600160a01b038316611e9a5760405162461bcd60e51b81526004016108b690612caf565b6001600160a01b038216611ec05760405162461bcd60e51b81526004016108b690612cf4565b60008111611f105760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e203000000060448201526064016108b6565b600e54610100900460ff16611fa3576001600160a01b03831660009081526018602052604090205460ff1680611f5e57506001600160a01b03821660009081526018602052604090205460ff165b611fa35760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b60448201526064016108b6565b600e5460ff1615612239576001600160a01b03821661dead14801590611fe257506001600160a01b03831660009081526018602052604090205460ff16155b801561200757506001600160a01b03821660009081526018602052604090205460ff16155b15612239576001600160a01b0383166000908152601a602052604090205460ff16801561204d57506001600160a01b03821660009081526019602052604090205460ff16155b15612114576006548111156120b55760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b60648201526084016108b6565b6008546120c183610e7b565b6120cb9083612be2565b111561210f5760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b60448201526064016108b6565b612239565b6001600160a01b0382166000908152601a602052604090205460ff16801561215557506001600160a01b03831660009081526019602052604090205460ff16155b156121bf5760075481111561210f5760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b60648201526084016108b6565b6001600160a01b03821660009081526019602052604090205460ff16612239576008546121eb83610e7b565b6121f59083612be2565b11156122395760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b60448201526064016108b6565b600061224430610e7b565b600b54909150811080159081906122635750600e5462010000900460ff165b80156122795750600a54600160a01b900460ff16155b801561229d57506001600160a01b0384166000908152601a602052604090205460ff165b156122cd57600a805460ff60a01b1916600160a01b1790556122bf600061251e565b600a805460ff60a01b191690555b6001600160a01b03851660009081526018602052604090205460019060ff168061230f57506001600160a01b03851660009081526018602052604090205460ff165b15612318575060005b6000811561243d576001600160a01b0386166000908152601a602052604090205460ff16801561234a57506000601154115b156123a25760646011548661235f9190612c76565b6123699190612c8d565b90506011546012548261237c9190612c76565b6123869190612c8d565b601360008282546123979190612be2565b9091555061241f9050565b6001600160a01b0387166000908152601a602052604090205460ff1680156123cc57506000600f54115b1561241f576064600f54866123e19190612c76565b6123eb9190612c8d565b9050600f54601054826123fe9190612c76565b6124089190612c8d565b601360008282546124199190612be2565b90915550505b801561243057612430873083611d1f565b61243a8186612d37565b94505b612448878787611d1f565b50505050505050565b6001600160a01b038216600081815260196020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd6746910160405180910390a15050565b6001600160a01b0382166000908152601a60205260409020805460ff19168215151790556124e28282612451565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6015544314612531574360155560006017555b60145460ff168015612547575060165460175410155b1561254f5750565b600061255a30610e7b565b60135490915081158061256b575080155b1561257557505050565b8215801561258f5750600b5461258c90600f612c76565b82115b156125a557600b546125a290600f612c76565b91505b6125ae8261267f565b60006013819055506001601760008282546125c99190612be2565b9091555050600c546040516000916001600160a01b03169047908381818185875af1925050503d806000811461261b576040519150601f19603f3d011682016040523d82523d6000602084013e612620565b606091505b50509050806109065760405162461bcd60e51b815260206004820152602560248201527f5472616e7366657220746f206f7065726174696f6e7320616464726573732066604482015264185a5b195960da1b60648201526084016108b6565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126b4576126b4612b9d565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561270d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127319190612bf5565b8160018151811061274457612744612b9d565b6001600160a01b03928316602091820292909201015260095461276a9130911684611bfb565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac947906127a3908590600090869030904290600401612d4a565b600060405180830381600087803b1580156127bd57600080fd5b505af11580156127d1573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015612806578581018301518582016040015282016127ea565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610a3a57600080fd5b6000806040838503121561284f57600080fd5b823561285a81612827565b946020939093013593505050565b60006020828403121561287a57600080fd5b813561288581612827565b9392505050565b60006020828403121561289e57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156128e4576128e46128a5565b604052919050565b600067ffffffffffffffff821115612906576129066128a5565b5060051b60200190565b600082601f83011261292157600080fd5b81356020612936612931836128ec565b6128bb565b82815260059290921b8401810191818101908684111561295557600080fd5b8286015b848110156129705780358352918301918301612959565b509695505050505050565b6000806040838503121561298e57600080fd5b823567ffffffffffffffff808211156129a657600080fd5b818501915085601f8301126129ba57600080fd5b813560206129ca612931836128ec565b82815260059290921b840181019181810190898411156129e957600080fd5b948201945b83861015612a10578535612a0181612827565b825294820194908201906129ee565b96505086013592505080821115612a2657600080fd5b50612a3385828601612910565b9150509250929050565b600080600060608486031215612a5257600080fd5b8335612a5d81612827565b92506020840135612a6d81612827565b929592945050506040919091013590565b8015158114610a3a57600080fd5b60008060408385031215612a9f57600080fd5b823561285a81612a7e565b60008060408385031215612abd57600080fd5b8235612ac881612827565b91506020830135612ad881612a7e565b809150509250929050565b600060208284031215612af557600080fd5b813561288581612a7e565b60008060408385031215612b1357600080fd5b8235612b1e81612827565b91506020830135612ad881612827565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612b7757607f821691505b602082108103612b9757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612bdb57612bdb612bb3565b5060010190565b808201808211156109af576109af612bb3565b600060208284031215612c0757600080fd5b815161288581612827565b600080600060608486031215612c2757600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215612c5257600080fd5b5051919050565b600060208284031215612c6b57600080fd5b815161288581612a7e565b80820281158282048414176109af576109af612bb3565b600082612caa57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b818103818111156109af576109af612bb3565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612d9a5784516001600160a01b031683529383019391830191600101612d75565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212205d28a4a83b1286ba4e3f830eb4b89c1f45b7b3486b350ffae1382bc894104aae64736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: Yes (200 runs)
NOVA.sol 823 lines
// SPDX-License-Identifier: MIT
/*
Website: https://buildwithnova.info/
Telegram: https://t.me/nova_builders_portal
X: https://x.com/nova_builders
*/
pragma solidity 0.8.19;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount)
external
returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
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);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
function transfer(address recipient, uint256 amount)
public
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender)
public
view
virtual
override
returns (uint256)
{
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount)
public
virtual
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender] + addedValue
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _createInitialSupply(address account, uint256 amount)
internal
virtual
{
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership(bool confirmRenounce)
external
virtual
onlyOwner
{
require(confirmRenounce, "Please confirm renounce!");
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
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 ILpPair {
function sync() external;
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract NOVA is ERC20, Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWallet;
IDexRouter public dexRouter;
address public lpPair;
bool private swapping;
uint256 public swapTokensAtAmount;
address public operationsAddress;
uint256 public tradingActiveBlock = 0;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 public buyOperationsFee;
uint256 public sellTotalFees;
uint256 public sellOperationsFee;
uint256 public tokensForOperations;
bool public oncePerBlockEnabled = true;
uint256 public lastSwapBlock;
uint256 public maxSwapsPerBlock = 1;
uint256 public swapsThisBlock = 0;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
mapping(address => bool) public automatedMarketMakerPairs;
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event EnabledTrading();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedOperationsAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event OwnerForcedSwapBack(uint256 timestamp);
event CaughtEarlyBuyer(address sniper);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() payable ERC20("Nova AI", "NOVA") {
address newOwner = msg.sender;
uint256 totalSupply = 1 * 1e9 * 1e18;
buyOperationsFee = 29;
buyTotalFees = buyOperationsFee;
sellOperationsFee = 29;
sellTotalFees = sellOperationsFee;
maxBuyAmount = (totalSupply * 15) / 1000;
maxSellAmount = (totalSupply * 15) / 1000;
maxWallet = (totalSupply * 15) / 1000;
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05 %
operationsAddress = address(0x3840603E064450f2eb9297e8c89Da2F2d4cE49D2);
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
_excludeFromMaxTransaction(address(operationsAddress), true);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(address(operationsAddress), true);
_createInitialSupply(address(this), (totalSupply * 80) / 100);
_createInitialSupply(address(0x5Ce1b0Be09C5B6b1c6C9f8A9137Eb7f4A52cCAb9), (totalSupply * 10) / 100);
_createInitialSupply(address(0x0Da44743AEC79f2Cf0246DD2442c33955bC2B757), (totalSupply * 5) / 100);
_createInitialSupply(address(0x1A59156037fcDf913cC92c4FB41eBb66aBa1b0D3), (totalSupply * 5) / 100);
transferOwnership(newOwner);
}
receive() external payable {}
function _excludeFromMaxTransaction(
address updAds,
bool isExcluded
) private {
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMaxTransaction(
address updAds,
bool isEx
) external onlyOwner {
if (!isEx) {
require(
updAds != lpPair,
"Cannot remove uniswap pair from max txn"
);
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateBuyTax(
uint256 _operationsFee
) external onlyOwner {
buyOperationsFee = _operationsFee;
buyTotalFees = buyOperationsFee;
require(buyTotalFees <= 15, "Must keep fees at 15% or less");
}
function updateSellTax(
uint256 _operationsFee
) external onlyOwner {
sellOperationsFee = _operationsFee;
sellTotalFees = sellOperationsFee;
require(sellTotalFees <= 15, "Must keep fees at 15% or less");
}
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 1) / 100,
"Swap amount cannot be higher than 1% total supply."
);
swapTokensAtAmount = newAmount;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
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(amount > 0, "amount must be greater than 0");
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
if (limitsInEffect) {
if (to != address(0xdead) &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxBuyAmount,
"Buy transfer amount exceeds the max buy."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxSellAmount,
"Sell transfer amount exceeds the max sell."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap && swapEnabled && !swapping && automatedMarketMakerPairs[to]
) {
swapping = true;
swapBack(false);
swapping = false;
}
bool takeFee = true;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = (amount * sellTotalFees) / 100;
tokensForOperations +=
(fees * sellOperationsFee) /
sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = (amount * buyTotalFees) / 100;
tokensForOperations += (fees * buyOperationsFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
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] = dexRouter.WETH();
_approve(address(this), address(dexRouter), tokenAmount);
// make the swap
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function swapBack(bool all) private {
if (block.number != lastSwapBlock) {
lastSwapBlock = block.number;
swapsThisBlock = 0;
}
if (oncePerBlockEnabled && swapsThisBlock >= maxSwapsPerBlock) {
return;
}
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForOperations;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (!all && (contractBalance > swapTokensAtAmount * 15)) {
contractBalance = swapTokensAtAmount * 15;
}
swapTokensForEth(contractBalance);
tokensForOperations = 0;
swapsThisBlock += 1;
(bool success, ) = address(operationsAddress).call{
value: address(this).balance
}("");
require(success, "Transfer to operations address failed");
}
function transferForeignToken(
address _token,
address _to
) external onlyOwner returns (bool _sent) {
require(_token != address(0), "_token address cannot be 0");
require(
_token != address(this) || !tradingActive,
"Can't withdraw native tokens while trading is active"
);
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
function setOperationsAddress(
address _operationsAddress
) external onlyOwner {
require(
_operationsAddress != address(0),
"_operationsAddress address cannot be 0"
);
operationsAddress = payable(_operationsAddress);
emit UpdatedOperationsAddress(_operationsAddress);
}
function removeLimits() external onlyOwner {
limitsInEffect = false;
}
function recoverETH() external onlyOwner {
bool success;
(success, ) = address(msg.sender).call{value: address(this).balance}(
""
);
}
function prep() external onlyOwner {
require(!tradingActive, "Trading is already active, cannot relaunch.");
address _dexRouter;
if (block.chainid == 1) {
_dexRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; // ETH: Uniswap V2
} else if (block.chainid == 11155111) {
_dexRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; // ETH: Sepolia
} else if (block.chainid == 56) {
_dexRouter = 0x10ED43C718714eb63d5aA57B78B54704E256024E; // BNB Chain: PCS V2
} else if (block.chainid == 97) {
_dexRouter = 0xD99D1c33F9fC3444f8101754aBC46c52416550D1; // BNB Chain: PCS V2
} else if (block.chainid == 42161) {
_dexRouter = 0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506; // Arbitrum: SushiSwap
} else if (block.chainid == 8453) {
_dexRouter = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24; // Base: BaseSwap
} else if (block.chainid == 84532) {
_dexRouter = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24; // Base Sepolia: BaseSwap
} else {
revert("Chain not configured");
}
// initialize router
dexRouter = IDexRouter(_dexRouter);
// create pair
lpPair = IDexFactory(dexRouter.factory()).createPair(
address(this),
dexRouter.WETH()
);
_excludeFromMaxTransaction(address(lpPair), true);
_setAutomatedMarketMakerPair(address(lpPair), true);
_excludeFromMaxTransaction(address(dexRouter), true);
excludeFromFees(address(dexRouter), true);
require(
address(this).balance > 0,
"Must have ETH on contract to launch"
);
require(
balanceOf(address(this)) > 0,
"Must have Tokens on contract to launch"
);
_approve(address(this), address(dexRouter), balanceOf(address(this)));
dexRouter.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0, // slippage is unavoidable
0, // slippage is unavoidable
msg.sender,
block.timestamp
);
}
function enableTrading() external onlyOwner {
require(!tradingActive, "Cannot reenable trading");
tradingActive = true;
swapEnabled = true;
tradingActiveBlock = block.number;
emit EnabledTrading();
}
function setSwapRestrictions(bool _enabled, uint256 _maxSwaps) external onlyOwner {
require(_maxSwaps > 0, "Max swaps per block must be greater than 0");
oncePerBlockEnabled = _enabled;
maxSwapsPerBlock = _maxSwaps;
}
function airdropToWallets(
address[] memory wallets,
uint256[] memory amountsInTokens
) external onlyOwner {
require(
wallets.length == amountsInTokens.length,
"arrays must be the same length"
);
require(
wallets.length < 200,
"Can only airdrop 200 wallets per txn due to gas limits"
); // allows for airdrop + launch at the same exact time, reducing delays and reducing sniper input.
for (uint256 i = 0; i < wallets.length; i++) {
address wallet = wallets[i];
uint256 amount = amountsInTokens[i];
super._transfer(msg.sender, wallet, amount);
}
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyOperationsFee 0x5a139dd4 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
lastSwapBlock 0x591f09eb → uint256
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxSwapsPerBlock 0x96792669 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
oncePerBlockEnabled 0xcef3f886 → bool
operationsAddress 0xea4cfe12 → address
owner 0x8da5cb5b → address
sellOperationsFee 0x4f77f6c0 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
swapsThisBlock 0xc4c6571b → uint256
symbol 0x95d89b41 → string
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
airdropToWallets 0x2307b441
address[] wallets
uint256[] amountsInTokens
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
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
prep 0x8068c757
No parameters
recoverETH 0x0614117a
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x7e926b4b
bool confirmRenounce
setOperationsAddress 0x499b8394
address _operationsAddress
setSwapRestrictions 0x672fc7be
bool _enabled
uint256 _maxSwaps
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyTax 0x436d3340
uint256 _operationsFee
updateSellTax 0x12185a39
uint256 _operationsFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
Recent Transactions
No transactions found for this address