Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x887746A560C39fFd7b57f3d61EEfa945E3F0D2F6
Balance 0 ETH
Nonce 1
Code Size 16770 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16770 bytes
0x6080604052600436106102555760003560e01c80638da5cb5b11610139578063c0246668116100b6578063dd62ed3e1161007a578063dd62ed3e146108ef578063e2f456051461092c578063f11a24d314610957578063f2fde38b14610982578063f6374342146109ab578063f8b45b05146109d65761025c565b8063c02466681461080a578063c6616ba114610833578063c8c8ebe41461085c578063d257b34f14610887578063d85ba063146108c45761025c565b80639a7a23d6116100fd5780639a7a23d6146106ff578063a457c2d714610728578063a9059cbb14610765578063b62496f5146107a2578063bbc0c742146107df5761025c565b80638da5cb5b1461062a5780638ea5220f146106555780639213691314610680578063924de9b7146106ab57806395d89b41146106d45761025c565b806349bd5a5e116101d257806370a082311161019657806370a0823114610540578063715018a61461057d578063751039fc146105945780637571336a146105bf5780637bce5a04146105e85780638a8c523c146106135761025c565b806349bd5a5e146104575780634a62bb65146104825780634fbee193146104ad5780636a486a8e146104ea5780636ddd1713146105155761025c565b80631a8145bb116102195780631a8145bb1461035c5780631f3fed8f1461038757806323b872dd146103b2578063313ce567146103ef578063395093511461041a5761025c565b806306fdde0314610261578063095ea7b31461028c57806310d5de53146102c95780631694505e1461030657806318160ddd146103315761025c565b3661025c57005b600080fd5b34801561026d57600080fd5b50610276610a01565b6040516102839190612f6e565b60405180910390f35b34801561029857600080fd5b506102b360048036038101906102ae9190613029565b610a93565b6040516102c09190613084565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb919061309f565b610ab1565b6040516102fd9190613084565b60405180910390f35b34801561031257600080fd5b5061031b610ad1565b604051610328919061312b565b60405180910390f35b34801561033d57600080fd5b50610346610af5565b6040516103539190613155565b60405180910390f35b34801561036857600080fd5b50610371610aff565b60405161037e9190613155565b60405180910390f35b34801561039357600080fd5b5061039c610b05565b6040516103a99190613155565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190613170565b610b0b565b6040516103e69190613084565b60405180910390f35b3480156103fb57600080fd5b50610404610c03565b60405161041191906131df565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190613029565b610c0c565b60405161044e9190613084565b60405180910390f35b34801561046357600080fd5b5061046c610cb8565b6040516104799190613209565b60405180910390f35b34801561048e57600080fd5b50610497610cdc565b6040516104a49190613084565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf919061309f565b610cef565b6040516104e19190613084565b60405180910390f35b3480156104f657600080fd5b506104ff610d45565b60405161050c9190613155565b60405180910390f35b34801561052157600080fd5b5061052a610d4b565b6040516105379190613084565b60405180910390f35b34801561054c57600080fd5b506105676004803603810190610562919061309f565b610d5e565b6040516105749190613155565b60405180910390f35b34801561058957600080fd5b50610592610da6565b005b3480156105a057600080fd5b506105a9610e2e565b6040516105b69190613084565b60405180910390f35b3480156105cb57600080fd5b506105e660048036038101906105e19190613250565b610ece565b005b3480156105f457600080fd5b506105fd610fa5565b60405161060a9190613155565b60405180910390f35b34801561061f57600080fd5b50610628610fab565b005b34801561063657600080fd5b5061063f61105f565b60405161064c9190613209565b60405180910390f35b34801561066157600080fd5b5061066a611089565b6040516106779190613209565b60405180910390f35b34801561068c57600080fd5b506106956110af565b6040516106a29190613155565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd9190613290565b6110b5565b005b3480156106e057600080fd5b506106e961114e565b6040516106f69190612f6e565b60405180910390f35b34801561070b57600080fd5b5061072660048036038101906107219190613250565b6111e0565b005b34801561073457600080fd5b5061074f600480360381019061074a9190613029565b6112f9565b60405161075c9190613084565b60405180910390f35b34801561077157600080fd5b5061078c60048036038101906107879190613029565b6113e4565b6040516107999190613084565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c4919061309f565b611402565b6040516107d69190613084565b60405180910390f35b3480156107eb57600080fd5b506107f4611422565b6040516108019190613084565b60405180910390f35b34801561081657600080fd5b50610831600480360381019061082c9190613250565b611435565b005b34801561083f57600080fd5b5061085a600480360381019061085591906132bd565b61155a565b005b34801561086857600080fd5b50610871611624565b60405161087e9190613155565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a99190613324565b61162a565b6040516108bb9190613084565b60405180910390f35b3480156108d057600080fd5b506108d961177f565b6040516108e69190613155565b60405180910390f35b3480156108fb57600080fd5b5061091660048036038101906109119190613351565b611785565b6040516109239190613155565b60405180910390f35b34801561093857600080fd5b5061094161180c565b60405161094e9190613155565b60405180910390f35b34801561096357600080fd5b5061096c611812565b6040516109799190613155565b60405180910390f35b34801561098e57600080fd5b506109a960048036038101906109a4919061309f565b611818565b005b3480156109b757600080fd5b506109c0611910565b6040516109cd9190613155565b60405180910390f35b3480156109e257600080fd5b506109eb611916565b6040516109f89190613155565b60405180910390f35b606060038054610a10906133c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3c906133c0565b8015610a895780601f10610a5e57610100808354040283529160200191610a89565b820191906000526020600020905b815481529060010190602001808311610a6c57829003601f168201915b5050505050905090565b6000610aa7610aa061191c565b8484611924565b6001905092915050565b60146020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60115481565b60125481565b6000610b18848484611aef565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610b6361191c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bda90613464565b60405180910390fd5b610bf785610bef61191c565b858403611924565b60019150509392505050565b60006012905090565b6000610cae610c1961191c565b848460016000610c2761191c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ca991906134b3565b611924565b6001905092915050565b7f000000000000000000000000de0b765c5320e4212eb6bf749735bd020c9d870e81565b600a60009054906101000a900460ff1681565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600e5481565b600a60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610dae61191c565b73ffffffffffffffffffffffffffffffffffffffff16610dcc61105f565b73ffffffffffffffffffffffffffffffffffffffff1614610e22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1990613555565b60405180910390fd5b610e2c600061255b565b565b6000610e3861191c565b73ffffffffffffffffffffffffffffffffffffffff16610e5661105f565b73ffffffffffffffffffffffffffffffffffffffff1614610eac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea390613555565b60405180910390fd5b6000600a60006101000a81548160ff0219169083151502179055506001905090565b610ed661191c565b73ffffffffffffffffffffffffffffffffffffffff16610ef461105f565b73ffffffffffffffffffffffffffffffffffffffff1614610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4190613555565b60405180910390fd5b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600d5481565b610fb361191c565b73ffffffffffffffffffffffffffffffffffffffff16610fd161105f565b73ffffffffffffffffffffffffffffffffffffffff1614611027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101e90613555565b60405180910390fd5b6001600a60016101000a81548160ff0219169083151502179055506001600a60026101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b6110bd61191c565b73ffffffffffffffffffffffffffffffffffffffff166110db61105f565b73ffffffffffffffffffffffffffffffffffffffff1614611131576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112890613555565b60405180910390fd5b80600a60026101000a81548160ff02191690831515021790555050565b60606004805461115d906133c0565b80601f0160208091040260200160405190810160405280929190818152602001828054611189906133c0565b80156111d65780601f106111ab576101008083540402835291602001916111d6565b820191906000526020600020905b8154815290600101906020018083116111b957829003601f168201915b5050505050905090565b6111e861191c565b73ffffffffffffffffffffffffffffffffffffffff1661120661105f565b73ffffffffffffffffffffffffffffffffffffffff161461125c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125390613555565b60405180910390fd5b7f000000000000000000000000de0b765c5320e4212eb6bf749735bd020c9d870e73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e2906135e7565b60405180910390fd5b6112f58282612621565b5050565b6000806001600061130861191c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156113c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bc90613679565b60405180910390fd5b6113d96113d061191c565b85858403611924565b600191505092915050565b60006113f86113f161191c565b8484611aef565b6001905092915050565b60156020528060005260406000206000915054906101000a900460ff1681565b600a60019054906101000a900460ff1681565b61143d61191c565b73ffffffffffffffffffffffffffffffffffffffff1661145b61105f565b73ffffffffffffffffffffffffffffffffffffffff16146114b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a890613555565b60405180910390fd5b80601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df78260405161154e9190613084565b60405180910390a25050565b61156261191c565b73ffffffffffffffffffffffffffffffffffffffff1661158061105f565b73ffffffffffffffffffffffffffffffffffffffff16146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd90613555565b60405180910390fd5b83600c8190555082600d81905550600d54600c546115f491906134b3565b600b8190555081600f8190555080601081905550601054600f5461161891906134b3565b600e8190555050505050565b60075481565b600061163461191c565b73ffffffffffffffffffffffffffffffffffffffff1661165261105f565b73ffffffffffffffffffffffffffffffffffffffff16146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90613555565b60405180910390fd5b620186a060016116b6610af5565b6116c09190613699565b6116ca9190613722565b82101561170c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611703906137c5565b60405180910390fd5b6103e86005611719610af5565b6117239190613699565b61172d9190613722565b82111561176f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176690613857565b60405180910390fd5b8160088190555060019050919050565b600b5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60085481565b600c5481565b61182061191c565b73ffffffffffffffffffffffffffffffffffffffff1661183e61105f565b73ffffffffffffffffffffffffffffffffffffffff1614611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90613555565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb906138e9565b60405180910390fd5b61190d8161255b565b50565b600f5481565b60095481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198b9061397b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fb90613a0d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611ae29190613155565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5690613a9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc690613b31565b60405180910390fd5b6000811415611be957611be4838360006126c2565b612556565b600a60009054906101000a900460ff16156120e457611c0661105f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611c745750611c4461105f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611cad5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611ce7575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611d005750600560149054906101000a900460ff16155b156120e357600a60019054906101000a900460ff16611dfa57601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611dba5750601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611df9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df090613b9d565b60405180910390fd5b5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015611e9d5750601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611f4457600754811115611ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ede90613c2f565b60405180910390fd5b600954611ef383610d5e565b82611efe91906134b3565b1115611f3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3690613c9b565b60405180910390fd5b6120e2565b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015611fe75750601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561203657600754811115612031576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202890613d2d565b60405180910390fd5b6120e1565b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166120e05760095461209383610d5e565b8261209e91906134b3565b11156120df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d690613c9b565b60405180910390fd5b5b5b5b5b5b60006120ef30610d5e565b9050600060085482101590508080156121145750600a60029054906101000a900460ff165b801561212d5750600560149054906101000a900460ff16155b80156121835750601560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156121d95750601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561222f5750601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612273576001600560146101000a81548160ff021916908315150217905550612257612943565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806123295750601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561233357600090505b6000811561254657601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561239657506000600e54115b15612430576123c360646123b5600e5488612b5090919063ffffffff16565b612b6690919063ffffffff16565b9050600e54600f54826123d69190613699565b6123e09190613722565b601160008282546123f191906134b3565b92505081905550600e54601054826124099190613699565b6124139190613722565b6012600082825461242491906134b3565b92505081905550612522565b601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561248b57506000600b54115b15612521576124b860646124aa600b5488612b5090919063ffffffff16565b612b6690919063ffffffff16565b9050600b54600c54826124cb9190613699565b6124d59190613722565b601160008282546124e691906134b3565b92505081905550600b54600d54826124fe9190613699565b6125089190613722565b6012600082825461251991906134b3565b925050819055505b5b6000811115612537576125368730836126c2565b5b80856125439190613d4d565b94505b6125518787876126c2565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272990613a9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279990613b31565b60405180910390fd5b6127ad838383612b7c565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282a90613df3565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c691906134b3565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161292a9190613155565b60405180910390a361293d848484612b81565b50505050565b600061294e30610d5e565b9050600060125460115461296291906134b3565b90506000808314806129745750600082145b1561298157505050612b4e565b60146008546129909190613699565b8311156129a95760146008546129a69190613699565b92505b6000600283601154866129bc9190613699565b6129c69190613722565b6129d09190613722565b905060006129e78286612b8690919063ffffffff16565b905060004790506129f782612b9c565b6000612a0c8247612b8690919063ffffffff16565b90506000612a3787612a2960125485612b5090919063ffffffff16565b612b6690919063ffffffff16565b905060008183612a479190613d4d565b905060006011819055506000601281905550600086118015612a695750600081115b15612ab657612a788682612dd9565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618582601154604051612aad93929190613e13565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612afc90613e7b565b60006040518083038185875af1925050503d8060008114612b39576040519150601f19603f3d011682016040523d82523d6000602084013e612b3e565b606091505b5050809750505050505050505050505b565b60008183612b5e9190613699565b905092915050565b60008183612b749190613722565b905092915050565b505050565b505050565b60008183612b949190613d4d565b905092915050565b6000600267ffffffffffffffff811115612bb957612bb8613e90565b5b604051908082528060200260200182016040528015612be75781602001602082028036833780820191505090505b5090503081600081518110612bff57612bfe613ebf565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc89190613f03565b81600181518110612cdc57612cdb613ebf565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612d41307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611924565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612da3959493929190614029565b600060405180830381600087803b158015612dbd57600080fd5b505af1158015612dd1573d6000803e3d6000fd5b505050505050565b612e04307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611924565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401612e8b96959493929190614083565b60606040518083038185885af1158015612ea9573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612ece91906140f9565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f0f578082015181840152602081019050612ef4565b83811115612f1e576000848401525b50505050565b6000601f19601f8301169050919050565b6000612f4082612ed5565b612f4a8185612ee0565b9350612f5a818560208601612ef1565b612f6381612f24565b840191505092915050565b60006020820190508181036000830152612f888184612f35565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fc082612f95565b9050919050565b612fd081612fb5565b8114612fdb57600080fd5b50565b600081359050612fed81612fc7565b92915050565b6000819050919050565b61300681612ff3565b811461301157600080fd5b50565b60008135905061302381612ffd565b92915050565b600080604083850312156130405761303f612f90565b5b600061304e85828601612fde565b925050602061305f85828601613014565b9150509250929050565b60008115159050919050565b61307e81613069565b82525050565b60006020820190506130996000830184613075565b92915050565b6000602082840312156130b5576130b4612f90565b5b60006130c384828501612fde565b91505092915050565b6000819050919050565b60006130f16130ec6130e784612f95565b6130cc565b612f95565b9050919050565b6000613103826130d6565b9050919050565b6000613115826130f8565b9050919050565b6131258161310a565b82525050565b6000602082019050613140600083018461311c565b92915050565b61314f81612ff3565b82525050565b600060208201905061316a6000830184613146565b92915050565b60008060006060848603121561318957613188612f90565b5b600061319786828701612fde565b93505060206131a886828701612fde565b92505060406131b986828701613014565b9150509250925092565b600060ff82169050919050565b6131d9816131c3565b82525050565b60006020820190506131f460008301846131d0565b92915050565b61320381612fb5565b82525050565b600060208201905061321e60008301846131fa565b92915050565b61322d81613069565b811461323857600080fd5b50565b60008135905061324a81613224565b92915050565b6000806040838503121561326757613266612f90565b5b600061327585828601612fde565b92505060206132868582860161323b565b9150509250929050565b6000602082840312156132a6576132a5612f90565b5b60006132b48482850161323b565b91505092915050565b600080600080608085870312156132d7576132d6612f90565b5b60006132e587828801613014565b94505060206132f687828801613014565b935050604061330787828801613014565b925050606061331887828801613014565b91505092959194509250565b60006020828403121561333a57613339612f90565b5b600061334884828501613014565b91505092915050565b6000806040838503121561336857613367612f90565b5b600061337685828601612fde565b925050602061338785828601612fde565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133d857607f821691505b602082108114156133ec576133eb613391565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b600061344e602883612ee0565b9150613459826133f2565b604082019050919050565b6000602082019050818103600083015261347d81613441565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134be82612ff3565b91506134c983612ff3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134fe576134fd613484565b5b828201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061353f602083612ee0565b915061354a82613509565b602082019050919050565b6000602082019050818103600083015261356e81613532565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006135d1603983612ee0565b91506135dc82613575565b604082019050919050565b60006020820190508181036000830152613600816135c4565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613663602583612ee0565b915061366e82613607565b604082019050919050565b6000602082019050818103600083015261369281613656565b9050919050565b60006136a482612ff3565b91506136af83612ff3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136e8576136e7613484565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061372d82612ff3565b915061373883612ff3565b925082613748576137476136f3565b5b828204905092915050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b60006137af603583612ee0565b91506137ba82613753565b604082019050919050565b600060208201905081810360008301526137de816137a2565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b6000613841603483612ee0565b915061384c826137e5565b604082019050919050565b6000602082019050818103600083015261387081613834565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006138d3602683612ee0565b91506138de82613877565b604082019050919050565b60006020820190508181036000830152613902816138c6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613965602483612ee0565b915061397082613909565b604082019050919050565b6000602082019050818103600083015261399481613958565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006139f7602283612ee0565b9150613a028261399b565b604082019050919050565b60006020820190508181036000830152613a26816139ea565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613a89602583612ee0565b9150613a9482613a2d565b604082019050919050565b60006020820190508181036000830152613ab881613a7c565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613b1b602383612ee0565b9150613b2682613abf565b604082019050919050565b60006020820190508181036000830152613b4a81613b0e565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000613b87601683612ee0565b9150613b9282613b51565b602082019050919050565b60006020820190508181036000830152613bb681613b7a565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b6000613c19603583612ee0565b9150613c2482613bbd565b604082019050919050565b60006020820190508181036000830152613c4881613c0c565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000613c85601383612ee0565b9150613c9082613c4f565b602082019050919050565b60006020820190508181036000830152613cb481613c78565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b6000613d17603683612ee0565b9150613d2282613cbb565b604082019050919050565b60006020820190508181036000830152613d4681613d0a565b9050919050565b6000613d5882612ff3565b9150613d6383612ff3565b925082821015613d7657613d75613484565b5b828203905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613ddd602683612ee0565b9150613de882613d81565b604082019050919050565b60006020820190508181036000830152613e0c81613dd0565b9050919050565b6000606082019050613e286000830186613146565b613e356020830185613146565b613e426040830184613146565b949350505050565b600081905092915050565b50565b6000613e65600083613e4a565b9150613e7082613e55565b600082019050919050565b6000613e8682613e58565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050613efd81612fc7565b92915050565b600060208284031215613f1957613f18612f90565b5b6000613f2784828501613eee565b91505092915050565b6000819050919050565b6000613f55613f50613f4b84613f30565b6130cc565b612ff3565b9050919050565b613f6581613f3a565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fa081612fb5565b82525050565b6000613fb28383613f97565b60208301905092915050565b6000602082019050919050565b6000613fd682613f6b565b613fe08185613f76565b9350613feb83613f87565b8060005b8381101561401c5781516140038882613fa6565b975061400e83613fbe565b925050600181019050613fef565b5085935050505092915050565b600060a08201905061403e6000830188613146565b61404b6020830187613f5c565b818103604083015261405d8186613fcb565b905061406c60608301856131fa565b6140796080830184613146565b9695505050505050565b600060c08201905061409860008301896131fa565b6140a56020830188613146565b6140b26040830187613f5c565b6140bf6060830186613f5c565b6140cc60808301856131fa565b6140d960a0830184613146565b979650505050505050565b6000815190506140f381612ffd565b92915050565b60008060006060848603121561411257614111612f90565b5b6000614120868287016140e4565b9350506020614131868287016140e4565b9250506040614142868287016140e4565b915050925092509256fea2646970667358221220456ac6dd9e3471aa6a3f2fb70e24da5ad8dd33c63aa0f635e8a4d06463a2810b64736f6c634300080a0033

Verified Source Code Partial Match

Compiler: v0.8.10+commit.fc410830 EVM: london Optimization: No
GoCasino.sol 682 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

/*
    Twitter:
        www.x.com/GoCasinoEth
    TG:
        https://t.me/GocasinoEth
*/


abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC20Metadata is IERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }


    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    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;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    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;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    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);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

contract GoCasino is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;

    bool private swapping;

    address public devWallet;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;

    uint256 public buyTotalFees;
    uint256 public buyLiquidityFee;
    uint256 public buyMarketingFee;

    uint256 public sellTotalFees;
    uint256 public sellLiquidityFee;
    uint256 public sellMarketingFee;

	uint256 public tokensForLiquidity;
    uint256 public tokensForMarketing;

    // exclude from fees and max transaction amount
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping(address => bool) public automatedMarketMakerPairs;

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    constructor() ERC20("GO Casino", "GO") { 
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        uint256 _buyLiquidityFee = 0;
        uint256 _buyMarketingFee = 25;

        uint256 _sellLiquidityFee = 0;
        uint256 _sellMarketingFee = 25;

        uint256 totalSupply = 1 * 1e6 * 1e18;

        maxTransactionAmount = 2 * 1e4 * 1e18; 
        maxWallet = 2 * 1e4 * 1e18; 
        swapTokensAtAmount = (totalSupply * 10) / 10000;

        buyLiquidityFee = _buyLiquidityFee;
        buyMarketingFee = _buyMarketingFee;
        buyTotalFees = buyLiquidityFee + buyMarketingFee;

        sellLiquidityFee = _sellLiquidityFee;
        sellMarketingFee = _sellMarketingFee;
        sellTotalFees = sellLiquidityFee + sellMarketingFee;

        devWallet = address(0x682b320425734a15E8531601DCa001F7716c85E9); 

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);

        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

    function updateFees(uint256 _buyLiquidityFee, uint256 _buyMarketingFee, uint256 _sellLiquidityFee, uint256 _sellMarketingFee) external onlyOwner {
        buyLiquidityFee = _buyLiquidityFee;
        buyMarketingFee = _buyMarketingFee;
        buyTotalFees = buyLiquidityFee + buyMarketingFee;

        sellLiquidityFee = _sellLiquidityFee;
        sellMarketingFee = _sellMarketingFee;
        sellTotalFees = sellLiquidityFee + sellMarketingFee;
    } 

    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        return true;
    }

    // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount)
        external
        onlyOwner
        returns (bool)
    {
        require(
            newAmount >= (totalSupply() * 1) / 100000,
            "Swap amount cannot be lower than 0.001% total supply."
        );
        require(
            newAmount <= (totalSupply() * 5) / 1000,
            "Swap amount cannot be higher than 0.5% total supply."
        );
        swapTokensAtAmount = newAmount;
        return true;
    }
	
    function excludeFromMaxTransaction(address updAds, bool isEx)
        public
        onlyOwner
    {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value)
        public
        onlyOwner
    {
        require(
            pair != uniswapV2Pair,
            "The pair cannot be removed from automatedMarketMakerPairs"
        );

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ) {
                if (!tradingActive) {
                    require(
                        _isExcludedFromFees[from] || _isExcludedFromFees[to],
                        "Trading is not active."
                    );
                }

                //when buy
                if (
                    automatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
                //when sell
                else if (
                    automatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount."
                    );
                } else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
                tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;                
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
                tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            devWallet,
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;
        bool success;

        if (contractBalance == 0 || totalTokensToSwap == 0) {
            return;
        }

        if (contractBalance > swapTokensAtAmount * 20) {
            contractBalance = swapTokensAtAmount * 20;
        }

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);

        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH);

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
	
        uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);

        uint256 ethForLiquidity = ethBalance - ethForMarketing;

        tokensForLiquidity = 0;
        tokensForMarketing = 0;

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                tokensForLiquidity
            );
        }
        //there will be no leftover eth in the contract 
        (success, ) = address(devWallet).call{value: address(this).balance}("");
    }

}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 15 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateFees 0xc6616ba1
uint256 _buyLiquidityFee
uint256 _buyMarketingFee
uint256 _sellLiquidityFee
uint256 _sellMarketingFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool

Recent Transactions

No transactions found for this address