Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x9F9643209dCCe8D7399D7BF932354768069Ebc64
Balance 0 ETH
Nonce 1
Code Size 11594 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11594 bytes
0x6080604052600436106101f1575f3560e01c806375f0a8741161010c578063a9059cbb1161009f578063c18bc1951161006e578063c18bc195146106da578063cf52a7b214610702578063dd62ed3e1461072a578063e47d606014610766578063f2fde38b146107a2576101f8565b8063a9059cbb14610610578063aa4bde281461064c578063b62496f514610676578063c0246668146106b2576101f8565b80638da5cb5b116100db5780638da5cb5b1461056c57806395d89b41146105965780639a7a23d6146105c0578063a3ca847d146105e8576101f8565b806375f0a874146104c857806379b447bd146104f257806379cc67901461051a57806388e765ff14610542576101f8565b806342966c68116101845780635d098b38116101535780635d098b381461042457806366d602ae1461044c57806370a0823114610476578063715018a6146104b2576101f8565b806342966c681461036c57806346469afb146103945780634fbee193146103be5780635c975abb146103fa576101f8565b80631bff7898116101c05780631bff7898146102b457806323b872dd146102de578063313ce5671461031a5780633b0e013314610344576101f8565b806306fdde03146101fc5780630940bbc714610226578063095ea7b31461024e57806318160ddd1461028a576101f8565b366101f857005b5f80fd5b348015610207575f80fd5b506102106107ca565b60405161021d9190612241565b60405180910390f35b348015610231575f80fd5b5061024c60048036038101906102479190612298565b61085a565b005b348015610259575f80fd5b50610274600480360381019061026f919061231d565b6108ed565b6040516102819190612375565b60405180910390f35b348015610295575f80fd5b5061029e61090f565b6040516102ab919061239d565b60405180910390f35b3480156102bf575f80fd5b506102c8610918565b6040516102d5919061239d565b60405180910390f35b3480156102e9575f80fd5b5061030460048036038101906102ff91906123b6565b61091e565b6040516103119190612375565b60405180910390f35b348015610325575f80fd5b5061032e61094c565b60405161033b9190612421565b60405180910390f35b34801561034f575f80fd5b5061036a6004803603810190610365919061243a565b610954565b005b348015610377575f80fd5b50610392600480360381019061038d9190612298565b610a71565b005b34801561039f575f80fd5b506103a8610a85565b6040516103b5919061239d565b60405180910390f35b3480156103c9575f80fd5b506103e460048036038101906103df919061243a565b610a8b565b6040516103f19190612375565b60405180910390f35b348015610405575f80fd5b5061040e610add565b60405161041b9190612375565b60405180910390f35b34801561042f575f80fd5b5061044a6004803603810190610445919061243a565b610af2565b005b348015610457575f80fd5b50610460610bf6565b60405161046d919061239d565b60405180910390f35b348015610481575f80fd5b5061049c6004803603810190610497919061243a565b610bfc565b6040516104a9919061239d565b60405180910390f35b3480156104bd575f80fd5b506104c6610c41565b005b3480156104d3575f80fd5b506104dc610c54565b6040516104e99190612474565b60405180910390f35b3480156104fd575f80fd5b506105186004803603810190610513919061248d565b610c79565b005b348015610525575f80fd5b50610540600480360381019061053b919061231d565b610d24565b005b34801561054d575f80fd5b50610556610d44565b604051610563919061239d565b60405180910390f35b348015610577575f80fd5b50610580610d4a565b60405161058d9190612474565b60405180910390f35b3480156105a1575f80fd5b506105aa610d73565b6040516105b79190612241565b60405180910390f35b3480156105cb575f80fd5b506105e660048036038101906105e191906124f5565b610e03565b005b3480156105f3575f80fd5b5061060e60048036038101906106099190612298565b610e6f565b005b34801561061b575f80fd5b506106366004803603810190610631919061231d565b610f02565b6040516106439190612375565b60405180910390f35b348015610657575f80fd5b50610660610f24565b60405161066d919061239d565b60405180910390f35b348015610681575f80fd5b5061069c6004803603810190610697919061243a565b610f2a565b6040516106a99190612375565b60405180910390f35b3480156106bd575f80fd5b506106d860048036038101906106d391906124f5565b610f47565b005b3480156106e5575f80fd5b5061070060048036038101906106fb9190612298565b61108c565b005b34801561070d575f80fd5b506107286004803603810190610723919061243a565b6110fe565b005b348015610735575f80fd5b50610750600480360381019061074b9190612533565b611221565b60405161075d919061239d565b60405180910390f35b348015610771575f80fd5b5061078c6004803603810190610787919061243a565b6112a3565b6040516107999190612375565b60405180910390f35b3480156107ad575f80fd5b506107c860048036038101906107c3919061243a565b6112c0565b005b6060600380546107d99061259e565b80601f01602080910402602001604051908101604052809291908181526020018280546108059061259e565b80156108505780601f1061082757610100808354040283529160200191610850565b820191905f5260205f20905b81548152906001019060200180831161083357829003601f168201915b5050505050905090565b610862611344565b61086a611385565b5f81116108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a390612618565b60405180910390fd5b80600b819055507f9ec62aa876eec7cbe6ac95ce611b3e94d9f32e694b235ee884d0998f5ff111c4816040516108e2919061239d565b60405180910390a150565b5f806108f761140c565b9050610904818585611413565b600191505092915050565b5f600254905090565b600b5481565b5f8061092861140c565b9050610935858285611425565b6109408585856114b7565b60019150509392505050565b5f6012905090565b61095c611385565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c190612680565b60405180910390fd5b6001600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f97b7af35c8c05eca90f543eb78b16fdf2664d3e6c9a907286f310647d9813b716001604051610a669190612375565b60405180910390a250565b610a82610a7c61140c565b82611a8c565b50565b600a5481565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f60055f9054906101000a900460ff16905090565b610afa611344565b610b02611385565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6790612680565b60405180910390fd5b8060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fbf86feedee5b30c30a8243bd21deebb704d141478d39b1be04fe5ee739f214e760405160405180910390a250565b60085481565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610c49611385565b610c525f611b0b565b565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c81611344565b610c89611385565b5f82118015610c9757505f81115b610cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccd906126e8565b60405180910390fd5b606482610ce161090f565b610ceb9190612733565b610cf591906127a1565b600781905550606481610d0661090f565b610d109190612733565b610d1a91906127a1565b6008819055505050565b610d3682610d3061140c565b83611425565b610d408282611a8c565b5050565b60075481565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610d829061259e565b80601f0160208091040260200160405190810160405280929190818152602001828054610dae9061259e565b8015610df95780601f10610dd057610100808354040283529160200191610df9565b820191905f5260205f20905b815481529060010190602001808311610ddc57829003601f168201915b5050505050905090565b610e0b611344565b610e13611385565b610e1d8282611bd0565b8173ffffffffffffffffffffffffffffffffffffffff167f167fec55059eb0be5a803ca151d74e2f1df0223b4482c9eb80a57be642be0bf582604051610e639190612375565b60405180910390a25050565b610e77611344565b610e7f611385565b5f8111610ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb89061281b565b60405180910390fd5b80600a819055507f4996f5d01949abbe5db474cf3d527992a819addf57e873a4f9ef6a08cb3eecdf81604051610ef7919061239d565b60405180910390a150565b5f80610f0c61140c565b9050610f198185856114b7565b600191505092915050565b60095481565b600d602052805f5260405f205f915054906101000a900460ff1681565b610f4f611344565b610f57611385565b801515600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16151503610fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdd906128a9565b60405180910390fd5b80600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f43e5678c2fcaa42d15df6505520f417a1fbf973324cb2f7c106ebdbd662d0c3d826040516110809190612375565b60405180910390a25050565b611094611385565b5f81116110d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cd90612911565b60405180910390fd5b6064816110e161090f565b6110eb9190612733565b6110f591906127a1565b60098190555050565b611106611344565b61110e611385565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361117c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117390612680565b60405180910390fd5b5f600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167faf367c7d20ce5b2ab6da56afd0c9c39b00ba995263c60292a3e1ee3781fd48855f6040516112169190612375565b60405180910390a250565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600e602052805f5260405f205f915054906101000a900460ff1681565b6112c8611385565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611338575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161132f9190612474565b60405180910390fd5b61134181611b0b565b50565b61134c610add565b15611383576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b61138d61140c565b73ffffffffffffffffffffffffffffffffffffffff166113ab610d4a565b73ffffffffffffffffffffffffffffffffffffffff161461140a576113ce61140c565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016114019190612474565b60405180910390fd5b565b5f33905090565b6114208383836001611cb7565b505050565b5f6114308484611221565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146114b157818110156114a2578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016114999392919061292f565b60405180910390fd5b6114b084848484035f611cb7565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611525576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151c906129d4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a90612a62565b60405180910390fd5b600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156116315750600e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b611670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166790612aca565b60405180910390fd5b600d5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561170957600854811115611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb90612b32565b60405180910390fd5b6117f7565b600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156117f65760075481111561179d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179490612b9a565b60405180910390fd5b6009546117a983610bfc565b826117b49190612bb8565b11156117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec90612c35565b60405180910390fd5b5b5b5f810361180e5761180983835f611e86565b611a87565b5f600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806118aa5750600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b156118b3575f90505b600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156119515750600d5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561195a575f90505b8015611a7a575f600d5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156119d1576064600b54846119c09190612733565b6119ca91906127a1565b9050611a3e565b600d5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611a3d576064600a5484611a309190612733565b611a3a91906127a1565b90505b5b8083611a4a9190612c53565b9250611a788560065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611e86565b505b611a85848484611e86565b505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611afc575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401611af39190612474565b60405180910390fd5b611b07825f83611f76565b5050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b801515600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16151503611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5690612cf6565b60405180910390fd5b80600d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d27575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401611d1e9190612474565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d97575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401611d8e9190612474565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611e80578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611e77919061239d565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611ef6575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401611eed9190612474565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f66575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401611f5d9190612474565b60405180910390fd5b611f71838383611f76565b505050565b611f81838383611f86565b505050565b611f8e611344565b611f99838383611f9e565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611fee578060025f828254611fe29190612bb8565b925050819055506120bc565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612077578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161206e9392919061292f565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612103578060025f828254039250508190555061214d565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516121aa919061239d565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156121ee5780820151818401526020810190506121d3565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612213826121b7565b61221d81856121c1565b935061222d8185602086016121d1565b612236816121f9565b840191505092915050565b5f6020820190508181035f8301526122598184612209565b905092915050565b5f80fd5b5f819050919050565b61227781612265565b8114612281575f80fd5b50565b5f813590506122928161226e565b92915050565b5f602082840312156122ad576122ac612261565b5b5f6122ba84828501612284565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6122ec826122c3565b9050919050565b6122fc816122e2565b8114612306575f80fd5b50565b5f81359050612317816122f3565b92915050565b5f806040838503121561233357612332612261565b5b5f61234085828601612309565b925050602061235185828601612284565b9150509250929050565b5f8115159050919050565b61236f8161235b565b82525050565b5f6020820190506123885f830184612366565b92915050565b61239781612265565b82525050565b5f6020820190506123b05f83018461238e565b92915050565b5f805f606084860312156123cd576123cc612261565b5b5f6123da86828701612309565b93505060206123eb86828701612309565b92505060406123fc86828701612284565b9150509250925092565b5f60ff82169050919050565b61241b81612406565b82525050565b5f6020820190506124345f830184612412565b92915050565b5f6020828403121561244f5761244e612261565b5b5f61245c84828501612309565b91505092915050565b61246e816122e2565b82525050565b5f6020820190506124875f830184612465565b92915050565b5f80604083850312156124a3576124a2612261565b5b5f6124b085828601612284565b92505060206124c185828601612284565b9150509250929050565b6124d48161235b565b81146124de575f80fd5b50565b5f813590506124ef816124cb565b92915050565b5f806040838503121561250b5761250a612261565b5b5f61251885828601612309565b9250506020612529858286016124e1565b9150509250929050565b5f806040838503121561254957612548612261565b5b5f61255685828601612309565b925050602061256785828601612309565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806125b557607f821691505b6020821081036125c8576125c7612571565b5b50919050565b7f4d696e2073656c6c54617820697320312050657263656e7461676500000000005f82015250565b5f612602601b836121c1565b915061260d826125ce565b602082019050919050565b5f6020820190508181035f83015261262f816125f6565b9050919050565b7f496e76616c6964204164647265737300000000000000000000000000000000005f82015250565b5f61266a600f836121c1565b915061267582612636565b602082019050919050565b5f6020820190508181035f8301526126978161265e565b9050919050565b7f496e76616c69642050657263656e7461676500000000000000000000000000005f82015250565b5f6126d26012836121c1565b91506126dd8261269e565b602082019050919050565b5f6020820190508181035f8301526126ff816126c6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61273d82612265565b915061274883612265565b925082820261275681612265565b9150828204841483151761276d5761276c612706565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6127ab82612265565b91506127b683612265565b9250826127c6576127c5612774565b5b828204905092915050565b7f4d696e2062757954617820697320312050657263656e746167650000000000005f82015250565b5f612805601a836121c1565b9150612810826127d1565b602082019050919050565b5f6020820190508181035f830152612832816127f9565b9050919050565b7f4163636f756e7420697320616c7265616479207468652076616c7565206f66205f8201527f276578636c756465642700000000000000000000000000000000000000000000602082015250565b5f612893602a836121c1565b915061289e82612839565b604082019050919050565b5f6020820190508181035f8301526128c081612887565b9050919050565b7f496e61766c69642050657263656e7461676500000000000000000000000000005f82015250565b5f6128fb6012836121c1565b9150612906826128c7565b602082019050919050565b5f6020820190508181035f830152612928816128ef565b9050919050565b5f6060820190506129425f830186612465565b61294f602083018561238e565b61295c604083018461238e565b949350505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6129be6025836121c1565b91506129c982612964565b604082019050919050565b5f6020820190508181035f8301526129eb816129b2565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612a4c6023836121c1565b9150612a57826129f2565b604082019050919050565b5f6020820190508181035f830152612a7981612a40565b9050919050565b7f5573657220626c61636b6c6973746564000000000000000000000000000000005f82015250565b5f612ab46010836121c1565b9150612abf82612a80565b602082019050919050565b5f6020820190508181035f830152612ae181612aa8565b9050919050565b7f596f752061726520657863656564696e67206d617853656c6c416d6f756e74005f82015250565b5f612b1c601f836121c1565b9150612b2782612ae8565b602082019050919050565b5f6020820190508181035f830152612b4981612b10565b9050919050565b7f596f752061726520657863656564696e67206d6178427579416d6f756e7400005f82015250565b5f612b84601e836121c1565b9150612b8f82612b50565b602082019050919050565b5f6020820190508181035f830152612bb181612b78565b9050919050565b5f612bc282612265565b9150612bcd83612265565b9250828201905080821115612be557612be4612706565b5b92915050565b7f556e61626c6520746f20657863656564204d61782057616c6c657400000000005f82015250565b5f612c1f601b836121c1565b9150612c2a82612beb565b602082019050919050565b5f6020820190508181035f830152612c4c81612c13565b9050919050565b5f612c5d82612265565b9150612c6883612265565b9250828203905081811115612c8057612c7f612706565b5b92915050565b7f4175746f6d61746564206d61726b6574206d616b6572207061697220697320615f8201527f6c72656164792073657420746f20746861742076616c75650000000000000000602082015250565b5f612ce06038836121c1565b9150612ceb82612c86565b604082019050919050565b5f6020820190508181035f830152612d0d81612cd4565b905091905056fea2646970667358221220b5fb8c56447e31f97c69a223ab2bf89c562516dd7c52d907ad403f6e95b3287b64736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
InvestClubGlobal.sol 1190 lines
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// File: @openzeppelin/contracts/utils/Pausable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;





/**
 * @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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.20;



/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * IMPORTANT: This contract does not include public pause and unpause functions. In
 * addition to inheriting this contract, you must define both functions, invoking the
 * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate
 * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will
 * make the contract pause mechanism of the contract unreachable, and thus unusable.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_update}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _update(address from, address to, uint256 value) internal virtual override whenNotPaused {
        super._update(from, to, value);
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.20;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys a `value` amount of tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 value) public virtual {
        _burn(_msgSender(), value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, deducting from
     * the caller's allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `value`.
     */
    function burnFrom(address account, uint256 value) public virtual {
        _spendAllowance(account, _msgSender(), value);
        _burn(account, value);
    }
}

// File: InvestClubGlobal.sol


//********************************** IGC Coin and Telegram link **********************************//
    //******************** * ** * https://t.me/+DRsGYQl6gu41NjJk * ** * ********************//

//********************************** IGC Telegram Project **********************************//
    //******************* * ** * https://t.me/investclubGlobal_ENG * ** * ****************//

//********************************** IGC Coin Website **********************************//
    //****************** * ** * https://investclubglobal.com * ** * ****************//

pragma solidity ^0.8.20;





/**
 * @title InvestClubGlobal
 * @dev Extends ERC20, ERC20Burnable, ERC20Pausable, Ownable contracts to create the Invest Club Global token.
 */

contract InvestClubGlobal is ERC20, ERC20Burnable, ERC20Pausable, Ownable {
    // State variables
    address public marketingWallet;
    uint256 public maxBuyAmount;
    uint256 public maxSellAmount;
    uint256 public maxWalletAmount;

    uint256 public totalBuyTax = 5;
    uint256 public totalSellTax = 5;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) public isBlackListed;

    // Events.
    event AddressBlacklisted(address indexed account, bool isBlacklisted);
    event AddressWhitelisted(address indexed account, bool isWhitelisted);
    event AddressExcludedFromFees(address indexed account, bool isExcluded);
    event MarketingWalletUpdated(address indexed newWallet);
    event BuyTaxesUpdated(uint256 newBuyTaxPercent);
    event SellTaxesUpdated(uint256 newSellTaxPercent);
    event AutomatedMarketMakerPairSet(address indexed pair, bool value);

    /**
     * @dev Constructor function to initialize the Invest Club Global token.
     */

    constructor()
        Ownable(0xdc472E460f93F62CB67665F4c3B795e56104911d)
        ERC20("Invest Club Global", "ICG")
    {
        marketingWallet = 0xF2552a8740cEbD3e68fb88947a0d518EF6301ff4;
        _mint(owner(), 900000000000 * (10**18)); // 900 billion
    }

    /**
     * @dev Fallback function to receive Ether.
     */

    receive() external payable {}

    /**
     * @dev Internal function to update transfers considering ERC20Pausable overrides.
     */

    function _update(
        address from,
        address to,
        uint256 value
    ) internal override(ERC20, ERC20Pausable) {
        super._update(from, to, value);
    }

    /**
     * @dev Update the maximum wallet amount based on the percentage of the total supply.
     */

    function updateMaxWalletAmount(uint256 maxWalletPercent) public onlyOwner {
        require(maxWalletPercent > 0, "Inavlid Percentage");
        maxWalletAmount = (totalSupply() * maxWalletPercent) / 100;
    }

    /**
     * @dev Set maximum buy and sell amounts based on the percentage of the total supply.
     */

    function setMaxBuyAndSell(uint256 maxBuyPercent, uint256 maxSellPercent)
        public
        whenNotPaused
        onlyOwner
    {
        require(maxBuyPercent > 0 && maxSellPercent > 0, "Invalid Percentage");
        maxBuyAmount = (totalSupply() * maxBuyPercent) / 100;
        maxSellAmount = (totalSupply() * maxSellPercent) / 100;
    }

    /**
     * @dev Blacklists an address, preventing it from performing transfers.
     * @param account The address to be blacklisted.
     */
    function blackListAddress(address account) external onlyOwner {
        require(account != address(0), "Invalid Address");
        isBlackListed[account] = true;
        emit AddressBlacklisted(account, true);
    }

    /**
     * @dev Whitelists an address, allowing it to perform transfers after being blacklisted.
     * @param account The address to be whitelisted.
     */
    function whiteListAddress(address account)
        external
        whenNotPaused
        onlyOwner
    {
        require(account != address(0), "Invalid Address");
        isBlackListed[account] = false;
        emit AddressWhitelisted(account, false);
    }

    /**
     * @dev Excludes or includes an address from fee deductions.
     * @param account The address to be excluded/included from fees.
     * @param excluded Boolean indicating whether the address should be excluded (true) or included (false) from fees.
     */
    function excludeFromFees(address account, bool excluded)
        public
        whenNotPaused
        onlyOwner
    {
        require(
            _isExcludedFromFees[account] != excluded,
            "Account is already the value of 'excluded'"
        );
        _isExcludedFromFees[account] = excluded;
        emit AddressExcludedFromFees(account, excluded);
    }

    /**
     * @dev Sets the marketing wallet address to receive fee deductions.
     * @param newWallet The new address for receiving marketing fees.
     */
    function setMarketingWallet(address newWallet)
        public
        whenNotPaused
        onlyOwner
    {
        require(newWallet != address(0), "Invalid Address");
        marketingWallet = newWallet;
        emit MarketingWalletUpdated(newWallet);
    }

    /**
     * @dev Sets the percentage of buy taxes to be deducted from transactions.
     * @param buyTaxPercent The new percentage of buy taxes.
     */
    function setBuyTaxes(uint256 buyTaxPercent) public whenNotPaused onlyOwner {
        require(buyTaxPercent > 0, "Min buyTax is 1 Percentage");
        totalBuyTax = buyTaxPercent;
        emit BuyTaxesUpdated(buyTaxPercent);
    }

    /**
     * @dev Sets the percentage of sell taxes to be deducted from transactions.
     * @param sellTaxPercent The new percentage of sell taxes.
     */
    function setSellTaxes(uint256 sellTaxPercent)
        public
        whenNotPaused
        onlyOwner
    {
        require(sellTaxPercent > 0, "Min sellTax is 1 Percentage");
        totalSellTax = sellTaxPercent;
        emit SellTaxesUpdated(sellTaxPercent);
    }

    /**
     * @dev Sets an automated market maker pair and its value (true/false).
     * @param newPair The address of the new pair to be set.
     * @param value The boolean value indicating whether the pair should be set or unset.
     */
    function setAutomatedMarketMakerPair(address newPair, bool value)
        external
        whenNotPaused
        onlyOwner
    {
        _setAutomatedMarketMakerPair(newPair, value);
        emit AutomatedMarketMakerPairSet(newPair, value);
    }

    /**
     * @dev Sets an automated market maker pair and its value (true/false) privately.
     * @param newPair The address of the new pair to be set.
     * @param value The boolean value indicating whether the pair should be set or unset.
     */
    function _setAutomatedMarketMakerPair(address newPair, bool value) private {
        require(
            automatedMarketMakerPairs[newPair] != value,
            "Automated market maker pair is already set to that value"
        );
        automatedMarketMakerPairs[newPair] = value;
    }

    /**
     * @dev Checks if an address is excluded from fee deductions.
     * @param account The address to check for exclusion from fees.
     * @return A boolean indicating if the address is excluded from fees.
     */
    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    /**
     * @dev Internal transfer function with additional logic to handle fees.
     */

    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(!isBlackListed[from] && !isBlackListed[to], "User blacklisted");

        if (automatedMarketMakerPairs[to]) {
            require(amount <= maxSellAmount, "You are exceeding maxSellAmount");
        } else if (automatedMarketMakerPairs[from]) {
            require(amount <= maxBuyAmount, "You are exceeding maxBuyAmount");
            require(
                amount + balanceOf(to) <= maxWalletAmount,
                "Unable to exceed Max Wallet"
            );
        }

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        bool takeFee;

        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        if (
            !automatedMarketMakerPairs[to] && !automatedMarketMakerPairs[from]
        ) {
            takeFee = false;
        }

        if (takeFee) {
            uint256 feeAmt;
            if (automatedMarketMakerPairs[to]) {
                feeAmt = (amount * totalSellTax) / 100;
            } else if (automatedMarketMakerPairs[from]) {
                feeAmt = (amount * totalBuyTax) / 100;
            }
            amount = amount - feeAmt;
            super._transfer(from, marketingWallet, feeAmt);
        }
        super._transfer(from, to, amount);
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
isBlackListed 0xe47d6060 → bool
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
symbol 0x95d89b41 → string
totalBuyTax 0x46469afb → uint256
totalSellTax 0x1bff7898 → uint256
totalSupply 0x18160ddd → uint256

Write Contract 16 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 value
returns: bool
blackListAddress 0x3b0e0133
address account
burn 0x42966c68
uint256 value
burnFrom 0x79cc6790
address account
uint256 value
excludeFromFees 0xc0246668
address account
bool excluded
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address newPair
bool value
setBuyTaxes 0xa3ca847d
uint256 buyTaxPercent
setMarketingWallet 0x5d098b38
address newWallet
setMaxBuyAndSell 0x79b447bd
uint256 maxBuyPercent
uint256 maxSellPercent
setSellTaxes 0x0940bbc7
uint256 sellTaxPercent
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateMaxWalletAmount 0xc18bc195
uint256 maxWalletPercent
whiteListAddress 0xcf52a7b2
address account

Recent Transactions

No transactions found for this address