Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x959d00FdCAA75d27E0D520b545a0D566f13527F4
Balance 1.7250 ETH
Nonce 1
Code Size 11195 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11195 bytes
0x6080604052600436106103505760003560e01c806370a08231116101c6578063c87b56dd116100f7578063e14ca35311610095578063e985e9c51161006f578063e985e9c51461093e578063ef5d9ae81461095e578063f2c4ce1e1461098b578063f2fde38b146109ab57600080fd5b8063e14ca353146108fd578063e4663cbb14610912578063e7a5e9d51461092857600080fd5b8063d28d8852116100d1578063d28d885214610895578063d42b7afd146108aa578063da3ef23f146108bd578063dfb94fdc146108dd57600080fd5b8063c87b56dd14610826578063cdab28c314610846578063d22777ef1461087f57600080fd5b8063a22cb46511610164578063af94f3061161013e578063af94f306146107bc578063b09f1266146107dc578063b88d4fde146107f1578063c66828621461081157600080fd5b8063a22cb46514610771578063a29ca44914610791578063a475b5dd146107a757600080fd5b80638da5cb5b116101a05780638da5cb5b1461070a57806395d89b41146107285780639c70b5121461073d5780639f181b5e1461075c57600080fd5b806370a08231146106bf578063715018a6146106df578063771282f6146106f457600080fd5b80633ccfd60b116102a0578063575194ae1161023e5780636352211e116102185780636352211e14610654578063686465b81461067457806369cd97681461068a5780636c0360eb146106aa57600080fd5b8063575194ae146106045780635c975abb1461061a5780635f550f1d1461063457600080fd5b806344a0d68a1161027a57806344a0d68a1461058f57806351830227146105af57806355a31309146105cf57806355f804b3146105e457600080fd5b80633ccfd60b1461053a57806341db4a191461054f57806342842e0e1461056f57600080fd5b806309d927201161030d57806321d0c272116102e757806321d0c272146104ad57806323b872dd146104cd57806334f7ebfe146104ed5780633c9527641461051a57600080fd5b806309d927201461043b57806313faede61461047457806318160ddd1461049857600080fd5b806301ffc9a71461035557806302329a291461038a57806306fdde03146103ac578063081812fc146103ce578063081c8c4414610406578063095ea7b31461041b575b600080fd5b34801561036157600080fd5b506103756103703660046124f5565b6109cb565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b506103aa6103a5366004612527565b610a1d565b005b3480156103b857600080fd5b506103c1610a63565b604051610381919061259a565b3480156103da57600080fd5b506103ee6103e93660046125ad565b610af5565b6040516001600160a01b039091168152602001610381565b34801561041257600080fd5b506103c1610b8a565b34801561042757600080fd5b506103aa6104363660046125dd565b610c18565b34801561044757600080fd5b50610375610456366004612607565b6001600160a01b031660009081526019602052604090205460ff1690565b34801561048057600080fd5b5061048a60105481565b604051908152602001610381565b3480156104a457600080fd5b5060085461048a565b3480156104b957600080fd5b506103aa6104c83660046125ad565b610d2e565b3480156104d957600080fd5b506103aa6104e8366004612622565b610d5d565b3480156104f957600080fd5b5061048a610508366004612607565b601b6020526000908152604090205481565b34801561052657600080fd5b506103aa610535366004612527565b610d8e565b34801561054657600080fd5b506103aa610dd2565b34801561055b57600080fd5b506103aa61056a3660046125ad565b610e22565b34801561057b57600080fd5b506103aa61058a366004612622565b610e51565b34801561059b57600080fd5b506103aa6105aa3660046125ad565b610e6c565b3480156105bb57600080fd5b506018546103759062010000900460ff1681565b3480156105db57600080fd5b506103aa610e9b565b3480156105f057600080fd5b506103aa6105ff3660046126ea565b610f30565b34801561061057600080fd5b5061048a60115481565b34801561062657600080fd5b506018546103759060ff1681565b34801561064057600080fd5b506103aa61064f366004612733565b610f71565b34801561066057600080fd5b506103ee61066f3660046125ad565b61100d565b34801561068057600080fd5b5061048a60155481565b34801561069657600080fd5b5061048a6106a5366004612607565b611084565b3480156106b657600080fd5b506103c16110b1565b3480156106cb57600080fd5b5061048a6106da366004612607565b6110be565b3480156106eb57600080fd5b506103aa611145565b34801561070057600080fd5b5061048a60145481565b34801561071657600080fd5b506006546001600160a01b03166103ee565b34801561073457600080fd5b506103c1611179565b34801561074957600080fd5b5060185461037590610100900460ff1681565b34801561076857600080fd5b5061048a611188565b34801561077d57600080fd5b506103aa61078c3660046127a8565b611198565b34801561079d57600080fd5b5061048a60165481565b3480156107b357600080fd5b506103aa6111a3565b3480156107c857600080fd5b506103aa6107d73660046125ad565b6111e0565b3480156107e857600080fd5b506103c161120f565b3480156107fd57600080fd5b506103aa61080c3660046127db565b61121c565b34801561081d57600080fd5b506103c1611254565b34801561083257600080fd5b506103c16108413660046125ad565b611261565b34801561085257600080fd5b50610375610861366004612607565b6001600160a01b03166000908152601a602052604090205460ff1690565b34801561088b57600080fd5b5061048a60175481565b3480156108a157600080fd5b506103c16113e1565b6103aa6108b83660046125ad565b6113ee565b3480156108c957600080fd5b506103aa6108d83660046126ea565b611720565b3480156108e957600080fd5b506103aa6108f8366004612733565b61175d565b34801561090957600080fd5b5061048a6117f9565b34801561091e57600080fd5b5061048a60125481565b34801561093457600080fd5b5061048a60135481565b34801561094a57600080fd5b50610375610959366004612857565b611810565b34801561096a57600080fd5b5061048a610979366004612607565b601c6020526000908152604090205481565b34801561099757600080fd5b506103aa6109a63660046126ea565b61183e565b3480156109b757600080fd5b506103aa6109c6366004612607565b61187b565b60006001600160e01b031982166380ac58cd60e01b14806109fc57506001600160e01b03198216635b5e139f60e01b145b80610a1757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b03163314610a505760405162461bcd60e51b8152600401610a4790612881565b60405180910390fd5b6018805460ff1916911515919091179055565b606060008054610a72906128b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9e906128b6565b8015610aeb5780601f10610ac057610100808354040283529160200191610aeb565b820191906000526020600020905b815481529060010190602001808311610ace57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b6e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a47565b506000908152600460205260409020546001600160a01b031690565b600f8054610b97906128b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc3906128b6565b8015610c105780601f10610be557610100808354040283529160200191610c10565b820191906000526020600020905b815481529060010190602001808311610bf357829003601f168201915b505050505081565b6000610c238261100d565b9050806001600160a01b0316836001600160a01b03161415610c915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a47565b336001600160a01b0382161480610cad5750610cad8133611810565b610d1f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a47565b610d2983836119f6565b505050565b6006546001600160a01b03163314610d585760405162461bcd60e51b8152600401610a4790612881565b601355565b610d673382611a64565b610d835760405162461bcd60e51b8152600401610a47906128f1565b610d29838383611b3b565b6006546001600160a01b03163314610db85760405162461bcd60e51b8152600401610a4790612881565b601880549115156101000261ff0019909216919091179055565b6006546001600160a01b03163314610dfc5760405162461bcd60e51b8152600401610a4790612881565b60405133904780156108fc02916000818181858888f19350505050610e2057600080fd5b565b6006546001600160a01b03163314610e4c5760405162461bcd60e51b8152600401610a4790612881565b601255565b610d298383836040518060200160405280600081525061121c565b6006546001600160a01b03163314610e965760405162461bcd60e51b8152600401610a4790612881565b601055565b6000610ea633611084565b905060005b81811015610ef2576000610ebd611cdb565b9050610ec93382611e6e565b60148054906000610ed983612958565b9190505550508080610eea90612958565b915050610eab565b50610f1d601c6000335b6001600160a01b031681526020810191909152604001600020548290611916565b336000908152601c602052604090205550565b6006546001600160a01b03163314610f5a5760405162461bcd60e51b8152600401610a4790612881565b8051610f6d90600e906020840190612446565b5050565b6006546001600160a01b03163314610f9b5760405162461bcd60e51b8152600401610a4790612881565b60005b81811015610d29576001601a6000858585818110610fbe57610fbe612973565b9050602002016020810190610fd39190612607565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061100581612958565b915050610f9e565b6000818152600260205260408120546001600160a01b031680610a175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a47565b6001600160a01b0381166000908152601c6020908152604080832054601b909252822054610a1791611e88565b600e8054610b97906128b6565b60006001600160a01b0382166111295760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a47565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461116f5760405162461bcd60e51b8152600401610a4790612881565b610e206000611ee4565b606060018054610a72906128b6565b600061119360075490565b905090565b610f6d338383611f36565b6006546001600160a01b031633146111cd5760405162461bcd60e51b8152600401610a4790612881565b6018805462ff0000191662010000179055565b6006546001600160a01b0316331461120a5760405162461bcd60e51b8152600401610a4790612881565b601155565b600c8054610b97906128b6565b6112263383611a64565b6112425760405162461bcd60e51b8152600401610a47906128f1565b61124e84848484612005565b50505050565b600d8054610b97906128b6565b6000818152600260205260409020546060906001600160a01b03166112e05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a47565b60185462010000900460ff1661138257600f80546112fd906128b6565b80601f0160208091040260200160405190810160405280929190818152602001828054611329906128b6565b80156113765780601f1061134b57610100808354040283529160200191611376565b820191906000526020600020905b81548152906001019060200180831161135957829003601f168201915b50505050509050919050565b600061138c612038565b905060008151116113ac57604051806020016040528060008152506113da565b806113b684612047565b600d6040516020016113ca93929190612989565b6040516020818303038152906040525b9392505050565b600b8054610b97906128b6565b6016546015546113fe9083611916565b11156114415760405162461bcd60e51b815260206004820152601260248201527145584345454453204d415820535550504c5960701b6044820152606401610a47565b32331461149e5760405162461bcd60e51b815260206004820152602560248201527f43414e4e4f54204d494e54205448524f554748204120435553544f4d20434f4e60448201526415149050d560da1b6064820152608401610a47565b6006546001600160a01b031633146116f05760185460ff6101009091041615156001141561153f573360009081526019602052604090205460ff16806114f35750336000908152601a602052604090205460ff165b61153f5760405162461bcd60e51b815260206004820152601760248201527f594f5520415245204e4f542057484954454c49535445440000000000000000006044820152606401610a47565b601254336000908152601a602052604090205460ff161561155f57506013545b336000908152601b60205260409020548161157a8483611916565b11156115c85760405162461bcd60e51b815260206004820152601c60248201527f45584345454453204d415820414c4c4f574544205045522055534552000000006044820152606401610a47565b6000831160115460405160200161161b91907f4d494e54494e4720414d4f554e542053484f554c44204245204245545745454e815266010189020a722160cd1b6020820152602781019190915260470190565b604051602081830303815290604052906116485760405162461bcd60e51b8152600401610a47919061259a565b5060185460ff16156116905760405162461bcd60e51b815260206004820152601160248201527013525395125391c81254c814105554d151607a1b6044820152606401610a47565b601054349061169f9085612145565b11156116ed5760405162461bcd60e51b815260206004820152601a60248201527f45544845522056414c5545204953204e4f5420434f52524543540000000000006044820152606401610a47565b50505b6116fd601b600033610efc565b336000908152601b602052604090205560155461171a9082611916565b60155550565b6006546001600160a01b0316331461174a5760405162461bcd60e51b8152600401610a4790612881565b8051610f6d90600d906020840190612446565b6006546001600160a01b031633146117875760405162461bcd60e51b8152600401610a4790612881565b60005b81811015610d29576001601960008585858181106117aa576117aa612973565b90506020020160208101906117bf9190612607565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806117f181612958565b91505061178a565b6000611803611188565b6008546111939190612a4d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146118685760405162461bcd60e51b8152600401610a4790612881565b8051610f6d90600f906020840190612446565b6006546001600160a01b031633146118a55760405162461bcd60e51b8152600401610a4790612881565b6001600160a01b03811661190a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a47565b61191381611ee4565b50565b6000806119238385612a64565b9050838110156113da5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a47565b6000806119806117f9565b116119c85760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b6044820152606401610a47565b60006119d360075490565b9050611193600780546001019055565b5490565b80546001019055565b3b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a2b8261100d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611add5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a47565b6000611ae88361100d565b9050806001600160a01b0316846001600160a01b03161480611b235750836001600160a01b0316611b1884610af5565b6001600160a01b0316145b80611b335750611b338185611810565b949350505050565b826001600160a01b0316611b4e8261100d565b6001600160a01b031614611bb65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a47565b6001600160a01b038216611c185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a47565b611c236000826119f6565b6001600160a01b0383166000908152600360205260408120805460019290611c4c908490612a4d565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c7a908490612a64565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611ce66117f9565b11611d2e5760405162461bcd60e51b81526020600482015260186024820152774e6f206d6f726520746f6b656e7320617661696c61626c6560401b6044820152606401610a47565b6000611d38611188565b600854611d459190612a4d565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c611dac9190612a92565b60008181526009602052604081205491925090611dca575080611ddb565b506000818152600960205260409020545b60096000611dea600186612a4d565b81526020019081526020016000205460001415611e2057611e0c600184612a4d565b600083815260096020526040902055611e50565b60096000611e2f600186612a4d565b81526020808201929092526040908101600090812054858252600990935220555b611e58611975565b50600a54611e669082612a64565b935050505090565b610f6d8282604051806020016040528060008152506121c4565b600082821115611eda5760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610a47565b6113da8284612a4d565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611f985760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a47565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612010848484611b3b565b61201c848484846121f7565b61124e5760405162461bcd60e51b8152600401610a4790612aa6565b6060600e8054610a72906128b6565b60608161206b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612095578061207f81612958565b915061208e9050600a83612af8565b915061206f565b60008167ffffffffffffffff8111156120b0576120b061265e565b6040519080825280601f01601f1916602001820160405280156120da576020820181803683370190505b5090505b8415611b33576120ef600183612a4d565b91506120fc600a86612a92565b612107906030612a64565b60f81b81838151811061211c5761211c612973565b60200101906001600160f81b031916908160001a90535061213e600a86612af8565b94506120de565b60008261215457506000610a17565b60006121608385612b0c565b90508261216d8583612af8565b146113da5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a47565b6121ce8383612304565b6121db60008484846121f7565b610d295760405162461bcd60e51b8152600401610a4790612aa6565b60006001600160a01b0384163b156122f957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061223b903390899088908890600401612b2b565b602060405180830381600087803b15801561225557600080fd5b505af1925050508015612285575060408051601f3d908101601f1916820190925261228291810190612b68565b60015b6122df573d8080156122b3576040519150601f19603f3d011682016040523d82523d6000602084013e6122b8565b606091505b5080516122d75760405162461bcd60e51b8152600401610a4790612aa6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b33565b506001949350505050565b6001600160a01b03821661235a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a47565b6000818152600260205260409020546001600160a01b0316156123bf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a47565b6001600160a01b03821660009081526003602052604081208054600192906123e8908490612a64565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612452906128b6565b90600052602060002090601f01602090048101928261247457600085556124ba565b82601f1061248d57805160ff19168380011785556124ba565b828001600101855582156124ba579182015b828111156124ba57825182559160200191906001019061249f565b506124c69291506124ca565b5090565b5b808211156124c657600081556001016124cb565b6001600160e01b03198116811461191357600080fd5b60006020828403121561250757600080fd5b81356113da816124df565b8035801515811461252257600080fd5b919050565b60006020828403121561253957600080fd5b6113da82612512565b60005b8381101561255d578181015183820152602001612545565b8381111561124e5750506000910152565b60008151808452612586816020860160208601612542565b601f01601f19169290920160200192915050565b6020815260006113da602083018461256e565b6000602082840312156125bf57600080fd5b5035919050565b80356001600160a01b038116811461252257600080fd5b600080604083850312156125f057600080fd5b6125f9836125c6565b946020939093013593505050565b60006020828403121561261957600080fd5b6113da826125c6565b60008060006060848603121561263757600080fd5b612640846125c6565b925061264e602085016125c6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561268f5761268f61265e565b604051601f8501601f19908116603f011681019082821181831017156126b7576126b761265e565b816040528093508581528686860111156126d057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156126fc57600080fd5b813567ffffffffffffffff81111561271357600080fd5b8201601f8101841361272457600080fd5b611b3384823560208401612674565b6000806020838503121561274657600080fd5b823567ffffffffffffffff8082111561275e57600080fd5b818501915085601f83011261277257600080fd5b81358181111561278157600080fd5b8660208260051b850101111561279657600080fd5b60209290920196919550909350505050565b600080604083850312156127bb57600080fd5b6127c4836125c6565b91506127d260208401612512565b90509250929050565b600080600080608085870312156127f157600080fd5b6127fa856125c6565b9350612808602086016125c6565b925060408501359150606085013567ffffffffffffffff81111561282b57600080fd5b8501601f8101871361283c57600080fd5b61284b87823560208401612674565b91505092959194509250565b6000806040838503121561286a57600080fd5b612873836125c6565b91506127d2602084016125c6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806128ca57607f821691505b602082108114156128eb57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561296c5761296c612942565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008451602061299c8285838a01612542565b8551918401916129af8184848a01612542565b8554920191600090600181811c90808316806129cc57607f831692505b8583108114156129ea57634e487b7160e01b85526022600452602485fd5b8080156129fe5760018114612a0f57612a3c565b60ff19851688528388019550612a3c565b60008b81526020902060005b85811015612a345781548a820152908401908801612a1b565b505083880195505b50939b9a5050505050505050505050565b600082821015612a5f57612a5f612942565b500390565b60008219821115612a7757612a77612942565b500190565b634e487b7160e01b600052601260045260246000fd5b600082612aa157612aa1612a7c565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612b0757612b07612a7c565b500490565b6000816000190483118215151615612b2657612b26612942565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b5e9083018461256e565b9695505050505050565b600060208284031215612b7a57600080fd5b81516113da816124df56fea2646970667358221220d9b428221cc841feee1ebc8f4fd9e6a52ba046926dbd143f018cb122a18ee34364736f6c63430008090033

Verified Source Code Partial Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: Yes (200 runs)
IXPanthers.sol 1521 lines
// SPDX-License-Identifier: GPL-3.0

/*
************************************************************
*********************** IX Panthers ************************
************************************************************
***    ,\/~~~\_                            _/~~~~\       ***
***    |  ---, `\_    ___,-------~~\__  /~' ,,''  |      ***
***    | `~`, ',,\`-~~--_____    ---  - /, ,--/ '/'      ***
***     `\_|\ _\`    ______,---~~~\  ,_   '\_/' /'       ***
***       \,_|   , '~,/'~   /~\ ,_  `\_\ \_  \_\'        ***
***       ,/   /' ,/' _,-'~~  `\  ~~\_ ,_  `\  `\        ***
***     /@@ _/  /' ./',-                 \       `@,     ***
***     @@ '   |  ___/  /'  /  \  \ '\__ _`~|, `, @@     ***
***   /@@ /  | | ',___  |  |    `  | ,,---,  |  | `@@,   ***      
***   @@@ \  | | \ \O_`\ |        / / O_/' | \  \  @@@   ***
***   @@@ |  | `| '   ~ / ,          ~     /  |    @@@   ***
***   `@@ |   \ `\     ` |         | |  _/'  /'  | @@'   ***
***    @@ |    ~\ /--'~  |       , |  \__   |    | |@@   ***
***    @@, \     | ,,|   |       ,,|   | `\     /',@@    ***
***    `@@, ~\   \ '     |       / /    `' '   / ,@@     ***
***     @@@,    \    ~~\ `\/~---'~/' _ /'~~~~~~~~--,_    ***
***      `@@@_,---::::::=  `-,| ,~  _=:::::''''''    `   ***
***      ,/~~_---'_,-___     _-__  ' -~~~\_```---        ***
***        ~`   ~~_/'// _,--~\_/ '~--, |\_               ***
***             /' /'| `@@@@@,,,,,@@@@  | \              ***
***                  `     `@@@@@@'                      ***
************************************************************
************************************************************
************************************************************
*/

pragma solidity ^0.8.9;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

/// @author 1001.digital
/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract WithLimitedSupply {
    using Counters for Counters.Counter;

    // Keeps track of how many we have minted
    Counters.Counter private _tokenCount;

    /// @dev The maximum count of tokens this token tracker will hold.
    uint256 private _totalSupply;

    /// Instanciate the contract
    /// @param totalSupply_ how many tokens this collection should hold
    constructor (uint256 totalSupply_) {
        _totalSupply = totalSupply_;
    }

    /// @dev Get the max Supply
    /// @return the maximum token count
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /// @dev Get the current token count
    /// @return the created token count
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /// @dev Check whether tokens are still available
    /// @return the available token count
    function availableTokenCount() public view returns (uint256) {
        return totalSupply() - tokenCount();
    }

    /// @dev Increment the token count and fetch the latest count
    /// @return the next token id
    function nextToken() internal virtual ensureAvailability returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /// @dev Check whether another token is still available
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /// @param amount Check whether number of tokens are still available
    /// @dev Check whether tokens are still available
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }
}

/// @author 1001.digital
/// @title Randomly assign tokenIDs from a given set of tokens.
abstract contract RandomlyAssigned is WithLimitedSupply {
    // Used for random index assignment
    mapping(uint256 => uint256) private tokenMatrix;

    // The initial token ID
    uint256 private startFrom;

    /// Instanciate the contract
    /// @param _totalSupply how many tokens this collection should hold
    /// @param _startFrom the tokenID with which to start counting
    constructor (uint256 _totalSupply, uint256 _startFrom)
        WithLimitedSupply(_totalSupply)
    {
        startFrom = _startFrom;
    }

    /// Get the next token ID
    /// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
    /// @return the next token ID
    function nextToken() internal override ensureAvailability returns (uint256) {
        uint256 maxIndex = totalSupply() - tokenCount();
        uint256 random = uint256(keccak256(
            abi.encodePacked(
                msg.sender,
                block.coinbase,
                block.difficulty,
                block.gaslimit,
                block.timestamp
            )
        )) % maxIndex;

        uint256 value = 0;
        if (tokenMatrix[random] == 0) {
            // If this matrix position is empty, set the value to the generated random number.
            value = random;
        } else {
            // Otherwise, use the previously stored number from the matrix.
            value = tokenMatrix[random];
        }

        // If the last available tokenID is still unused...
        if (tokenMatrix[maxIndex - 1] == 0) {
            // ...store that ID in the current matrix position.
            tokenMatrix[random] = maxIndex - 1;
        } else {
            // ...otherwise copy over the stored number to the current matrix position.
            tokenMatrix[random] = tokenMatrix[maxIndex - 1];
        }

        // Increment counts
        super.nextToken();

        return value + startFrom;
    }
}

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

contract IXPanthers is ERC721, Ownable, RandomlyAssigned {
  using Strings for uint256;
  using SafeMath for uint256;
  
  string public _name = "IXPanthers";
  string public _symbol = "IXP";
  string public baseExtension = ".json";
  string public baseURI;
  string public notRevealedUri;
  
  uint256 public cost = 0.075 ether;
  uint256 public maxMintPerTransction = 5;
  uint256 public nftLimitPerAddressTier1 = 5;
  uint256 public nftLimitPerAddressTier2 = 2;
  uint256 public currentSupply = 0;
  uint256 public currentTicketId = 0;
  uint256 public maxNftSupply = 7000;
  uint256 public nftsForTeam = 47;
  
  bool public paused = true;
  bool public onlyWhitelisted = true;
  bool public revealed = false;
  
  mapping(address => bool) tier1WhitelistedUsers;
  mapping(address => bool) tier2WhitelistedUsers;
  mapping(address => uint256) public usersTickets;
  mapping(address => uint256) public totalClaimed;
  
  constructor(
    string memory _initBaseURI,
    string memory _initNotRevealedUri
  ) ERC721(_name, _symbol) RandomlyAssigned(maxNftSupply, 1) {
     mintTeamTickets();
     setBaseURI(_initBaseURI);
     setNotRevealedURI(_initNotRevealedUri);
  }

  function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    
    if(revealed == false) {
       return notRevealedUri;
    }

    string memory currentBaseURI = _baseURI();
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension))
        : "";
  }

  function setCost(uint256 _newCost) public onlyOwner() {
    cost = _newCost;
  }
  
  function setMaxMintPerTransction(uint256 _amount) public onlyOwner {
    maxMintPerTransction = _amount;
  }

  function setBaseURI(string memory _newBaseURI) public onlyOwner {
    baseURI = _newBaseURI;
  }
  
  function addToTierOneWhitelist(address[] calldata addressToAdd) external onlyOwner {
    for (uint i=0; i<addressToAdd.length; i++) {
        tier1WhitelistedUsers[addressToAdd[i]] = true;
    }
  }

  function addToTierTwoWhitelist(address[] calldata addressToAdd) external onlyOwner {
    for (uint i=0; i<addressToAdd.length; i++) {
        tier2WhitelistedUsers[addressToAdd[i]] = true;
    }
  }
  
  function isTier1Whitelisted(address _user) public view returns (bool) {
    return tier1WhitelistedUsers[_user];
  }

  function isTier2Whitelisted(address _user) public view returns (bool) {
    return tier2WhitelistedUsers[_user];
  }
  
  function reserveTickets(uint256 numberOfTickets) external payable {
    require(currentTicketId.add(numberOfTickets) <= maxNftSupply, "EXCEEDS MAX SUPPLY");
    require(tx.origin == msg.sender, "CANNOT MINT THROUGH A CUSTOM CONTRACT");

    if (msg.sender != owner()) {
      if(onlyWhitelisted == true) {
        require(isTier1Whitelisted(msg.sender) || isTier2Whitelisted(msg.sender), "YOU ARE NOT WHITELISTED");
 
      }

      uint256 maxPerWallet = nftLimitPerAddressTier1;
      if (isTier2Whit...

// [truncated — 52446 bytes total]

Read Contract

_name 0xd28d8852 → string
_symbol 0xb09f1266 → string
availableTokenCount 0xe14ca353 → uint256
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
baseURI 0x6c0360eb → string
cost 0x13faede6 → uint256
currentSupply 0x771282f6 → uint256
currentTicketId 0x686465b8 → uint256
getApproved 0x081812fc → address
getUserClaimableTicketCount 0x69cd9768 → uint256
isApprovedForAll 0xe985e9c5 → bool
isTier1Whitelisted 0x09d92720 → bool
isTier2Whitelisted 0xcdab28c3 → bool
maxMintPerTransction 0x575194ae → uint256
maxNftSupply 0xa29ca449 → uint256
name 0x06fdde03 → string
nftLimitPerAddressTier1 0xe4663cbb → uint256
nftLimitPerAddressTier2 0xe7a5e9d5 → uint256
nftsForTeam 0xd22777ef → uint256
notRevealedUri 0x081c8c44 → string
onlyWhitelisted 0x9c70b512 → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenCount 0x9f181b5e → uint256
tokenURI 0xc87b56dd → string
totalClaimed 0xef5d9ae8 → uint256
totalSupply 0x18160ddd → uint256
usersTickets 0x34f7ebfe → uint256

Write Contract 22 functions

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

addToTierOneWhitelist 0xdfb94fdc
address[] addressToAdd
addToTierTwoWhitelist 0x5f550f1d
address[] addressToAdd
approve 0x095ea7b3
address to
uint256 tokenId
claimNFTs 0x55a31309
No parameters
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
reserveTickets 0xd42b7afd
uint256 numberOfTickets
reveal 0xa475b5dd
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBaseURI 0x55f804b3
string _newBaseURI
setCost 0x44a0d68a
uint256 _newCost
setMaxMintPerTransction 0xaf94f306
uint256 _amount
setNftPerAddressTier1Limit 0x41db4a19
uint256 _limit
setNftPerAddressTier2Limit 0x21d0c272
uint256 _limit
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setOnlyWhitelisted 0x3c952764
bool _state
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters

Token Balances (1)

View Transfers →
WETH 0

Recent Transactions

No transactions found for this address