Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x6addDaD1975cC69fB16fD3FE24D47F7d6e22eac7
Balance 0 ETH
Nonce 1
Code Size 11456 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11456 bytes
0x6080604052600436106103f25760003560e01c80638ea5220f11610208578063e086e5ec11610118578063f19f7a74116100ab578063fad5c5b31161007a578063fad5c5b314610773578063fb346eab14610de3578063fccc281314610df9578063fcce488314610e0f578063fdb3d7c514610e3f57610434565b8063f19f7a7414610d23578063f2fde38b14610d36578063f4bf28a014610d56578063f968f49314610dce57610434565b8063e632c2f3116100e7578063e632c2f314610c9c578063eb033c7514610cb2578063ed3f60aa14610cd2578063f0f4426014610d0357610434565b8063e086e5ec14610c25578063e111703a14610c3a578063e4463f4814610c4f578063e5da20de14610c6f57610434565b8063abc6184c1161019b578063bb81d1cb1161016a578063bb81d1cb14610b29578063bf6c1c5814610b56578063d3f4e8d714610b77578063d7517caa14610ba4578063dd62ed3e14610bdf57610434565b8063abc6184c14610a35578063b7aa023114610a65578063b931413514610a85578063b99be74014610b0957610434565b8063a18e5e78116101d7578063a18e5e78146109b3578063a9059cbb146109d3578063a90d6de3146109f3578063a9f7768414610a2057610434565b80638ea5220f1461093b57806393d540791461095b57806395d89b41146109715780639804767f1461098657610434565b80634e0aac871161030357806370a08231116102965780637c4c069c116102655780637c4c069c146108a85780637d2ab1de146108be5780638380edb7146108de57806385476559146108fd5780638da5cb5b1461091d57610434565b806370a082311461082a578063715018a61461086057806377c12b17146108755780637b97008d1461089557610434565b80635fbbc0d2116102d25780635fbbc0d21461078857806360d938dc146107dd57806361d027b3146107f75780636e9472981461081757610434565b80634e0aac87146106cb578063536fff6c1461072357806359d14b41146107535780635e6a645e1461077357610434565b80631f53ac0211610386578063305a67a811610355578063305a67a814610622578063313ce5671461064257806336296d811461065e5780633af6a4f21461067e578063475e28b51461069e57610434565b80631f53ac02146105a057806323b872dd146105c057806328e85856146105e0578063290fd8431461060d57610434565b80630ec63db8116103c25780630ec63db8146104fb57806312923b651461051d57806313a155ea1461056b57806318160ddd1461058b57610434565b80620e7fa81461046b57806306fdde0314610494578063095ea7b3146104b65780630a120868146104e657610434565b36610434576040805134815242602082015233917f7dd768b8b37911c0bb413d9cf56fcb57b286f5def4c57d475c8abdd6737b7e1e91015b60405180910390a2005b6040805134815242602082015233917f7dd768b8b37911c0bb413d9cf56fcb57b286f5def4c57d475c8abdd6737b7e1e910161042a565b34801561047757600080fd5b5061048160085481565b6040519081526020015b60405180910390f35b3480156104a057600080fd5b506104a9610e5f565b60405161048b9190612816565b3480156104c257600080fd5b506104d66104d1366004612879565b610ef1565b604051901515815260200161048b565b3480156104f257600080fd5b50610481610f0b565b34801561050757600080fd5b5061051b6105163660046128a5565b610f27565b005b34801561052957600080fd5b506105536105383660046128c9565b6011602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161048b565b34801561057757600080fd5b5061051b6105863660046128a5565b610fb7565b34801561059757600080fd5b50600254610481565b3480156105ac57600080fd5b5061051b6105bb3660046128a5565b611061565b3480156105cc57600080fd5b506104d66105db3660046128e2565b61111b565b3480156105ec57600080fd5b506104816105fb3660046128c9565b60186020526000908152604090205481565b34801561061957600080fd5b5061051b61113f565b34801561062e57600080fd5b5061051b61063d3660046128c9565b61117c565b34801561064e57600080fd5b506040516012815260200161048b565b34801561066a57600080fd5b50600c54610553906001600160a01b031681565b34801561068a57600080fd5b50600d54610553906001600160a01b031681565b3480156106aa57600080fd5b506104816106b93660046128c9565b60166020526000908152604090205481565b3480156106d757600080fd5b50600d54600b54600c54600e5460408051600160a01b860460ff16151581526001600160a01b03948516602082015292841690830152919092166060830152608082015260a00161048b565b34801561072f57600080fd5b506104d661073e3660046128a5565b60196020526000908152604090205460ff1681565b34801561075f57600080fd5b506104d661076e3660046128a5565b611247565b34801561077f57600080fd5b50610481600181565b34801561079457600080fd5b50600954600a805460408051600881526001602082018190529181019190915260608101929092526001600160a01b0392831660808301529190911660a082015260c00161048b565b3480156107e957600080fd5b506007546104d69060ff1681565b34801561080357600080fd5b50600954610553906001600160a01b031681565b34801561082357600080fd5b5047610481565b34801561083657600080fd5b506104816108453660046128a5565b6001600160a01b031660009081526020819052604090205490565b34801561086c57600080fd5b5061051b61127e565b34801561088157600080fd5b5061051b6108903660046128a5565b611292565b61051b6108a33660046128c9565b611312565b3480156108b457600080fd5b50610481600e5481565b3480156108ca57600080fd5b5061051b6108d93660046128c9565b611539565b3480156108ea57600080fd5b506007546104d690610100900460ff1681565b34801561090957600080fd5b50600b54610553906001600160a01b031681565b34801561092957600080fd5b506005546001600160a01b0316610553565b34801561094757600080fd5b50600a54610553906001600160a01b031681565b34801561096757600080fd5b50610481601c5481565b34801561097d57600080fd5b506104a9611598565b34801561099257600080fd5b506104816109a13660046128c9565b60126020526000908152604090205481565b3480156109bf57600080fd5b5061051b6109ce366004612923565b6115a7565b3480156109df57600080fd5b506104d66109ee366004612879565b611753565b3480156109ff57600080fd5b50610481610a0e3660046128c9565b600f6020526000908152604090205481565b348015610a2c57600080fd5b50610481600a81565b348015610a4157600080fd5b506104d6610a503660046128c9565b60136020526000908152604090205460ff1681565b348015610a7157600080fd5b5061051b610a803660046128a5565b611761565b348015610a9157600080fd5b50610adf610aa03660046128c9565b6000908152601460209081526040808320546015835281842054601784528285205460188552838620546016909552929094205460ff90911694919291565b6040805195151586526020860194909452928401919091526060830152608082015260a00161048b565b348015610b1557600080fd5b5061051b610b24366004612945565b6117b2565b348015610b3557600080fd5b50610481610b443660046128c9565b60106020526000908152604090205481565b348015610b6257600080fd5b50600d546104d690600160a01b900460ff1681565b348015610b8357600080fd5b50610481610b923660046128c9565b60176020526000908152604090205481565b348015610bb057600080fd5b506007546008546040805160ff808516151582526101009094049093161515602084015282015260600161048b565b348015610beb57600080fd5b50610481610bfa366004612967565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610c3157600080fd5b5061051b6117d8565b348015610c4657600080fd5b50610481600881565b348015610c5b57600080fd5b5061051b610c6a3660046128a5565b611861565b348015610c7b57600080fd5b50610481610c8a3660046128c9565b60156020526000908152604090205481565b348015610ca857600080fd5b50610481601a5481565b348015610cbe57600080fd5b5061051b610ccd3660046128c9565b6118f0565b348015610cde57600080fd5b50601a54601b54601c546040805193845260208401929092529082015260600161048b565b348015610d0f57600080fd5b5061051b610d1e3660046128a5565b611997565b61051b610d313660046129a0565b611a17565b348015610d4257600080fd5b5061051b610d513660046128a5565b611d08565b348015610d6257600080fd5b50610da7610d713660046128c9565b600090815260116020908152604080832054601083528184205460139093529220546001600160a01b0390921692909160ff1690565b604080516001600160a01b039094168452602084019290925215159082015260600161048b565b348015610dda57600080fd5b5061051b611d43565b348015610def57600080fd5b50610481601b5481565b348015610e0557600080fd5b5061055361dead81565b348015610e1b57600080fd5b506104d6610e2a3660046128c9565b60146020526000908152604090205460ff1681565b348015610e4b57600080fd5b50610481610e5a3660046129c5565b611d85565b606060038054610e6e90612a00565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9a90612a00565b8015610ee75780601f10610ebc57610100808354040283529160200191610ee7565b820191906000526020600020905b815481529060010190602001808311610eca57829003601f168201915b5050505050905090565b600033610eff81858561211d565b60019150505b92915050565b6000610f226108456005546001600160a01b031690565b905090565b610f2f61212f565b6001600160a01b038116610f955760405162461bcd60e51b815260206004820152602260248201527f4261636b656e642041504920616464726573732063616e6e6f74206265207a65604482015261726f60f01b60648201526084015b60405180910390fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610fbf61212f565b6001600160a01b0381166110155760405162461bcd60e51b815260206004820152601d60248201527f43616c6c657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610f8c565b6001600160a01b038116600081815260196020526040808220805460ff19166001179055517feb1b9b92e50b7f88f9ff25d56765095ac6e91540eee214906f4036a908ffbdef9190a250565b61106961212f565b6001600160a01b0381166110c95760405162461bcd60e51b815260206004820152602160248201527f4465762077616c6c657420616464726573732063616e6e6f74206265207a65726044820152606f60f81b6064820152608401610f8c565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87190600090a35050565b60003361112985828561215c565b6111348585856121db565b506001949350505050565b61114761212f565b6007805460ff191690556040517fc00eb52d383b32d956eb0bff90d7b8bd8c19a7f9d71ca10bcf5c0c3e144be7fc90600090a1565b61118461212f565b60008181526014602052604090205460ff166111d55760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b1a5cdd195960821b6044820152606401610f8c565b6000818152601460209081526040808320805460ff19169055600f8252808320548151908152918201839052810182905260608101829052608081019190915281907fd925f48a4bdadc5aa560d87d26859723a16dae3571e73b39eef796fadff211899060a00160405180910390a250565b6001600160a01b03811660009081526019602052604081205460ff1680610f055750506005546001600160a01b0391821691161490565b61128661212f565b611290600061223a565b565b61129a61212f565b6001600160a01b0381166112f05760405162461bcd60e51b815260206004820152601e60248201527f536561706f727420616464726573732063616e6e6f74206265207a65726f00006044820152606401610f8c565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60075460ff1661135c5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b6044820152606401610f8c565b61136461228c565b600081116113b45760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f6044820152606401610f8c565b6000670de0b6b3a7640000600854836113cd9190612a50565b6113d79190612a67565b9050803410156114215760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b6044820152606401610f8c565b816114376108456005546001600160a01b031690565b10156114945760405162461bcd60e51b815260206004820152602660248201527f496e73756666696369656e7420746f6b656e7320617661696c61626c6520666f604482015265722073616c6560d01b6064820152608401610f8c565b6114b06114a96005546001600160a01b031690565b33846121db565b803411156114f057336108fc6114c68334612a89565b6040518115909202916000818181858888f193505050501580156114ee573d6000803e3d6000fd5b505b604080518381526020810183905233917f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f33910160405180910390a2506115366001600655565b50565b61154161212f565b6127108111156115935760405162461bcd60e51b815260206004820152601b60248201527f536c6970706167652063616e6e6f7420657863656564203130302500000000006044820152606401610f8c565b600e55565b606060048054610e6e90612a00565b600c546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e90602401602060405180830381865afa1580156115f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116149190612a9c565b6001600160a01b03161461166a5760405162461bcd60e51b815260206004820152601a60248201527f436f6e747261637420646f65736e2774206f776e20746f6b656e0000000000006044820152606401610f8c565b600081116116c65760405162461bcd60e51b815260206004820152602360248201527f427579207072696365206d7573742062652067726561746572207468616e207a60448201526265726f60e81b6064820152608401610f8c565b6000828152601360209081526040808320805460ff19166001908117909155600f8352818420859055601083528184204290819055601184529382902080546001600160a01b0319163390811790915582519182529281019390935284927f0c8a6212f55b43783fb313e7036ac0f37beb5217118d4f3970e7d2105740f753910160405180910390a35050565b600033610eff8185856121db565b61176961212f565b6001600160a01b038116600081815260196020526040808220805460ff19169055517fc3803387881faad271c47728894e3e36fac830ffc8602ca6fc07733cbda775809190a250565b6117ba61212f565b600d8054911515600160a01b0260ff60a01b19909216919091179055565b6117e061212f565b47806118235760405162461bcd60e51b81526020600482015260126024820152714e6f2045544820746f20776974686472617760701b6044820152606401610f8c565b6005546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801561185d573d6000803e3d6000fd5b5050565b61186961212f565b6001600160a01b0381166118ce5760405162461bcd60e51b815260206004820152602660248201527f4f706570656e20636f6e747261637420616464726573732063616e6e6f74206260448201526565207a65726f60d01b6064820152608401610f8c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6118f861212f565b600081116119485760405162461bcd60e51b815260206004820152601f60248201527f5072696365206d7573742062652067726561746572207468616e207a65726f006044820152606401610f8c565b60088190556007805460ff191660011790556040517f365bbb1b82a908cf64c94e1303370522345bd773d3f215e83443d836019bd7e49061198c9083815260200190565b60405180910390a150565b61199f61212f565b6001600160a01b0381166119f55760405162461bcd60e51b815260206004820152601f60248201527f547265617375727920616464726573732063616e6e6f74206265207a65726f006044820152606401610f8c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526019602052604090205460ff1680611a3f57506005546001600160a01b031633145b611a7c5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610f8c565b611a8461228c565b60008281526014602052604090205460ff16611ad55760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b1a5cdd195960821b6044820152606401610f8c565b600082815260176020526040902054421015611b295760405162461bcd60e51b8152602060048201526013602482015272131a5cdd1a5b99c81b9bdd081cdd185c9d1959606a1b6044820152606401610f8c565b600082815260186020526040902054421115611b795760405162461bcd60e51b815260206004820152600f60248201526e131a5cdd1a5b99c8195e1c1a5c9959608a1b6044820152606401610f8c565b600082815260156020526040902054341015611bce5760405162461bcd60e51b8152602060048201526014602482015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b6044820152606401610f8c565b600c54604051632142170760e11b81523060048201526001600160a01b03838116602483015260448201859052909116906342842e0e90606401600060405180830381600087803b158015611c2257600080fd5b505af1158015611c36573d6000803e3d6000fd5b5050506000838152601360209081526040808320805460ff19908116909155601483528184208054909116905560159091528120549150611c778234612a89565b90508015611cb7576040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015611cb5573d6000803e3d6000fd5b505b604080518381524260208201526001600160a01b0385169186917fc9c6b35011605bab9e8a5d7dce8f56664644b07b52c30022666c415dd4c93fc2910160405180910390a3505061185d6001600655565b611d1061212f565b6001600160a01b038116611d3a57604051631e4fbdf760e01b815260006004820152602401610f8c565b6115368161223a565b611d4b61212f565b6007805461ff0019166101001790556040517f27591baca3ab78e62a0cbf3b92bae5a04d5a1768b720a980d1f4671374c93c4c90600090a1565b6000611d8f61212f565b60008681526013602052604090205460ff16611ded5760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e206e6f74206f776e656420627920636f6e747261637400000000006044820152606401610f8c565b6000868152600f6020526040902054611e3c5760405162461bcd60e51b8152602060048201526011602482015270109d5e481c1c9a58d9481b9bdd081cd95d607a1b6044820152606401610f8c565b60008681526014602052604090205460ff1615611e925760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b1a5cdd195960621b6044820152606401610f8c565b60008511611ef25760405162461bcd60e51b815260206004820152602760248201527f4c697374696e67207072696365206d7573742062652067726561746572207468604482015266616e207a65726f60c81b6064820152608401610f8c565b838311611f4b5760405162461bcd60e51b815260206004820152602160248201527f456e642074696d65206d7573742062652061667465722073746172742074696d6044820152606560f81b6064820152608401610f8c565b42841015611f9b5760405162461bcd60e51b815260206004820181905260248201527f53746172742074696d65206d75737420626520696e20746865206675747572656044820152606401610f8c565b6040805161016081018252308152600060208201819052918101611fbe896122b6565b8152602001611fcc8861234e565b8152602001600081526020810187905260408082018790526000606083018190526080830187905260a0830152600160c090920191909152600b549051635bbabad760e11b81529192506001600160a01b03169063b77575ae90612034908490600401612b6e565b602060405180830381865afa158015612051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120759190612c48565b6000888152601460209081526040808320805460ff19166001179055601582528083208a9055601682528083208490556017825280832089905560188252808320889055600f825291829020548251908152908101899052908101879052606081018690526080810182905290925087907fd925f48a4bdadc5aa560d87d26859723a16dae3571e73b39eef796fadff211899060a00160405180910390a25095945050505050565b61212a83838360016123c8565b505050565b6005546001600160a01b031633146112905760405163118cdaa760e01b8152336004820152602401610f8c565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198110156121d557818110156121c657604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610f8c565b6121d5848484840360006123c8565b50505050565b6001600160a01b03831661220557604051634b637e8f60e11b815260006004820152602401610f8c565b6001600160a01b03821661222f5760405163ec442f0560e01b815260006004820152602401610f8c565b61212a83838361249d565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600654036122af57604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b60408051600180825281830190925260609160009190816020015b6122d96127cd565b8152602001906001900390816122d15750506040805160c08101825260028152600c546001600160a01b031660208201529081018590526001606082018190526080820152600060a082018190528251929350909183919061233d5761233d612c61565b602090810291909101015292915050565b60408051600180825281830190925260609160009190816020015b6123716127cd565b8152602001906001900390816123695750506040805160c08101825260008082526020820181905291810182905260608101869052608081018690523060a082015282519293509183919061233d5761233d612c61565b6001600160a01b0384166123f25760405163e602df0560e01b815260006004820152602401610f8c565b6001600160a01b03831661241c57604051634a1406b160e11b815260006004820152602401610f8c565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156121d557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161248f91815260200190565b60405180910390a350505050565b6001600160a01b03831615806124ba57506001600160a01b038216155b156124ca5761212a8383836126a3565b600754610100900460ff161580156124f057506005546001600160a01b03848116911614155b156125515760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e7320617265206c6f636b656420616e642063616e6e6f742062652060448201526a1d1c985b9cd9995c9c995960aa1b6064820152608401610f8c565b600754610100900460ff16801561257657506005546001600160a01b03848116911614155b801561259057506005546001600160a01b03838116911614155b1561269c57600060646125a4600a84612a50565b6125ae9190612a67565b9050600060646125bf600885612a50565b6125c99190612a67565b9050600060646125da600186612a50565b6125e49190612a67565b9050600060646125f5600187612a50565b6125ff9190612a67565b905061261587876126108789612a89565b6126a3565b60095461262d9088906001600160a01b0316856126a3565b600a546126459088906001600160a01b0316846126a3565b6126528761dead836126a3565b60408051848152602081018490529081018290527fa54e6c2fc0861aa9c991b26891d71059d517983b9e84b91020f42609c452eb9d9060600160405180910390a150505050505050565b61212a8383835b6001600160a01b0383166126ce5780600260008282546126c39190612c77565b909155506127409050565b6001600160a01b038316600090815260208190526040902054818110156127215760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610f8c565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661275c5760028054829003905561277b565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516127c091815260200190565b60405180910390a3505050565b6040805160c08101909152806000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b600060208083528351808285015260005b8181101561284357858101830151858201604001528201612827565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461153657600080fd5b6000806040838503121561288c57600080fd5b823561289781612864565b946020939093013593505050565b6000602082840312156128b757600080fd5b81356128c281612864565b9392505050565b6000602082840312156128db57600080fd5b5035919050565b6000806000606084860312156128f757600080fd5b833561290281612864565b9250602084013561291281612864565b929592945050506040919091013590565b6000806040838503121561293657600080fd5b50508035926020909101359150565b60006020828403121561295757600080fd5b813580151581146128c257600080fd5b6000806040838503121561297a57600080fd5b823561298581612864565b9150602083013561299581612864565b809150509250929050565b600080604083850312156129b357600080fd5b82359150602083013561299581612864565b600080600080600060a086880312156129dd57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600181811c90821680612a1457607f821691505b602082108103612a3457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610f0557610f05612a3a565b600082612a8457634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610f0557610f05612a3a565b600060208284031215612aae57600080fd5b81516128c281612864565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b83811015612b4f578151805160068110612aff57612aff612ab9565b8852808401516001600160a01b03908116858a0152604080830151908a0152606080830151908a0152608080830151908a015260a091820151169088015260c09096019590820190600101612ae3565b509495945050505050565b60048110612b6a57612b6a612ab9565b9052565b60208152612b886020820183516001600160a01b03169052565b60006020830151612ba460408401826001600160a01b03169052565b506040830151610160806060850152612bc1610180850183612acf565b91506060850151601f19858403016080860152612bde8382612acf565b9250506080850151612bf360a0860182612b5a565b5060a085015160c085015260c085015160e085015260e0850151610100818187015280870151915050610120818187015280870151915050610140818187015280870151838701525050508091505092915050565b600060208284031215612c5a57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b80820180821115610f0557610f05612a3a56fea2646970667358221220f1ab11609e5b0d9d6d6fb5f9117b6f46e1b71af1f8fa7d396e543c30af4d14d264736f6c63430008140033

Verified Source Code Full Match

Compiler: v0.8.20+commit.a1b79de6 EVM: paris Optimization: Yes (200 runs)
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @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);
    }
}
draft-IERC6093.sol 161 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)
pragma solidity >=0.8.4;

/**
 * @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);
}
ERC20.sol 305 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @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}.
     *
     * Both 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;
    }

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    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;
    }

    /// @inheritdoc IERC20
    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);
            }
        }
    }
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @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);
}
IERC20Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

/**
 * @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);
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// 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;
    }
}
ReentrancyGuard.sol 87 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}
OpepenStrategy.sol 655 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

// OpenSea integration interfaces
interface IOpenSeaSeaport {
    function fulfillOrder(
        Order calldata order,
        bytes32 fulfillerConduitKey,
        address recipient,
        uint256 maximumFulfilled
    ) external payable returns (bool fulfilled);
    
    function createOrder(
        OrderParameters calldata parameters,
        bytes calldata signature
    ) external returns (bytes32 orderHash);
    
    function getOrderHash(OrderParameters calldata parameters) external view returns (bytes32);
}

interface IERC721 {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
    function ownerOf(uint256 tokenId) external view returns (address);
    function approve(address to, uint256 tokenId) external;
    function getApproved(uint256 tokenId) external view returns (address);
    function setApprovalForAll(address operator, bool approved) external;
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

interface IERC1155 {
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
    function balanceOf(address account, uint256 id) external view returns (uint256);
    function setApprovalForAll(address operator, bool approved) external;
    function isApprovedForAll(address account, address operator) external view returns (bool);
}

// OpenSea Seaport Order structure
struct Order {
    address offerer;
    address zone;
    OfferItem[] offer;
    ConsiderationItem[] consideration;
    OrderType orderType;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
    uint256 salt;
    bytes32 conduitKey;
    uint256 totalOriginalConsiderationItems;
}

// OpenSea Seaport OrderParameters structure
struct OrderParameters {
    address offerer;
    address zone;
    OfferItem[] offer;
    ConsiderationItem[] consideration;
    OrderType orderType;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
    uint256 salt;
    bytes32 conduitKey;
    uint256 totalOriginalConsiderationItems;
}

struct OfferItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
    address recipient;
}

struct ConsiderationItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
    address recipient;
}

enum OrderType {
    FULL_OPEN,
    PARTIAL_OPEN,
    FULL_RESTRICTED,
    PARTIAL_RESTRICTED
}

enum ItemType {
    NATIVE,
    ERC20,
    ERC721,
    ERC1155,
    ERC721_WITH_CRITERIA,
    ERC1155_WITH_CRITERIA
}

contract OpepenStrategy is ERC20, Ownable, ReentrancyGuard {
	// State variables
	bool public isPresaleActive;
	bool public isUnlocked;
	// Price in wei per whole token (1e18 base units)
	uint256 public presalePrice;
	uint256 public constant TREASURY_FEE_PERCENT = 8;
	uint256 public constant DEV_FEE_PERCENT = 1;
	uint256 public constant BURN_FEE_PERCENT = 1;
	uint256 public constant TOTAL_FEE_PERCENT = 10;
	
	address public treasury;
	address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
	address public devWallet;
	
	// OpenSea integration
	address public openseaSeaport;
	address public opepenContract;
	address public backendAPI;
	
	// Opepen floor configuration
	bool public isOpepenFloorEnabled;
	uint256 public opepenFloorSlippage;

	
	// Enhanced Opepen functionality
	mapping(uint256 => uint256) public buyPrices;
	mapping(uint256 => uint256) public purchaseTimes;
	mapping(uint256 => address) public purchasers;
	mapping(uint256 => bytes32) public purchaseOrderHashes;
	mapping(uint256 => bool) public isTokenOwned;
	mapping(uint256 => bool) public isListed;
	mapping(uint256 => uint256) public listingPrices;
	mapping(uint256 => bytes32) public listingOrderHashes;
	mapping(uint256 => uint256) public listingStartTimes;
	mapping(uint256 => uint256) public listingEndTimes;
	mapping(address => bool) public authorizedCallers;
	
	uint256 public totalPurchased;
	uint256 public totalSpent;
	uint256 public averageBuyPrice;
	
	// Events
	event PresaleActivated(uint256 price);
	event PresaleDeactivated();
	event TokensUnlocked();
	event TokensPurchased(address indexed buyer, uint256 amount, uint256 cost);
	event FeesCollected(uint256 treasuryAmount, uint256 devAmount, uint256 burnAmount);
	event BackendAPICalled(address indexed buyer, uint256 tokenId, bool success);
	event BuyPriceSet(uint256 indexed tokenId, uint256 buyPrice, uint256 timestamp);
	event PurchaseValidated(uint256 indexed tokenId, uint256 price, bool isValid, uint256 timestamp);
	event PurchaseOrderCreated(uint256 indexed tokenId, uint256 price, bytes32 orderHash, uint256 timestamp);
	event ListingCreated(uint256 indexed tokenId, uint256 buyPrice, uint256 listingPrice, uint256 startTime, uint256 endTime, bytes32 orderHash);
	event ListingFulfilled(uint256 indexed tokenId, address indexed buyer, uint256 price, uint256 timestamp);
	event NFTReceived(address indexed from, uint256 indexed tokenId, uint256 amount, uint256 timestamp);
	event ETHReceived(address indexed from, uint256 amount, uint256 timestamp);
	event AuthorizedCallerAdded(address indexed caller);
	event AuthorizedCallerRemoved(address indexed caller);
	event DevWalletUpdated(address indexed oldWallet, address indexed newWallet);
	
	// Modifiers
	modifier presaleActive() {
		require(isPresaleActive, "Presale is not active");
		_;
	}
	
	modifier tokensUnlocked() {
		require(isUnlocked, "Tokens are still locked");
		_;
	}
	
	modifier onlyAuthorized() {
		require(authorizedCallers[msg.sender] || msg.sender == owner(), "Not authorized");
		_;
	}
	
	constructor(
		string memory name,
		string memory symbol,
		uint256 initialSupply,
		address _treasury,
		address _devWallet,
		address _openseaSeaport,
		address _opepenContract,
		address _backendAPI
	) ERC20(name, symbol) Ownable(msg.sender) {
		require(_treasury != address(0), "Treasury address cannot be zero");
		require(_devWallet != address(0), "Dev wallet address cannot be zero");
		require(_openseaSeaport != address(0), "OpenSea Seaport address cannot be zero");
		require(_opepenContract != address(0), "Opepen contract address cannot be zero");
		require(_backendAPI != address(0), "Backend API address cannot be zero");
		
		treasury = _treasury;
		devWallet = _devWallet;
		openseaSeaport = _openseaSeaport;
		opepenContract = _opepenContract;
		backendAPI = _backendAPI;
		
		// Set default presale price to 0.000000011 ETH (11 gwei)
		presalePrice = 11000000000; // 0.000000011 ETH in wei
		
		// Initialize Opepen floor configuration
		isOpepenFloorEnabled = false;
		opepenFloorSlippage = 500; // 5% default slippage (500 basis points)
		
		// Mint initial supply to owner (admin)
		_mint(msg.sender, initialSupply);
	}
	
	/**
	 * @dev Activate presale with specified price per whole token (wei)
	 * @param priceWei Price in wei per 1 whole token (1e18 units)
	 */
	function activatePresale(uint256 priceWei) external onlyOwner {
		require(priceWei > 0, "Price must be greater than zero");
		presalePrice = priceWei;
		isPresaleActive = true;
		emit PresaleActivated(priceWei);
	}
	
	/**
	 * @dev Deactivate presale
	 */
	function deactivatePresale() external onlyOwner {
		isPresaleActive = false;
		emit PresaleDeactivated();
	}
	
	/**
	 * @dev Unlock tokens to allow transfers
	 */
	function unlockTokens() external onlyOwner {
		isUnlocked = true;
		emit TokensUnlocked();
	}
	
	/**
	 * @dev Purchase tokens during presale
	 * @param amount Number of tokens to purchase (in base units, 18 decimals)
	 */
	function purchaseTokens(uint256 amount) external payable presaleActive nonReentrant {
		require(amount > 0, "Amount must be greater than zero");
		// requiredETH = amount * presalePrice / 1e18 (price is per whole token)
		uint256 requiredETH = (amount * presalePrice) / 1e18;
		require(msg.value >= requiredETH, "Insufficient ETH sent");
		
		// Check if owner has enough tokens
		require(balanceOf(owner()) >= amount, "Insufficient tokens available for sale");
		
		// Transfer tokens from owner to buyer
		_transfer(owner(), msg.sender, amount);
		
		// Refund excess ETH
		if (msg.value > requiredETH) {
			payable(msg.sender).transfer(msg.value - requiredETH);
		}
		
		emit TokensPurchased(msg.sender, amount, requiredETH);
	}
	
	/**
	 * @dev Override transfer function to add fees and check unlock status
	 */
	function _update(address from, address to, uint256 amount) internal override {
		// Allow minting (from == address(0)) and burning (to == address(0))
		if (from == address(0) || to == address(0)) {
			super._update(from, to, amount);
			return;
		}
		
		// During presale, only allow transfers from owner (for purchases)
		if (!isUnlocked && from != owner()) {
			revert("Tokens are locked and cannot be transferred");
		}
		
		// Apply fees only for regular transfers (not presale purchases)
		if (isUnlocked && from != owner() && to != owner()) {
			uint256 feeAmount = (amount * TOTAL_FEE_PERCENT) / 100;
			uint256 treasuryFee = (amount * TREASURY_FEE_PERCENT) / 100;
			uint256 devFee = (amount * DEV_FEE_PERCENT) / 100;
			uint256 burnFee = (amount * BURN_FEE_PERCENT) / 100;
			
			// Transfer tokens minus fees
			super._update(from, to, amount - feeAmount);
			
			// Transfer treasury fee (goes to treasury wallet)
			super._update(from, treasury, treasuryFee);
			
			// Transfer dev fee (goes to dev wallet)
			super._update(from, devWallet, devFee);
			
			// Burn tokens (transfer to burn address)
			super._update(from, BURN_ADDRESS, burnFee);
			
			emit FeesCollected(treasuryFee, devFee, burnFee);
		} else {
			// No fees for presale purchases or owner transfers
			super._update(from, to, amount);
		}
	}
	
	/**
	 * @dev Update treasury address
	 */
	function setTreasury(address _treasury) external onlyOwner {
		require(_treasury != address(0), "Treasury address cannot be zero");
		treasury = _treasury;
	}
	
	/**
	 * @dev Update dev wallet address
	 */
	function setDevWallet(address _devWallet) external onlyOwner {
		require(_devWallet != address(0), "Dev wallet address cannot be zero");
		address oldWallet = devWallet;
		devWallet = _devWallet;
		emit DevWalletUpdated(oldWallet, _devWallet);
	}
	
	/**
	 * @dev Withdraw ETH from contract (only owner)
	 */
	function withdrawETH() external onlyOwner {
		uint256 balance = address(this).balance;
		require(balance > 0, "No ETH to withdraw");
		payable(owner()).transfer(balance);
	}
	
	/**
	 * @dev Get presale status
	 */
	function getPresaleStatus() external view returns (bool active, bool unlocked, uint256 price) {
		return (isPresaleActive, isUnlocked, presalePrice);
	}
	
	/**
	 * @dev Get available tokens for presale
	 */
	function getAvailableTokensForPresale() external view returns (uint256) {
		return balanceOf(owner());
	}
	
	/**
	 * @dev Update OpenSea Seaport address
	 */
	function setOpenSeaSeaport(address _seaport) external onlyOwner {
		require(_seaport != address(0), "Seaport address cannot be zero");
		openseaSeaport = _seaport;
	}
	
	/**
	 * @dev Update Opepen contract address
	 */
	function setOpepenContract(address _opepen) external onlyOwner {
		require(_opepen != address(0), "Opepen contract address cannot be zero");
		opepenContract = _opepen;
	}
	
	/**
	 * @dev Update backend API address
	 */
	function setBackendAPI(address _api) external onlyOwner {
		require(_api != address(0), "Backend API address cannot be zero");
		backendAPI = _api;
	}
	
	/**
	 * @dev Enable or disable Opepen floor functionality
	 */
	function setOpepenFloorEnabled(bool _enabled) external onlyOwner {
		isOpepenFloorEnabled = _enabled;
	}
	
	/**
	 * @dev Set Opepen floor slippage (in basis points, e.g., 500 = 5%)
	 */
	function setOpepenFloorSlippage(uint256 _slippage) external onlyOwner {
		require(_slippage <= 10000, "Slippage cannot exceed 100%");
		opepenFloorSlippage = _slippage;
	}
	
	/**
	 * @dev Add authorized caller (backend)
	 */
	function addAuthorizedCaller(address caller) external onlyOwner {
		require(caller != address(0), "Caller address cannot be zero");
		authorizedCallers[caller] = true;
		emit AuthorizedCallerAdded(caller);
	}
	
	/**
	 * @dev Remove authorized caller
	 */
	function removeAuthorizedCaller(address caller) external onlyOwner {
		authorizedCallers[caller] = false;
		emit AuthorizedCallerRemoved(caller);
	}
	
	/**
	 * @dev Receive ETH (for sales)
	 */
	receive() external payable {
		emit ETHReceived(msg.sender, msg.value, block.timestamp);
	}
	
	/**
	 * @dev Fallback function
	 */
	fallback() external payable {
		emit ETHReceived(msg.sender, msg.value, block.timestamp);
	}
	
	/**
	 * @dev Get listing information for a token
	 */
	function getListingInfo(uint256 tokenId) external view returns (
		bool listed,
		uint256 price,
		uint256 startTime,
		uint256 endTime,
		bytes32 orderHash
	) {
		return (
			isListed[tokenId],
			listingPrices[tokenId],
			listingStartTimes[tokenId],
			listingEndTimes[tokenId],
			listingOrderHashes[tokenId]
		);
	}
	
	/**
	 * @dev Check if address is authorized caller
	 */
	function isAuthorizedCaller(address caller) external view returns (bool) {
		return authorizedCallers[caller] || caller == owner();
	}
	
	/**
	 * @dev Get contract's ETH balance
	 */
	function getETHBalance() external view returns (uint256) {
		return address(this).balance;
	}
	
	/**
	 * @dev Emergency function to cancel a listing
	 */
	function cancelListing(uint256 tokenId) external onlyOwner {
		require(isListed[tokenId], "Token not listed");
		isListed[tokenId] = false;
		emit ListingCreated(tokenId, buyPrices[tokenId], 0, 0, 0, bytes32(0)); // Emit with 0 values to indicate cancellation
	}
	
	/**
	 * @dev Create Opepen listing (admin only)
	 * This function creates a listing on OpenSea for an NFT owned by the contract
	 */
	function createListing(
		uint256 tokenId,
		uint256 listingPrice,
		uint256 startTime,
		uint256 endTime,
		uint256 salt
	) external onlyOwner returns (bytes32 orderHash) {
		require(isTokenOwned[tokenId], "Token not owned by contract");
		require(buyPrices[tokenId] > 0, "Buy price not set");
		require(!isListed[tokenId], "Token already listed");
		require(listingPrice > 0, "Listing price must be greater than zero");
		require(endTime > startTime, "End time must be after start time");
		require(startTime >= block.timestamp, "Start time must be in the future");
		
		// Create OpenSea Seaport order parameters
		OrderParameters memory orderParams = OrderParameters({
			offerer: address(this),
			zone: address(0), // No zone restriction
			offer: _createOfferItems(tokenId),
			consideration: _createConsiderationItems(listingPrice),
			orderType: OrderType.FULL_OPEN,
			startTime: startTime,
			endTime: endTime,
			zoneHash: bytes32(0),
			salt: salt,
			conduitKey: bytes32(0),
			totalOriginalConsiderationItems: 1
		});
		
		// Get order hash from OpenSea Seaport
		orderHash = IOpenSeaSeaport(openseaSeaport).getOrderHash(orderParams);
		
		// Update listing status
		isListed[tokenId] = true;
		listingPrices[tokenId] = listingPrice;
		listingOrderHashes[tokenId] = orderHash;
		listingStartTimes[tokenId] = startTime;
		listingEndTimes[tokenId] = endTime;
		
		emit ListingCreated(tokenId, buyPrices[tokenId], listingPrice, startTime, endTime, orderHash);
	}
	
	/**
	 * @dev Fulfill a listing (when someone buys the NFT)
	 */
	function fulfillListing(
		uint256 tokenId,
		address buyer
	) external payable onlyAuthorized nonReentrant {
		require(isListed[tokenId], "Token not listed");
		require(block.timestamp >= listingStartTimes[tokenId], "Listing not started");
		require(block.timestamp <= listingEndTimes[tokenId], "Listing expired");
		require(msg.value >= listingPrices[tokenId], "Insufficient payment");
		
		// Transfer NFT to buyer
		IERC721(opepenContract).safeTransferFrom(address(this), buyer, tokenId);
		
		// Update ownership status
		isTokenOwned[tokenId] = false;
		isListed[tokenId] = false;
		
		// Distribute payment
		uint256 listingPrice = listingPrices[tokenId];
		uint256 excess = msg.value - listingPrice;
		
		// Send excess back to buyer
		if (excess > 0) {
			payable(buyer).transfer(excess);
		}
		
		emit ListingFulfilled(tokenId, buyer, listingPrice, block.timestamp);
	}
	
	/**
	 * @dev Receive NFT from user (for listing)
	 */
	function receiveNFT(
		uint256 tokenId,
		uint256 buyPrice
	) external {
		require(IERC721(opepenContract).ownerOf(tokenId) == address(this), "Contract doesn't own token");
		require(buyPrice > 0, "Buy price must be greater than zero");
		
		isTokenOwned[tokenId] = true;
		buyPrices[tokenId] = buyPrice;
		purchaseTimes[tokenId] = block.timestamp;
		purchasers[tokenId] = msg.sender;
		
		emit NFTReceived(msg.sender, tokenId, 1, block.timestamp);
	}
	
	/**
	 * @dev Create offer items for OpenSea order
	 */
	function _createOfferItems(uint256 tokenId) internal view returns (OfferItem[] memory) {
		OfferItem[] memory offer = new OfferItem[](1);
		offer[0] = OfferItem({
			itemType: ItemType.ERC721,
			token: opepenContract,
			identifierOrCriteria: tokenId,
			startAmount: 1,
			endAmount: 1,
			recipient: address(0)
		});
		return offer;
	}
	
	/**
	 * @dev Create consideration items for OpenSea order
	 */
	function _createConsiderationItems(uint256 price) internal view returns (ConsiderationItem[] memory) {
		ConsiderationItem[] memory consideration = new ConsiderationItem[](1);
		consideration[0] = ConsiderationItem({
			itemType: ItemType.NATIVE,
			token: address(0),
			identifierOrCriteria: 0,
			startAmount: price,
			endAmount: price,
			recipient: payable(address(this))
		});
		return consideration;
	}
	
	/**
	 * @dev Get fee configuration
	 */
	function getFeeConfig() external view returns (
		uint256 treasuryFeePercent,
		uint256 devFeePercent,
		uint256 burnFeePercent,
		uint256 totalFeePercent,
		address treasuryAddress,
		address devWalletAddress
	) {
		return (
			TREASURY_FEE_PERCENT,
			DEV_FEE_PERCENT,
			BURN_FEE_PERCENT,
			TOTAL_FEE_PERCENT,
			treasury,
			devWallet
		);
	}
	
	/**
	 * @dev Get Opepen floor configuration
	 */
	function getOpepenFloorConfig() external view returns (
		bool enabled,
		address seaport,
		address opepen,
		address api,
		uint256 slippage
	) {
		return (
			isOpepenFloorEnabled,
			openseaSeaport,
			opepenContract,
			backendAPI,
			opepenFloorSlippage
		);
	}
	
	/**
	 * @dev Get purchase statistics
	 */
	function getPurchaseStats() external view returns (
		uint256 total,
		uint256 spent,
		uint256 average
	) {
		return (
			totalPurchased,
			totalSpent,
			averageBuyPrice
		);
	}
	
	/**
	 * @dev Get purchase history for a token
	 */
	function getPurchaseHistory(uint256 tokenId) external view returns (
		address purchaser,
		uint256 purchaseTime,
		bool owned
	) {
		return (
			purchasers[tokenId],
			purchaseTimes[tokenId],
			isTokenOwned[tokenId]
		);
	}
}

Read Contract

BURN_ADDRESS 0xfccc2813 → address
BURN_FEE_PERCENT 0xfad5c5b3 → uint256
DEV_FEE_PERCENT 0x5e6a645e → uint256
TOTAL_FEE_PERCENT 0xa9f77684 → uint256
TREASURY_FEE_PERCENT 0xe111703a → uint256
allowance 0xdd62ed3e → uint256
authorizedCallers 0x536fff6c → bool
averageBuyPrice 0x93d54079 → uint256
backendAPI 0x3af6a4f2 → address
balanceOf 0x70a08231 → uint256
buyPrices 0xa90d6de3 → uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
getAvailableTokensForPresale 0x0a120868 → uint256
getETHBalance 0x6e947298 → uint256
getFeeConfig 0x5fbbc0d2 → uint256, uint256, uint256, uint256, address, address
getListingInfo 0xb9314135 → bool, uint256, uint256, uint256, bytes32
getOpepenFloorConfig 0x4e0aac87 → bool, address, address, address, uint256
getPresaleStatus 0xd7517caa → bool, bool, uint256
getPurchaseHistory 0xf4bf28a0 → address, uint256, bool
getPurchaseStats 0xed3f60aa → uint256, uint256, uint256
isAuthorizedCaller 0x59d14b41 → bool
isListed 0xfcce4883 → bool
isOpepenFloorEnabled 0xbf6c1c58 → bool
isPresaleActive 0x60d938dc → bool
isTokenOwned 0xabc6184c → bool
isUnlocked 0x8380edb7 → bool
listingEndTimes 0x28e85856 → uint256
listingOrderHashes 0x475e28b5 → bytes32
listingPrices 0xe5da20de → uint256
listingStartTimes 0xd3f4e8d7 → uint256
name 0x06fdde03 → string
openseaSeaport 0x85476559 → address
opepenContract 0x36296d81 → address
opepenFloorSlippage 0x7c4c069c → uint256
owner 0x8da5cb5b → address
presalePrice 0x000e7fa8 → uint256
purchaseOrderHashes 0x9804767f → bytes32
purchaseTimes 0xbb81d1cb → uint256
purchasers 0x12923b65 → address
symbol 0x95d89b41 → string
totalPurchased 0xe632c2f3 → uint256
totalSpent 0xfb346eab → uint256
totalSupply 0x18160ddd → uint256
treasury 0x61d027b3 → address

Write Contract 23 functions

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

activatePresale 0xeb033c75
uint256 priceWei
addAuthorizedCaller 0x13a155ea
address caller
approve 0x095ea7b3
address spender
uint256 value
returns: bool
cancelListing 0x305a67a8
uint256 tokenId
createListing 0xfdb3d7c5
uint256 tokenId
uint256 listingPrice
uint256 startTime
uint256 endTime
uint256 salt
returns: bytes32
deactivatePresale 0x290fd843
No parameters
fulfillListing 0xf19f7a74
uint256 tokenId
address buyer
purchaseTokens 0x7b97008d
uint256 amount
receiveNFT 0xa18e5e78
uint256 tokenId
uint256 buyPrice
removeAuthorizedCaller 0xb7aa0231
address caller
renounceOwnership 0x715018a6
No parameters
setBackendAPI 0x0ec63db8
address _api
setDevWallet 0x1f53ac02
address _devWallet
setOpenSeaSeaport 0x77c12b17
address _seaport
setOpepenContract 0xe4463f48
address _opepen
setOpepenFloorEnabled 0xb99be740
bool _enabled
setOpepenFloorSlippage 0x7d2ab1de
uint256 _slippage
setTreasury 0xf0f44260
address _treasury
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unlockTokens 0xf968f493
No parameters
withdrawETH 0xe086e5ec
No parameters

Recent Transactions

No transactions found for this address