Address Contract Partially Verified
Address
0x0cF7356E2d13ae2B57e77286284984A5FC8F88b3
Balance
0 ETH
Nonce
1
Code Size
12930 bytes
Creator
0xb246bc2f...c7e2 at tx 0x75088ea2...80c926
Indexed Transactions
0
Contract Bytecode
12930 bytes
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063a9059cbb11610097578063deb7696511610071578063deb76965146104b3578063e4997dc5146104cf578063f2fde38b146104eb578063fe72423f146105075761018e565b8063a9059cbb14610437578063d543dbeb14610467578063dd62ed3e146104835761018e565b806370a082311461036e578063715018a61461039e5780638da5cb5b146103a857806395d89b41146103c65780639ae407e8146103e4578063a457c2d7146104075761018e565b8063313ce5671161014b578063395093511161012557806339509351146102bf5780633ecea6b2146102ef5780634838d1651461030d578063617d7ec21461033d5761018e565b8063313ce56714610267578063325eaac11461028557806336e8c9b3146102a35761018e565b806306fdde0314610193578063095ea7b3146101b15780630ecb93c0146101e157806318160ddd146101fd57806323b872dd1461021b5780632c0c74aa1461024b575b600080fd5b61019b610523565b6040516101a89190612c53565b60405180910390f35b6101cb60048036038101906101c69190612532565b6105b5565b6040516101d89190612c38565b60405180910390f35b6101fb60048036038101906101f691906123f5565b6105d3565b005b6102056106da565b6040516102129190612e75565b60405180910390f35b6102356004803603810190610230919061245a565b6106e4565b6040516102429190612c38565b60405180910390f35b610265600480360381019061026091906124a9565b6107e5565b005b61026f610a22565b60405161027c9190612f1a565b60405180910390f35b61028d610a2b565b60405161029a9190612e75565b60405180910390f35b6102bd60048036038101906102b89190612597565b610a31565b005b6102d960048036038101906102d49190612532565b610ab0565b6040516102e69190612c38565b60405180910390f35b6102f7610b5c565b6040516103049190612c1d565b60405180910390f35b610327600480360381019061032291906123f5565b610b82565b6040516103349190612c38565b60405180910390f35b61035760048036038101906103529190612597565b610ba2565b604051610365929190612e90565b60405180910390f35b610388600480360381019061038391906123f5565b610bd6565b6040516103959190612e75565b60405180910390f35b6103a6610c1f565b005b6103b0610d52565b6040516103bd9190612c1d565b60405180910390f35b6103ce610d7b565b6040516103db9190612c53565b60405180910390f35b6103ec610e0d565b6040516103fe96959493929190612eb9565b60405180910390f35b610421600480360381019061041c9190612532565b610f9d565b60405161042e9190612c38565b60405180910390f35b610451600480360381019061044c9190612532565b611091565b60405161045e9190612c38565b60405180910390f35b610481600480360381019061047c9190612597565b6110af565b005b61049d6004803603810190610498919061241e565b61112e565b6040516104aa9190612e75565b60405180910390f35b6104cd60048036038101906104c891906125c0565b6111b5565b005b6104e960048036038101906104e491906123f5565b611511565b005b610505600480360381019061050091906123f5565b611618565b005b610521600480360381019061051c919061256e565b6117ba565b005b606060048054610532906130ee565b80601f016020809104026020016040519081016040528092919081815260200182805461055e906130ee565b80156105ab5780601f10610580576101008083540402835291602001916105ab565b820191906000526020600020905b81548152906001019060200180831161058e57829003601f168201915b5050505050905090565b60006105c96105c261184c565b8484611854565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff166105f2610d52565b73ffffffffffffffffffffffffffffffffffffffff1614610648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063f90612d75565b60405180910390fd5b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc816040516106cf9190612c1d565b60405180910390a150565b6000600354905090565b60006106f1848484611a1f565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061073c61184c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156107bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b390612d55565b60405180910390fd5b6107d9856107c861184c565b85846107d49190613032565b611854565b60019150509392505050565b3373ffffffffffffffffffffffffffffffffffffffff16610804610d52565b73ffffffffffffffffffffffffffffffffffffffff161461085a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085190612d75565b60405180910390fd5b8181905084849050146108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089990612e35565b60405180910390fd5b84600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000848490501115610a1b57600960006108fd91906122d7565b60005b84849050811015610a1957600960018160018154018082558091505003906000526020600020905050600060098281548110610965577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906004020190508585838181106109ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013581600001819055508383838181106109f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358160010181905550508080610a1190613120565b915050610900565b505b5050505050565b60006012905090565b600a5481565b3373ffffffffffffffffffffffffffffffffffffffff16610a50610d52565b73ffffffffffffffffffffffffffffffffffffffff1614610aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9d90612d75565b60405180910390fd5b80600d8190555050565b6000610b52610abd61184c565b848460026000610acb61184c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610b4d9190612f51565b611854565b6001905092915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60066020528060005260406000206000915054906101000a900460ff1681565b60098181548110610bb257600080fd5b90600052602060002090600402016000915090508060000154908060010154905082565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610c3e610d52565b73ffffffffffffffffffffffffffffffffffffffff1614610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b90612d75565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054610d8a906130ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610db6906130ee565b8015610e035780601f10610dd857610100808354040283529160200191610e03565b820191906000526020600020905b815481529060010190602001808311610de657829003601f168201915b5050505050905090565b6000806000806000806000600a541115610f7f576000600a54905060005b600980549050811015610f7c57600060098281548110610e74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402019050806000015483610e949190612f51565b9250824211610f6857600182610eaa9190612f51565b8160000154848360010154846002016000610ec361184c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16856003016000610f1961184c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054985098509850985098509850505050610f95565b508080610f7490613120565b915050610e2b565b50505b6000806000806000809550955095509550955095505b909192939495565b60008060026000610fac61184c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090612e55565b60405180910390fd5b61108661107461184c565b8585846110819190613032565b611854565b600191505092915050565b60006110a561109e61184c565b8484611a1f565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff166110ce610d52565b73ffffffffffffffffffffffffffffffffffffffff1614611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b90612d75565b60405180910390fd5b80600c8190555050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b3373ffffffffffffffffffffffffffffffffffffffff166111d4610d52565b73ffffffffffffffffffffffffffffffffffffffff161461122a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122190612d75565b60405180910390fd5b6009805490508610611271576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126890612d15565b60405180910390fd5b600084116112b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ab90612db5565b60405180910390fd5b600986815481106112ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600001548514611357578460098781548110611341577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600001819055505b60098681548110611391577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402016001015484146113fa5783600987815481106113e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600101819055505b60005b83839050811015611508578160098881548110611443577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600201600086868581811061148f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906114a491906123f5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061150090613120565b9150506113fd565b50505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16611530610d52565b73ffffffffffffffffffffffffffffffffffffffff1614611586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157d90612d75565b60405180910390fd5b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c8160405161160d9190612c1d565b60405180910390a150565b3373ffffffffffffffffffffffffffffffffffffffff16611637610d52565b73ffffffffffffffffffffffffffffffffffffffff161461168d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168490612d75565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f490612cd5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff166117d9610d52565b73ffffffffffffffffffffffffffffffffffffffff161461182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182690612d75565b60405180910390fd5b80600860006101000a81548160ff02191690831515021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb90612e15565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192b90612cf5565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611a129190612e75565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8690612df5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af690612c95565b60405180910390fd5b600860009054906101000a900460ff16611ccf57611b1b610d52565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611b895750611b59610d52565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611bf2576064600c54611b9b6106da565b611ba59190612fd8565b611baf9190612fa7565b811115611bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be890612d95565b60405180910390fd5b5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7690612dd5565b60405180910390fd5b611c8a838383611e66565b42600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d90612d35565b60405180910390fd5b8181611d629190613032565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611df49190612f51565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e589190612e75565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611ec857506000600980549050145b15611ed2576122d2565b6000600a54148015611f325750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611f8b5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8015611f975750600081115b15611fa45742600a819055505b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561204f5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156122d157600061205e610e0d565b5050505050905060008111156122cf576000600960018361207f9190613032565b815481106120b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906004020190508060020160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214b90612c75565b60405180910390fd5b600081600101548260030160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156121f7578160030160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600101546121f49190613032565b90505b8084111561223a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223190612cb5565b60405180910390fd5b838260030160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122879190612f51565b8260030160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505b505b5b505050565b50805460008255600402906000526020600020908101906122f891906122fb565b50565b5b8082111561231e576000808201600090556001820160009055506004016122fc565b5090565b60008135905061233181613207565b92915050565b60008083601f84011261234957600080fd5b8235905067ffffffffffffffff81111561236257600080fd5b60208301915083602082028301111561237a57600080fd5b9250929050565b60008083601f84011261239357600080fd5b8235905067ffffffffffffffff8111156123ac57600080fd5b6020830191508360208202830111156123c457600080fd5b9250929050565b6000813590506123da8161321e565b92915050565b6000813590506123ef81613235565b92915050565b60006020828403121561240757600080fd5b600061241584828501612322565b91505092915050565b6000806040838503121561243157600080fd5b600061243f85828601612322565b925050602061245085828601612322565b9150509250929050565b60008060006060848603121561246f57600080fd5b600061247d86828701612322565b935050602061248e86828701612322565b925050604061249f868287016123e0565b9150509250925092565b6000806000806000606086880312156124c157600080fd5b60006124cf88828901612322565b955050602086013567ffffffffffffffff8111156124ec57600080fd5b6124f888828901612381565b9450945050604086013567ffffffffffffffff81111561251757600080fd5b61252388828901612381565b92509250509295509295909350565b6000806040838503121561254557600080fd5b600061255385828601612322565b9250506020612564858286016123e0565b9150509250929050565b60006020828403121561258057600080fd5b600061258e848285016123cb565b91505092915050565b6000602082840312156125a957600080fd5b60006125b7848285016123e0565b91505092915050565b60008060008060008060a087890312156125d957600080fd5b60006125e789828a016123e0565b96505060206125f889828a016123e0565b955050604061260989828a016123e0565b945050606087013567ffffffffffffffff81111561262657600080fd5b61263289828a01612337565b9350935050608061264589828a016123cb565b9150509295509295509295565b61265b81613066565b82525050565b61266a81613078565b82525050565b600061267b82612f35565b6126858185612f40565b93506126958185602086016130bb565b61269e816131f6565b840191505092915050565b60006126b6601e83612f40565b91507f544745202d204275796572206973206e6f742077686974656c697374656400006000830152602082019050919050565b60006126f6602383612f40565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061275c602683612f40565b91507f544745202d20416d6f756e7420657863656564732077686974656c697374206d60008301527f6178696d756d00000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006127c2602683612f40565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612828602283612f40565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061288e600d83612f40565b91507f496e76616c696420696e646578000000000000000000000000000000000000006000830152602082019050919050565b60006128ce602683612f40565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612934602883612f40565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b600061299a602083612f40565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006129da601c83612f40565b91507f4f766572666c6f77206d6178207472616e7366657220616d6f756e74000000006000830152602082019050919050565b6000612a1a601183612f40565b91507f496e76616c696420616d6f756e744d61780000000000000000000000000000006000830152602082019050919050565b6000612a5a601283612f40565b91507f426c61636b6c69737465642073656c6c657200000000000000000000000000006000830152602082019050919050565b6000612a9a602583612f40565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b00602483612f40565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612b66601483612f40565b91507f496e76616c69642077686974656c6973742873290000000000000000000000006000830152602082019050919050565b6000612ba6602583612f40565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b612c08816130a4565b82525050565b612c17816130ae565b82525050565b6000602082019050612c326000830184612652565b92915050565b6000602082019050612c4d6000830184612661565b92915050565b60006020820190508181036000830152612c6d8184612670565b905092915050565b60006020820190508181036000830152612c8e816126a9565b9050919050565b60006020820190508181036000830152612cae816126e9565b9050919050565b60006020820190508181036000830152612cce8161274f565b9050919050565b60006020820190508181036000830152612cee816127b5565b9050919050565b60006020820190508181036000830152612d0e8161281b565b9050919050565b60006020820190508181036000830152612d2e81612881565b9050919050565b60006020820190508181036000830152612d4e816128c1565b9050919050565b60006020820190508181036000830152612d6e81612927565b9050919050565b60006020820190508181036000830152612d8e8161298d565b9050919050565b60006020820190508181036000830152612dae816129cd565b9050919050565b60006020820190508181036000830152612dce81612a0d565b9050919050565b60006020820190508181036000830152612dee81612a4d565b9050919050565b60006020820190508181036000830152612e0e81612a8d565b9050919050565b60006020820190508181036000830152612e2e81612af3565b9050919050565b60006020820190508181036000830152612e4e81612b59565b9050919050565b60006020820190508181036000830152612e6e81612b99565b9050919050565b6000602082019050612e8a6000830184612bff565b92915050565b6000604082019050612ea56000830185612bff565b612eb26020830184612bff565b9392505050565b600060c082019050612ece6000830189612bff565b612edb6020830188612bff565b612ee86040830187612bff565b612ef56060830186612bff565b612f026080830185612661565b612f0f60a0830184612bff565b979650505050505050565b6000602082019050612f2f6000830184612c0e565b92915050565b600081519050919050565b600082825260208201905092915050565b6000612f5c826130a4565b9150612f67836130a4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f9c57612f9b613169565b5b828201905092915050565b6000612fb2826130a4565b9150612fbd836130a4565b925082612fcd57612fcc613198565b5b828204905092915050565b6000612fe3826130a4565b9150612fee836130a4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561302757613026613169565b5b828202905092915050565b600061303d826130a4565b9150613048836130a4565b92508282101561305b5761305a613169565b5b828203905092915050565b600061307182613084565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156130d95780820151818401526020810190506130be565b838111156130e8576000848401525b50505050565b6000600282049050600182168061310657607f821691505b6020821081141561311a576131196131c7565b5b50919050565b600061312b826130a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561315e5761315d613169565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b61321081613066565b811461321b57600080fd5b50565b61322781613078565b811461323257600080fd5b50565b61323e816130a4565b811461324957600080fd5b5056fea2646970667358221220a133741584ead57547e4a7ee99c7e70ff15d6e1d21dbacbd913e5797dc17779a64736f6c63430008000033
Verified Source Code Partial Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
ScotcoinToken.sol 727 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount)
external
returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
/**
* @dev 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);
}
/*
* @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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @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 {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
address msgSender = msg.sender;
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == msg.sender, "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/**
* @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 guidelines: functions revert instead
* of 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 ScotcoinToken is Context, IERC20, IERC20Metadata, Ownable {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
mapping(address => bool) public blackList;
mapping(address => uint256) private lastTxTimestamp;
bool private antibotPaused = true;
struct WhitelistRound {
uint256 duration;
uint256 amountMax;
mapping(address => bool) addresses;
mapping(address => uint256) purchased;
}
WhitelistRound[] public _tgeWhitelistRounds;
uint256 public _tgeTimestamp;
address public _tgePairAddress;
uint256 private maxTxPercent = 100;
uint256 private transferDelay = 0;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The defaut 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() {
_name = "Scotcoin Token";
_symbol = "SCOT";
_mint(msg.sender, 250000000 * (10**uint256(decimals())));
}
/**
* @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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount)
public
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount)
public
virtual
override
returns (bool)
{
_approve(_msgSender(), 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}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
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"
);
_approve(sender, _msgSender(), currentAllowance - 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)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][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)
{
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
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");
if (!antibotPaused) {
if (sender != owner() && recipient != owner()) {
require(
amount <= (totalSupply() * maxTxPercent) / 100,
"Overflow max transfer amount"
);
}
require(!blackList[sender], "Blacklisted seller");
_applyTGEWhitelist(sender, recipient, amount);
lastTxTimestamp[recipient] = block.timestamp;
}
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
_balances[sender] = senderBalance - amount;
_balances[recipient] += amount;
emit Transfer(sender, recipient, 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:
*
* - `to` cannot be the zero address.
*/
function _mint(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);
}
/**
* @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");
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
emit Transfer(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);
}
/// @notice
/// Anti bot
/// @notice Add bot address to blacklist
function addBlackList(address _bot) external onlyOwner {
blackList[_bot] = true;
emit AddedBlackList(_bot);
}
/// @notice Remove the address from blacklist
function removeBlackList(address _addr) external onlyOwner {
blackList[_addr] = false;
emit RemovedBlackList(_addr);
}
event AddedBlackList(address _user);
event RemovedBlackList(address _user);
/*
* createTGEWhitelist - Call this after initial Token Generation Event (TGE)
*
* pairAddress - address generated from createPair() event on DEX
* durations - array of durations (seconds) for each whitelist rounds
* amountsMax - array of max amounts (TOKEN decimals) for each whitelist round
*
*/
function createTGEWhitelist(address pairAddress, uint256[] calldata durations, uint256[] calldata amountsMax) external onlyOwner {
require(durations.length == amountsMax.length, "Invalid whitelist(s)");
_tgePairAddress = pairAddress;
if(durations.length > 0) {
delete _tgeWhitelistRounds;
for (uint256 i = 0; i < durations.length; i++) {
_tgeWhitelistRounds.push();
WhitelistRound storage wlRound = _tgeWhitelistRounds[i];
wlRound.duration = durations[i];
wlRound.amountMax = amountsMax[i];
}
}
}
/*
* modifyTGEWhitelistAddresses - Define what addresses are included/excluded from a whitelist round
*
* index - 0-based index of round to modify whitelist
* duration - period in seconds from TGE event or previous whitelist round
* amountMax - max amount (TOKEN decimals) for each whitelist round
*
*/
function modifyTGEWhitelist(uint256 index, uint256 duration, uint256 amountMax, address[] calldata addresses, bool enabled) external onlyOwner {
require(index < _tgeWhitelistRounds.length, "Invalid index");
require(amountMax > 0, "Invalid amountMax");
if(duration != _tgeWhitelistRounds[index].duration)
_tgeWhitelistRounds[index].duration = duration;
if(amountMax != _tgeWhitelistRounds[index].amountMax)
_tgeWhitelistRounds[index].amountMax = amountMax;
for (uint256 i = 0; i < addresses.length; i++) {
_tgeWhitelistRounds[index].addresses[addresses[i]] = enabled;
}
}
/*
* getTGEWhitelistRound
*
* returns:
*
* 1. whitelist round number ( 0 = no active round now )
* 2. duration, in seconds, current whitelist round is active for
* 3. timestamp current whitelist round closes at
* 4. maximum amount a whitelister can purchase in this round
* 5. is caller whitelisted
* 6. how much caller has purchased in current whitelist round
*
*/
function getTGEWhitelistRound() public view returns (uint256, uint256, uint256, uint256, bool, uint256) {
if(_tgeTimestamp > 0) {
uint256 wlCloseTimestampLast = _tgeTimestamp;
for (uint256 i = 0; i < _tgeWhitelistRounds.length; i++) {
WhitelistRound storage wlRound = _tgeWhitelistRounds[i];
wlCloseTimestampLast = wlCloseTimestampLast + wlRound.duration;
if(block.timestamp <= wlCloseTimestampLast)
return (i+1, wlRound.duration, wlCloseTimestampLast, wlRound.amountMax, wlRound.addresses[_msgSender()], wlRound.purchased[_msgSender()]);
}
}
return (0, 0, 0, 0, false, 0);
}
/*
* _applyTGEWhitelist - internal function to be called initially before any transfers
*
*/
function _applyTGEWhitelist(address sender, address recipient, uint256 amount) internal {
if(_tgePairAddress == address(0) || _tgeWhitelistRounds.length == 0)
return;
if(_tgeTimestamp == 0 && sender != _tgePairAddress && recipient == _tgePairAddress && amount > 0)
_tgeTimestamp = block.timestamp;
if(sender == _tgePairAddress && recipient != _tgePairAddress) {
//buying
(uint256 wlRoundNumber,,,,,) = getTGEWhitelistRound();
if(wlRoundNumber > 0) {
WhitelistRound storage wlRound = _tgeWhitelistRounds[wlRoundNumber-1];
require(wlRound.addresses[recipient], "TGE - Buyer is not whitelisted");
uint256 amountRemaining = 0;
if(wlRound.purchased[recipient] < wlRound.amountMax)
amountRemaining = wlRound.amountMax - wlRound.purchased[recipient];
require(amount <= amountRemaining, "TGE - Amount exceeds whitelist maximum");
wlRound.purchased[recipient] = wlRound.purchased[recipient] + amount;
}
}
}
/// @notice Set max transaction percent
function setMaxTxPercent(uint256 _maxTxPercent) external onlyOwner {
maxTxPercent = _maxTxPercent;
}
/// @notice Set transaction time delay
function setTransferDelay(uint256 _transferDelay) external onlyOwner {
transferDelay = _transferDelay;
}
/// @notice Set antibot status
function setAntibotPaused(bool _antibotPaused) external onlyOwner {
antibotPaused = _antibotPaused;
}
}
Read Contract
_tgePairAddress 0x3ecea6b2 → address
_tgeTimestamp 0x325eaac1 → uint256
_tgeWhitelistRounds 0x617d7ec2 → uint256, uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
blackList 0x4838d165 → bool
decimals 0x313ce567 → uint8
getTGEWhitelistRound 0x9ae407e8 → uint256, uint256, uint256, uint256, bool, uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 14 functions
These functions modify contract state and require a wallet transaction to execute.
addBlackList 0x0ecb93c0
address _bot
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
createTGEWhitelist 0x2c0c74aa
address pairAddress
uint256[] durations
uint256[] amountsMax
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
modifyTGEWhitelist 0xdeb76965
uint256 index
uint256 duration
uint256 amountMax
address[] addresses
bool enabled
removeBlackList 0xe4997dc5
address _addr
renounceOwnership 0x715018a6
No parameters
setAntibotPaused 0xfe72423f
bool _antibotPaused
setMaxTxPercent 0xd543dbeb
uint256 _maxTxPercent
setTransferDelay 0x36e8c9b3
uint256 _transferDelay
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address