Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x530Ca821Cb6D11E4bb5fD332c012aF26df86aDAF
Balance 0 ETH
Nonce 1
Code Size 16860 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16860 bytes
0x6080604052600436106101e75760003560e01c8063819ba5fe11610102578063b1427ac111610095578063e030400b11610064578063e030400b14610729578063e627f2db14610752578063f2fde38b1461077d578063f9f92be4146107a6576101ee565b8063b1427ac114610642578063b162061614610681578063b1b0ebcc146106c3578063c28fc741146106ec576101ee565b80639e2c8a5b116100d15780639e2c8a5b1461058a578063a230561b146105b3578063ae6a490c146105dc578063aeee751b14610619576101ee565b8063819ba5fe146104a75780638a9640e5146104e45780638c972702146105215780638da5cb5b1461055f576101ee565b806351d185981161017a578063715018a611610149578063715018a6146103ff57806372f702f3146104165780637b0472f0146104415780637ca6a0481461046a576101ee565b806351d1859814610345578063537df3b6146103705780635792c7a4146103995780636132df35146103d6576101ee565b80633348803f116101b65780633348803f146102b1578063399a967b146102c857806344337ea1146102f3578063454b06081461031c576101ee565b806304c10b9a146101f35780630e15561a1461021e57806320d70ad21461024957806331ed0db414610286576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b506102086107e3565b6040516102159190613294565b60405180910390f35b34801561022a57600080fd5b506102336107e9565b6040516102409190613294565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b9190613312565b6107ef565b60405161027d9190613294565b60405180910390f35b34801561029257600080fd5b5061029b610807565b6040516102a89190613294565b60405180910390f35b3480156102bd57600080fd5b506102c6610861565b005b3480156102d457600080fd5b506102dd610ad0565b6040516102ea9190613294565b60405180910390f35b3480156102ff57600080fd5b5061031a60048036038101906103159190613312565b610ad6565b005b34801561032857600080fd5b50610343600480360381019061033e919061336b565b610bad565b005b34801561035157600080fd5b5061035a610dfb565b6040516103679190613294565b60405180910390f35b34801561037c57600080fd5b5061039760048036038101906103929190613312565b610e55565b005b3480156103a557600080fd5b506103c060048036038101906103bb9190613398565b610f2c565b6040516103cd9190613294565b60405180910390f35b3480156103e257600080fd5b506103fd60048036038101906103f8919061336b565b6110b3565b005b34801561040b57600080fd5b50610414611516565b005b34801561042257600080fd5b5061042b61159e565b60405161043891906133e7565b60405180910390f35b34801561044d57600080fd5b5061046860048036038101906104639190613402565b6115c4565b005b34801561047657600080fd5b50610491600480360381019061048c919061336b565b611b8a565b60405161049e9190613294565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c99190613312565b611ba2565b6040516104db9190613294565b60405180910390f35b3480156104f057600080fd5b5061050b60048036038101906105069190613312565b611beb565b604051610518919061350c565b60405180910390f35b34801561052d57600080fd5b5061054860048036038101906105439190613398565b611cf0565b60405161055692919061352e565b60405180910390f35b34801561056b57600080fd5b50610574611e2a565b60405161058191906133e7565b60405180910390f35b34801561059657600080fd5b506105b160048036038101906105ac9190613402565b611e54565b005b3480156105bf57600080fd5b506105da60048036038101906105d59190613402565b612493565b005b3480156105e857600080fd5b5061060360048036038101906105fe919061336b565b61253d565b6040516106109190613294565b60405180910390f35b34801561062557600080fd5b50610640600480360381019061063b9190613402565b61255a565b005b34801561064e57600080fd5b5061066960048036038101906106649190613557565b612924565b604051610678939291906135aa565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a3919061336b565b612978565b6040516106ba969594939291906135f0565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e59190613651565b6129ce565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613398565b612f61565b6040516107209190613294565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b91906136d0565b612f86565b005b34801561075e57600080fd5b50610767613034565b6040516107749190613294565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f9190613312565b61303e565b005b3480156107b257600080fd5b506107cd60048036038101906107c89190613312565b613135565b6040516107da9190613710565b60405180910390f35b600a5481565b60035481565b60056020528060005260406000206000915090505481565b6000806000905060005b600b548110156108595761084460086000838152602001908152602001600020600101548361315590919063ffffffff16565b915080806108519061375a565b915050610811565b508091505090565b61086961316b565b73ffffffffffffffffffffffffffffffffffffffff16610887611e2a565b73ffffffffffffffffffffffffffffffffffffffff16146108dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d4906137ff565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161093a91906133e7565b602060405180830381865afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190613834565b90506000805b600b548110156109c9576109b460086000838152602001908152602001600020600001548361315590919063ffffffff16565b915080806109c19061375a565b915050610981565b50808211610a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a03906138ad565b60405180910390fd5b6000610a21828461317390919063ffffffff16565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610a69611e2a565b836040518363ffffffff1660e01b8152600401610a879291906138cd565b6020604051808303816000875af1158015610aa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aca919061390b565b50505050565b600b5481565b610ade61316b565b73ffffffffffffffffffffffffffffffffffffffff16610afc611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b49906137ff565b60405180910390fd5b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b610bb561316b565b73ffffffffffffffffffffffffffffffffffffffff16610bd3611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614610c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c20906137ff565b60405180910390fd5b60008111610c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6390613984565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cc991906133e7565b602060405180830381865afa158015610ce6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0a9190613834565b905081811015610d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d46906139f0565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610d95611e2a565b846040518363ffffffff1660e01b8152600401610db39291906138cd565b6020604051808303816000875af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df6919061390b565b505050565b6000806000905060005b600b54811015610e4d57610e3860086000838152602001908152602001600020600001548361315590919063ffffffff16565b91508080610e459061375a565b915050610e05565b508091505090565b610e5d61316b565b73ffffffffffffffffffffffffffffffffffffffff16610e7b611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec8906137ff565b60405180910390fd5b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60008060009050600060086000868152602001908152602001600020905060005b6002600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490508110156110a75760006002600088815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061100c5761100b613a10565b5b9060005260206000209060030201905061109161108260646110748660020154611066600a546110588860010154426110459190613a3f565b896000015461318990919063ffffffff16565b61319f90919063ffffffff16565b61318990919063ffffffff16565b61319f90919063ffffffff16565b8561315590919063ffffffff16565b935050808061109f9061375a565b915050610f4d565b50819250505092915050565b60008060086000848152602001908152602001600020905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905011611161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115890613abf565b60405180910390fd5b60005b6002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905081101561142c5760006002600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061122357611222613a10565b5b906000526020600020906003020190506112a8611299606461128b600a5461127d8660010154426112549190613a3f565b61126f8a60020154896000015461318990919063ffffffff16565b61318990919063ffffffff16565b61319f90919063ffffffff16565b61319f90919063ffffffff16565b8561315590919063ffffffff16565b93506112bf8460035461315590919063ffffffff16565b6003819055506112eb84600460008881526020019081526020016000205461315590919063ffffffff16565b6004600087815260200190815260200160002081905550611365846006600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461315590919063ffffffff16565b6006600087815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555083600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114089190613adf565b925050819055504281600101819055505080806114249061375a565b915050611164565b5060008211611470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146790613b5f565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016114cd9291906138cd565b6020604051808303816000875af11580156114ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611510919061390b565b50505050565b61151e61316b565b73ffffffffffffffffffffffffffffffffffffffff1661153c611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614611592576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611589906137ff565b60405180910390fd5b61159c60006131b5565b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260005403611609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160090613bcb565b60405180910390fd5b600260008190555060008111611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b90613c37565b60405180910390fd5b80600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016116b091906133e7565b602060405180830381865afa1580156116cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f19190613834565b1015611732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172990613ca3565b60405180910390fd5b600b548210611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90613d0f565b60405180910390fd5b60006008600084815260200190815260200160002090508060040160019054906101000a900460ff16156117df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d690613da1565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161183c91906133e7565b602060405180830381865afa158015611859573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187d9190613834565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016118de93929190613dc1565b6020604051808303816000875af11580156118fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611921919061390b565b506000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161197f91906133e7565b602060405180830381865afa15801561199c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c09190613834565b9050600082826119d09190613a3f565b905060006002600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060008103611a4f576001856001016000828254611a479190613adf565b925050819055505b6002600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001816001815401808255809150500390600052602060002090505060006002600089815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110611b1f57611b1e613a10565b5b90600052602060002090600302019050828160000181905550428160010181905550856003015442611b519190613adf565b8160020181905550611b7083876000015461315590919063ffffffff16565b866000018190555050505050505060016000819055505050565b60046020528060005260406000206000915090505481565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606000600b5467ffffffffffffffff811115611c0b57611c0a613df8565b5b604051908082528060200260200182016040528015611c395781602001602082028036833780820191505090505b50905060005b600b54811015611ce65760006002600083815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905014611cab576001611cae565b60005b828281518110611cc157611cc0613a10565b5b6020026020010190151590811515815250508080611cde9061375a565b915050611c3f565b5080915050919050565b60008060008060005b6002600088815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811015611e1a5760006002600089815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110611db857611db7613a10565b5b90600052602060002090600302019050611ddf81600001548561315590919063ffffffff16565b935080600201544210611e0657611e0381600001548461315590919063ffffffff16565b92505b508080611e129061375a565b915050611cf9565b5081819350935050509250929050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260005403611e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9090613bcb565b60405180910390fd5b6002600081905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2590613e73565b60405180910390fd5b600080600080600860008781526020019081526020016000209050611f538633611cf0565b809450819550505084831015611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590613f05565b60405180910390fd5b600085905060006002600089815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090505b6000811115612164576000600260008a815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001836120649190613a3f565b8154811061207557612074613a10565b5b90600052602060002090600302019050806002015442101580156120995750600083115b15612150576000838260000154106120b157836120b7565b81600001545b9050612118606461210a87600201546120fc600a546120ee8860010154426120df9190613a3f565b8861318990919063ffffffff16565b61319f90919063ffffffff16565b61318990919063ffffffff16565b61319f90919063ffffffff16565b866121239190613adf565b9550808260000160008282546121399190613a3f565b92505081905550808461214c9190613a3f565b9350505b50808061215c90613f25565b915050611ffc565b50600081146121a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219f90613fc0565b60405180910390fd5b600086111561225357600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33886040518363ffffffff1660e01b815260040161220e9291906138cd565b6020604051808303816000875af115801561222d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612251919061390b565b505b600083111561246357600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b81526004016122b99291906138cd565b6020604051808303816000875af11580156122d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122fc919061390b565b506123128360035461315590919063ffffffff16565b60038190555061233e83600460008a81526020019081526020016000205461315590919063ffffffff16565b60046000898152602001908152602001600020819055506123b883600660008a815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461315590919063ffffffff16565b6006600089815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461245b9190613adf565b925050819055505b61247a86836000015461317390919063ffffffff16565b8260000181905550505050505060016000819055505050565b61249b61316b565b73ffffffffffffffffffffffffffffffffffffffff166124b9611e2a565b73ffffffffffffffffffffffffffffffffffffffff161461250f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612506906137ff565b60405180910390fd5b600c5481101561251e57600080fd5b8060086000848152602001908152602001600020600201819055505050565b600060046000838152602001908152602001600020549050919050565b60026000540361259f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259690613bcb565b60405180910390fd5b6002600081905550600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262b90613e73565b60405180910390fd5b60008060006008600086815260200190815260200160002090506126588533611cf0565b8093508194505050838210156126a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269a90613f05565b60405180910390fd5b600084905060006002600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905090505b60008111156128065760006002600089815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001836127699190613a3f565b8154811061277a57612779613a10565b5b906000526020600020906003020190508060020154421015801561279e5750600083115b156127f2576000838260000154106127b657836127bc565b81600001545b9050428260010181905550808260000160008282546127db9190613a3f565b9250508190555080846127ee9190613a3f565b9350505b5080806127fe90613f25565b915050612701565b506000811461284a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284190613fc0565b60405180910390fd5b60008511156128f557600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33876040518363ffffffff1660e01b81526004016128b09291906138cd565b6020604051808303816000875af11580156128cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128f3919061390b565b505b61290c85836000015461317390919063ffffffff16565b82600001819055505050505060016000819055505050565b6002602052826000526040600020602052816000526040600020818154811061294c57600080fd5b906000526020600020906003020160009250925050508060000154908060010154908060020154905083565b60086020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16908060040160019054906101000a900460ff16905086565b600260005403612a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0a90613bcb565b60405180910390fd5b6002600081905550612a2361316b565b73ffffffffffffffffffffffffffffffffffffffff16612a41611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614612a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8e906137ff565b60405180910390fd5b60008211612ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad190613c37565b60405180910390fd5b600b548310612b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1590613d0f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8490614052565b60405180910390fd5b60006008600085815260200190815260200160002090508060040160019054906101000a900460ff1615612bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bed90613da1565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612c5391906133e7565b602060405180830381865afa158015612c70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c949190613834565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401612cf593929190613dc1565b6020604051808303816000875af1158015612d14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d38919061390b565b506000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612d9691906133e7565b602060405180830381865afa158015612db3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd79190613834565b90506000612dee838361317390919063ffffffff16565b905060006002600089815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050905060008103612e6d576001856001016000828254612e659190613adf565b925050819055505b6002600089815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405280848152602001428152602001876003015442612ee49190613adf565b81525090806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010155604082015181600201555050612f4782866000015461315590919063ffffffff16565b856000018190555050505050506001600081905550505050565b6006602052816000526040600020602052806000526040600020600091509150505481565b612f8e61316b565b73ffffffffffffffffffffffffffffffffffffffff16612fac611e2a565b73ffffffffffffffffffffffffffffffffffffffff1614613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff9906137ff565b60405180910390fd5b806008600084815260200190815260200160002060040160016101000a81548160ff0219169083151502179055505050565b6000600354905090565b61304661316b565b73ffffffffffffffffffffffffffffffffffffffff16613064611e2a565b73ffffffffffffffffffffffffffffffffffffffff16146130ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b1906137ff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613129576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613120906140e4565b60405180910390fd5b613132816131b5565b50565b60096020528060005260406000206000915054906101000a900460ff1681565b600081836131639190613adf565b905092915050565b600033905090565b600081836131819190613a3f565b905092915050565b600081836131979190614104565b905092915050565b600081836131ad9190614175565b905092915050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b61328e8161327b565b82525050565b60006020820190506132a96000830184613285565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132df826132b4565b9050919050565b6132ef816132d4565b81146132fa57600080fd5b50565b60008135905061330c816132e6565b92915050565b600060208284031215613328576133276132af565b5b6000613336848285016132fd565b91505092915050565b6133488161327b565b811461335357600080fd5b50565b6000813590506133658161333f565b92915050565b600060208284031215613381576133806132af565b5b600061338f84828501613356565b91505092915050565b600080604083850312156133af576133ae6132af565b5b60006133bd85828601613356565b92505060206133ce858286016132fd565b9150509250929050565b6133e1816132d4565b82525050565b60006020820190506133fc60008301846133d8565b92915050565b60008060408385031215613419576134186132af565b5b600061342785828601613356565b925050602061343885828601613356565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b6134838161346e565b82525050565b6000613495838361347a565b60208301905092915050565b6000602082019050919050565b60006134b982613442565b6134c3818561344d565b93506134ce8361345e565b8060005b838110156134ff5781516134e68882613489565b97506134f1836134a1565b9250506001810190506134d2565b5085935050505092915050565b6000602082019050818103600083015261352681846134ae565b905092915050565b60006040820190506135436000830185613285565b6135506020830184613285565b9392505050565b6000806000606084860312156135705761356f6132af565b5b600061357e86828701613356565b935050602061358f868287016132fd565b92505060406135a086828701613356565b9150509250925092565b60006060820190506135bf6000830186613285565b6135cc6020830185613285565b6135d96040830184613285565b949350505050565b6135ea8161346e565b82525050565b600060c0820190506136056000830189613285565b6136126020830188613285565b61361f6040830187613285565b61362c6060830186613285565b61363960808301856135e1565b61364660a08301846135e1565b979650505050505050565b60008060006060848603121561366a576136696132af565b5b600061367886828701613356565b935050602061368986828701613356565b925050604061369a868287016132fd565b9150509250925092565b6136ad8161346e565b81146136b857600080fd5b50565b6000813590506136ca816136a4565b92915050565b600080604083850312156136e7576136e66132af565b5b60006136f585828601613356565b9250506020613706858286016136bb565b9150509250929050565b600060208201905061372560008301846135e1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137658261327b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137975761379661372b565b5b600182019050919050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006137e96020836137a2565b91506137f4826137b3565b602082019050919050565b60006020820190508181036000830152613818816137dc565b9050919050565b60008151905061382e8161333f565b92915050565b60006020828403121561384a576138496132af565b5b60006138588482850161381f565b91505092915050565b7f4e6f2065786365737320746f6b656e7320617661696c61626c65000000000000600082015250565b6000613897601a836137a2565b91506138a282613861565b602082019050919050565b600060208201905081810360008301526138c68161388a565b9050919050565b60006040820190506138e260008301856133d8565b6138ef6020830184613285565b9392505050565b600081519050613905816136a4565b92915050565b600060208284031215613921576139206132af565b5b600061392f848285016138f6565b91505092915050565b7f416d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b600061396e601d836137a2565b915061397982613938565b602082019050919050565b6000602082019050818103600083015261399d81613961565b9050919050565b7f496e73756666696369656e742062616c616e636520696e20636f6e7472616374600082015250565b60006139da6020836137a2565b91506139e5826139a4565b602082019050919050565b60006020820190508181036000830152613a09816139cd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613a4a8261327b565b9150613a558361327b565b9250828203905081811115613a6d57613a6c61372b565b5b92915050565b7f4e6f207374616b657320666f756e640000000000000000000000000000000000600082015250565b6000613aa9600f836137a2565b9150613ab482613a73565b602082019050919050565b60006020820190508181036000830152613ad881613a9c565b9050919050565b6000613aea8261327b565b9150613af58361327b565b9250828201905080821115613b0d57613b0c61372b565b5b92915050565b7f5468657265206973206e6f20616d6f756e7420746f20636c61696d0000000000600082015250565b6000613b49601b836137a2565b9150613b5482613b13565b602082019050919050565b60006020820190508181036000830152613b7881613b3c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613bb5601f836137a2565b9150613bc082613b7f565b602082019050919050565b60006020820190508181036000830152613be481613ba8565b9050919050565b7f5374616b696e6720416d6f756e742063616e6e6f74206265207a65726f000000600082015250565b6000613c21601d836137a2565b9150613c2c82613beb565b602082019050919050565b60006020820190508181036000830152613c5081613c14565b9050919050565b7f42616c616e6365206973206e6f7420656e6f7567680000000000000000000000600082015250565b6000613c8d6015836137a2565b9150613c9882613c57565b602082019050919050565b60006020820190508181036000830152613cbc81613c80565b9050919050565b7f5374616b696e6720697320756e617661696c61626c6500000000000000000000600082015250565b6000613cf96016836137a2565b9150613d0482613cc3565b602082019050919050565b60006020820190508181036000830152613d2881613cec565b9050919050565b7f5374616b696e6720696e207468697320706f6f6c20697320636f6e636c75646560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d8b6021836137a2565b9150613d9682613d2f565b604082019050919050565b60006020820190508181036000830152613dba81613d7e565b9050919050565b6000606082019050613dd660008301866133d8565b613de360208301856133d8565b613df06040830184613285565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4164647265737320697320626c61636b6c697374656400000000000000000000600082015250565b6000613e5d6016836137a2565b9150613e6882613e27565b602082019050919050565b60006020820190508181036000830152613e8c81613e50565b9050919050565b7f576974686472617720616d6f756e74206578636565647320616c6c6f7765642060008201527f6c696d6974000000000000000000000000000000000000000000000000000000602082015250565b6000613eef6025836137a2565b9150613efa82613e93565b604082019050919050565b60006020820190508181036000830152613f1e81613ee2565b9050919050565b6000613f308261327b565b915060008203613f4357613f4261372b565b5b600182039050919050565b7f556e61626c6520746f20756e7374616b65207468652066756c6c20616d6f756e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613faa6021836137a2565b9150613fb582613f4e565b604082019050919050565b60006020820190508181036000830152613fd981613f9d565b9050919050565b7f42656e65666963696172792063616e6e6f74206265207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061403c6022836137a2565b915061404782613fe0565b604082019050919050565b6000602082019050818103600083015261406b8161402f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140ce6026836137a2565b91506140d982614072565b604082019050919050565b600060208201905081810360008301526140fd816140c1565b9050919050565b600061410f8261327b565b915061411a8361327b565b92508282026141288161327b565b9150828204841483151761413f5761413e61372b565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141808261327b565b915061418b8361327b565b92508261419b5761419a614146565b5b82820490509291505056fea264697066735822122028e82ae606e602459982c923e4e81c38b09291c82cf774abc69950b43aa2e27f64736f6c63430008130033

Verified Source Code Partial Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: No
NuraLabs_Staking.sol 1350 lines
// File: /SafeMath.sol

// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

    /**
     * @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) {
        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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}
// File: /Address.sol

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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);
            }
        }
    }
}
// File: /IERC20.sol

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(
                oldAllowance >= value,
                "SafeERC20: decreased allowance below zero"
            );
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(
                token,
                abi.encodeWithSelector(
                    token.approve.selector,
                    spender,
                    newAllowance
                )
            );
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(
            data,
            "SafeERC20: low-level call failed"
        );
        if (returndata.length > 0) {
            // Return data is optional
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}
// File: /ReentrancyGuard.sol

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

    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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}
// File: /Context.sol

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}
// File: /Ownable.sol

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

abstract contract IERC20Staking is ReentrancyGuard, Ownable {
    struct Plan {
        uint256 overallStaked;
        uint256 stakesCount;
        uint256 apr;
        uint256 stakeDuration;
        bool initialPool;
        bool conclude;
    }

    struct Staking {
        uint256 amount;
        uint256 stakeAt;
        uint256 endstakeAt;
    }

    mapping(uint256 => mapping(address => Staking[])) public stakes;

    // Declare state variables for tracking rewards
    uint256 public totalRewards;
    mapping(uint256 => uint256) public totalRewardsPerPlan;
    mapping(address => uint256) public totalEarnedRewardsPerWallet;

    // Declare state variable for tracking rewards per wallet per plan
    mapping(uint256 => mapping(address => uint256))
        public totalRewardsPerWalletPerPlan;

    address public stakingToken;
    mapping(uint256 => Plan) public plans;
    mapping(address => bool) public blacklist;

    modifier notBlacklisted() {
        require(!blacklist[msg.sender], "Address is blacklisted");
        _;
    }

    constructor(address _stakingToken) {
        stakingToken = _stakingToken;
    }

    function stake(uint256 _stakingId, uint256 _amount) public virtual;

    function canWithdrawAmount(
        uint256 _stakingId,
        address account
    ) public view virtual returns (uint256, uint256);

    function unstake(uint256 _stakingId, uint256 _amount) public virtual;

    function earnedToken(
        uint256 _stakingId,
        address account
    ) public view virtual returns (uint256);

    function claimEarned(uint256 _stakingId) public virtual;

    function getStakedPlans(
        address _account
    ) public view virtual returns (bool[] memory);
}

contract NuraLabs_Staking is IERC20Staking {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 public periodicTime = 365 days;
    uint256 public planLimit = 3;
    uint256 minAPR = 1;

    constructor(address _stakingToken) IERC20Staking(_stakingToken) {
        plans[0].apr = 10;
        plans[0].stakeDuration = 30 days;

        plans[1].apr = 30;
        plans[1].stakeDuration = 60 days;

        plans[2].apr = 50;
        plans[2].stakeDuration = 90 days;
    }

    function stake(
        uint256 _stakingId,
        uint256 _amount
    ) public override nonReentrant {
        require(_amount > 0, "Staking Amount cannot be zero");
        require(
            IERC20(stakingToken).balanceOf(msg.sender) >= _amount,
            "Balance is not enough"
        );
        require(_stakingId < planLimit, "Staking is unavailable");

        Plan storage plan = plans[_stakingId];
        require(!plan.conclude, "Staking in this pool is concluded");

        uint256 beforeBalance = IERC20(stakingToken).balanceOf(address(this));
        IERC20(stakingToken).transferFrom(msg.sender, address(this), _amount);
        uint256 afterBalance = IERC20(stakingToken).balanceOf(address(this));
        uint256 amount = afterBalance - beforeBalance;

        uint256 stakelength = stakes[_stakingId][msg.sender].length;

        if (stakelength == 0) {
            plan.stakesCount += 1;
        }

        stakes[_stakingId][msg.sender].push();

        Staking storage _staking = stakes[_stakingId][msg.sender][stakelength];
        _staking.amount = amount;
        _staking.stakeAt = block.timestamp;
        _staking.endstakeAt = block.timestamp + plan.stakeDuration;

        plan.overallStaked = plan.overallStaked.add(amount);
    }

    function stakeFor(
        uint256 _stakingId,
        uint256 _amount,
        address _beneficiary
    ) public nonReentrant onlyOwner {
        require(_amount > 0, "Staking Amount cannot be zero");
        require(_stakingId < planLimit, "Staking is unavailable");
        require(
            _beneficiary != address(0),
            "Beneficiary cannot be zero address"
        );

        Plan storage plan = plans[_stakingId];
        require(!plan.conclude, "Staking in this pool is concluded");

        // Transfer tokens from the sender to the contract
        uint256 beforeBalance = IERC20(stakingToken).balanceOf(address(this));
        IERC20(stakingToken).transferFrom(msg.sender, address(this), _amount);
        uint256 afterBalance = IERC20(stakingToken).balanceOf(address(this));
        uint256 amount = afterBalance.sub(beforeBalance);

        // Update staking details for the beneficiary
        uint256 stakelength = stakes[_stakingId][_beneficiary].length;
        if (stakelength == 0) {
            plan.stakesCount += 1;
        }

        stakes[_stakingId][_beneficiary].push(
            Staking({
                amount: amount,
                stakeAt: block.timestamp,
                endstakeAt: block.timestamp + plan.stakeDuration
            })
        );

        plan.overallStaked = plan.overallStaked.add(amount);
    }

    function canWithdrawAmount(
        uint256 _stakingId,
        address account
    ) public view override returns (uint256, uint256) {
        uint256 _stakedAmount = 0;
        uint256 _canWithdraw = 0;

        for (uint256 i = 0; i < stakes[_stakingId][account].length; i++) {
            Staking storage _staking = stakes[_stakingId][account][i];
            _stakedAmount = _stakedAmount.add(_staking.amount);

            // Check if the lock duration has ended for each staking
            if (block.timestamp >= _staking.endstakeAt) {
                _canWithdraw = _canWithdraw.add(_staking.amount);
            }
        }

        return (_stakedAmount, _canWithdraw);
    }

    function earnedToken(
        uint256 _stakingId,
        address account
    ) public view override returns (uint256) {
        uint256 _earned = 0;
        Plan storage plan = plans[_stakingId];

        for (uint256 i = 0; i < stakes[_stakingId][account].length; i++) {
            Staking storage _staking = stakes[_stakingId][account][i];
            _earned = _earned.add(
                _staking
                    .amount
                    .mul(block.timestamp - _staking.stakeAt)
                    .div(periodicTime)
                    .mul(plan.apr)
                    .div(100)
            );
        }

        return _earned;
    }

    function unstake(
        uint256 _stakingId,
        uint256 _amount
    ) public override nonReentrant notBlacklisted {
        uint256 _stakedAmount;
        uint256 _canWithdraw;
        uint256 _earned = 0;

        Plan storage plan = plans[_stakingId];

        // Get the total staked amount and the amount that can be withdrawn
        (_stakedAmount, _canWithdraw) = canWithdrawAmount(
            _stakingId,
            msg.sender
        );
        require(
            _canWithdraw >= _amount,
            "Withdraw amount exceeds allowed limit"
        );

        uint256 remainingAmountToUnstake = _amount;

        for (uint256 i = stakes[_stakingId][msg.sender].length; i > 0; i--) {
            Staking storage _staking = stakes[_stakingId][msg.sender][i - 1];

            // Check if the lock duration has ended
            if (
                block.timestamp >= _staking.endstakeAt &&
                remainingAmountToUnstake > 0
            ) {
                uint256 amountToUnstake = _staking.amount <
                    remainingAmountToUnstake
                    ? _staking.amount
                    : remainingAmountToUnstake;

                // Calculate earned rewards for this stake
                _earned += amountToUnstake
                    .mul(block.timestamp - _staking.stakeAt)
                    .div(periodicTime)
                    .mul(plan.apr)
                    .div(100);

                // Update the staking amount and the amount remaining to be unstaked
                _staking.amount -= amountToUnstake;
                remainingAmountToUnstake -= amountToUnstake;
            }
        }

        require(
            remainingAmountToUnstake == 0,
            "Unable to unstake the full amount"
        );

        // Transfer the unstaked principal amount and earned rewards to the user
        if (_amount > 0) {
            IERC20(stakingToken).transfer(msg.sender, _amount);
        }

        if (_earned > 0) {
            IERC20(stakingToken).transfer(msg.sender, _earned);

            totalRewards = totalRewards.add(_earned);
            totalRewardsPerPlan[_stakingId] = totalRewardsPerPlan[_stakingId]
                .add(_earned);

            totalRewardsPerWalletPerPlan[_stakingId][
                msg.sender
            ] = totalRewardsPerWalletPerPlan[_stakingId][msg.sender].add(
                _earned
            );

            // Update the total earned rewards for the wallet
            totalEarnedRewardsPerWallet[msg.sender] += _earned;
        }

        // Update the overall staked amount in the plan
        plan.overallStaked = plan.overallStaked.sub(_amount);
    }

        function unstakeWithoutReward(
        uint256 _stakingId,
        uint256 _amount
    ) public nonReentrant notBlacklisted {
        uint256 _stakedAmount;
        uint256 _canWithdraw;

        Plan storage plan = plans[_stakingId];

        // Get the total staked amount and the amount that can be withdrawn
        (_stakedAmount, _canWithdraw) = canWithdrawAmount(
            _stakingId,
            msg.sender
        );
        require(
            _canWithdraw >= _amount,
            "Withdraw amount exceeds allowed limit"
        );

        uint256 remainingAmountToUnstake = _amount;

        for (uint256 i = stakes[_stakingId][msg.sender].length; i > 0; i--) {
            Staking storage _staking = stakes[_stakingId][msg.sender][i - 1];

            // Check if the lock duration has ended
            if (
                block.timestamp >= _staking.endstakeAt &&
                remainingAmountToUnstake > 0
            ) {
                uint256 amountToUnstake = _staking.amount <
                    remainingAmountToUnstake
                    ? _staking.amount
                    : remainingAmountToUnstake;

                // Reset the staking timestamp to current time to prevent reward calculation issues
                _staking.stakeAt = block.timestamp;

                // Update the staking amount and the amount remaining to be unstaked
                _staking.amount -= amountToUnstake;
                remainingAmountToUnstake -= amountToUnstake;
            }
        }

        require(
            remainingAmountToUnstake == 0,
            "Unable to unstake the full amount"
        );

        // Transfer only the unstaked principal amount to the user
        if (_amount > 0) {
            IERC20(stakingToken).transfer(msg.sender, _amount);
        }

        // Update the overall staked amount in the plan
        plan.overallStaked = plan.overallStaked.sub(_amount);
    }

    function claimEarned(uint256 _stakingId) public override {
        uint256 _earned = 0;
        Plan storage plan = plans[_stakingId];

        require(stakes[_stakingId][msg.sender].length > 0, "No stakes found");

        for (uint256 i = 0; i < stakes[_stakingId][msg.sender].length; i++) {
            Staking storage _staking = stakes[_stakingId][msg.sender][i];

            _earned = _earned.add(
                _staking
                    .amount
                    .mul(plan.apr)
                    .mul(block.timestamp - _staking.stakeAt)
                    .div(periodicTime)
                    .div(100)
            );

            totalRewards = totalRewards.add(_earned);
            totalRewardsPerPlan[_stakingId] = totalRewardsPerPlan[_stakingId]
                .add(_earned);

            totalRewardsPerWalletPerPlan[_stakingId][
                msg.sender
            ] = totalRewardsPerWalletPerPlan[_stakingId][msg.sender].add(
                _earned
            );

            // Update the total earned rewards for the wallet
            totalEarnedRewardsPerWallet[msg.sender] += _earned;

            _staking.stakeAt = block.timestamp;
        }
        require(_earned > 0, "There is no amount to claim");
        IERC20(stakingToken).transfer(msg.sender, _earned);
    }

    function getStakedPlans(
        address _account
    ) public view override returns (bool[] memory) {
        bool[] memory walletPlans = new bool[](planLimit);
        for (uint256 i = 0; i < planLimit; i++) {
            walletPlans[i] = stakes[i][_account].length == 0 ? false : true;
        }
        return walletPlans;
    }

    function setAPR(uint256 _stakingId, uint256 _percent) external onlyOwner {
        require(_percent >= minAPR);
        plans[_stakingId].apr = _percent;
    }

    function setStakeConclude(
        uint256 _stakingId,
        bool _conclude
    ) external onlyOwner {
        plans[_stakingId].conclude = _conclude;
    }

    function addToBlacklist(address _address) external onlyOwner {
        blacklist[_address] = true;
    }

    function removeFromBlacklist(address _address) external onlyOwner {
        blacklist[_address] = false;
    }

    // Getter functions to retrieve totalRewards and totalRewardsPerPlan
    function getTotalRewards() public view returns (uint256) {
        return totalRewards;
    }

    function getTotalRewardsPerPlan(
        uint256 _stakingId
    ) public view returns (uint256) {
        return totalRewardsPerPlan[_stakingId];
    }

    // Getter function to retrieve total earned rewards for a specific wallet
    function getTotalEarnedRewardsPerWallet(
        address _wallet
    ) public view returns (uint256) {
        return totalEarnedRewardsPerWallet[_wallet];
    }



    function removeUnused() external onlyOwner {
        uint256 contractBalance = IERC20(stakingToken).balanceOf(address(this));
        uint256 totalStaked = 0;

        // Calculate total staked amount across all plans
        for (uint256 i = 0; i < planLimit; i++) {
            totalStaked = totalStaked.add(plans[i].overallStaked);
        }

        require(contractBalance > totalStaked, "No excess tokens available");
        uint256 excessAmount = contractBalance.sub(totalStaked);

        IERC20(stakingToken).transfer(owner(), excessAmount);
    }

       function migrate(uint256 _amount) external onlyOwner {
        require(_amount > 0, "Amount must be greater than 0");
        uint256 contractBalance = IERC20(stakingToken).balanceOf(address(this));
        require(contractBalance >= _amount, "Insufficient balance in contract");
        IERC20(stakingToken).transfer(owner(), _amount);
    }



     function getTotalStakers() public view returns (uint256) {
        uint256 totalStakers = 0;
        for (uint256 i = 0; i < planLimit; i++) {
            totalStakers = totalStakers.add(plans[i].stakesCount);
        }
        return totalStakers;
    }
    function getTotalStakedTokens() public view returns (uint256) {
        uint256 totalStaked = 0;
        for (uint256 i = 0; i < planLimit; i++) {
            totalStaked = totalStaked.add(plans[i].overallStaked);
        }
        return totalStaked;
    }

    receive() external payable {}
}

Read Contract

blacklist 0xf9f92be4 → bool
canWithdrawAmount 0x8c972702 → uint256, uint256
earnedToken 0x5792c7a4 → uint256
getStakedPlans 0x8a9640e5 → bool[]
getTotalEarnedRewardsPerWallet 0x819ba5fe → uint256
getTotalRewards 0xe627f2db → uint256
getTotalRewardsPerPlan 0xae6a490c → uint256
getTotalStakedTokens 0x51d18598 → uint256
getTotalStakers 0x31ed0db4 → uint256
owner 0x8da5cb5b → address
periodicTime 0x04c10b9a → uint256
planLimit 0x399a967b → uint256
plans 0xb1620616 → uint256, uint256, uint256, uint256, bool, bool
stakes 0xb1427ac1 → uint256, uint256, uint256
stakingToken 0x72f702f3 → address
totalEarnedRewardsPerWallet 0x20d70ad2 → uint256
totalRewards 0x0e15561a → uint256
totalRewardsPerPlan 0x7ca6a048 → uint256
totalRewardsPerWalletPerPlan 0xc28fc741 → uint256

Write Contract 13 functions

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

addToBlacklist 0x44337ea1
address _address
claimEarned 0x6132df35
uint256 _stakingId
migrate 0x454b0608
uint256 _amount
removeFromBlacklist 0x537df3b6
address _address
removeUnused 0x3348803f
No parameters
renounceOwnership 0x715018a6
No parameters
setAPR 0xa230561b
uint256 _stakingId
uint256 _percent
setStakeConclude 0xe030400b
uint256 _stakingId
bool _conclude
stake 0x7b0472f0
uint256 _stakingId
uint256 _amount
stakeFor 0xb1b0ebcc
uint256 _stakingId
uint256 _amount
address _beneficiary
transferOwnership 0xf2fde38b
address newOwner
unstake 0x9e2c8a5b
uint256 _stakingId
uint256 _amount
unstakeWithoutReward 0xaeee751b
uint256 _stakingId
uint256 _amount

Recent Transactions

No transactions found for this address