Address Contract Verified
Address
0x61818D1F4A162095CCd48062Cd593Cdf9d6e47A0
Balance
0 ETH
Nonce
1
Code Size
13999 bytes
Creator
0xCaB91590...2FDB at tx 0x88616ea9...4551dc
Indexed Transactions
0
Contract Bytecode
13999 bytes
0x6080604052600436106101c65760003560e01c8063715018a6116100f7578063a457c2d711610095578063dd62ed3e11610064578063dd62ed3e1461063b578063e4997dc514610678578063ec8490b5146106a1578063f2fde38b146106ca576101cd565b8063a457c2d714610581578063a9059cbb146105be578063c9567bf9146105fb578063d1bdac2414610612576101cd565b80638705fcd4116100d15780638705fcd4146104d95780638bed30b8146105025780638da5cb5b1461052b57806395d89b4114610556576101cd565b8063715018a61461046c578063804fed28146104835780638456cb59146104ae576101cd565b8063313ce5671161016457806351bc3c851161013e57806351bc3c85146103b057806359bf1abe146103c75780635c975abb1461040457806370a082311461042f576101cd565b8063313ce5671461031d57806339509351146103485780633f4ba83a14610385576101cd565b80630ecb93c0116101a05780630ecb93c01461026357806318160ddd1461028c57806323b872dd146102b75780632e773e58146102f4576101cd565b806306fdde03146101d2578063095ea7b3146101fd5780630d4c8ce81461023a576101cd565b366101cd57005b600080fd5b3480156101de57600080fd5b506101e76106f3565b6040516101f491906126de565b60405180910390f35b34801561020957600080fd5b50610224600480360381019061021f9190612799565b610785565b60405161023191906127f4565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c919061280f565b6107a8565b005b34801561026f57600080fd5b5061028a6004803603810190610285919061283c565b6107ba565b005b34801561029857600080fd5b506102a16107ce565b6040516102ae9190612878565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190612893565b6107d8565b6040516102eb91906127f4565b60405180910390f35b34801561030057600080fd5b5061031b6004803603810190610316919061280f565b610818565b005b34801561032957600080fd5b5061033261082a565b60405161033f9190612902565b60405180910390f35b34801561035457600080fd5b5061036f600480360381019061036a9190612799565b610833565b60405161037c91906127f4565b60405180910390f35b34801561039157600080fd5b5061039a61086a565b6040516103a791906127f4565b60405180910390f35b3480156103bc57600080fd5b506103c5610883565b005b3480156103d357600080fd5b506103ee60048036038101906103e9919061283c565b610895565b6040516103fb91906127f4565b60405180910390f35b34801561041057600080fd5b506104196108f3565b60405161042691906127f4565b60405180910390f35b34801561043b57600080fd5b506104566004803603810190610451919061283c565b61090a565b6040516104639190612878565b60405180910390f35b34801561047857600080fd5b50610481610952565b005b34801561048f57600080fd5b50610498610966565b6040516104a59190612878565b60405180910390f35b3480156104ba57600080fd5b506104c361097d565b6040516104d091906127f4565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb919061283c565b610996565b005b34801561050e57600080fd5b506105296004803603810190610524919061280f565b6109e2565b005b34801561053757600080fd5b506105406109f4565b60405161054d919061292c565b60405180910390f35b34801561056257600080fd5b5061056b610a1e565b60405161057891906126de565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a39190612799565b610ab0565b6040516105b591906127f4565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190612799565b610b27565b6040516105f291906127f4565b60405180910390f35b34801561060757600080fd5b50610610610b55565b005b34801561061e57600080fd5b506106396004803603810190610634919061280f565b610de3565b005b34801561064757600080fd5b50610662600480360381019061065d9190612947565b610df5565b60405161066f9190612878565b60405180910390f35b34801561068457600080fd5b5061069f600480360381019061069a919061283c565b610e7c565b005b3480156106ad57600080fd5b506106c860048036038101906106c391906129b3565b610f16565b005b3480156106d657600080fd5b506106f160048036038101906106ec919061283c565b610f3c565b005b60606003805461070290612a0f565b80601f016020809104026020016040519081016040528092919081815260200182805461072e90612a0f565b801561077b5780601f106107505761010080835404028352916020019161077b565b820191906000526020600020905b81548152906001019060200180831161075e57829003601f168201915b5050505050905090565b600080610790610fbf565b905061079d818585610fc7565b600191505092915050565b6107b0611190565b80600b8190555050565b6107c2611190565b6107cb8161120e565b50565b6000600254905090565b60006107e26112a0565b6107ea6112ea565b60006107f4610fbf565b9050610801858285611380565b61080c85858561140c565b60019150509392505050565b610820611190565b80600c8190555050565b60006012905090565b60008061083e610fbf565b905061085f8185856108508589610df5565b61085a9190612a6f565b610fc7565b600191505092915050565b6000610874611190565b61087c6119a2565b6001905090565b61088b611190565b610893611a05565b565b600061089f611190565b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600560149054906101000a900460ff16905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61095a611190565b6109646000611a99565b565b6000610978610973610fbf565b61090a565b905090565b6000610987611190565b61098f611b5f565b6001905090565b61099e611190565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109ea611190565b8060098190555050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610a2d90612a0f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5990612a0f565b8015610aa65780601f10610a7b57610100808354040283529160200191610aa6565b820191906000526020600020905b815481529060010190602001808311610a8957829003601f168201915b5050505050905090565b600080610abb610fbf565b90506000610ac98286610df5565b905083811015610b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0590612b15565b60405180910390fd5b610b1b8286868403610fc7565b60019250505092915050565b6000610b316112a0565b610b396112ea565b610b4b610b44610fbf565b848461140c565b6001905092915050565b610b5d611190565b610b65611bc2565b600760009054906101000a900460ff1615610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac90612b81565b60405180910390fd5b6000737a250d5630b4cf539739df2c5dacb4c659f2488d905080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c23610c1a610fbf565b82600854610fc7565b8073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c929190612bb6565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396308373ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1d9190612bb6565b6040518363ffffffff1660e01b8152600401610d3a929190612be3565b6020604051808303816000875af1158015610d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7d9190612bb6565b600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600760006101000a81548160ff021916908315150217905550610de06119a2565b50565b610deb611190565b80600a8190555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610e84611190565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fd7e9ec6e6ecd65492dce6bf513cd6867560d49544421d0783ddf06e76c24470c81604051610f0b919061292c565b60405180910390a150565b610f1e611190565b80600f60156101000a81548160ff021916908360ff16021790555050565b610f44611190565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faa90612c7e565b60405180910390fd5b610fbc81611a99565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d90612d10565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109c90612da2565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516111839190612878565b60405180910390a3505050565b611198610fbf565b73ffffffffffffffffffffffffffffffffffffffff166111b66109f4565b73ffffffffffffffffffffffffffffffffffffffff161461120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390612e0e565b60405180910390fd5b565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f42e160154868087d6bfdc0ca23d96a1c1cfa32f1b72ba9ba27b69b98a0d819dc81604051611295919061292c565b60405180910390a150565b6112a86108f3565b156112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90612e7a565b60405180910390fd5b565b600660006112f6610fbf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561137e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137590612ec0565b60405180910390fd5b565b600061138c8484610df5565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461140657818110156113f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ef90612f2c565b60405180910390fd5b6114058484848403610fc7565b5b50505050565b6114146109f4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561147b57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156114d55750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561151457506114e46109f4565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561157e57611521611c0b565b61153c8261152e8561090a565b611c1590919063ffffffff16565b111561157d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157490612fbe565b60405180910390fd5b5b6115866109f4565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156115f457506115c46109f4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561162c57503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561166457503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156116b457611671611c41565b8111156116b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116aa90613050565b60405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171a906130e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178990613174565b60405180910390fd5b600081116117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90613206565b60405180910390fd5b600f60159054906101000a900460ff1660ff16600f60149054906101000a900460ff1660ff16101580156118165750600f60169054906101000a900460ff16155b80156118705750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561187e5761187d611a05565b5b60006001905060003073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806118f257506118c36109f4565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156118fc57600091505b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361195657600190505b600f601481819054906101000a900460ff168092919061197590613226565b91906101000a81548160ff021916908360ff1602179055505061199b8585858585611c4b565b5050505050565b6119aa611bc2565b6000600560146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6119ee610fbf565b6040516119fb919061292c565b60405180910390a1565b6000611a103061090a565b9050600f60169054906101000a900460ff16158015611a2f5750600081115b15611a96576000600f60146101000a81548160ff021916908360ff160217905550611a5981611d32565b60004790506000811115611a9457611a93600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611fab565b5b505b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611b676112a0565b6001600560146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bab610fbf565b604051611bb8919061292c565b60405180910390a1565b611bca6108f3565b611c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c009061329b565b60405180910390fd5b565b6000600954905090565b6000808284611c249190612a6f565b905083811015611c3757611c366132bb565b5b8091505092915050565b6000600a54905090565b81611c6057611c5b858585611ff6565b611d2b565b8015611c97576000611c718461226c565b905060008185611c8191906132ea565b9050611c90878787848661229e565b5050611d2a565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614611cfc57611cf7858585611ff6565b611d29565b6000611d07846125af565b905060008185611d1791906132ea565b9050611d26878787848661229e565b50505b5b5b5050505050565b6001600f60166101000a81548160ff0219169083151502179055506000600267ffffffffffffffff811115611d6a57611d6961331e565b5b604051908082528060200260200182016040528015611d985781602001602082028036833780820191505090505b5090503081600081518110611db057611daf61334d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e7b9190612bb6565b81600181518110611e8f57611e8e61334d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611ef630600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610fc7565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401611f5a95949392919061347f565b600060405180830381600087803b158015611f7457600080fd5b505af1158015611f88573d6000803e3d6000fd5b50505050506000600f60166101000a81548160ff02191690831515021790555050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611ff1573d6000803e3d6000fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205c906130e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cb90613174565b60405180910390fd5b6120df8383836125e1565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612165576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215c9061354b565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122539190612878565b60405180910390a36122668484846125e6565b50505050565b6000612297612710612289600b54856125eb90919063ffffffff16565b61263390919063ffffffff16565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361230d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612304906130e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361237c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237390613174565b60405180910390fd5b80826123889190612a6f565b83146123c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c0906135b7565b60405180910390fd5b6123d48585856125e1565b60008060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561245a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124519061354b565b60405180910390fd5b8381036000808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816000803073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516125949190612878565b60405180910390a36125a78686866125e6565b505050505050565b60006125da6127106125cc600c54856125eb90919063ffffffff16565b61263390919063ffffffff16565b9050919050565b505050565b505050565b60008083036125fd576000905061262d565b6000828461260b91906135d7565b905082848261261a9190613648565b14612628576126276132bb565b5b809150505b92915050565b60008082846126429190613648565b90508091505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561268857808201518184015260208101905061266d565b60008484015250505050565b6000601f19601f8301169050919050565b60006126b08261264e565b6126ba8185612659565b93506126ca81856020860161266a565b6126d381612694565b840191505092915050565b600060208201905081810360008301526126f881846126a5565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061273082612705565b9050919050565b61274081612725565b811461274b57600080fd5b50565b60008135905061275d81612737565b92915050565b6000819050919050565b61277681612763565b811461278157600080fd5b50565b6000813590506127938161276d565b92915050565b600080604083850312156127b0576127af612700565b5b60006127be8582860161274e565b92505060206127cf85828601612784565b9150509250929050565b60008115159050919050565b6127ee816127d9565b82525050565b600060208201905061280960008301846127e5565b92915050565b60006020828403121561282557612824612700565b5b600061283384828501612784565b91505092915050565b60006020828403121561285257612851612700565b5b60006128608482850161274e565b91505092915050565b61287281612763565b82525050565b600060208201905061288d6000830184612869565b92915050565b6000806000606084860312156128ac576128ab612700565b5b60006128ba8682870161274e565b93505060206128cb8682870161274e565b92505060406128dc86828701612784565b9150509250925092565b600060ff82169050919050565b6128fc816128e6565b82525050565b600060208201905061291760008301846128f3565b92915050565b61292681612725565b82525050565b6000602082019050612941600083018461291d565b92915050565b6000806040838503121561295e5761295d612700565b5b600061296c8582860161274e565b925050602061297d8582860161274e565b9150509250929050565b612990816128e6565b811461299b57600080fd5b50565b6000813590506129ad81612987565b92915050565b6000602082840312156129c9576129c8612700565b5b60006129d78482850161299e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612a2757607f821691505b602082108103612a3a57612a396129e0565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a7a82612763565b9150612a8583612763565b9250828201905080821115612a9d57612a9c612a40565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612aff602583612659565b9150612b0a82612aa3565b604082019050919050565b60006020820190508181036000830152612b2e81612af2565b9050919050565b7f54726164696e6720697320616c7265616479206f70656e000000000000000000600082015250565b6000612b6b601783612659565b9150612b7682612b35565b602082019050919050565b60006020820190508181036000830152612b9a81612b5e565b9050919050565b600081519050612bb081612737565b92915050565b600060208284031215612bcc57612bcb612700565b5b6000612bda84828501612ba1565b91505092915050565b6000604082019050612bf8600083018561291d565b612c05602083018461291d565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c68602683612659565b9150612c7382612c0c565b604082019050919050565b60006020820190508181036000830152612c9781612c5b565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612cfa602483612659565b9150612d0582612c9e565b604082019050919050565b60006020820190508181036000830152612d2981612ced565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612d8c602283612659565b9150612d9782612d30565b604082019050919050565b60006020820190508181036000830152612dbb81612d7f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612df8602083612659565b9150612e0382612dc2565b602082019050919050565b60006020820190508181036000830152612e2781612deb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612e64601083612659565b9150612e6f82612e2e565b602082019050919050565b60006020820190508181036000830152612e9381612e57565b9050919050565b50565b6000612eaa600083612659565b9150612eb582612e9a565b600082019050919050565b60006020820190508181036000830152612ed981612e9d565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000612f16601d83612659565b9150612f2182612ee0565b602082019050919050565b60006020820190508181036000830152612f4581612f09565b9050919050565b7f45524332303a20657863656564696e67206e756d626572206f6620746f6b656e60008201527f20666f7220656163682061646472657373000000000000000000000000000000602082015250565b6000612fa8603183612659565b9150612fb382612f4c565b604082019050919050565b60006020820190508181036000830152612fd781612f9b565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742061626f7665206c696d60008201527f697420666f722065616368207472616e73616374696f6e000000000000000000602082015250565b600061303a603783612659565b915061304582612fde565b604082019050919050565b600060208201905081810360008301526130698161302d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006130cc602583612659565b91506130d782613070565b604082019050919050565b600060208201905081810360008301526130fb816130bf565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061315e602383612659565b915061316982613102565b604082019050919050565b6000602082019050818103600083015261318d81613151565b9050919050565b7f45524332303a20546f6b656e20616d6f756e74207472616e73666572206d757360008201527f7420626520686967686572207468616e207a65726f2e00000000000000000000602082015250565b60006131f0603683612659565b91506131fb82613194565b604082019050919050565b6000602082019050818103600083015261321f816131e3565b9050919050565b6000613231826128e6565b915060ff820361324457613243612a40565b5b600182019050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613285601483612659565b91506132908261324f565b602082019050919050565b600060208201905081810360008301526132b481613278565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60006132f582612763565b915061330083612763565b925082820390508181111561331857613317612a40565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6000819050919050565b60006133ab6133a66133a18461337c565b613386565b612763565b9050919050565b6133bb81613390565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6133f681612725565b82525050565b600061340883836133ed565b60208301905092915050565b6000602082019050919050565b600061342c826133c1565b61343681856133cc565b9350613441836133dd565b8060005b8381101561347257815161345988826133fc565b975061346483613414565b925050600181019050613445565b5085935050505092915050565b600060a0820190506134946000830188612869565b6134a160208301876133b2565b81810360408301526134b38186613421565b90506134c2606083018561291d565b6134cf6080830184612869565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613535602683612659565b9150613540826134d9565b604082019050919050565b6000602082019050818103600083015261356481613528565b9050919050565b7f45524332303a206665652063616c63756c6174696f6e20696e636f7272656374600082015250565b60006135a1602083612659565b91506135ac8261356b565b602082019050919050565b600060208201905081810360008301526135d081613594565b9050919050565b60006135e282612763565b91506135ed83612763565b92508282026135fb81612763565b9150828204841483151761361257613611612a40565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061365382612763565b915061365e83612763565b92508261366e5761366d613619565b5b82820490509291505056fea264697066735822122096393138dadf61316c36aa79110539c7696a6d00f19fc2aec06757af68846f6a64736f6c63430008110033
Verified Source Code Full Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: No
CATBOYAI.sol 972 lines
pragma solidity ^0.8.17;
// SPDX-License-Identifier: UNLICENSED
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
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);
}
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);
}
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);
/**
* @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 anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/**
*### Test_Target
*/
abstract contract BlackListable is Ownable {
event AddedBlackList(address _user);
event RemovedBlackList(address _user);
mapping (address => bool) private isBlackListed;
constructor() {}
modifier notInBlackList(){
_checkBlackList();
_;
}
function getBlackListStatus(address _maker) external view onlyOwner returns (bool) {
return isBlackListed[_maker];
}
function _checkBlackList() internal view virtual {
require(!isBlackListed[_msgSender()], "");
}
function _addBlackList(address _evilUser) internal {
isBlackListed[_evilUser] = true;
emit AddedBlackList(_evilUser);
}
function addBlackList (address _evilUser) external onlyOwner {
_addBlackList(_evilUser);
}
function removeBlackList (address _clearedUser) public onlyOwner {
isBlackListed[_clearedUser] = false;
emit RemovedBlackList(_clearedUser);
}
}
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
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}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 value {ERC20} uses, unless this function is
* 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);
}
/**
*test_target
*/
function _transferWithFee(
address from,
address to,
uint256 amount,
uint256 amountTransfer,
uint256 fee
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount == amountTransfer + fee, "ERC20: fee calculation incorrect");
_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] += amountTransfer;
_balances[address(this)] += fee;
}
emit Transfer(from, to, amountTransfer);
_afterTokenTransfer(from, to, amount);
}
function contractAddress() internal view returns (address){
return address(this);
}
/** @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 {}
}
contract CATBOYAI is ERC20, Ownable, Pausable, BlackListable {
using SafeMath for uint;
bool private tradingOpen;
uint256 private _initialSupply = 1000000000 * 10 ** 18;
uint256 private _maximumHoldingEachAddress = 50000000 * 10 ** 18;
uint256 private _limitEachTransaction = 10000000 * 10 ** 18;
uint256 private _taxFeePercentBuy = 300; // 100 = 1%
uint256 private _taxFeePercentSell = 300; // 100 = 1%
address payable private _feeAddrWallet;
IUniswapV2Router02 internal uniswapV2Router;
address internal uniswapV2Pair;
uint8 private txCount = 0;
uint8 private swapTrigger = 5;
bool private inSwap = false;
constructor() ERC20('CatBoy AI', 'CATBOYAI'){
_pause();
_mint(_msgSender(), _initialSupply);
_feeAddrWallet = payable(_msgSender());
}
// @dev Public Getter - Tested
function yourBalance() external view returns (uint256){
return balanceOf(_msgSender());
}
// @dev Public OnlyOwner Setter - Tested
function setTaxFeePercentageBuy(uint256 percentage) public onlyOwner{
_taxFeePercentBuy = percentage;
}
function setTaxFeePercentageSell(uint256 percentage) public onlyOwner{
_taxFeePercentSell = percentage;
}
function setAddressCap(uint256 cap) public onlyOwner{
_maximumHoldingEachAddress = cap;
}
function setTransactionCap(uint256 cap) public onlyOwner{
_limitEachTransaction = cap;
}
function setSwapTriggerCount(uint8 trigger) public onlyOwner{
swapTrigger = trigger;
}
function setFeeAddress(address feeWallet) public onlyOwner {
_feeAddrWallet = payable(feeWallet);
}
// @dev Token Transact Pause - Tested
function pause() public virtual onlyOwner returns (bool) {
_pause();
return true;
}
function unpause() public virtual onlyOwner returns (bool) {
_unpause();
return true;
}
// @dev Public Transaction - tested
function transfer(address to, uint256 amount) public virtual override whenNotPaused notInBlackList returns (bool) {
tokenTransfer(_msgSender(), to, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override whenNotPaused notInBlackList returns (bool){
address spender = _msgSender();
_spendAllowance(from, spender, amount);
tokenTransfer(from, to, amount);
return true;
}
// @dev Internal Transaction - Tested
function eachAddressCap() internal view returns (uint256) {
return _maximumHoldingEachAddress;
}
function eachTransactionCap() internal view returns (uint256) {
return _limitEachTransaction;
}
function taxFeePercentageBuy(uint256 amount) internal view returns (uint256) {
return amount.mul(_taxFeePercentBuy).div(10000);
}
function taxFeePercentageSell(uint256 amount) internal view returns (uint256) {
return amount.mul(_taxFeePercentSell).div(10000);
}
// test_target
function _tokenTransfer(address from, address to, uint256 amount, bool takeFee, bool isBuy) internal {
if (!takeFee) {
_transfer(from, to, amount);
}
else if (isBuy){
uint256 feeAmount = taxFeePercentageBuy(amount);
uint256 transferAmount = amount - feeAmount;
_transferWithFee(from, to, amount, transferAmount, feeAmount);
}
else{
if (to != uniswapV2Pair) {
_transfer(from, to, amount);
}
else{
uint256 feeAmount = taxFeePercentageSell(amount);
uint256 transferAmount = amount - feeAmount;
_transferWithFee(from, to, amount, transferAmount, feeAmount);
}
}
}
// test_target
function tokenTransfer(address from, address to, uint256 amount) internal {
if (to != owner() &&
to != address(this) &&
to != uniswapV2Pair &&
from != owner()){
require(balanceOf(to).add(amount) <= eachAddressCap(), "ERC20: exceeding number of token for each address");
}
if (from != owner() && to != owner() && from != address(this) && to != address(this))
require(amount <= eachTransactionCap(), "ERC20: transfer amount above limit for each transaction");
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "ERC20: Token amount transfer must be higher than zero.");
if (
txCount >= swapTrigger &&
!inSwap &&
from != uniswapV2Pair
) {
swapWalletBalance();
}
bool takeFee = true;
bool isBuy;
if (from == address(this) || from == owner()){
takeFee = false;
}
if (from == uniswapV2Pair) {
isBuy = true;
}
txCount++;
_tokenTransfer(from, to, amount, takeFee, isBuy);
}
// @dev ETH transaction - test_target
modifier lockTheSwap {
inSwap = true;
_;
inSwap = false;
}
function swapTokensForEth(uint256 tokenAmount) private lockTheSwap{
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function sendToWallet(address payable wallet, uint256 amount) private {
wallet.transfer(amount);
}
function swapWalletBalance() private{
uint256 contractTokenBalance = balanceOf(address(this));
if (!inSwap && contractTokenBalance>0) {
txCount = 0;
swapTokensForEth(contractTokenBalance);
uint256 contractETHBalance = address(this).balance;
if (contractETHBalance > 0) {
sendToWallet(_feeAddrWallet, contractETHBalance);
}
}
}
function manualSwap() public onlyOwner {
swapWalletBalance();
}
receive() external payable {}
// @dev uniswap contract - tested
function openTrading() external onlyOwner whenPaused {
require(!tradingOpen,"Trading is already open");
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV2Router = _uniswapV2Router;
_approve(_msgSender(), address(_uniswapV2Router), _initialSupply);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
tradingOpen = true;
_unpause();
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getBlackListStatus 0x59bf1abe → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
yourBalance 0x804fed28 → uint256
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
addBlackList 0x0ecb93c0
address _evilUser
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwap 0x51bc3c85
No parameters
openTrading 0xc9567bf9
No parameters
pause 0x8456cb59
No parameters
returns: bool
removeBlackList 0xe4997dc5
address _clearedUser
renounceOwnership 0x715018a6
No parameters
setAddressCap 0x8bed30b8
uint256 cap
setFeeAddress 0x8705fcd4
address feeWallet
setSwapTriggerCount 0xec8490b5
uint8 trigger
setTaxFeePercentageBuy 0x0d4c8ce8
uint256 percentage
setTaxFeePercentageSell 0x2e773e58
uint256 percentage
setTransactionCap 0xd1bdac24
uint256 cap
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
returns: bool
Recent Transactions
No transactions found for this address