Address Contract Partially Verified
Address
0x0557E0d15aeC0b9026dD17aA874fDf7d182A2cEB
Balance
0 ETH
Nonce
1
Code Size
12975 bytes
Creator
0x3c73D73a...0d52 at tx 0x6ca28ac0...dc7a68
Indexed Transactions
0
Contract Bytecode
12975 bytes
0x6080604052600436106101d8576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610214578063095ea7b3146102a45780630e136b19146102f15780630ecb93c01461032057806318160ddd1461036357806323b872dd1461038e57806327e235e3146103fb578063313ce567146104525780633eaaf86b1461047d5780633f4ba83a146104a857806345141230146104bf5780635648fe6d14610520578063576163391461057757806359bf1abe146105ce5780635a8b1a9f146106295780635c658165146106b25780635c975abb146107295780636bd872ce1461075857806370a082311461078f578063742c81e4146107e65780638456cb59146107fd5780638da5cb5b1461081457806395d89b411461086b578063a9059cbb146108fb578063b2f70e9614610948578063bb62a5361461098d578063c587106714610997578063c7444ca8146109f8578063cc872b6614610a39578063d4ee1d9014610a66578063db006a7514610abd578063dd62ed3e14610aea578063e47d606014610b61578063e4997dc514610bbc578063e546c16a14610bff578063e5b5019a14610c40578063f2fde38b14610c6b578063f3bdc22814610cae575b600b60009054906101000a900460ff16156101fa576101f5610cf1565b610212565b60003414151561020957600080fd5b610211610d03565b5b005b34801561022057600080fd5b50610229610fe4565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561026957808201518184015260208101905061024e565b50505050905090810190601f1680156102965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102b057600080fd5b506102ef600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611082565b005b3480156102fd57600080fd5b506103066110cc565b604051808215151515815260200191505060405180910390f35b34801561032c57600080fd5b50610361600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110df565b005b34801561036f57600080fd5b506103786111f8565b6040518082815260200191505060405180910390f35b34801561039a57600080fd5b506103f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611202565b005b34801561040757600080fd5b5061043c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112aa565b6040518082815260200191505060405180910390f35b34801561045e57600080fd5b506104676112c2565b6040518082815260200191505060405180910390f35b34801561048957600080fd5b506104926112c8565b6040518082815260200191505060405180910390f35b3480156104b457600080fd5b506104bd6112ce565b005b3480156104cb57600080fd5b5061050a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061138d565b6040518082815260200191505060405180910390f35b34801561052c57600080fd5b50610575600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291905050506113e8565b005b34801561058357600080fd5b506105b8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115f4565b6040518082815260200191505060405180910390f35b3480156105da57600080fd5b5061060f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611678565b604051808215151515815260200191505060405180910390f35b34801561063557600080fd5b506106b0600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116ce565b005b3480156106be57600080fd5b50610713600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506117b5565b6040518082815260200191505060405180910390f35b34801561073557600080fd5b5061073e6117da565b604051808215151515815260200191505060405180910390f35b34801561076457600080fd5b5061078d60048036038101908080359060200190929190803590602001909291905050506117ed565b005b34801561079b57600080fd5b506107d0600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611919565b6040518082815260200191505060405180910390f35b3480156107f257600080fd5b506107fb61192b565b005b34801561080957600080fd5b506108126119eb565b005b34801561082057600080fd5b50610829611aaa565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561087757600080fd5b50610880611acf565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108c05780820151818401526020810190506108a5565b50505050905090810190601f1680156108ed5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561090757600080fd5b50610946600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b6d565b005b34801561095457600080fd5b5061097360048036038101908080359060200190929190505050611c13565b604051808215151515815260200191505060405180910390f35b610995610d03565b005b3480156109a357600080fd5b506109e2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611c43565b6040518082815260200191505060405180910390f35b348015610a0457600080fd5b50610a2360048036038101908080359060200190929190505050611c68565b6040518082815260200191505060405180910390f35b348015610a4557600080fd5b50610a6460048036038101908080359060200190929190505050611c80565b005b348015610a7257600080fd5b50610a7b611e77565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610ac957600080fd5b50610ae860048036038101908080359060200190929190505050611e9d565b005b348015610af657600080fd5b50610b4b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612030565b6040518082815260200191505060405180910390f35b348015610b6d57600080fd5b50610ba2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612044565b604051808215151515815260200191505060405180910390f35b348015610bc857600080fd5b50610bfd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612064565b005b348015610c0b57600080fd5b50610c2a6004803603810190808035906020019092919050505061217d565b6040518082815260200191505060405180910390f35b348015610c4c57600080fd5b50610c55612195565b6040518082815260200191505060405180910390f35b348015610c7757600080fd5b50610cac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121b9565b005b348015610cba57600080fd5b50610cef600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506122fd565b005b610d01610cfc612481565b6124ab565b565b6000806000806000600b60009054906101000a900460ff1615610d2d57610d28610cf1565b610fdd565b60009450600c549350600d9250600f9150600190505b8381111515610f475742836000838152602001908152602001600020541015610f3a5760008260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541115610f3957610e208260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054866124d190919063ffffffff16565b94507f47358e43956746ac33e8c3ff5b73b3815409f59f6abb6cacbae52e0870b1528e818360003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205432604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1600f60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828152602001908152602001600020600090555b5b8080600101915050610d43565b610f9985600360003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124d190919063ffffffff16565b600360003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5050505050565b60088054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561107a5780601f1061104f5761010080835404028352916020019161107a565b820191906000526020600020905b81548152906001019060200180831161105d57829003601f168201915b505050505081565b60406004810160003690501015151561109a57600080fd5b600b60009054906101000a900460ff16156110bc576110b7610cf1565b6110c7565b6110c683836124ef565b5b505050565b600b60009054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561113a57600080fd5b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc81604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000600254905090565b600160149054906101000a900460ff1615151561121e57600080fd5b600b60009054906101000a900460ff16156112405761123b610cf1565b6112a5565b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561129957600080fd5b6112a483838361268c565b5b505050565b60036020528060005260406000206000915090505481565b600a5481565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561132957600080fd5b600160149054906101000a900460ff16151561134457600080fd5b6000600160146101000a81548160ff0219169083151502179055507f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3360405160405180910390a1565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561144357600080fd5b600b60009054906101000a900460ff161561146557611460610cf1565b6115ef565b600e600083815260200190815260200160002054811115151561148757600080fd5b6114ea81600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020546124d190919063ffffffff16565b600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555061156481600e60008581526020019081526020016000205461297790919063ffffffff16565b600e6000848152602001908152602001600020819055507faa6bf7bde569af95ce0f9ea5430265debd7b08e87a9bcc4c704e7278c39bdaad828285604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a15b505050565b6000806000809150600190505b600c548111151561166e57600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002054820191508080600101915050611601565b8192505050919050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561172957600080fd5b6117338282612990565b6001600b60006101000a81548160ff0219169083151502179055507fcc358699805e9a8b7f77b522628c7cb9abd07d9efb86b6fb616af1609036a99e81604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a15050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600160149054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561184857600080fd5b600b60009054906101000a900460ff161561186a57611865610cf1565b611915565b600c6000815480929190600101919050555081600d6000600c5481526020019081526020016000208190555080600e6000600c548152602001908152602001600020819055506118c5816002546124d190919063ffffffff16565b6002819055507f044a1bac826ae85cb102b676a9c90b6ea33575a34adfe21688963a034c01be05600c54838360405180848152602001838152602001828152602001935050505060405180910390a15b5050565b600061192482612f4f565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561198757600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a4657600080fd5b600160149054906101000a900460ff16151515611a6257600080fd5b60018060146101000a81548160ff0219169083151502179055507f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62560405160405180910390a1565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611b655780601f10611b3a57610100808354040283529160200191611b65565b820191906000526020600020905b815481529060010190602001808311611b4857829003601f168201915b505050505081565b600160149054906101000a900460ff16151515611b8957600080fd5b600b60009054906101000a900460ff1615611bab57611ba6610cf1565b611c0f565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151515611c0457600080fd5b611c0e8282612f98565b5b5050565b600042600d6000848152602001908152602001600020541015611c395760019050611c3e565b600090505b919050565b600f602052816000526040600020602052806000526040600020600091509150505481565b600e6020528060005260406000206000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611cdb57600080fd5b6002548160025401111515611cef57600080fd5b600360008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481600360008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401111515611dbf57600080fd5b80600360008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550806002600082825401925050819055507fcb8241adb0c3fdb35b70c24ce35c5eb0c17af7431c99f827d44a445ca624176a816040518082815260200191505060405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611ef857600080fd5b8060025410151515611f0957600080fd5b80600360008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515611f7857600080fd5b8060026000828254039250508190555080600360008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055507f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a44816040518082815260200191505060405180910390a150565b600061203c8383613144565b905092915050565b60056020528060005260406000206000915054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156120bf57600080fd5b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c81604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b600d6020528060005260406000206000915090505481565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561221457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156122b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f416464726573732073686f756c64206e6f74206265203078000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561235a57600080fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156123b257600080fd5b6123bb82611919565b90506000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806002600082825403925050819055507f61e6e66b0d6339b2980aecc6ccc0039736791f0ccde9ed512e789a7fbdd698c68282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3660008037600080366000845af43d6000803e80600081146124cc573d6000f35b3d6000fd5b60008082840190508381101515156124e557fe5b8091505092915050565b60406004810160003690501015151561250757600080fd5b6000821415801561259557506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b1515156125a157600080fd5b81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a3505050565b60006060600481016000369050101515156126a657600080fd5b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8210156127e157612760838361297790919063ffffffff16565b600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b61283383600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461297790919063ffffffff16565b600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506128c883600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124d190919063ffffffff16565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a35050505050565b600082821115151561298557fe5b818303905092915050565b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612a1b5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b1515612adb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260468152602001807f4f6c642061646472657373206973206e6f7420616c6c6f77656420616e64206981526020017f6d706c656d656e746174696f6e20616464726573732073686f756c64206e6f7481526020017f206265203078000000000000000000000000000000000000000000000000000081525060600191505060405180910390fd5b612ae4816131cb565b1515612b7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001807f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f81526020017f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000081525060400191505060405180910390fd5b60008251111515612c1d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001807f56657273696f6e2073686f756c64206e6f7420626520656d707479207374726981526020017f6e6700000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b816040516020018082805190602001908083835b602083101515612c565780518252602082019150602081019050602083039250612c31565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040518082805190602001908083835b602083101515612cbf5780518252602082019150602081019050602083039250612c9a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660066040516020018082805460018160011615610100020316600290048015612d505780601f10612d2e576101008083540402835291820191612d50565b820191906000526020600020905b815481529060010190602001808311612d3c575b50509150506040516020818303038152906040526040518082805190602001908083835b602083101515612d995780518252602082019150602081019050602083039250612d74565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614151515612e40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4e65772076657273696f6e20657175616c7320746f2063757272656e7400000081525060200191505060405180910390fd5b8160069080519060200190612e569291906131de565b5080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f8e05e0e35ff592971ca8b477d4285a33a61ded208d644042667b78693a472f5e836040518080602001828103825283818151815260200191508051906020019080838360005b83811015612f11578082015181840152602081019050612ef6565b50505050905090810190601f168015612f3e5780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b604060048101600036905010151515612fb057600080fd5b61300282600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461297790919063ffffffff16565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061309782600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124d190919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600080823b905060008111915050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061321f57805160ff191683800117855561324d565b8280016001018555821561324d579182015b8281111561324c578251825591602001919060010190613231565b5b50905061325a919061325e565b5090565b61328091905b8082111561327c576000816000905550600101613264565b5090565b905600a165627a7a723058201b1900a09b495633c3800cfa3c71dec134bd2e139c23e627f950cc60b18ccc6a0029
Verified Source Code Partial Match
Compiler: v0.4.26+commit.4563c3fc
EVM: byzantium
Optimization: No
CFXQV1.sol 597 lines
pragma solidity 0.4.26;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20Basic {
uint public _totalSupply;
function totalSupply() public constant returns (uint);
function balanceOf(address who) public constant returns (uint);
function transfer(address to, uint value) public;
event Transfer(address indexed from, address indexed to, uint value);
}
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public constant returns (uint);
function transferFrom(address from, address to, uint value) public;
function approve(address spender, uint value) public;
event Approval(address indexed owner, address indexed spender, uint value);
}
/**
* Utility library of inline functions on addresses
*/
library Address {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created until after the constructor finishes.
* @param account address of the account to check
* @return whether the target address is a contract
*/
function isContract(address account) internal view returns (bool) {
uint256 size;
// XXX Currently there is no better way to check if there is a contract in an address
// than to check the size of the code at that address.
// See https://ethereum.stackexchange.com/a/14016/36603
// for more details about how this works.
// TODO Check this again before the Serenity release, because all addresses will be
// contracts then.
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
}
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
/**
* @title Proxy
* @dev Gives the possibility to delegate any call to a foreign implementation.
*/
contract Proxy {
/**
* @dev Tells the address of the implementation where every call will be delegated.
* @return address of the implementation to which it will be delegated
*/
function _implementation() internal view returns(address);
/**
* @dev Fallback function.
* Implemented entirely in `_fallback`.
*/
function _fallback() internal {
_delegate(_implementation());
}
/**
* @dev Fallback function allowing to perform a delegatecall to the given implementation.
* This function will return whatever the implementation call returns
*/
function _delegate(address implementation) internal {
/*solium-disable-next-line security/no-inline-assembly*/
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize)
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas, implementation, 0, calldatasize, 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize)
switch result
// delegatecall returns 0 on error.
case 0 { revert(0, returndatasize) }
default { return(0, returndatasize) }
}
}
function() external payable {
_fallback();
}
}
/**
* @title UpgradeabilityProxy
* @dev This contract represents a proxy where the implementation address to which it will delegate can be upgraded
*/
contract UpgradeabilityProxy is Proxy {
// Version name of the current implementation
string internal __version;
// Address of the current implementation
address internal __implementation;
/**
* @dev This event will be emitted every time the implementation gets upgraded
* @param _newVersion representing the version name of the upgraded implementation
* @param _newImplementation representing the address of the upgraded implementation
*/
event Upgraded(string _newVersion, address indexed _newImplementation);
/**
* @dev Upgrades the implementation address
* @param _newVersion representing the version name of the new implementation to be set
* @param _newImplementation representing the address of the new implementation to be set
*/
function _upgradeTo(string memory _newVersion, address _newImplementation) internal {
require(
__implementation != _newImplementation && _newImplementation != address(0),
"Old address is not allowed and implementation address should not be 0x"
);
require(Address.isContract(_newImplementation), "Cannot set a proxy implementation to a non-contract address");
require(bytes(_newVersion).length > 0, "Version should not be empty string");
require(keccak256(abi.encodePacked(__version)) != keccak256(abi.encodePacked(_newVersion)), "New version equals to current");
__version = _newVersion;
__implementation = _newImplementation;
emit Upgraded(_newVersion, _newImplementation);
}
}
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
address public newOwner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function transferOwnership(address _newOwner) public onlyOwner {
require(_newOwner != address(0), "Address should not be 0x");
newOwner = _newOwner;
}
function approveOwnership() public{
require(newOwner == msg.sender);
owner = newOwner;
}
}
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is Ownable, ERC20Basic {
using SafeMath for uint;
mapping(address => uint) public balances;
/**
* @dev Fix for the ERC20 short address attack.
*/
modifier onlyPayloadSize(uint size) {
require(!(msg.data.length < size + 4));
_;
}
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint _value) public onlyPayloadSize(2 * 32) {
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _to, _value);
}
/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint representing the amount owned by the passed address.
*/
function balanceOf(address _owner) public constant returns (uint balance) {
return balances[_owner];
}
}
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based oncode by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint the amount of tokens to be transferred
*/
function transferFrom(address _from, address _to, uint _value) public onlyPayloadSize(3 * 32) {
uint _allowance = allowed[_from][msg.sender];
if (_allowance < MAX_UINT) {
allowed[_from][msg.sender] = _allowance.sub(_value);
}
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(_from, _to, _value);
}
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/
function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require(!((_value != 0) && (allowed[msg.sender][_spender] != 0)));
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
}
/**
* @dev Function to check the amount of tokens than an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint specifying the amount of tokens still available for the spender.
*/
function allowance(address _owner, address _spender) public constant returns (uint remaining) {
return allowed[_owner][_spender];
}
}
/**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*/
modifier whenPaused() {
require(paused);
_;
}
/**
* @dev called by the owner to pause, triggers stopped state
*/
function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
}
contract BlackList is Ownable, BasicToken {
/////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) ///////
function getBlackListStatus(address _maker) external constant returns (bool) {
return isBlackListed[_maker];
}
mapping (address => bool) public isBlackListed;
function addBlackList (address _evilUser) public onlyOwner {
isBlackListed[_evilUser] = true;
emit AddedBlackList(_evilUser);
}
function removeBlackList (address _clearedUser) public onlyOwner {
isBlackListed[_clearedUser] = false;
emit RemovedBlackList(_clearedUser);
}
function destroyBlackFunds (address _blackListedUser) public onlyOwner {
require(isBlackListed[_blackListedUser]);
uint dirtyFunds = balanceOf(_blackListedUser);
balances[_blackListedUser] = 0;
_totalSupply -= dirtyFunds;
emit DestroyedBlackFunds(_blackListedUser, dirtyFunds);
}
event DestroyedBlackFunds(address _blackListedUser, uint _balance);
event AddedBlackList(address _user);
event RemovedBlackList(address _user);
}
contract TetherToken is Pausable, StandardToken, BlackList, UpgradeabilityProxy{
string public name;
string public symbol;
uint public decimals;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the owner address
//
// @param _balance Initial supply of the contract
// @param _name Token Name
// @param _symbol Token symbol
// @param _decimals Token decimals
constructor(uint _initialSupply, string _name, string _symbol, uint _decimals) public {
_totalSupply = _initialSupply;
name = _name;
symbol = _symbol;
decimals = _decimals;
balances[owner] = _initialSupply;
deprecated = false;
}
function _implementation() internal view returns(address){
return __implementation;
}
modifier isDeprecated() {
if (deprecated) {
_fallback();
} else {
_;
}
}
// Forward ERC20 methods to upgraded contract if this one is deprecated
function transfer(address _to, uint _value) public whenNotPaused isDeprecated {
require(!isBlackListed[msg.sender]);
return super.transfer(_to, _value);
}
// Forward ERC20 methods to upgraded contract if this one is deprecated
function transferFrom(address _from, address _to, uint _value) public whenNotPaused isDeprecated{
require(!isBlackListed[_from]);
return super.transferFrom(_from, _to, _value);
}
// Forward ERC20 methods to upgraded contract if this one is deprecated
function balanceOf(address who) public constant returns (uint){
return super.balanceOf(who);
}
// Forward ERC20 methods to upgraded contract if this one is deprecated
function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) isDeprecated{
return super.approve(_spender, _value);
}
// Forward ERC20 methods to upgraded contract if this one is deprecated
function allowance(address _owner, address _spender) public constant returns (uint remaining){
return super.allowance(_owner, _spender);
}
function upgradeTo(string memory _newVersion, address _newImplementation) public onlyOwner{
_upgradeTo(_newVersion, _newImplementation);
deprecated = true;
emit Deprecate(_newImplementation);
}
// deprecate current contract if favour of a new one
function totalSupply() public constant returns (uint) {
return _totalSupply;
}
// Issue a new amount of tokens
// these tokens are deposited into the owner address
//
// @param _amount Number of tokens to be issued
function issue(uint amount) public onlyOwner {
require(_totalSupply + amount > _totalSupply);
require(balances[owner] + amount > balances[owner]);
balances[owner] += amount;
_totalSupply += amount;
emit Issue(amount);
}
// Redeem tokens.
// These tokens are withdrawn from the owner address
// if the balance must be enough to cover the redeem
// or the call will fail.
// @param _amount Number of tokens to be issued
function redeem(uint amount) public onlyOwner {
require(_totalSupply >= amount);
require(balances[owner] >= amount);
_totalSupply -= amount;
balances[owner] -= amount;
emit Redeem(amount);
}
// Called when new token are issued
event Issue(uint amount);
// Called when tokens are redeemed
event Redeem(uint amount);
// Called when contract is deprecated
event Deprecate(address newAddress);
}
contract CFXQ is TetherToken{
event AddPlan(uint256 planNumber, uint256 time, uint256 total);
event DeliverPlan(uint256 planNumber, uint256 amount, address investor);
event PlanReleased(uint256 planNumber, uint256 amount, address investor);
uint planNumber = 0;
mapping(uint => uint) public planTime;
mapping(uint => uint) public planAmount;
mapping(address => mapping(uint => uint)) public plan;
function () external payable isDeprecated{
require(msg.value == 0);
releaseAllPlans();
}
function addPlan(uint256 time, uint256 total) public onlyOwner isDeprecated{
planNumber++;
planTime[planNumber] = time;
planAmount[planNumber] = total;
_totalSupply = _totalSupply.add(total);
emit AddPlan(planNumber, time, total);
}
function deliverPlan(address investor, uint256 _planNumber, uint256 amount) public onlyOwner isDeprecated{
require(amount <= planAmount[_planNumber]);
plan[investor][_planNumber] = plan[investor][_planNumber].add(amount);
planAmount[_planNumber] = planAmount[_planNumber].sub(amount);
emit DeliverPlan(_planNumber, amount, investor);
}
function releaseAllPlans() public payable isDeprecated{
// uint256 amount = 0;
uint256 allPlanAmount = 0;
uint256 _planNumber = planNumber;
mapping(uint => uint) _planTime = planTime;
mapping(address => mapping(uint => uint)) _plan = plan;
for(uint i = 1; i <= _planNumber; i++){
if(_planTime[i] < block.timestamp){
if(_plan[tx.origin][i] > 0){
allPlanAmount = allPlanAmount.add(_plan[tx.origin][i]);
emit PlanReleased(i, _plan[tx.origin][i], tx.origin);
delete plan[tx.origin][i];
}
}
}
balances[tx.origin] = balances[tx.origin].add(allPlanAmount);
}
function allPlanAmount(address investor) public constant returns (uint balance){
uint256 amount = 0;
for(uint i = 1; i <= planNumber; i++){
amount += plan[investor][i];
}
return amount;
}
function planAmount(address investor, uint256 _planNumber) public constant returns (uint balance){
return plan[investor][_planNumber];
}
function canRelease(uint256 _planNumber) public view returns (bool){
if(planTime[_planNumber] < block.timestamp){
return true;
} else {
return false;
}
}
constructor(uint _initialSupply, string _name, string _symbol, uint _decimals) TetherToken(_initialSupply, _name, _symbol, _decimals) public {
}
}
contract CFXQV1 is CFXQ{
constructor(uint _initialSupply, string _name, string _symbol, uint _decimals) CFXQ(_initialSupply, _name, _symbol, _decimals) public {
}
}
Read Contract
MAX_UINT 0xe5b5019a → uint256
_totalSupply 0x3eaaf86b → uint256
allPlanAmount 0x57616339 → uint256
allowance 0xdd62ed3e → uint256
allowed 0x5c658165 → uint256
balanceOf 0x70a08231 → uint256
balances 0x27e235e3 → uint256
canRelease 0xb2f70e96 → bool
decimals 0x313ce567 → uint256
deprecated 0x0e136b19 → bool
getBlackListStatus 0x59bf1abe → bool
isBlackListed 0xe47d6060 → bool
name 0x06fdde03 → string
newOwner 0xd4ee1d90 → address
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
plan 0xc5871067 → uint256
planAmount 0x45141230 → uint256
planAmount 0xc7444ca8 → uint256
planTime 0xe546c16a → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
addBlackList 0x0ecb93c0
address _evilUser
addPlan 0x6bd872ce
uint256 time
uint256 total
approve 0x095ea7b3
address _spender
uint256 _value
approveOwnership 0x742c81e4
No parameters
deliverPlan 0x5648fe6d
address investor
uint256 _planNumber
uint256 amount
destroyBlackFunds 0xf3bdc228
address _blackListedUser
issue 0xcc872b66
uint256 amount
pause 0x8456cb59
No parameters
redeem 0xdb006a75
uint256 amount
releaseAllPlans 0xbb62a536
No parameters
removeBlackList 0xe4997dc5
address _clearedUser
transfer 0xa9059cbb
address _to
uint256 _value
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
transferOwnership 0xf2fde38b
address _newOwner
unpause 0x3f4ba83a
No parameters
upgradeTo 0x5a8b1a9f
string _newVersion
address _newImplementation
Recent Transactions
No transactions found for this address