Address Contract Partially Verified
Address
0x5F0bF77D05903C6696543484B70DFa77BCFb6359
Balance
0 ETH
Nonce
1
Code Size
21870 bytes
Creator
0x4D6FA402...E0DF at tx 0xd08ccd5a...e23b62
Indexed Transactions
0
Contract Bytecode
21870 bytes
0x608060405234801561000f575f5ffd5b5060043610610288575f3560e01c80637ecebe001161015a578063a217fddf116100cc578063d505accf11610085578063d505accf14610794578063d547741f146107b0578063d602b9fd146107cc578063dd62ed3e146107d6578063f26c159f14610806578063fb1e61ca1461082257610288565b8063a217fddf146106e1578063a759ee6f146106ff578063a9059cbb1461071d578063cc8463c81461074d578063cefc14291461076b578063cf6eefb71461077557610288565b806391d148541161011e57806391d148541461060c57806395587d031461063c57806395d89b41146106585780639a65797c146106765780639fc1d0e7146106a6578063a1eda53c146106c257610288565b80637ecebe00146105725780638456cb59146105a257806384b0196e146105ac57806384ef8ffc146105d05780638da5cb5b146105ee57610288565b8063313ce567116101fe5780635c975abb116101b75780635c975abb146104b4578063634e93da146104d2578063649a5ec7146104ee57806370a082311461050a57806376ba60091461053a578063788649ea1461055657610288565b8063313ce567146104065780633644e5151461042457806336568abe146104425780633e75d5151461045e5780633f4ba83a1461047a5780634b7ee0ba1461048457610288565b80631171bda9116102505780631171bda91461033257806318160ddd1461034e57806323b872dd1461036c578063248a9ca31461039c5780632f2ff15d146103cc5780632f83a6bc146103e857610288565b806301ffc9a71461028c578063022d63fb146102bc57806306fdde03146102da578063095ea7b3146102f85780630aa6220b14610328575b5f5ffd5b6102a660048036038101906102a19190613de3565b610852565b6040516102b39190613e28565b60405180910390f35b6102c46108cb565b6040516102d19190613e61565b60405180910390f35b6102e26108d5565b6040516102ef9190613eea565b60405180910390f35b610312600480360381019061030d9190613f97565b610965565b60405161031f9190613e28565b60405180910390f35b610330610987565b005b61034c60048036038101906103479190613fd5565b6109c2565b005b610356610c9d565b6040516103639190614034565b60405180910390f35b61038660048036038101906103819190613fd5565b610ca6565b6040516103939190613e28565b60405180910390f35b6103b660048036038101906103b19190614080565b610cd4565b6040516103c391906140ba565b60405180910390f35b6103e660048036038101906103e191906140d3565b610cf1565b005b6103f0610d3a565b6040516103fd91906140ba565b60405180910390f35b61040e610d5e565b60405161041b919061412c565b60405180910390f35b61042c610d74565b60405161043991906140ba565b60405180910390f35b61045c600480360381019061045791906140d3565b610d82565b005b61047860048036038101906104739190614145565b610dbd565b005b610482610e0d565b005b61049e60048036038101906104999190614170565b610e24565b6040516104ab91906140ba565b60405180910390f35b6104bc611103565b6040516104c99190613e28565b60405180910390f35b6104ec60048036038101906104e79190614145565b611118565b005b610508600480360381019061050391906141c5565b611131565b005b610524600480360381019061051f9190614145565b61116c565b6040516105319190614034565b60405180910390f35b610554600480360381019061054f9190614080565b6111b1565b005b610570600480360381019061056b9190614145565b611483565b005b61058c60048036038101906105879190614145565b61151e565b6040516105999190614034565b60405180910390f35b6105aa61152f565b005b6105b4611546565b6040516105c797969594939291906142f0565b60405180910390f35b6105d86115eb565b6040516105e59190614372565b60405180910390f35b6105f6611613565b6040516106039190614372565b60405180910390f35b610626600480360381019061062191906140d3565b611621565b6040516106339190613e28565b60405180910390f35b61065660048036038101906106519190614080565b611685565b005b61066061190a565b60405161066d9190613eea565b60405180910390f35b610690600480360381019061068b9190613f97565b61199a565b60405161069d91906140ba565b60405180910390f35b6106c060048036038101906106bb9190613fd5565b611c8c565b005b6106ca611ca9565b6040516106d892919061438b565b60405180910390f35b6106e9611d07565b6040516106f691906140ba565b60405180910390f35b610707611d0d565b6040516107149190614372565b60405180910390f35b61073760048036038101906107329190613f97565b611d32565b6040516107449190613e28565b60405180910390f35b610755611d54565b6040516107629190613e61565b60405180910390f35b610773611dc1565b005b61077d611e56565b60405161078b9291906143b2565b60405180910390f35b6107ae60048036038101906107a99190614403565b611e97565b005b6107ca60048036038101906107c591906140d3565b611fdc565b005b6107d46120af565b005b6107f060048036038101906107eb91906144a0565b6120c6565b6040516107fd9190614034565b60405180910390f35b610820600480360381019061081b9190614145565b612148565b005b61083c60048036038101906108379190614080565b6121e4565b6040516108499190614632565b60405180910390f35b5f7f31498786000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108c457506108c38261234a565b5b9050919050565b5f62069780905090565b6060600380546108e490614678565b80601f016020809104026020016040519081016040528092919081815260200182805461091090614678565b801561095b5780601f106109325761010080835404028352916020019161095b565b820191905f5260205f20905b81548152906001019060200180831161093e57829003601f168201915b5050505050905090565b5f5f61096f6123c3565b905061097c8185856123ca565b600191505092915050565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b990614718565b60405180910390fd5b5f5f1b6109ce816123dc565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3390614780565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa1906147e8565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0f90614850565b60405180910390fd5b5f8490505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b569190614372565b602060405180830381865afa158015610b71573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b959190614882565b90505f8111610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd0906148f7565b60405180910390fd5b5f5f8514610be75784610be9565b815b905081811115610c2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c259061495f565b60405180910390fd5b610c5986828573ffffffffffffffffffffffffffffffffffffffff166123f09092919063ffffffff16565b7f401f439d865a766757ec78675925bd67198d5e78805aa41691b34b5d6a6cbbe6878783604051610c8c9392919061497d565b60405180910390a150505050505050565b5f600254905090565b5f5f610cb06123c3565b9050610cbd85828561246f565b610cc8858585612501565b60019150509392505050565b5f60095f8381526020019081526020015f20600101549050919050565b5f5f1b8203610d2c576040517f3fc3c27a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d3682826125f1565b5050565b7f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f81565b5f600c60149054906101000a900460ff16905090565b5f610d7d612613565b905090565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db490614a22565b60405180910390fd5b5f5f1b610dc9816123dc565b81600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b5f5f1b610e19816123dc565b610e216126c9565b50565b5f5f8211610e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5e90614a8a565b60405180910390fd5b610e713083611d32565b50600d5f815480929190610e8490614ad5565b91905055505f4233600180811115610e9f57610e9e6144de565b5b600d54604051602001610eb59493929190614bb5565b6040516020818303038152906040528051906020012090508260105f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610f199190614c02565b925050819055506040518060e00160405280600180811115610f3e57610f3d6144de565b5b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018481526020015f6002811115610f9457610f936144de565b5b81526020014281526020015f815250600e5f8381526020019081526020015f205f820151815f015f6101000a81548160ff02191690836001811115610fdc57610fdb6144de565b5b02179055506020820151815f0160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600201556080820151816003015f6101000a81548160ff021916908360028111156110a1576110a06144de565b5b021790555060a0820151816004015560c082015181600501559050507fe39dfd51c5afcc917102a34518501823ed2e42ec3dec1f4eea50dc9f1fe05b21813385426040516110f29493929190614c35565b60405180910390a180915050919050565b5f60055f9054906101000a900460ff16905090565b5f5f1b611124816123dc565b61112d8261272a565b5050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116390614ce8565b60405180910390fd5b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b7f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f6111db816123dc565b5f600e5f8481526020019081526020015f206004015403611231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122890614d50565b60405180910390fd5b5f6002811115611244576112436144de565b5b600e5f8481526020019081526020015f206003015f9054906101000a900460ff166002811115611277576112766144de565b5b146112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae90614db8565b60405180910390fd5b5f600e5f8481526020019081526020015f2090505f60018111156112de576112dd6144de565b5b815f015f9054906101000a900460ff166001811115611300576112ff6144de565b5b0361133b57611336816001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600201546127a4565b6113ff565b60018081111561134e5761134d6144de565b5b815f015f9054906101000a900460ff1660018111156113705761136f6144de565b5b036113fe57611383308260020154612823565b806002015460105f836001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546113f69190614dd6565b925050819055505b5b6001816003015f6101000a81548160ff02191690836002811115611426576114256144de565b5b02179055504281600501819055507fc2f58a650a933a5af9b05636994e4813a3e2a5d64ad6b66cc48f3016b898292d8342835f015f9054906101000a900460ff1660405161147693929190614e18565b60405180910390a1505050565b5f5f1b61148f816123dc565b5f600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507ff915cd9fe234de6e8d3afe7bf2388d35b2b6d48e8c629a24602019bde79c213a826040516115129190614372565b60405180910390a15050565b5f611528826128a2565b9050919050565b5f5f1b61153b816123dc565b6115436128e8565b50565b5f6060805f5f5f606061155761294a565b61155f612985565b46305f5f1b5f67ffffffffffffffff81111561157e5761157d614e4d565b5b6040519080825280602002602001820160405280156115ac5781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b5f600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f61161c6115eb565b905090565b5f60095f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b7f0b84ee281e5cf521a9ad54a86fafe78946b157177e231bd8ae785af4d3b3620f6116af816123dc565b5f600e5f8481526020019081526020015f206004015403611705576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fc90614d50565b60405180910390fd5b5f6002811115611718576117176144de565b5b600e5f8481526020019081526020015f206003015f9054906101000a900460ff16600281111561174b5761174a6144de565b5b1461178b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178290614db8565b60405180910390fd5b5f600e5f8481526020019081526020015f2090506001808111156117b2576117b16144de565b5b815f015f9054906101000a900460ff1660018111156117d4576117d36144de565b5b036118865761180b30826001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360020154612501565b806002015460105f836001015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461187e9190614dd6565b925050819055505b6002816003015f6101000a81548160ff021916908360028111156118ad576118ac6144de565b5b02179055504281600501819055507f46a3406ddb9a8bacb18ac6b567f9724d186c39ba255ce1ec8d35ff9ea9dfcd468342835f015f9054906101000a900460ff166040516118fd93929190614e18565b60405180910390a1505050565b60606004805461191990614678565b80601f016020809104026020016040519081016040528092919081815260200182805461194590614678565b80156119905780601f1061196757610100808354040283529160200191611990565b820191905f5260205f20905b81548152906001019060200180831161197357829003601f168201915b5050505050905090565b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0090614ec4565b60405180910390fd5b5f8211611a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4290614f2c565b60405180910390fd5b600d5f815480929190611a5d90614ad5565b91905055505f42335f6001811115611a7857611a776144de565b5b600d54604051602001611a8e9493929190614bb5565b6040516020818303038152906040528051906020012090506040518060e001604052805f6001811115611ac457611ac36144de565b5b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018481526020015f6002811115611b1a57611b196144de565b5b81526020014281526020015f815250600e5f8381526020019081526020015f205f820151815f015f6101000a81548160ff02191690836001811115611b6257611b616144de565b5b02179055506020820151815f0160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816001015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600201556080820151816003015f6101000a81548160ff02191690836002811115611c2757611c266144de565b5b021790555060a0820151816004015560c082015181600501559050507f7b8f8ac381c1aa1aed2d63b2bbb843aa334205d3748e685f7433a07088ea58d98133868642604051611c7a959493929190614f4a565b60405180910390a18091505092915050565b5f5f1b611c98816123dc565b611ca3848484612501565b50505050565b5f5f600b601a9054906101000a900465ffffffffffff169050611ccb816129c0565b8015611cdd5750611cdb816129d4565b155b611ce8575f5f611cff565b600b60149054906101000a900465ffffffffffff16815b915091509091565b5f5f1b81565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f611d3c6123c3565b9050611d49818585612501565b600191505092915050565b5f5f600b601a9054906101000a900465ffffffffffff169050611d76816129c0565b8015611d875750611d86816129d4565b5b611da557600a601a9054906101000a900465ffffffffffff16611dbb565b600b60149054906101000a900465ffffffffffff165b91505090565b5f611dca611e56565b5090508073ffffffffffffffffffffffffffffffffffffffff16611dec6123c3565b73ffffffffffffffffffffffffffffffffffffffff1614611e4b57611e0f6123c3565b6040517fc22c8022000000000000000000000000000000000000000000000000000000008152600401611e429190614372565b60405180910390fd5b611e536129e7565b50565b5f5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a60149054906101000a900465ffffffffffff16915091509091565b83421115611edc57836040517f62791302000000000000000000000000000000000000000000000000000000008152600401611ed39190614034565b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611f0a8c612ab2565b89604051602001611f2096959493929190614f9b565b6040516020818303038152906040528051906020012090505f611f4282612b05565b90505f611f5182878787612b1e565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611fc557808a6040517f4b800e46000000000000000000000000000000000000000000000000000000008152600401611fbc929190614ffa565b60405180910390fd5b611fd08a8a8a6123ca565b50505050505050505050565b5f5f1b8214801561201857503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15612058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204f90615091565b60405180910390fd5b6120628282611621565b6120a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120989061511f565b60405180910390fd5b6120ab8282612b4c565b5050565b5f5f1b6120bb816123dc565b6120c3612b95565b50565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f5f1b612154816123dc565b6001600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f4f2a367e694e71282f29ab5eaa04c4c0be45ac5bf2ca74fb67068b98bdc2887d826040516121d89190614372565b60405180910390a15050565b6121ec613d04565b600e5f8381526020019081526020015f206040518060e00160405290815f82015f9054906101000a900460ff16600181111561222b5761222a6144de565b5b600181111561223d5761223c6144de565b5b81526020015f820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382015f9054906101000a900460ff166002811115612319576123186144de565b5b600281111561232b5761232a6144de565b5b8152602001600482015481526020016005820154815250509050919050565b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123bc57506123bb82612ba1565b5b9050919050565b5f33905090565b6123d78383836001612c0a565b505050565b6123ed816123e86123c3565b612dd9565b50565b61246a838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858560405160240161242392919061513d565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612e2a565b505050565b5f61247a84846120c6565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146124fb57818110156124ec578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016124e393929190615164565b60405180910390fd5b6124fa84848484035f612c0a565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612571575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016125689190614372565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125e1575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016125d89190614372565b60405180910390fd5b6125ec838383612ec5565b505050565b6125fa82610cd4565b612603816123dc565b61260d8383613065565b50505050565b5f7f0000000000000000000000005f0bf77d05903c6696543484b70dfa77bcfb635973ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561268e57507f000000000000000000000000000000000000000000000000000000000000000146145b156126bb577f73ab54fce41428a28decd1b28f1e46f566090c247c2269e5d02919c2a4d429b790506126c6565b6126c361312e565b90505b90565b6126d16131c3565b5f60055f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127136123c3565b6040516127209190614372565b60405180910390a1565b5f612733611d54565b61273c42613203565b6127469190615199565b9050612752828261325c565b8173ffffffffffffffffffffffffffffffffffffffff167f3377dc44241e779dd06afab5b788a35ca5f3b778836e2990bdb26a2a4b2e5ed6826040516127989190613e61565b60405180910390a25050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612814575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161280b9190614372565b60405180910390fd5b61281f5f8383612ec5565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612893575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161288a9190614372565b60405180910390fd5b61289e825f83612ec5565b5050565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6128f061330d565b600160055f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129336123c3565b6040516129409190614372565b60405180910390a1565b606061298060067f51434420546f6b656e000000000000000000000000000000000000000000000961334e90919063ffffffff16565b905090565b60606129bb60077f310000000000000000000000000000000000000000000000000000000000000161334e90919063ffffffff16565b905090565b5f5f8265ffffffffffff1614159050919050565b5f428265ffffffffffff16109050919050565b5f5f6129f1611e56565b915091506129fe816129c0565b1580612a105750612a0e816129d4565b155b15612a5257806040517f19ca5ebb000000000000000000000000000000000000000000000000000000008152600401612a499190613e61565b60405180910390fd5b612a655f5f1b612a606115eb565b6133fb565b50612a725f5f1b83613065565b50600a5f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600a60146101000a81549065ffffffffffff02191690555050565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815480929190600101919050559050919050565b5f612b17612b11612613565b8361347b565b9050919050565b5f5f5f5f612b2e888888886134bb565b925092509250612b3e82826135a2565b829350505050949350505050565b5f5f1b8203612b87576040517f3fc3c27a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b918282613704565b5050565b612b9f5f5f61325c565b565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c7a575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401612c719190614372565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612cea575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401612ce19190614372565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015612dd3578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051612dca9190614034565b60405180910390a35b50505050565b612de38282611621565b612e265780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401612e1d9291906151d2565b60405180910390fd5b5050565b5f5f60205f8451602086015f885af180612e49576040513d5f823e3d81fd5b3d92505f519150505f8214612e62576001811415612e7d565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b15612ebf57836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401612eb69190614372565b60405180910390fd5b50505050565b600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4690615243565b60405180910390fd5b5f8111612f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f88906152d1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461300d57612fcd83613726565b61300c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300390615339565b60405180910390fd5b5b61301682613726565b613055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304c906153a1565b60405180910390fd5b61306083838361383f565b505050565b5f5f5f1b830361311c575f73ffffffffffffffffffffffffffffffffffffffff1661308e6115eb565b73ffffffffffffffffffffffffffffffffffffffff16146130db576040517f3fc3c27a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b6131268383613857565b905092915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f3bb4277973b93b7ac39ff713ec764f2eb1156173979ca875491291b84ea86b677fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016131a89594939291906153bf565b60405160208183030381529060405280519060200120905090565b6131cb611103565b613201576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f65ffffffffffff8016821115613254576030826040517f6dfcc65000000000000000000000000000000000000000000000000000000000815260040161324b929190615452565b60405180910390fd5b819050919050565b5f613265611e56565b91505082600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a60146101000a81548165ffffffffffff021916908365ffffffffffff1602179055506132d6816129c0565b15613308577f8886ebfc4259abdbc16601dd8fb5678e54878f47b3c34836cfc51154a960510960405160405180910390a15b505050565b613315611103565b1561334c576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b606060ff5f1b831461336a5761336383613941565b90506133f5565b81805461337690614678565b80601f01602080910402602001604051908101604052809291908181526020018280546133a290614678565b80156133ed5780601f106133c4576101008083540402835291602001916133ed565b820191905f5260205f20905b8154815290600101906020018083116133d057829003601f168201915b505050505090505b92915050565b5f5f5f1b8314801561343f57506134106115eb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561346957600b5f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b61347383836139b3565b905092915050565b5f6040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b5f5f5f7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0845f1c11156134f7575f600385925092509250613598565b5f6001888888886040515f815260200160405260405161351a9493929190615479565b6020604051602081039080840390855afa15801561353a573d5f5f3e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361358b575f60015f5f1b93509350935050613598565b805f5f5f1b935093509350505b9450945094915050565b5f60038111156135b5576135b46144de565b5b8260038111156135c8576135c76144de565b5b031561370057600160038111156135e2576135e16144de565b5b8260038111156135f5576135f46144de565b5b0361362c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260038111156136405761363f6144de565b5b826003811115613653576136526144de565b5b0361369757805f1c6040517ffce698f700000000000000000000000000000000000000000000000000000000815260040161368e9190614034565b60405180910390fd5b6003808111156136aa576136a96144de565b5b8260038111156136bd576136bc6144de565b5b036136ff57806040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004016136f691906140ba565b60405180910390fd5b5b5050565b61370d82610cd4565b613716816123dc565b61372083836133fb565b50505050565b5f5f73ffffffffffffffffffffffffffffffffffffffff16600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603613784576001905061383a565b5f600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f8173ffffffffffffffffffffffffffffffffffffffff1663fcb2cafc856040518263ffffffff1660e01b81526004016137e39190614372565b6040805180830381865afa1580156137fd573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061382191906154fa565b50905080613833575f9250505061383a565b6001925050505b919050565b61384761330d565b613852838383613a9d565b505050565b5f6138628383611621565b61393757600160095f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506138d46123c3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061393b565b5f90505b92915050565b60605f61394d83613cb6565b90505f602067ffffffffffffffff81111561396b5761396a614e4d565b5b6040519080825280601f01601f19166020018201604052801561399d5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b5f6139be8383611621565b15613a93575f60095f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550613a306123c3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050613a97565b5f90505b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613aed578060025f828254613ae19190614c02565b92505081905550613bbb565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015613b76578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401613b6d93929190615164565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613c02578060025f8282540392505081905550613c4c565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051613ca99190614034565b60405180910390a3505050565b5f5f60ff835f1c169050601f811115613cfb576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b6040518060e001604052805f6001811115613d2257613d216144de565b5b81526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f6002811115613d7857613d776144de565b5b81526020015f81526020015f81525090565b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613dc281613d8e565b8114613dcc575f5ffd5b50565b5f81359050613ddd81613db9565b92915050565b5f60208284031215613df857613df7613d8a565b5b5f613e0584828501613dcf565b91505092915050565b5f8115159050919050565b613e2281613e0e565b82525050565b5f602082019050613e3b5f830184613e19565b92915050565b5f65ffffffffffff82169050919050565b613e5b81613e41565b82525050565b5f602082019050613e745f830184613e52565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f613ebc82613e7a565b613ec68185613e84565b9350613ed6818560208601613e94565b613edf81613ea2565b840191505092915050565b5f6020820190508181035f830152613f028184613eb2565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613f3382613f0a565b9050919050565b613f4381613f29565b8114613f4d575f5ffd5b50565b5f81359050613f5e81613f3a565b92915050565b5f819050919050565b613f7681613f64565b8114613f80575f5ffd5b50565b5f81359050613f9181613f6d565b92915050565b5f5f60408385031215613fad57613fac613d8a565b5b5f613fba85828601613f50565b9250506020613fcb85828601613f83565b9150509250929050565b5f5f5f60608486031215613fec57613feb613d8a565b5b5f613ff986828701613f50565b935050602061400a86828701613f50565b925050604061401b86828701613f83565b9150509250925092565b61402e81613f64565b82525050565b5f6020820190506140475f830184614025565b92915050565b5f819050919050565b61405f8161404d565b8114614069575f5ffd5b50565b5f8135905061407a81614056565b92915050565b5f6020828403121561409557614094613d8a565b5b5f6140a28482850161406c565b91505092915050565b6140b48161404d565b82525050565b5f6020820190506140cd5f8301846140ab565b92915050565b5f5f604083850312156140e9576140e8613d8a565b5b5f6140f68582860161406c565b925050602061410785828601613f50565b9150509250929050565b5f60ff82169050919050565b61412681614111565b82525050565b5f60208201905061413f5f83018461411d565b92915050565b5f6020828403121561415a57614159613d8a565b5b5f61416784828501613f50565b91505092915050565b5f6020828403121561418557614184613d8a565b5b5f61419284828501613f83565b91505092915050565b6141a481613e41565b81146141ae575f5ffd5b50565b5f813590506141bf8161419b565b92915050565b5f602082840312156141da576141d9613d8a565b5b5f6141e7848285016141b1565b91505092915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b614224816141f0565b82525050565b61423381613f29565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61426b81613f64565b82525050565b5f61427c8383614262565b60208301905092915050565b5f602082019050919050565b5f61429e82614239565b6142a88185614243565b93506142b383614253565b805f5b838110156142e35781516142ca8882614271565b97506142d583614288565b9250506001810190506142b6565b5085935050505092915050565b5f60e0820190506143035f83018a61421b565b81810360208301526143158189613eb2565b905081810360408301526143298188613eb2565b90506143386060830187614025565b614345608083018661422a565b61435260a08301856140ab565b81810360c08301526143648184614294565b905098975050505050505050565b5f6020820190506143855f83018461422a565b92915050565b5f60408201905061439e5f830185613e52565b6143ab6020830184613e52565b9392505050565b5f6040820190506143c55f83018561422a565b6143d26020830184613e52565b9392505050565b6143e281614111565b81146143ec575f5ffd5b50565b5f813590506143fd816143d9565b92915050565b5f5f5f5f5f5f5f60e0888a03121561441e5761441d613d8a565b5b5f61442b8a828b01613f50565b975050602061443c8a828b01613f50565b965050604061444d8a828b01613f83565b955050606061445e8a828b01613f83565b945050608061446f8a828b016143ef565b93505060a06144808a828b0161406c565b92505060c06144918a828b0161406c565b91505092959891949750929550565b5f5f604083850312156144b6576144b5613d8a565b5b5f6144c385828601613f50565b92505060206144d485828601613f50565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061451c5761451b6144de565b5b50565b5f81905061452c8261450b565b919050565b5f61453b8261451f565b9050919050565b61454b81614531565b82525050565b61455a81613f29565b82525050565b60038110614571576145706144de565b5b50565b5f81905061458182614560565b919050565b5f61459082614574565b9050919050565b6145a081614586565b82525050565b60e082015f8201516145ba5f850182614542565b5060208201516145cd6020850182614551565b5060408201516145e06040850182614551565b5060608201516145f36060850182614262565b5060808201516146066080850182614597565b5060a082015161461960a0850182614262565b5060c082015161462c60c0850182614262565b50505050565b5f60e0820190506146455f8301846145a6565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061468f57607f821691505b6020821081036146a2576146a161464b565b5b50919050565b7f4d79546f6b656e3a20726f6c6c6261636b2061646d696e2064656c61792069735f8201527f207065726d616e656e746c792064697361626c65640000000000000000000000602082015250565b5f614702603583613e84565b915061470d826146a8565b604082019050919050565b5f6020820190508181035f83015261472f816146f6565b9050919050565b7f546f6b656e20616464726573732063616e6e6f74206265207a65726f000000005f82015250565b5f61476a601c83613e84565b915061477582614736565b602082019050919050565b5f6020820190508181035f8301526147978161475e565b9050919050565b7f526563697069656e7420616464726573732063616e6e6f74206265207a65726f5f82015250565b5f6147d2602083613e84565b91506147dd8261479e565b602082019050919050565b5f6020820190508181035f8301526147ff816147c6565b9050919050565b7f43616e6e6f74207265636f766572206f776e20746f6b656e73000000000000005f82015250565b5f61483a601983613e84565b915061484582614806565b602082019050919050565b5f6020820190508181035f8301526148678161482e565b9050919050565b5f8151905061487c81613f6d565b92915050565b5f6020828403121561489757614896613d8a565b5b5f6148a48482850161486e565b91505092915050565b7f4e6f20746f6b656e7320746f207265636f7665720000000000000000000000005f82015250565b5f6148e1601483613e84565b91506148ec826148ad565b602082019050919050565b5f6020820190508181035f83015261490e816148d5565b9050919050565b7f496e73756666696369656e7420746f6b656e2062616c616e63650000000000005f82015250565b5f614949601a83613e84565b915061495482614915565b602082019050919050565b5f6020820190508181035f8301526149768161493d565b9050919050565b5f6060820190506149905f83018661422a565b61499d602083018561422a565b6149aa6040830184614025565b949350505050565b7f4d79546f6b656e3a2072656e6f756e6365526f6c652069732064697361626c655f8201527f6420666f72207365637572697479000000000000000000000000000000000000602082015250565b5f614a0c602e83613e84565b9150614a17826149b2565b604082019050919050565b5f6020820190508181035f830152614a3981614a00565b9050919050565b7f4275726e20616d6f756e74206d75737420626520706f736974697665000000005f82015250565b5f614a74601c83613e84565b9150614a7f82614a40565b602082019050919050565b5f6020820190508181035f830152614aa181614a68565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614adf82613f64565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b1157614b10614aa8565b5b600182019050919050565b5f819050919050565b614b36614b3182613f64565b614b1c565b82525050565b5f8160601b9050919050565b5f614b5282614b3c565b9050919050565b5f614b6382614b48565b9050919050565b614b7b614b7682613f29565b614b59565b82525050565b5f8160f81b9050919050565b5f614b9782614b81565b9050919050565b614baf614baa82614111565b614b8d565b82525050565b5f614bc08287614b25565b602082019150614bd08286614b6a565b601482019150614be08285614b9e565b600182019150614bf08284614b25565b60208201915081905095945050505050565b5f614c0c82613f64565b9150614c1783613f64565b9250828201905080821115614c2f57614c2e614aa8565b5b92915050565b5f608082019050614c485f8301876140ab565b614c55602083018661422a565b614c626040830185614025565b614c6f6060830184614025565b95945050505050565b7f4d79546f6b656e3a206368616e67696e672061646d696e2064656c61792069735f8201527f207065726d616e656e746c792064697361626c65640000000000000000000000602082015250565b5f614cd2603583613e84565b9150614cdd82614c78565b604082019050919050565b5f6020820190508181035f830152614cff81614cc6565b9050919050565b7f5265717565737420646f6573206e6f74206578697374000000000000000000005f82015250565b5f614d3a601683613e84565b9150614d4582614d06565b602082019050919050565b5f6020820190508181035f830152614d6781614d2e565b9050919050565b7f52657175657374206973206e6f742070656e64696e67000000000000000000005f82015250565b5f614da2601683613e84565b9150614dad82614d6e565b602082019050919050565b5f6020820190508181035f830152614dcf81614d96565b9050919050565b5f614de082613f64565b9150614deb83613f64565b9250828203905081811115614e0357614e02614aa8565b5b92915050565b614e1281614531565b82525050565b5f606082019050614e2b5f8301866140ab565b614e386020830185614025565b614e456040830184614e09565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4d696e7420746f20746865207a65726f206164647265737300000000000000005f82015250565b5f614eae601883613e84565b9150614eb982614e7a565b602082019050919050565b5f6020820190508181035f830152614edb81614ea2565b9050919050565b7f4d696e7420616d6f756e74206d75737420626520706f736974697665000000005f82015250565b5f614f16601c83613e84565b9150614f2182614ee2565b602082019050919050565b5f6020820190508181035f830152614f4381614f0a565b9050919050565b5f60a082019050614f5d5f8301886140ab565b614f6a602083018761422a565b614f77604083018661422a565b614f846060830185614025565b614f916080830184614025565b9695505050505050565b5f60c082019050614fae5f8301896140ab565b614fbb602083018861422a565b614fc8604083018761422a565b614fd56060830186614025565b614fe26080830185614025565b614fef60a0830184614025565b979650505050505050565b5f60408201905061500d5f83018561422a565b61501a602083018461422a565b9392505050565b7f41646d696e732063616e6e6f74207265766f6b65207468656972206f776e20615f8201527f646d696e20726f6c650000000000000000000000000000000000000000000000602082015250565b5f61507b602983613e84565b915061508682615021565b604082019050919050565b5f6020820190508181035f8301526150a88161506f565b9050919050565b7f4163636f756e7420646f6573206e6f7420686176652074686520726f6c6520745f8201527f6f206265207265766f6b65640000000000000000000000000000000000000000602082015250565b5f615109602c83613e84565b9150615114826150af565b604082019050919050565b5f6020820190508181035f830152615136816150fd565b9050919050565b5f6040820190506151505f83018561422a565b61515d6020830184614025565b9392505050565b5f6060820190506151775f83018661422a565b6151846020830185614025565b6151916040830184614025565b949350505050565b5f6151a382613e41565b91506151ae83613e41565b9250828201905065ffffffffffff8111156151cc576151cb614aa8565b5b92915050565b5f6040820190506151e55f83018561422a565b6151f260208301846140ab565b9392505050565b7f45524332303a206163636f756e742069732066726f7a656e00000000000000005f82015250565b5f61522d601883613e84565b9150615238826151f9565b602082019050919050565b5f6020820190508181035f83015261525a81615221565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206d75737420626520675f8201527f726561746572207468616e207a65726f00000000000000000000000000000000602082015250565b5f6152bb603083613e84565b91506152c682615261565b604082019050919050565b5f6020820190508181035f8301526152e8816152af565b9050919050565b7f45524332303a2073656e646572206e6f742077686974656c69737465640000005f82015250565b5f615323601d83613e84565b915061532e826152ef565b602082019050919050565b5f6020820190508181035f83015261535081615317565b9050919050565b7f45524332303a207265636569766572206e6f742077686974656c6973746564005f82015250565b5f61538b601f83613e84565b915061539682615357565b602082019050919050565b5f6020820190508181035f8301526153b88161537f565b9050919050565b5f60a0820190506153d25f8301886140ab565b6153df60208301876140ab565b6153ec60408301866140ab565b6153f96060830185614025565b615406608083018461422a565b9695505050505050565b5f819050919050565b5f819050919050565b5f61543c61543761543284615410565b615419565b614111565b9050919050565b61544c81615422565b82525050565b5f6040820190506154655f830185615443565b6154726020830184614025565b9392505050565b5f60808201905061548c5f8301876140ab565b615499602083018661411d565b6154a660408301856140ab565b6154b360608301846140ab565b95945050505050565b6154c581613e0e565b81146154cf575f5ffd5b50565b5f815190506154e0816154bc565b92915050565b5f815190506154f481614056565b92915050565b5f5f604083850312156155105761550f613d8a565b5b5f61551d858286016154d2565b925050602061552e858286016154e6565b915050925092905056fea26469706673582212204e08115b7cee064050fdbaf6e447bbf3a2d7beae139e9241fea65449737d114664736f6c634300081e0033
Verified Source Code Partial Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
MyToken.sol 6489 lines
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC-20 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/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/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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 ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-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 ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 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/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.1.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 ERC-20
* applications.
*/
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}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* 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 {
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:
*
* ```solidity
* 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/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: @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/token/ERC20/extensions/ERC20Pausable.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/ERC20Pausable.sol)
pragma solidity ^0.8.20;
/**
* @dev ERC-20 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/IERC20Permit.sol
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[ERC-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC-20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.20;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(
bytes32 hash,
bytes memory signature
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly ("memory-safe") {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures]
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}
// File: @openzeppelin/contracts/utils/Panic.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)
pragma solidity ^0.8.20;
/**
* @dev Helper library for emitting standardized panic codes.
*
* ```solidity
* contract Example {
* using Panic for uint256;
*
* // Use any of the declared internal constants
* function foo() { Panic.GENERIC.panic(); }
*
* // Alternatively
* function foo() { Panic.panic(Panic.GENERIC); }
* }
* ```
*
* Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].
*
* _Available since v5.1._
*/
// slither-disable-next-line unused-state
library Panic {
/// @dev generic / unspecified error
uint256 internal constant GENERIC = 0x00;
/// @dev used by the assert() builtin
uint256 internal constant ASSERT = 0x01;
/// @dev arithmetic underflow or overflow
uint256 internal constant UNDER_OVERFLOW = 0x11;
/// @dev division or modulo by zero
uint256 internal constant DIVISION_BY_ZERO = 0x12;
/// @dev enum conversion error
uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;
/// @dev invalid encoding in storage
uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;
/// @dev empty array pop
uint256 internal constant EMPTY_ARRAY_POP = 0x31;
/// @dev array out of bounds access
uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;
/// @dev resource error (too large allocation or too large array)
uint256 internal constant RESOURCE_ERROR = 0x41;
/// @dev calling invalid internal function
uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;
/// @dev Reverts with a panic code. Recommended to use with
/// the internal constants with predefined codes.
function panic(uint256 code) internal pure {
assembly ("memory-safe") {
mstore(0x00, 0x4e487b71)
mstore(0x20, code)
revert(0x1c, 0x24)
}
}
}
// File: @openzeppelin/contracts/utils/math/SafeCast.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.
pragma solidity ^0.8.20;
/**
* @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow
* checks.
*
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such an operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeCast {
/**
* @dev Value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);
/**
* @dev An int value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedIntToUint(int256 value);
/**
* @dev Value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);
/**
* @dev An uint value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedUintToInt(uint256 value);
/**
* @dev Returns the downcasted uint248 from uint256, reverting on
* overflow (when the input is greater than largest uint248).
*
* Counterpart to Solidity's `uint248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*/
function toUint248(uint256 value) internal pure returns (uint248) {
if (value > type(uint248).max) {
revert SafeCastOverflowedUintDowncast(248, value);
}
return uint248(value);
}
/**
* @dev Returns the downcasted uint240 from uint256, reverting on
* overflow (when the input is greater than largest uint240).
*
* Counterpart to Solidity's `uint240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*/
function toUint240(uint256 value) internal pure returns (uint240) {
if (value > type(uint240).max) {
revert SafeCastOverflowedUintDowncast(240, value);
}
return uint240(value);
}
/**
* @dev Returns the downcasted uint232 from uint256, reverting on
* overflow (when the input is greater than largest uint232).
*
* Counterpart to Solidity's `uint232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*/
function toUint232(uint256 value) internal pure returns (uint232) {
if (value > type(uint232).max) {
revert SafeCastOverflowedUintDowncast(232, value);
}
return uint232(value);
}
/**
* @dev Returns the downcasted uint224 from uint256, reverting on
* overflow (when the input is greater than largest uint224).
*
* Counterpart to Solidity's `uint224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*/
function toUint224(uint256 value) internal pure returns (uint224) {
if (value > type(uint224).max) {
revert SafeCastOverflowedUintDowncast(224, value);
}
return uint224(value);
}
/**
* @dev Returns the downcasted uint216 from uint256, reverting on
* overflow (when the input is greater than largest uint216).
*
* Counterpart to Solidity's `uint216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*/
function toUint216(uint256 value) internal pure returns (uint216) {
if (value > type(uint216).max) {
revert SafeCastOverflowedUintDowncast(216, value);
}
return uint216(value);
}
/**
* @dev Returns the downcasted uint208 from uint256, reverting on
* overflow (when the input is greater than largest uint208).
*
* Counterpart to Solidity's `uint208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*/
function toUint208(uint256 value) internal pure returns (uint208) {
if (value > type(uint208).max) {
revert SafeCastOverflowedUintDowncast(208, value);
}
return uint208(value);
}
/**
* @dev Returns the downcasted uint200 from uint256, reverting on
* overflow (when the input is greater than largest uint200).
*
* Counterpart to Solidity's `uint200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*/
function toUint200(uint256 value) internal pure returns (uint200) {
if (value > type(uint200).max) {
revert SafeCastOverflowedUintDowncast(200, value);
}
return uint200(value);
}
/**
* @dev Returns the downcasted uint192 from uint256, reverting on
* overflow (when the input is greater than largest uint192).
*
* Counterpart to Solidity's `uint192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*/
function toUint192(uint256 value) internal pure returns (uint192) {
if (value > type(uint192).max) {
revert SafeCastOverflowedUintDowncast(192, value);
}
return uint192(value);
}
/**
* @dev Returns the downcasted uint184 from uint256, reverting on
* overflow (when the input is greater than largest uint184).
*
* Counterpart to Solidity's `uint184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*/
function toUint184(uint256 value) internal pure returns (uint184) {
if (value > type(uint184).max) {
revert SafeCastOverflowedUintDowncast(184, value);
}
return uint184(value);
}
/**
* @dev Returns the downcasted uint176 from uint256, reverting on
* overflow (when the input is greater than largest uint176).
*
* Counterpart to Solidity's `uint176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*/
function toUint176(uint256 value) internal pure returns (uint176) {
if (value > type(uint176).max) {
revert SafeCastOverflowedUintDowncast(176, value);
}
return uint176(value);
}
/**
* @dev Returns the downcasted uint168 from uint256, reverting on
* overflow (when the input is greater than largest uint168).
*
* Counterpart to Solidity's `uint168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*/
function toUint168(uint256 value) internal pure returns (uint168) {
if (value > type(uint168).max) {
revert SafeCastOverflowedUintDowncast(168, value);
}
return uint168(value);
}
/**
* @dev Returns the downcasted uint160 from uint256, reverting on
* overflow (when the input is greater than largest uint160).
*
* Counterpart to Solidity's `uint160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*/
function toUint160(uint256 value) internal pure returns (uint160) {
if (value > type(uint160).max) {
revert SafeCastOverflowedUintDowncast(160, value);
}
return uint160(value);
}
/**
* @dev Returns the downcasted uint152 from uint256, reverting on
* overflow (when the input is greater than largest uint152).
*
* Counterpart to Solidity's `uint152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*/
function toUint152(uint256 value) internal pure returns (uint152) {
if (value > type(uint152).max) {
revert SafeCastOverflowedUintDowncast(152, value);
}
return uint152(va...
// [truncated — 233828 bytes total]
Read Contract
DEFAULT_ADMIN_ROLE 0xa217fddf → bytes32
DOMAIN_SEPARATOR 0x3644e515 → bytes32
FUND_MANAGER_ROLE 0x2f83a6bc → bytes32
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
changeDefaultAdminDelay 0x649a5ec7
decimals 0x313ce567 → uint8
defaultAdmin 0x84ef8ffc → address
defaultAdminDelay 0xcc8463c8 → uint48
defaultAdminDelayIncreaseWait 0x022d63fb → uint48
eip712Domain 0x84b0196e → bytes1, string, string, uint256, address, bytes32, uint256[]
getRequest 0xfb1e61ca → tuple
getRoleAdmin 0x248a9ca3 → bytes32
hasRole 0x91d14854 → bool
identityRegistryAddress 0xa759ee6f → address
name 0x06fdde03 → string
nonces 0x7ecebe00 → uint256
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
pendingDefaultAdmin 0xcf6eefb7 → address, uint48
pendingDefaultAdminDelay 0xa1eda53c → uint48, uint48
rollbackDefaultAdminDelay 0x0aa6220b
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
acceptDefaultAdminTransfer 0xcefc1429
No parameters
approve 0x095ea7b3
address spender
uint256 value
returns: bool
approveRequest 0x76ba6009
bytes32 requestID
beginDefaultAdminTransfer 0x634e93da
address newAdmin
burnRequest 0x4b7ee0ba
uint256 amount
returns: bytes32
cancelDefaultAdminTransfer 0xd602b9fd
No parameters
forcedTransfer 0x9fc1d0e7
address from
address to
uint256 amount
freezeAccount 0xf26c159f
address account
grantRole 0x2f2ff15d
bytes32 role
address account
mintRequest 0x9a65797c
address to
uint256 amount
returns: bytes32
pause 0x8456cb59
No parameters
permit 0xd505accf
address owner
address spender
uint256 value
uint256 deadline
uint8 v
bytes32 r
bytes32 s
recoverERC20 0x1171bda9
address token
address to
uint256 amount
rejectRequest 0x95587d03
bytes32 requestID
renounceRole 0x36568abe
bytes32 role
address callerConfirmation
revokeRole 0xd547741f
bytes32 role
address account
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
unfreezeAccount 0x788649ea
address account
unpause 0x3f4ba83a
No parameters
updateIdentityRegistry 0x3e75d515
address newRegistry
Recent Transactions
No transactions found for this address