Address Contract Verified
Address
0xf823FD9aC0abb8d779076A41DAa049844299f6ED
Balance
0 ETH
Nonce
1
Code Size
20745 bytes
Creator
0x606Ccaa3...50b3 at tx 0xa30dc785...6fed31
Indexed Transactions
0
Contract Bytecode
20745 bytes
0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806370d3bae01161019d578063a457c2d7116100e9578063dd62ed3e116100a2578063f2fde38b1161007c578063f2fde38b14610915578063f522e73514610931578063f714af6f1461093b578063f7b2a7be146109595761030c565b8063dd62ed3e146108a9578063dfbf53ae146108d9578063e8c15329146108f75761030c565b8063a457c2d7146107e9578063a7d0f70914610819578063a8a65a7814610837578063a9059cbb14610853578063b88a802f14610883578063d9fca7691461088d5761030c565b806389f9a1d311610156578063965afa8911610130578063965afa89146107635780639fa0dd091461077f578063a08f39971461079d578063a29a6089146107cd5761030c565b806389f9a1d3146107095780638da5cb5b1461072757806395d89b41146107455761030c565b806370d3bae01461066b578063715018a61461068957806378cf4f10146106935780637ffd6104146106af57806382a0969f146106cd578063860a32ec146106eb5761030c565b80632598cdb21161025c578063395093511161021557806342966c68116101ef57806342966c68146105e557806349bd5a5e146106015780635d098b381461061f57806370a082311461063b5761030c565b8063395093511461057d5780633aa633aa146105ad578063404e5129146105c95761030c565b80632598cdb2146104cb5780632af2545e146104e9578063313ce56714610507578063347d226d1461052557806338e3eaef1461055557806339224efe1461055f5761030c565b8063095ea7b3116102c95780631ab99e12116102a35780631ab99e12146104415780631aeb28021461045f5780631fce07d51461047d57806323b872dd1461049b5761030c565b8063095ea7b3146103c357806316c02129146103f357806318160ddd146104235761030c565b8063012a4d251461031157806301b62b781461032f578063031dcc651461034d5780630535ec771461036b57806306fdde0314610389578063092193ab146103a7575b600080fd5b610319610977565b604051610326919061390e565b60405180910390f35b61033761097d565b6040516103449190613944565b60405180910390f35b610355610990565b60405161036291906139a0565b60405180910390f35b6103736109b6565b6040516103809190613944565b60405180910390f35b6103916109c9565b60405161039e9190613a4b565b60405180910390f35b6103c160048036038101906103bc9190613a9e565b610a5b565b005b6103dd60048036038101906103d89190613af7565b610db2565b6040516103ea9190613944565b60405180910390f35b61040d60048036038101906104089190613a9e565b610dd5565b60405161041a9190613944565b60405180910390f35b61042b610df5565b604051610438919061390e565b60405180910390f35b610449610dff565b604051610456919061390e565b60405180910390f35b610467610e05565b604051610474919061390e565b60405180910390f35b610485610e0b565b604051610492919061390e565b60405180910390f35b6104b560048036038101906104b09190613b37565b610e11565b6040516104c29190613944565b60405180910390f35b6104d3610e40565b6040516104e091906139a0565b60405180910390f35b6104f1610e66565b6040516104fe9190613944565b60405180910390f35b61050f610e77565b60405161051c9190613ba6565b60405180910390f35b61053f600480360381019061053a9190613a9e565b610e80565b60405161054c919061390e565b60405180910390f35b61055d610e98565b005b610567611303565b604051610574919061390e565b60405180910390f35b61059760048036038101906105929190613af7565b611309565b6040516105a49190613944565b60405180910390f35b6105c760048036038101906105c29190613bed565b611340565b005b6105e360048036038101906105de9190613c54565b6113b7565b005b6105ff60048036038101906105fa9190613c94565b61141a565b005b610609611427565b60405161061691906139a0565b60405180910390f35b61063960048036038101906106349190613a9e565b61144d565b005b61065560048036038101906106509190613a9e565b6116f1565b604051610662919061390e565b60405180910390f35b61067361173a565b60405161068091906139a0565b60405180910390f35b610691611760565b005b6106ad60048036038101906106a89190613a9e565b611774565b005b6106b76119ed565b6040516106c491906139a0565b60405180910390f35b6106d5611a13565b6040516106e291906139a0565b60405180910390f35b6106f3611a39565b6040516107009190613944565b60405180910390f35b610711611a4c565b60405161071e919061390e565b60405180910390f35b61072f611a52565b60405161073c91906139a0565b60405180910390f35b61074d611a7b565b60405161075a9190613a4b565b60405180910390f35b61077d60048036038101906107789190613a9e565b611b0d565b005b610787611be1565b60405161079491906139a0565b60405180910390f35b6107b760048036038101906107b29190613a9e565b611c07565b6040516107c4919061390e565b60405180910390f35b6107e760048036038101906107e29190613a9e565b611c1f565b005b61080360048036038101906107fe9190613af7565b611d62565b6040516108109190613944565b60405180910390f35b610821611dd9565b60405161082e91906139a0565b60405180910390f35b610851600480360381019061084c9190613c94565b611dff565b005b61086d60048036038101906108689190613af7565b611fa9565b60405161087a9190613944565b60405180910390f35b61088b612623565b005b6108a760048036038101906108a29190613a9e565b61282e565b005b6108c360048036038101906108be9190613cc1565b612a7c565b6040516108d0919061390e565b60405180910390f35b6108e1612b03565b6040516108ee91906139a0565b60405180910390f35b6108ff612b29565b60405161090c919061390e565b60405180910390f35b61092f600480360381019061092a9190613a9e565b612b37565b005b610939612bba565b005b610943612dbd565b604051610950919061390e565b60405180910390f35b610961612dcc565b60405161096e919061390e565b60405180910390f35b60155481565b601260149054906101000a900460ff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601260159054906101000a900460ff1681565b6060600480546109d890613d30565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0490613d30565b8015610a515780601f10610a2657610100808354040283529160200191610a51565b820191906000526020600020905b815481529060010190602001808311610a3457829003601f168201915b5050505050905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610b5f5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610b5e5750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9590613dad565b60405180910390fd5b610ba6612dd2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0c90613e3f565b60405180910390fd5b6000610c20826116f1565b11610c60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5790613ed1565b60405180910390fd5b601354610c8e600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166116f1565b1015610ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc690613f63565b60405180910390fd5b62093a80601854610ce09190613fb2565b4211610d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1890614058565b60405180910390fd5b610d50600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682601354612e21565b8073ffffffffffffffffffffffffffffffffffffffff167fe34918ff1c7084970068b53fd71ad6d8b04e9f15d3886cbf006443e6cdc52ea6601354604051610d98919061390e565b60405180910390a242601881905550610daf61309a565b50565b600080610dbd6130a4565b9050610dca8185856130ac565b600191505092915050565b600b6020528060005260406000206000915054906101000a900460ff1681565b6000600354905090565b60095481565b601a5481565b60185481565b600080610e1c6130a4565b9050610e29858285613275565b610e34858585612e21565b60019150509392505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60148054906101000a900460ff1681565b60006012905090565b60166020528060005260406000206000915090505481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f9c5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015610f9b5750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b610fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd290613dad565b60405180910390fd5b610fe3612dd2565b6000611010600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166116f1565b9050600061103f600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166116f1565b9050611090600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612e21565b6110df600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612e21565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fe73b77795c13bee9883a40de3973381a54190f3bc777dcab3a8206d302afc78484604051611246919061390e565b60405180910390a3601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fe73b77795c13bee9883a40de3973381a54190f3bc777dcab3a8206d302afc784836040516112ef919061390e565b60405180910390a3505061130161309a565b565b60195481565b6000806113146130a4565b90506113358185856113268589612a7c565b6113309190613fb2565b6130ac565b600191505092915050565b611348613301565b83600760006101000a81548160ff02191690831515021790555082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816008819055508060098190555050505050565b6113bf613301565b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b611424338261337f565b50565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115515750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156115505750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b611590576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158790613dad565b60405180910390fd5b600d60149054906101000a900460ff16156115e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d7906140ea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361164f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116469061417c565b60405180910390fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600d60146101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167ff86e3c0cc66159379bdf420884b6f4be3aa4fb93284e88c539c61ba300646a7460405160405180910390a250565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611768613301565b611772600061354e565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806118785750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156118775750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b6118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90613dad565b60405180910390fd5b6118bf612dd2565b600073ffffffffffffffffffffffffffffffffffffffff16601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611950576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119479061420e565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060006014806101000a81548160ff0219169083151502179055507fd185e773f959db69f4b818f04a87dd8ee83fff90f0dbc34f4433d173b424424f816040516119da91906139a0565b60405180910390a16119ea61309a565b50565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900460ff1681565b60085481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054611a8a90613d30565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab690613d30565b8015611b035780601f10611ad857610100808354040283529160200191611b03565b820191906000526020600020905b815481529060010190602001808311611ae657829003601f168201915b5050505050905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b94906142a0565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60176020528060005260406000206000915090505481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca690614332565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d15906143c4565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611d6d6130a4565b90506000611d7b8286612a7c565b905083811015611dc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db790614456565b60405180910390fd5b611dcd82868684036130ac565b60019250505092915050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611f035750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015611f025750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b611f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3990613dad565b60405180910390fd5b611f4a612dd2565b6969e10de76676d0800000811115611f97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8e906144c2565b60405180910390fd5b80601381905550611fa661309a565b50565b6000611fb36130a4565b82600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061205d5750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156124c55762015180601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120b09190613fb2565b4211156120fd576000601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614801561216a57506301e13380601a546121679190613fb2565b42105b156121aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a19061457a565b60405180910390fd5b62015180601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121f89190613fb2565b4211612239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223090614632565b60405180910390fd5b6a084595161401484a00000081601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122909190613fb2565b11156122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c8906146c4565b60405180910390fd5b6122e36122dc6130a4565b8686612e21565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123246130a4565b73ffffffffffffffffffffffffffffffffffffffff16148061239a5750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123826130a4565b73ffffffffffffffffffffffffffffffffffffffff16145b80156123b057506a027b46536c66c8e300000084115b15612422578473ffffffffffffffffffffffffffffffffffffffff166123d46130a4565b73ffffffffffffffffffffffffffffffffffffffff167f3f6891e1a2a9b15049cb996a65b5732644814d27e4a8e1f5a3b0d23432f53f4e86604051612419919061390e565b60405180910390a35b6001925080601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124759190613fb2565b9250508190555042601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061261b565b6124d76124d06130a4565b8686612e21565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125186130a4565b73ffffffffffffffffffffffffffffffffffffffff16148061258e5750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166125766130a4565b73ffffffffffffffffffffffffffffffffffffffff16145b80156125a457506a027b46536c66c8e300000084115b15612616578473ffffffffffffffffffffffffffffffffffffffff166125c86130a4565b73ffffffffffffffffffffffffffffffffffffffff167f3f6891e1a2a9b15049cb996a65b5732644814d27e4a8e1f5a3b0d23432f53f4e8660405161260d919061390e565b60405180910390a35b600192505b505092915050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146126b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126aa90614730565b60405180910390fd5b601260149054906101000a900460ff1615612703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fa9061479c565b60405180910390fd5b600061270e336116f1565b1161274e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274590614808565b60405180910390fd5b6001601260146101000a81548160ff0219169083151502179055506127ba600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601354612e21565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fe34918ff1c7084970068b53fd71ad6d8b04e9f15d3886cbf006443e6cdc52ea6601354604051612824919061390e565b60405180910390a2565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806129325750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156129315750600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b5b612971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296890613dad565b60405180910390fd5b612979612dd2565b62093a8060195461298a9190613fb2565b42116129cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c29061489a565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601260146101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f9d5b5758df7039aae25e6ca959e5d46a5b27446b5aaa5ae9880a09de7578207960405160405180910390a242601981905550612a7961309a565b50565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6969e10de76676d080000081565b612b3f613301565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba59061492c565b60405180910390fd5b612bb78161354e565b50565b612bc2612dd2565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4990614998565b60405180910390fd5b60148054906101000a900460ff1615612ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9790614a04565b60405180910390fd5b6000612cab336116f1565b11612ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce290614808565b60405180910390fd5b60016014806101000a81548160ff021916908315150217905550612d56600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601554612e21565b7f043698c3d68184177263650accd6b1a0b778c7e7108bf451458371ab926cfecf601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601554604051612dab929190614a24565b60405180910390a1612dbb61309a565b565b6a084595161401484a00000081565b60135481565b600260065403612e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e0e90614a99565b60405180910390fd5b6002600681905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8790614b2b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef690614bbd565b60405180910390fd5b612f0a838383613612565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8890614c4f565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613081919061390e565b60405180910390a36130948484846138f0565b50505050565b6001600681905550565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361311b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311290614ce1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361318a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318190614d73565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051613268919061390e565b60405180910390a3505050565b60006132818484612a7c565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146132fb57818110156132ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132e490614ddf565b60405180910390fd5b6132fa84848484036130ac565b5b50505050565b6133096130a4565b73ffffffffffffffffffffffffffffffffffffffff16613327611a52565b73ffffffffffffffffffffffffffffffffffffffff161461337d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337490614e4b565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036133ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e590614edd565b60405180910390fd5b6133fa82600083613612565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347890614f6f565b60405180910390fd5b818103600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613535919061390e565b60405180910390a3613549836000846138f0565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156136b65750600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b6136f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ec90614fdb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361380257613753611a52565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806137be575061378f611a52565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b6137fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f490615047565b60405180910390fd5b6138eb565b600760009054906101000a900460ff16801561386b5750600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156138ea576008548161387d846116f1565b6138879190613fb2565b111580156138aa57506009548161389d846116f1565b6138a79190613fb2565b10155b6138e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e0906150b3565b60405180910390fd5b5b5b505050565b505050565b6000819050919050565b613908816138f5565b82525050565b600060208201905061392360008301846138ff565b92915050565b60008115159050919050565b61393e81613929565b82525050565b60006020820190506139596000830184613935565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061398a8261395f565b9050919050565b61399a8161397f565b82525050565b60006020820190506139b56000830184613991565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139f55780820151818401526020810190506139da565b60008484015250505050565b6000601f19601f8301169050919050565b6000613a1d826139bb565b613a2781856139c6565b9350613a378185602086016139d7565b613a4081613a01565b840191505092915050565b60006020820190508181036000830152613a658184613a12565b905092915050565b600080fd5b613a7b8161397f565b8114613a8657600080fd5b50565b600081359050613a9881613a72565b92915050565b600060208284031215613ab457613ab3613a6d565b5b6000613ac284828501613a89565b91505092915050565b613ad4816138f5565b8114613adf57600080fd5b50565b600081359050613af181613acb565b92915050565b60008060408385031215613b0e57613b0d613a6d565b5b6000613b1c85828601613a89565b9250506020613b2d85828601613ae2565b9150509250929050565b600080600060608486031215613b5057613b4f613a6d565b5b6000613b5e86828701613a89565b9350506020613b6f86828701613a89565b9250506040613b8086828701613ae2565b9150509250925092565b600060ff82169050919050565b613ba081613b8a565b82525050565b6000602082019050613bbb6000830184613b97565b92915050565b613bca81613929565b8114613bd557600080fd5b50565b600081359050613be781613bc1565b92915050565b60008060008060808587031215613c0757613c06613a6d565b5b6000613c1587828801613bd8565b9450506020613c2687828801613a89565b9350506040613c3787828801613ae2565b9250506060613c4887828801613ae2565b91505092959194509250565b60008060408385031215613c6b57613c6a613a6d565b5b6000613c7985828601613a89565b9250506020613c8a85828601613bd8565b9150509250929050565b600060208284031215613caa57613ca9613a6d565b5b6000613cb884828501613ae2565b91505092915050565b60008060408385031215613cd857613cd7613a6d565b5b6000613ce685828601613a89565b9250506020613cf785828601613a89565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d4857607f821691505b602082108103613d5b57613d5a613d01565b5b50919050565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b6000613d97600e836139c6565b9150613da282613d61565b602082019050919050565b60006020820190508181036000830152613dc681613d8a565b9050919050565b7f43616e6e6f742072657761726420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613e296021836139c6565b9150613e3482613dcd565b604082019050919050565b60006020820190508181036000830152613e5881613e1c565b9050919050565b7f41646472657373206d75737420626520612053515549442047616d6520746f6b60008201527f656e20686f6c6465720000000000000000000000000000000000000000000000602082015250565b6000613ebb6029836139c6565b9150613ec682613e5f565b604082019050919050565b60006020820190508181036000830152613eea81613eae565b9050919050565b7f4d61726b6574696e672057616c6c65742062616c616e636520697320696e737560008201527f6666696369656e74000000000000000000000000000000000000000000000000602082015250565b6000613f4d6028836139c6565b9150613f5882613ef1565b604082019050919050565b60006020820190508181036000830152613f7c81613f40565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fbd826138f5565b9150613fc8836138f5565b9250828201905080821115613fe057613fdf613f83565b5b92915050565b7f43616e6e6f74206469737472696275746520726577617264206d6f726520746860008201527f616e206f6e636520706572207765656b00000000000000000000000000000000602082015250565b60006140426030836139c6565b915061404d82613fe6565b604082019050919050565b6000602082019050818103600083015261407181614035565b9050919050565b7f4d61726b6574696e6757616c6c65742063616e206f6e6c79206265207365742060008201527f6f6e636500000000000000000000000000000000000000000000000000000000602082015250565b60006140d46024836139c6565b91506140df82614078565b604082019050919050565b60006020820190508181036000830152614103816140c7565b9050919050565b7f4d61726b6574696e6757616c6c65742063616e6e6f7420626520746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614166602a836139c6565b91506141718261410a565b604082019050919050565b6000602082019050818103600083015261419581614159565b9050919050565b7f556c74696d61746520647261772068617320616c7265616479206265656e206460008201527f6f6e650000000000000000000000000000000000000000000000000000000000602082015250565b60006141f86023836139c6565b91506142038261419c565b604082019050919050565b60006020820190508181036000830152614227816141eb565b9050919050565b7f4f6e6c792074686520535155494446726f6e746d616e2063616e20736574207460008201527f68652044414f2061646472657373000000000000000000000000000000000000602082015250565b600061428a602e836139c6565b91506142958261422e565b604082019050919050565b600060208201905081810360008301526142b98161427d565b9050919050565b7f4f6e6c792074686520535155494446726f6e746d616e2063616e20736574207460008201527f686520556e697377617056325061697220616464726573730000000000000000602082015250565b600061431c6038836139c6565b9150614327826142c0565b604082019050919050565b6000602082019050818103600083015261434b8161430f565b9050919050565b7f556e69737761705632506169722063616e6e6f7420626520746865207a65726f60008201527f2061646472657373000000000000000000000000000000000000000000000000602082015250565b60006143ae6028836139c6565b91506143b982614352565b604082019050919050565b600060208201905081810360008301526143dd816143a1565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006144406025836139c6565b915061444b826143e4565b604082019050919050565b6000602082019050818103600083015261446f81614433565b9050919050565b7f45786365656473206d6178696d756d2072657761726420616d6f756e74000000600082015250565b60006144ac601d836139c6565b91506144b782614476565b602082019050919050565b600060208201905081810360008301526144db8161449f565b9050919050565b7f5472616e736665723a205468652074696d656c6f636b20666f7220537175696460008201527f47616d65546f6b656e446576656c6f706d656e7457616c6c657420686173206e60208201527f6f74206578706972656420796574000000000000000000000000000000000000604082015250565b6000614564604e836139c6565b915061456f826144e2565b606082019050919050565b6000602082019050818103600083015261459381614557565b9050919050565b7f5472616e736665723a204461696c79207472616e73666572206c696d6974207260008201527f6561636865642c207761697420756e74696c20323420686f757273207061737360208201527f65642073696e6365206c617374207472616e7366657200000000000000000000604082015250565b600061461c6056836139c6565b91506146278261459a565b606082019050919050565b6000602082019050818103600083015261464b8161460f565b9050919050565b7f5472616e736665723a205472616e7366657220616d6f756e742065786365656460008201527f73206461696c79206c696d697400000000000000000000000000000000000000602082015250565b60006146ae602d836139c6565b91506146b982614652565b604082019050919050565b600060208201905081810360008301526146dd816146a1565b9050919050565b7f4e6f74207468652077696e6e6572000000000000000000000000000000000000600082015250565b600061471a600e836139c6565b9150614725826146e4565b602082019050919050565b600060208201905081810360008301526147498161470d565b9050919050565b7f52657761726420616c726561647920636c61696d656400000000000000000000600082015250565b60006147866016836139c6565b915061479182614750565b602082019050919050565b600060208201905081810360008301526147b581614779565b9050919050565b7f4e6f74206120535155494420686f6c6465720000000000000000000000000000600082015250565b60006147f26012836139c6565b91506147fd826147bc565b602082019050919050565b60006020820190508181036000830152614821816147e5565b9050919050565b7f43616e6e6f74207365742077696e6e6572206d6f7265207468616e206f6e636560008201527f20706572207765656b0000000000000000000000000000000000000000000000602082015250565b60006148846029836139c6565b915061488f82614828565b604082019050919050565b600060208201905081810360008301526148b381614877565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149166026836139c6565b9150614921826148ba565b604082019050919050565b6000602082019050818103600083015261494581614909565b9050919050565b7f4e6f742074686520756c74696d61746520647261772077696e6e657200000000600082015250565b6000614982601c836139c6565b915061498d8261494c565b602082019050919050565b600060208201905081810360008301526149b181614975565b9050919050565b7f556c74696d6174652072657761726420616c726561647920636c61696d656400600082015250565b60006149ee601f836139c6565b91506149f9826149b8565b602082019050919050565b60006020820190508181036000830152614a1d816149e1565b9050919050565b6000604082019050614a396000830185613991565b614a4660208301846138ff565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614a83601f836139c6565b9150614a8e82614a4d565b602082019050919050565b60006020820190508181036000830152614ab281614a76565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614b156025836139c6565b9150614b2082614ab9565b604082019050919050565b60006020820190508181036000830152614b4481614b08565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614ba76023836139c6565b9150614bb282614b4b565b604082019050919050565b60006020820190508181036000830152614bd681614b9a565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614c396026836139c6565b9150614c4482614bdd565b604082019050919050565b60006020820190508181036000830152614c6881614c2c565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ccb6024836139c6565b9150614cd682614c6f565b604082019050919050565b60006020820190508181036000830152614cfa81614cbe565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d5d6022836139c6565b9150614d6882614d01565b604082019050919050565b60006020820190508181036000830152614d8c81614d50565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614dc9601d836139c6565b9150614dd482614d93565b602082019050919050565b60006020820190508181036000830152614df881614dbc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e356020836139c6565b9150614e4082614dff565b602082019050919050565b60006020820190508181036000830152614e6481614e28565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ec76021836139c6565b9150614ed282614e6b565b604082019050919050565b60006020820190508181036000830152614ef681614eba565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f596022836139c6565b9150614f6482614efd565b604082019050919050565b60006020820190508181036000830152614f8881614f4c565b9050919050565b7f426c61636b6c6973746564000000000000000000000000000000000000000000600082015250565b6000614fc5600b836139c6565b9150614fd082614f8f565b602082019050919050565b60006020820190508181036000830152614ff481614fb8565b9050919050565b7f74726164696e67206973206e6f74207374617274656400000000000000000000600082015250565b60006150316016836139c6565b915061503c82614ffb565b602082019050919050565b6000602082019050818103600083015261506081615024565b9050919050565b7f466f726269640000000000000000000000000000000000000000000000000000600082015250565b600061509d6006836139c6565b91506150a882615067565b602082019050919050565b600060208201905081810360008301526150cc81615090565b905091905056fea26469706673582212208103e470e83f8d8b29a48784af96e320e89323bd155c3a6859567def8a990ba064736f6c63430008110033
Verified Source Code Full Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: No
SQUIDGame.sol 410 lines
// SQUID Game (SQUID) is originally a meme coin on Binance Smart Chain.
// It is now following in the footsteps of $BTC, $DOGE, and $SHIB. A token with no founder team, and fully driven by the communities.
// A passionate and committed team of community volunteers has breathed new life into the SQUID project, rescuing it from its unfortunate past and steering it towards a promising future. They're launching the expansion of SQUID Token on the Ethereum Mainnet, and it's packed with some seriously impressive features.
// This is a genuine resurrection and a redemption story like no other!
// Here at ETH, SQUID Game Token is a community driven, fair launched DeFi Token, governed by SQUID DAO Contract.
// SQUID Game spirit is to create a community that is united and strong, bonded by the will to survive and win.
// With SQUID Frontman advocating for fairness, transparency, and sharing wealth to the masses, SQUID Game Token is a token that is built to last.
//
//
// Website: https://SQUIDGameHolders.Club
// Twitter: https://twitter.com/SQUIDHolders
// Telegram: https://t.me/squidcrypt
// Message from the SQUID Frontman
// Everyone should be the winner!
// Let's stand together and fight for our rights to be the winner!
// Let's unite! We are strong together!
// https://SQUIDGameHolders.Club/docs/messagefromsquidfrontman2/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract SquidToken is Ownable, ERC20, ReentrancyGuard {
bool public limited = false;
uint256 public maxHoldingAmount;
uint256 public minHoldingAmount;
address public uniswapV2Pair;
mapping(address => bool) public blacklists;
address public SQUIDFrontman;
address public SquidDAOAddress;
// bool private marketingWalletSet = false;
bool private marketingWalletSet = true; // pre-defined marketing wallet; cannot be changed.
address public MarketingWallet = 0x4440D4a8aB47412849613cba42Fd2c40Db7c2ef0;
address public SquidGameTokenDevelopmentWallet =
0x8ef6B893e9C9375449859feC1A4e9e54efBa203e;
address public DevelopmentWalletFailSafe =
0x9f095a94553D2EFfcc1A34b65b2a632DB65ae1e6;
address public MarketingWalletFailSafe =
0xf24e471bA10D791298B4AA55F447C2aaCe2E4aAe;
address public winner;
bool public rewardClaimed = false;
bool public initialDistributionDone = false;
uint256 public rewardAmount = 50000 * (10 ** 18);
address public ultimateDrawWinner;
bool public ultimateRewardClaimed = false;
uint256 public ultimateRewardAmount = 1000000 * 10 ** 18; // 1 million SQUID tokens
// max limit reward to 500,000 SQUID tokens
uint256 public constant maxRewardAmount = 500000 * (10 ** 18);
//daily transfer limit for marketing wallet and development wallet
uint256 public constant dailyTransferLimit = 10000000 * (10 ** 18);
mapping(address => uint256) public dailyTransfered;
mapping(address => uint256) public lastTransfered;
uint256 public lastDistributed;
uint256 public lastWinnerSet;
uint256 public contractDeploymentTimestamp;
event UltimateDrawWinnerSet(address winner);
event UltimateRewardDistributed(address winner, uint256 amount);
event RewardDistributed(address indexed luckyHolder, uint256 amount);
event MarketingWalletSet(address indexed marketingWallet);
event EmergencyTransfer(
address indexed fromWallet,
address indexed toWallet,
uint256 amount
);
event WinnerSet(address indexed winner);
event LargeTransfer(
address indexed from,
address indexed to,
uint256 amount
);
constructor() Ownable() ERC20("Squid Game", "SQUID") {
_mint(msg.sender, 488000000 * (10 ** 18));
SQUIDFrontman = msg.sender;
initialDistribution();
lastDistributed = block.timestamp;
lastWinnerSet = block.timestamp;
contractDeploymentTimestamp = block.timestamp;
}
modifier onlySquidFrontmanOrDAO() {
require(
msg.sender == SQUIDFrontman ||
(msg.sender == SquidDAOAddress &&
SquidDAOAddress != address(0)),
"Not authorized"
);
_;
}
modifier onlySquidFrontman() {
require(msg.sender == SQUIDFrontman, "Caller is not the SQUIDFrontman");
_;
}
modifier dailyLimitCheck(address from, uint256 amount) {
if (
from == MarketingWallet || from == SquidGameTokenDevelopmentWallet
) {
// If it's been more than 24 hours since the last transfer by SQUID Marketing and Dev Wallets, reset the daily transfer amount
// any unauthorized transfer ; the emergency transfer function will be used to transfer the funds to fail safe address.
// SQUID Frontman has designed this to prevent any unauthorized transfer of funds from the Marketing and Dev Wallets
// movements of these wallets should be transparent and traceable
if (block.timestamp > lastTransfered[from] + 24 hours) {
dailyTransfered[from] = 0;
}
// If it is less than one year since contract deployment, do not allow any transfers from SquidGameTokenDevelopmentWallet
// This is to prevent any unauthorized transfer of funds from the Development Wallet
// SQUID Frontman has designed this to build trust and confidence in the whole crypto community.
// We aspire to be the most transparent and traceable token in the whole crypto space.
if (
from == SquidGameTokenDevelopmentWallet &&
block.timestamp < contractDeploymentTimestamp + 365 days
) {
revert(
"Transfer: The timelock for SquidGameTokenDevelopmentWallet has not expired yet"
);
}
require(
block.timestamp > lastTransfered[from] + 24 hours,
"Transfer: Daily transfer limit reached, wait until 24 hours passed since last transfer"
);
require(
dailyTransfered[from] + amount <= dailyTransferLimit,
"Transfer: Transfer amount exceeds daily limit"
);
// Only update lastTransfered and dailyTransfered after the transfer is successful
_;
dailyTransfered[from] += amount;
lastTransfered[from] = block.timestamp;
} else {
_;
}
}
// The winner of the ultimate draw will be set by the SQUID Frontman or SQUID DAO after the SQUID VRF function generateRandomAddressIndexForUltimateDraw is called
// generateRandomAddressIndexForUltimateDraw can only be called once by the SQUID Frontman
// The addressIndex which should be accessible in the SQUID Game token website is mapped to the winning SQUID Holder address.
// The emitted event UltimateDrawWinnerGenerated at the SquidRandomNumberConsumer VRFV2WrapperConsumerBase contract will be used to update the SQUID Game token website to display the winning address.
// All should be transparent and traceable.
// The winner of the ultimate draw will be able to claim the ultimate reward by calling the claimUltimateReward function
// Wishing that the SQUID DAO COntract will execute this when SQUID is at least $1 so that the winner will get $1 million USD worth of SQUID tokens
function setUltimateDrawWinner(
address _winner
) external onlySquidFrontmanOrDAO nonReentrant {
require(
ultimateDrawWinner == address(0),
"Ultimate draw has already been done"
);
ultimateDrawWinner = _winner;
ultimateRewardClaimed = false;
emit UltimateDrawWinnerSet(_winner);
}
function claimUltimateReward() external nonReentrant {
require(
msg.sender == ultimateDrawWinner,
"Not the ultimate draw winner"
);
require(!ultimateRewardClaimed, "Ultimate reward already claimed");
require(balanceOf(msg.sender) > 0, "Not a SQUID holder");
ultimateRewardClaimed = true;
_transfer(MarketingWallet, ultimateDrawWinner, ultimateRewardAmount);
emit UltimateRewardDistributed(
ultimateDrawWinner,
ultimateRewardAmount
);
}
function distributeReward(
address luckyHolder
) external onlySquidFrontmanOrDAO nonReentrant {
require(luckyHolder != address(0), "Cannot reward to the zero address");
require(
balanceOf(luckyHolder) > 0,
"Address must be a SQUID Game token holder"
);
require(
balanceOf(MarketingWallet) >= rewardAmount,
"Marketing Wallet balance is insufficient"
);
require(
block.timestamp > lastDistributed + 7 days,
"Cannot distribute reward more than once per week"
);
_transfer(MarketingWallet, luckyHolder, rewardAmount);
emit RewardDistributed(luckyHolder, rewardAmount);
lastDistributed = block.timestamp;
}
function claimReward() external {
require(msg.sender == winner, "Not the winner");
require(!rewardClaimed, "Reward already claimed");
require(balanceOf(msg.sender) > 0, "Not a SQUID holder");
rewardClaimed = true;
_transfer(MarketingWallet, winner, rewardAmount);
emit RewardDistributed(winner, rewardAmount);
}
// Allows enforcement agent to blacklist an address, in order to be compliant with regulations.
// Of course CoinmarketCap and CoinGecko should not display this warning without understanding the context specially when it is renounced.
function blacklist(
address _address,
bool _isBlacklisting
) external onlyOwner {
blacklists[_address] = _isBlacklisting;
}
function setDAOAddress(address _SquidDAOAddress) external {
require(
msg.sender == SQUIDFrontman,
"Only the SQUIDFrontman can set the DAO address"
);
SquidDAOAddress = _SquidDAOAddress;
}
// in case this is not set before the renouncement, need to set it to start trading;
// This helps prevent any possible issues with trading or transfers if SQUIDFrontman forgets to set uniswapV2Pair before renounces ownership.
function setUniswapV2Pair(address _uniswapV2Pair) external {
require(
msg.sender == SQUIDFrontman,
"Only the SQUIDFrontman can set the UniswapV2Pair address"
);
require(
_uniswapV2Pair != address(0),
"UniswapV2Pair cannot be the zero address"
);
uniswapV2Pair = _uniswapV2Pair;
}
function initialDistribution() internal {
require(!initialDistributionDone, "Initial distribution already done");
initialDistributionDone = true;
uint256 totalSupply = totalSupply();
uint256 marketingAllocation = (totalSupply * 20) / 100; // 20%
uint256 developmentAllocation = (totalSupply * 10) / 100; // 10%
_transfer(msg.sender, MarketingWallet, marketingAllocation);
_transfer(
msg.sender,
SquidGameTokenDevelopmentWallet,
developmentAllocation
);
}
function setMarketingWallet(
address _marketingWallet
) external onlySquidFrontmanOrDAO {
require(!marketingWalletSet, "MarketingWallet can only be set once");
require(
_marketingWallet != address(0),
"MarketingWallet cannot be the zero address"
);
MarketingWallet = _marketingWallet;
marketingWalletSet = true;
emit MarketingWalletSet(_marketingWallet);
}
function setWinner(
address _winner
) external onlySquidFrontmanOrDAO nonReentrant {
require(
block.timestamp > lastWinnerSet + 7 days,
"Cannot set winner more than once per week"
);
winner = _winner;
rewardClaimed = false;
emit WinnerSet(_winner);
lastWinnerSet = block.timestamp;
}
function setRewardAmount(
uint256 _rewardAmount
) external onlySquidFrontmanOrDAO nonReentrant {
require(
_rewardAmount <= maxRewardAmount,
"Exceeds maximum reward amount"
);
rewardAmount = _rewardAmount;
}
function setRule(
bool _limited,
address _uniswapV2Pair,
uint256 _maxHoldingAmount,
uint256 _minHoldingAmount
) external onlyOwner {
limited = _limited;
uniswapV2Pair = _uniswapV2Pair;
maxHoldingAmount = _maxHoldingAmount;
minHoldingAmount = _minHoldingAmount;
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override {
require(!blacklists[to] && !blacklists[from], "Blacklisted");
if (uniswapV2Pair == address(0)) {
require(from == owner() || to == owner(), "trading is not started");
return;
}
if (limited && from == uniswapV2Pair) {
require(
super.balanceOf(to) + amount <= maxHoldingAmount &&
super.balanceOf(to) + amount >= minHoldingAmount,
"Forbid"
);
}
}
function transfer(
address recipient,
uint256 amount
)
public
virtual
override
dailyLimitCheck(_msgSender(), amount)
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
// Check if sender is MarketingWallet or SquidGameTokenDevelopmentWallet
// and if the amount is greater than 3M SQUID
if (
(_msgSender() == MarketingWallet ||
_msgSender() == SquidGameTokenDevelopmentWallet) &&
amount > 3000000 * (10 ** 18)
) {
emit LargeTransfer(_msgSender(), recipient, amount);
}
return true;
}
// in case of emergency where SQUID wallets are compromised, we can transfer the funds out to the fail safe address
function emergencyTransfer() external onlySquidFrontmanOrDAO nonReentrant {
uint256 marketingWalletBalance = balanceOf(MarketingWallet);
uint256 developmentWalletBalance = balanceOf(
SquidGameTokenDevelopmentWallet
);
_transfer(
MarketingWallet,
MarketingWalletFailSafe,
marketingWalletBalance
);
_transfer(
SquidGameTokenDevelopmentWallet,
DevelopmentWalletFailSafe,
developmentWalletBalance
);
// update wallets
MarketingWallet = MarketingWalletFailSafe;
SquidGameTokenDevelopmentWallet = DevelopmentWalletFailSafe;
emit EmergencyTransfer(
MarketingWallet,
MarketingWalletFailSafe,
marketingWalletBalance
);
emit EmergencyTransfer(
SquidGameTokenDevelopmentWallet,
DevelopmentWalletFailSafe,
developmentWalletBalance
);
}
function burn(uint256 value) external {
_burn(msg.sender, value);
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// 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;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* 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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
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);
}
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens 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 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}
ReentrancyGuard.sol 77 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
Read Contract
DevelopmentWalletFailSafe 0xa7d0f709 → address
MarketingWallet 0x2598cdb2 → address
MarketingWalletFailSafe 0x70d3bae0 → address
SQUIDFrontman 0x9fa0dd09 → address
SquidDAOAddress 0x031dcc65 → address
SquidGameTokenDevelopmentWallet 0x82a0969f → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
blacklists 0x16c02129 → bool
contractDeploymentTimestamp 0x1aeb2802 → uint256
dailyTransferLimit 0xf714af6f → uint256
dailyTransfered 0x347d226d → uint256
decimals 0x313ce567 → uint8
initialDistributionDone 0x0535ec77 → bool
lastDistributed 0x1fce07d5 → uint256
lastTransfered 0xa08f3997 → uint256
lastWinnerSet 0x39224efe → uint256
limited 0x860a32ec → bool
maxHoldingAmount 0x89f9a1d3 → uint256
maxRewardAmount 0xe8c15329 → uint256
minHoldingAmount 0x1ab99e12 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
rewardAmount 0xf7b2a7be → uint256
rewardClaimed 0x01b62b78 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
ultimateDrawWinner 0x7ffd6104 → address
ultimateRewardAmount 0x012a4d25 → uint256
ultimateRewardClaimed 0x2af2545e → bool
uniswapV2Pair 0x49bd5a5e → address
winner 0xdfbf53ae → address
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklist 0x404e5129
address _address
bool _isBlacklisting
burn 0x42966c68
uint256 value
claimReward 0xb88a802f
No parameters
claimUltimateReward 0xf522e735
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
distributeReward 0x092193ab
address luckyHolder
emergencyTransfer 0x38e3eaef
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setDAOAddress 0x965afa89
address _SquidDAOAddress
setMarketingWallet 0x5d098b38
address _marketingWallet
setRewardAmount 0xa8a65a78
uint256 _rewardAmount
setRule 0x3aa633aa
bool _limited
address _uniswapV2Pair
uint256 _maxHoldingAmount
uint256 _minHoldingAmount
setUltimateDrawWinner 0x78cf4f10
address _winner
setUniswapV2Pair 0xa29a6089
address _uniswapV2Pair
setWinner 0xd9fca769
address _winner
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address