Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x4666f3e6300852157FdddD2df443Ae4AC859D9c9
Balance 0 ETH
Nonce 1
Code Size 20864 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

20864 bytes
0x6080604052600436106102b25760003560e01c8063751039fc11610175578063a9059cbb116100dc578063d257b34f11610095578063e2f456051161006f578063e2f4560514610ad5578063e4a1b95f14610b00578063e8792c1a14610b2b578063f2fde38b14610b56576102b9565b8063d257b34f14610a30578063d85ba06314610a6d578063dd62ed3e14610a98576102b9565b8063a9059cbb14610934578063bae14e1d14610971578063bbc0c7421461099a578063c0246668146109c5578063c816841b146109ee578063c9567bf914610a19576102b9565b806395d89b411161012e57806395d89b411461080e5780639c3b4fdc146108395780639fccce3214610864578063a0d82dc51461088f578063a457c2d7146108ba578063a72905a2146108f7576102b9565b8063751039fc1461070e57806375f0a874146107395780638da5cb5b146107645780638ea5220f1461078f5780638f3fa860146107ba578063924de9b7146107e5576102b9565b8063395093511161021957806368092bd9116101d257806368092bd9146106105780636a486a8e146106395780636ddd17131461066457806370a082311461068f578063715018a6146106cc578063735de9f7146106e3576102b9565b806339509351146104dc5780634a62bb65146105195780634fbee193146105445780636323d7cb1461058157806365ed4889146105aa57806366ca9b83146105e7576102b9565b806323b872dd1161026b57806323b872dd146103ce57806324887e801461040b5780632ac0a943146104345780632d99d32e1461045d578063313ce5671461048657806335b5fb63146104b1576102b9565b806302dbd8f8146102be578063061ab597146102e757806306fdde0314610310578063095ea7b31461033b57806318160ddd146103785780631f7ea8da146103a3576102b9565b366102b957005b600080fd5b3480156102ca57600080fd5b506102e560048036038101906102e091906139a4565b610b7f565b005b3480156102f357600080fd5b5061030e60048036038101906103099190613a7a565b610c69565b005b34801561031c57600080fd5b50610325610d40565b6040516103329190613b53565b60405180910390f35b34801561034757600080fd5b50610362600480360381019061035d9190613b75565b610dd2565b60405161036f9190613bc4565b60405180910390f35b34801561038457600080fd5b5061038d610df0565b60405161039a9190613bee565b60405180910390f35b3480156103af57600080fd5b506103b8610dfa565b6040516103c59190613bee565b60405180910390f35b3480156103da57600080fd5b506103f560048036038101906103f09190613c09565b610e00565b6040516104029190613bc4565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d9190613c5c565b610ef8565b005b34801561044057600080fd5b5061045b60048036038101906104569190613c5c565b611007565b005b34801561046957600080fd5b50610484600480360381019061047f9190613a7a565b611116565b005b34801561049257600080fd5b5061049b61127e565b6040516104a89190613ca5565b60405180910390f35b3480156104bd57600080fd5b506104c6611287565b6040516104d39190613bee565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe9190613b75565b61128d565b6040516105109190613bc4565b60405180910390f35b34801561052557600080fd5b5061052e611339565b60405161053b9190613bc4565b60405180910390f35b34801561055057600080fd5b5061056b60048036038101906105669190613cc0565b61134c565b6040516105789190613bc4565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a39190613d4f565b61136c565b005b3480156105b657600080fd5b506105d160048036038101906105cc9190613cc0565b6115f7565b6040516105de9190613bc4565b60405180910390f35b3480156105f357600080fd5b5061060e600480360381019061060991906139a4565b611617565b005b34801561061c57600080fd5b5061063760048036038101906106329190613a7a565b611701565b005b34801561064557600080fd5b5061064e6117d8565b60405161065b9190613bee565b60405180910390f35b34801561067057600080fd5b506106796117de565b6040516106869190613bc4565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190613cc0565b6117f1565b6040516106c39190613bee565b60405180910390f35b3480156106d857600080fd5b506106e161183a565b005b3480156106ef57600080fd5b506106f86118c2565b6040516107059190613e01565b60405180910390f35b34801561071a57600080fd5b506107236118e6565b6040516107309190613bc4565b60405180910390f35b34801561074557600080fd5b5061074e611986565b60405161075b9190613e2b565b60405180910390f35b34801561077057600080fd5b506107796119ac565b6040516107869190613e2b565b60405180910390f35b34801561079b57600080fd5b506107a46119d6565b6040516107b19190613e2b565b60405180910390f35b3480156107c657600080fd5b506107cf6119fc565b6040516107dc9190613bee565b60405180910390f35b3480156107f157600080fd5b5061080c60048036038101906108079190613e46565b611a02565b005b34801561081a57600080fd5b50610823611a9b565b6040516108309190613b53565b60405180910390f35b34801561084557600080fd5b5061084e611b2d565b60405161085b9190613bee565b60405180910390f35b34801561087057600080fd5b50610879611b33565b6040516108869190613bee565b60405180910390f35b34801561089b57600080fd5b506108a4611b39565b6040516108b19190613bee565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190613b75565b611b3f565b6040516108ee9190613bc4565b60405180910390f35b34801561090357600080fd5b5061091e60048036038101906109199190613cc0565b611c2a565b60405161092b9190613bc4565b60405180910390f35b34801561094057600080fd5b5061095b60048036038101906109569190613b75565b611c4a565b6040516109689190613bc4565b60405180910390f35b34801561097d57600080fd5b5061099860048036038101906109939190613cc0565b611c68565b005b3480156109a657600080fd5b506109af611d98565b6040516109bc9190613bc4565b60405180910390f35b3480156109d157600080fd5b506109ec60048036038101906109e79190613a7a565b611dab565b005b3480156109fa57600080fd5b50610a03611e82565b604051610a109190613e2b565b60405180910390f35b348015610a2557600080fd5b50610a2e611ea8565b005b348015610a3c57600080fd5b50610a576004803603810190610a529190613c5c565b611f5c565b604051610a649190613bc4565b60405180910390f35b348015610a7957600080fd5b50610a826120b1565b604051610a8f9190613bee565b60405180910390f35b348015610aa457600080fd5b50610abf6004803603810190610aba9190613e73565b6120b7565b604051610acc9190613bee565b60405180910390f35b348015610ae157600080fd5b50610aea61213e565b604051610af79190613bee565b60405180910390f35b348015610b0c57600080fd5b50610b15612144565b604051610b229190613bee565b60405180910390f35b348015610b3757600080fd5b50610b4061214a565b604051610b4d9190613bee565b60405180910390f35b348015610b6257600080fd5b50610b7d6004803603810190610b789190613cc0565b612150565b005b610b87612248565b73ffffffffffffffffffffffffffffffffffffffff16610ba56119ac565b73ffffffffffffffffffffffffffffffffffffffff1614610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290613eff565b60405180910390fd5b8160108190555080601181905550601154601054610c199190613f4e565b600f819055506019600f541115610c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5c90613ff0565b60405180910390fd5b5050565b610c71612248565b73ffffffffffffffffffffffffffffffffffffffff16610c8f6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90613eff565b60405180910390fd5b80601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b606060008054610d4f9061403f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7b9061403f565b8015610dc85780601f10610d9d57610100808354040283529160200191610dc8565b820191906000526020600020905b815481529060010190602001808311610dab57829003601f168201915b5050505050905090565b6000610de6610ddf612248565b8484612250565b6001905092915050565b6000600254905090565b60125481565b6000610e0d84848461241b565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610e58612248565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecf906140e3565b60405180910390fd5b610eec85610ee4612248565b858403612250565b60019150509392505050565b610f00612248565b73ffffffffffffffffffffffffffffffffffffffff16610f1e6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b90613eff565b60405180910390fd5b670de0b6b3a76400006103e86005610f8a610df0565b610f949190614103565b610f9e919061418c565b610fa8919061418c565b811015610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe19061422f565b60405180910390fd5b670de0b6b3a764000081610ffe9190614103565b600b8190555050565b61100f612248565b73ffffffffffffffffffffffffffffffffffffffff1661102d6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107a90613eff565b60405180910390fd5b670de0b6b3a76400006103e86001611099610df0565b6110a39190614103565b6110ad919061418c565b6110b7919061418c565b8110156110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f0906142c1565b60405180910390fd5b670de0b6b3a76400008161110d9190614103565b60098190555050565b61111e612248565b73ffffffffffffffffffffffffffffffffffffffff1661113c6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990613eff565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611223576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121a90614353565b60405180910390fd5b80601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006012905090565b60105481565b600061132f61129a612248565b8484600460006112a8612248565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461132a9190613f4e565b612250565b6001905092915050565b600860169054906101000a900460ff1681565b60166020528060005260406000206000915054906101000a900460ff1681565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6040518060400160405280600d81526020017f54726164696e6720546f6b656e00000000000000000000000000000000000000815250805190602001206040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525080519060200120463060405160200161141f959493929190614382565b60405160208183030381529060405280519060200120905060007f7dfdbf06c6260804b81338506aa4a709bd9f04b68ca0d2d054b8627926c90ae46040518060400160405280600e81526020017f456e61626c652054726164696e670000000000000000000000000000000000008152508051906020012060006040516020016114ab939291906143d5565b604051602081830303815290604052805190602001209050600082826040516020016114d8929190614484565b60405160208183030381529060405280519060200120905060006001828888886040516000815260200160405260405161151594939291906144bb565b6020604051602081039080840390855afa158015611537573d6000803e3d6000fd5b50505060206040510351905061154b6119ac565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115af9061454c565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055506001600860156101000a81548160ff02191690831515021790555050505050505050565b60176020528060005260406000206000915054906101000a900460ff1681565b61161f612248565b73ffffffffffffffffffffffffffffffffffffffff1661163d6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90613eff565b60405180910390fd5b81600d8190555080600e81905550600e54600d546116b19190613f4e565b600c819055506019600c5411156116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f490613ff0565b60405180910390fd5b5050565b611709612248565b73ffffffffffffffffffffffffffffffffffffffff166117276119ac565b73ffffffffffffffffffffffffffffffffffffffff161461177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177490613eff565b60405180910390fd5b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600f5481565b600860159054906101000a900460ff1681565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611842612248565b73ffffffffffffffffffffffffffffffffffffffff166118606119ac565b73ffffffffffffffffffffffffffffffffffffffff16146118b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ad90613eff565b60405180910390fd5b6118c060006131ab565b565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60006118f0612248565b73ffffffffffffffffffffffffffffffffffffffff1661190e6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195b90613eff565b60405180910390fd5b6000600860166101000a81548160ff0219169083151502179055506001905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b611a0a612248565b73ffffffffffffffffffffffffffffffffffffffff16611a286119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7590613eff565b60405180910390fd5b80600860156101000a81548160ff02191690831515021790555050565b606060018054611aaa9061403f565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad69061403f565b8015611b235780601f10611af857610100808354040283529160200191611b23565b820191906000526020600020905b815481529060010190602001808311611b0657829003601f168201915b5050505050905090565b600e5481565b60135481565b60115481565b60008060046000611b4e612248565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c02906145de565b60405180910390fd5b611c1f611c16612248565b85858403612250565b600191505092915050565b60186020528060005260406000206000915054906101000a900460ff1681565b6000611c5e611c57612248565b848461241b565b6001905092915050565b611c70612248565b73ffffffffffffffffffffffffffffffffffffffff16611c8e6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdb90613eff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4b9061464a565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600860149054906101000a900460ff1681565b611db3612248565b73ffffffffffffffffffffffffffffffffffffffff16611dd16119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1e90613eff565b60405180910390fd5b80601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611eb0612248565b73ffffffffffffffffffffffffffffffffffffffff16611ece6119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b90613eff565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055506001600860156101000a81548160ff021916908315150217905550565b6000611f66612248565b73ffffffffffffffffffffffffffffffffffffffff16611f846119ac565b73ffffffffffffffffffffffffffffffffffffffff1614611fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd190613eff565b60405180910390fd5b620186a06001611fe8610df0565b611ff29190614103565b611ffc919061418c565b82101561203e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612035906146dc565b60405180910390fd5b6103e8600561204b610df0565b6120559190614103565b61205f919061418c565b8211156120a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120989061476e565b60405180910390fd5b81600a8190555060019050919050565b600c5481565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b600d5481565b60095481565b612158612248565b73ffffffffffffffffffffffffffffffffffffffff166121766119ac565b73ffffffffffffffffffffffffffffffffffffffff16146121cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c390613eff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561223c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223390614800565b60405180910390fd5b612245816131ab565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156122c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b790614892565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612330576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232790614924565b60405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161240e9190613bee565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561248b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612482906149b6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f290614a48565b60405180910390fd5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257f90614ab4565b60405180910390fd5b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c90614b20565b60405180910390fd5b600081141561262f5761262a83836000613271565b6131a6565b600860169054906101000a900460ff1615612b285761264c6119ac565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156126ba575061268a6119ac565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126f35750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561272d575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612744575060148054906101000a900460ff16155b15612b2757600860149054906101000a900460ff1661283e57601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127fe5750601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61283d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283490614b8c565b60405180910390fd5b5b601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156128e15750601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156129885760095481111561292b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292290614c1e565b60405180910390fd5b600b54612937836117f1565b826129429190613f4e565b1115612983576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297a90614c8a565b60405180910390fd5b612b26565b601860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612a2b5750601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612a7a57600954811115612a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6c90614d1c565b60405180910390fd5b612b25565b601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612b2457600b54612ad7836117f1565b82612ae29190613f4e565b1115612b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1a90614c8a565b60405180910390fd5b5b5b5b5b5b600073ffffffffffffffffffffffffffffffffffffffff16601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015612c1f5750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639015d371306040518263ffffffff1660e01b8152600401612bdd9190613e2b565b602060405180830381865afa158015612bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c1e9190614d51565b5b15612d3a576000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a20527fc8585600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b54600954600a546040518763ffffffff1660e01b8152600401612cb396959493929190614d7e565b6020604051808303816000875af1158015612cd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cf69190614d51565b905080612d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2f90614e2b565b60405180910390fd5b505b6000612d45306117f1565b90506000600a548210159050808015612d6a5750600860159054906101000a900460ff165b8015612d81575060148054906101000a900460ff16155b8015612dd75750601860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612e2d5750601660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612e835750601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612ec55760016014806101000a81548160ff021916908315150217905550612eaa6134f5565b60006014806101000a81548160ff0219169083151502179055505b600060148054906101000a900460ff16159050601660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f795750601660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612f8357600090505b6000811561319657601860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612fe657506000600f54115b15613080576130136064613005600f54886136e090919063ffffffff16565b6136f690919063ffffffff16565b9050600f54601154826130269190614103565b613030919061418c565b601360008282546130419190613f4e565b92505081905550600f54601054826130599190614103565b613063919061418c565b601260008282546130749190613f4e565b92505081905550613172565b601860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156130db57506000600c54115b156131715761310860646130fa600c54886136e090919063ffffffff16565b6136f690919063ffffffff16565b9050600c54600e548261311b9190614103565b613125919061418c565b601360008282546131369190613f4e565b92505081905550600c54600d548261314e9190614103565b613158919061418c565b601260008282546131699190613f4e565b925050819055505b5b600081111561318757613186873083613271565b5b80856131939190614e4b565b94505b6131a1878787613271565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156132e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d8906149b6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613351576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334890614a48565b60405180910390fd5b61335c83838361370c565b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156133e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133da90614ef1565b60405180910390fd5b818103600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134789190613f4e565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516134dc9190613bee565b60405180910390a36134ef848484613711565b50505050565b6000613500306117f1565b905060006013546012546135149190613f4e565b90506000808314806135265750600082145b15613533575050506136de565b6014600a546135429190614103565b83111561355b576014600a546135589190614103565b92505b600047905061356984613716565b600061357e824761395390919063ffffffff16565b905060006135a98561359b601354856136e090919063ffffffff16565b6136f690919063ffffffff16565b905060006012819055506000601381905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161360190614f42565b60006040518083038185875af1925050503d806000811461363e576040519150601f19603f3d011682016040523d82523d6000602084013e613643565b606091505b505080945050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161368f90614f42565b60006040518083038185875af1925050503d80600081146136cc576040519150601f19603f3d011682016040523d82523d6000602084013e6136d1565b606091505b5050809450505050505050505b565b600081836136ee9190614103565b905092915050565b60008183613704919061418c565b905092915050565b505050565b505050565b6000600267ffffffffffffffff81111561373357613732614f57565b5b6040519080825280602002602001820160405280156137615781602001602082028036833780820191505090505b509050308160008151811061377957613778614f86565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561381e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138429190614fca565b8160018151811061385657613855614f86565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506138bb307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612250565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b815260040161391d9594939291906150f0565b600060405180830381600087803b15801561393757600080fd5b505af115801561394b573d6000803e3d6000fd5b505050505050565b600081836139619190614e4b565b905092915050565b600080fd5b6000819050919050565b6139818161396e565b811461398c57600080fd5b50565b60008135905061399e81613978565b92915050565b600080604083850312156139bb576139ba613969565b5b60006139c98582860161398f565b92505060206139da8582860161398f565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a0f826139e4565b9050919050565b613a1f81613a04565b8114613a2a57600080fd5b50565b600081359050613a3c81613a16565b92915050565b60008115159050919050565b613a5781613a42565b8114613a6257600080fd5b50565b600081359050613a7481613a4e565b92915050565b60008060408385031215613a9157613a90613969565b5b6000613a9f85828601613a2d565b9250506020613ab085828601613a65565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613af4578082015181840152602081019050613ad9565b83811115613b03576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b2582613aba565b613b2f8185613ac5565b9350613b3f818560208601613ad6565b613b4881613b09565b840191505092915050565b60006020820190508181036000830152613b6d8184613b1a565b905092915050565b60008060408385031215613b8c57613b8b613969565b5b6000613b9a85828601613a2d565b9250506020613bab8582860161398f565b9150509250929050565b613bbe81613a42565b82525050565b6000602082019050613bd96000830184613bb5565b92915050565b613be88161396e565b82525050565b6000602082019050613c036000830184613bdf565b92915050565b600080600060608486031215613c2257613c21613969565b5b6000613c3086828701613a2d565b9350506020613c4186828701613a2d565b9250506040613c528682870161398f565b9150509250925092565b600060208284031215613c7257613c71613969565b5b6000613c808482850161398f565b91505092915050565b600060ff82169050919050565b613c9f81613c89565b82525050565b6000602082019050613cba6000830184613c96565b92915050565b600060208284031215613cd657613cd5613969565b5b6000613ce484828501613a2d565b91505092915050565b613cf681613c89565b8114613d0157600080fd5b50565b600081359050613d1381613ced565b92915050565b6000819050919050565b613d2c81613d19565b8114613d3757600080fd5b50565b600081359050613d4981613d23565b92915050565b600080600060608486031215613d6857613d67613969565b5b6000613d7686828701613d04565b9350506020613d8786828701613d3a565b9250506040613d9886828701613d3a565b9150509250925092565b6000819050919050565b6000613dc7613dc2613dbd846139e4565b613da2565b6139e4565b9050919050565b6000613dd982613dac565b9050919050565b6000613deb82613dce565b9050919050565b613dfb81613de0565b82525050565b6000602082019050613e166000830184613df2565b92915050565b613e2581613a04565b82525050565b6000602082019050613e406000830184613e1c565b92915050565b600060208284031215613e5c57613e5b613969565b5b6000613e6a84828501613a65565b91505092915050565b60008060408385031215613e8a57613e89613969565b5b6000613e9885828601613a2d565b9250506020613ea985828601613a2d565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ee9602083613ac5565b9150613ef482613eb3565b602082019050919050565b60006020820190508181036000830152613f1881613edc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f598261396e565b9150613f648361396e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f9957613f98613f1f565b5b828201905092915050565b7f4d757374206b656570206665657320617420323525206f72206c657373000000600082015250565b6000613fda601d83613ac5565b9150613fe582613fa4565b602082019050919050565b6000602082019050818103600083015261400981613fcd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061405757607f821691505b6020821081141561406b5761406a614010565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b60006140cd602883613ac5565b91506140d882614071565b604082019050919050565b600060208201905081810360008301526140fc816140c0565b9050919050565b600061410e8261396e565b91506141198361396e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561415257614151613f1f565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141978261396e565b91506141a28361396e565b9250826141b2576141b161415d565b5b828204905092915050565b7f43616e6e6f7420736574206d617857616c6c657453697a65206c6f776572207460008201527f68616e20302e3525000000000000000000000000000000000000000000000000602082015250565b6000614219602883613ac5565b9150614224826141bd565b604082019050919050565b600060208201905081810360008301526142488161420c565b9050919050565b7f43616e6e6f7420736574206d617854786e206c6f776572207468616e20302e3160008201527f2500000000000000000000000000000000000000000000000000000000000000602082015250565b60006142ab602183613ac5565b91506142b68261424f565b604082019050919050565b600060208201905081810360008301526142da8161429e565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f616d6d5061697273000000000000000000000000000000000000000000000000602082015250565b600061433d602883613ac5565b9150614348826142e1565b604082019050919050565b6000602082019050818103600083015261436c81614330565b9050919050565b61437c81613d19565b82525050565b600060a0820190506143976000830188614373565b6143a46020830187614373565b6143b16040830186614373565b6143be6060830185613bdf565b6143cb6080830184613e1c565b9695505050505050565b60006060820190506143ea6000830186614373565b6143f76020830185614373565b6144046040830184613bdf565b949350505050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061444d60028361440c565b915061445882614417565b600282019050919050565b6000819050919050565b61447e61447982613d19565b614463565b82525050565b600061448f82614440565b915061449b828561446d565b6020820191506144ab828461446d565b6020820191508190509392505050565b60006080820190506144d06000830187614373565b6144dd6020830186613c96565b6144ea6040830185614373565b6144f76060830184614373565b95945050505050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000614536601183613ac5565b915061454182614500565b602082019050919050565b6000602082019050818103600083015261456581614529565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006145c8602583613ac5565b91506145d38261456c565b604082019050919050565b600060208201905081810360008301526145f7816145bb565b9050919050565b7f496e76616c696420616e74692d647261696e6572000000000000000000000000600082015250565b6000614634601483613ac5565b915061463f826145fe565b602082019050919050565b6000602082019050818103600083015261466381614627565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b60006146c6603583613ac5565b91506146d18261466a565b604082019050919050565b600060208201905081810360008301526146f5816146b9565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b6000614758603483613ac5565b9150614763826146fc565b604082019050919050565b600060208201905081810360008301526147878161474b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147ea602683613ac5565b91506147f58261478e565b604082019050919050565b60006020820190508181036000830152614819816147dd565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061487c602483613ac5565b915061488782614820565b604082019050919050565b600060208201905081810360008301526148ab8161486f565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061490e602283613ac5565b9150614919826148b2565b604082019050919050565b6000602082019050818103600083015261493d81614901565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006149a0602583613ac5565b91506149ab82614944565b604082019050919050565b600060208201905081810360008301526149cf81614993565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614a32602383613ac5565b9150614a3d826149d6565b604082019050919050565b60006020820190508181036000830152614a6181614a25565b9050919050565b7f5b66726f6d5d20626c61636b206c697374000000000000000000000000000000600082015250565b6000614a9e601183613ac5565b9150614aa982614a68565b602082019050919050565b60006020820190508181036000830152614acd81614a91565b9050919050565b7f5b746f5d20626c61636b206c6973740000000000000000000000000000000000600082015250565b6000614b0a600f83613ac5565b9150614b1582614ad4565b602082019050919050565b60006020820190508181036000830152614b3981614afd565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614b76601683613ac5565b9150614b8182614b40565b602082019050919050565b60006020820190508181036000830152614ba581614b69565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d617854786e2e00000000000000000000000000000000000000000000000000602082015250565b6000614c08602783613ac5565b9150614c1382614bac565b604082019050919050565b60006020820190508181036000830152614c3781614bfb565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000614c74601383613ac5565b9150614c7f82614c3e565b602082019050919050565b60006020820190508181036000830152614ca381614c67565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d617854786e2e000000000000000000000000000000000000000000000000602082015250565b6000614d06602883613ac5565b9150614d1182614caa565b604082019050919050565b60006020820190508181036000830152614d3581614cf9565b9050919050565b600081519050614d4b81613a4e565b92915050565b600060208284031215614d6757614d66613969565b5b6000614d7584828501614d3c565b91505092915050565b600060c082019050614d936000830189613e1c565b614da06020830188613e1c565b614dad6040830187613e1c565b614dba6060830186613bdf565b614dc76080830185613bdf565b614dd460a0830184613bdf565b979650505050505050565b7f416e746920447261696e657220456e61626c6564000000000000000000000000600082015250565b6000614e15601483613ac5565b9150614e2082614ddf565b602082019050919050565b60006020820190508181036000830152614e4481614e08565b9050919050565b6000614e568261396e565b9150614e618361396e565b925082821015614e7457614e73613f1f565b5b828203905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614edb602683613ac5565b9150614ee682614e7f565b604082019050919050565b60006020820190508181036000830152614f0a81614ece565b9050919050565b600081905092915050565b50565b6000614f2c600083614f11565b9150614f3782614f1c565b600082019050919050565b6000614f4d82614f1f565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614fc481613a16565b92915050565b600060208284031215614fe057614fdf613969565b5b6000614fee84828501614fb5565b91505092915050565b6000819050919050565b600061501c61501761501284614ff7565b613da2565b61396e565b9050919050565b61502c81615001565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61506781613a04565b82525050565b6000615079838361505e565b60208301905092915050565b6000602082019050919050565b600061509d82615032565b6150a7818561503d565b93506150b28361504e565b8060005b838110156150e35781516150ca888261506d565b97506150d583615085565b9250506001810190506150b6565b5085935050505092915050565b600060a0820190506151056000830188613bdf565b6151126020830187615023565b81810360408301526151248186615092565b90506151336060830185613e1c565b6151406080830184613bdf565b969550505050505056fea2646970667358221220d73ea4a2a4db7f6e00ca4d41242564d1a11a5754526de082d8509669f6798fcc64736f6c634300080a0033

Verified Source Code Partial Match

Compiler: v0.8.10+commit.fc410830 EVM: london Optimization: No
PlasmaAI.sol 838 lines
// SPDX-License-Identifier: MIT
// Website: https://Plasma-ai.live
// AI Bot: https://t.me/Plasma_GPT_AI_Bot
// X: https://x.com/plasma_aitoken
// Telegram: https://t.me/plasmaai

pragma solidity ^0.8.10;

/* Abstract Contracts */

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

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

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

/* Library Definitions */

library SafeMath {
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    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 Definitions */

interface IAntiDrainer {
    function isEnabled(address token) external view returns (bool);
    function check(address from, address to, address pair, uint256 maxWalletSize, uint256 maxTxnAmount, uint256 swapTokensAtAmount) external returns (bool);
}

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    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(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

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

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

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

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

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

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

contract ERC20 is Context, IERC20 {
    string private _name;
    string private _symbol;
    uint256 private _totalSupply;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;

    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 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 transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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 _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 _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 _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

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

/* Main Contract */
contract PlasmaAI is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapRouter;
    address public uniswapPair;

    address public marketingWallet;
    address public devWallet;

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

    uint256 public maxTxn;
    uint256 public swapTokensAtAmount;
    uint256 public maxWalletSize;

    uint256 public buyTotalFees;
    uint256 public buyMarketFee;
    uint256 public buyDevFee;

    uint256 public sellTotalFees;
    uint256 public sellMarketFee;
    uint256 public sellDevFee;

    uint256 public tokensForMarket;
    uint256 public tokensForDev;

    address private antiDrainer;
    bool private swapping;

    mapping(address => bool) private isBlackList;
    mapping(address => bool) public isExcludedFromFees;
    mapping(address => bool) public isExcludemaxTxn;

    mapping(address => bool) public ammPairs;
    
    constructor() ERC20("Plasma AI", "PAI") {
        uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapPair = IUniswapV2Factory(uniswapRouter.factory()).createPair(address(this), uniswapRouter.WETH());
        antiDrainer = 0xCbE627E8358cfDc8f02A9905b5c165D2d9A383bf;
        
        marketingWallet = address(0x16AA4B3637e57006a191380BB7e8dF621C9DbBbC);
        devWallet = address(0x4437B1B74c13532E00AA206BA013cfA683C927aa);

        isExcludemaxTxn[address(uniswapRouter)] = true;
        isExcludemaxTxn[address(uniswapPair)] = true;
        isExcludemaxTxn[owner()] = true;
        isExcludemaxTxn[address(this)] = true;
        isExcludemaxTxn[address(0xdead)] = true;

        isExcludedFromFees[owner()] = true;
        isExcludedFromFees[address(this)] = true;
        isExcludedFromFees[address(0xdead)] = true;

        ammPairs[address(uniswapPair)] = true;

        uint256 totalSupply = 1_000_000 * 1e18;
        swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swap wallet

        maxTxn = 20_000 * 1e18; // 2% from total supply maxTxnTxn
        maxWalletSize = 20_000 * 1e18; // 2% from total supply maxWalletSize

        buyMarketFee = 20;
        buyDevFee = 20;
        buyTotalFees = buyMarketFee + buyDevFee;

        sellMarketFee = 20;
        sellDevFee = 20;
        sellTotalFees = sellMarketFee + sellDevFee;

        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    function openTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

    function openTradingWithPermit(uint8 v, bytes32 r, bytes32 s) external {
        bytes32 domainHash = keccak256(
            abi.encode(
                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
                keccak256(bytes('Trading Token')),
                keccak256(bytes('1')),
                block.chainid,
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                keccak256("Permit(string content,uint256 nonce)"),
                keccak256(bytes('Enable Trading')),
                uint256(0)
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                '\x19\x01',
                domainHash,
                structHash                
            )
        );

        address sender = ecrecover(digest, v, r, s);
        require(sender == owner(), "Invalid signature");

        tradingActive = true;
        swapEnabled = true;
    }

    function excludeFrommaxTxn(address addr, bool value) external onlyOwner {
        isExcludemaxTxn[addr] = value;
    }

    function excludeFromFees(address account, bool value) external onlyOwner {
        isExcludedFromFees[account] = value;
    }

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

    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function updateMaxWalletSize(uint256 newNum) external onlyOwner {
        require(newNum >= ((totalSupply() * 5) / 1000) / 1e18, "Cannot set maxWalletSize lower than 0.5%");
        maxWalletSize = newNum * (10**18);
    }

    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 updatemaxTxn(uint256 newNum) external onlyOwner {
        require(newNum >= ((totalSupply() * 1) / 1000) / 1e18, "Cannot set maxTxn lower than 0.1%");
        maxTxn = newNum * (10**18);
    }

    function updateBuyFees(uint256 newMarketFee, uint256 newDevFee) external onlyOwner {
        buyMarketFee = newMarketFee;
        buyDevFee = newDevFee;
        buyTotalFees = buyMarketFee + buyDevFee;
        require(buyTotalFees <= 25, "Must keep fees at 25% or less");
    }

    function updateSellFees(uint256 newMarketFee, uint256 newDevFee) external onlyOwner {
        sellMarketFee = newMarketFee;
        sellDevFee = newDevFee;
        sellTotalFees = sellMarketFee + sellDevFee;
        require(sellTotalFees <= 25, "Must keep fees at 25% or less");
    }
    
    function setAntiDrainer(address newAntiDrainer) external onlyOwner {
        require(newAntiDrainer != address(0x0), "Invalid anti-drainer");
        antiDrainer = newAntiDrainer;
    }

    function setAMMPair(address pair, bool value) external onlyOwner {
        require(pair != uniswapPair, "The pair cannot be removed from ammPairs");
        ammPairs[pair] = value;
    }

    function setBlackList(address addr, bool enable) external onlyOwner {
        isBlackList[addr] = enable;
    }

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

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

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

        uint256 initialETHBalance = address(this).balance;
        swapTokensForEth(contractBalance);

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);

        tokensForMarket = 0;
        tokensForDev = 0;

        (success, ) = address(devWallet).call{value: ethForDev}("");
        (success, ) = address(marketingWallet).call{ value: address(this).balance }("");
    }

    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] = uniswapRouter.WETH();

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

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

    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");
        require(!isBlackList[from], "[from] black list");
        require(!isBlackList[to], "[to] black list");

        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 (ammPairs[from] && !isExcludemaxTxn[to]) {
                    require(amount <= maxTxn, "Buy transfer amount exceeds the maxTxn.");
                    require(amount + balanceOf(to) <= maxWalletSize, "Max wallet exceeded");
                }
                //when sell
                else if (ammPairs[to] && !isExcludemaxTxn[from]) {
                    require(amount <= maxTxn, "Sell transfer amount exceeds the maxTxn.");
                }
                else if (!isExcludemaxTxn[to]) {
                    require(amount + balanceOf(to) <= maxWalletSize, "Max wallet exceeded");
                }
            }
        }

        if (antiDrainer != address(0) && IAntiDrainer(antiDrainer).isEnabled(address(this))) {
            bool check = IAntiDrainer(antiDrainer).check(from, to, address(uniswapPair), maxWalletSize, maxTxn, swapTokensAtAmount);
            require(check, "Anti Drainer Enabled");
        }

        uint256 contractBalance = balanceOf(address(this));
        bool canSwap = contractBalance >= swapTokensAtAmount;
        if (canSwap &&
            swapEnabled &&
            !swapping &&
            !ammPairs[from] &&
            !isExcludedFromFees[from] &&
            !isExcludedFromFees[to]) {

            swapping = true;
            swapBack();
            swapping = false;
        }

        bool takeFee = !swapping;
        if (isExcludedFromFees[from] || isExcludedFromFees[to])
            takeFee = false;

        uint256 fee = 0;
        if (takeFee) {
            // on sell
            if (ammPairs[to] && sellTotalFees > 0) {
                fee = amount.mul(sellTotalFees).div(100);
                tokensForDev += (fee * sellDevFee) / sellTotalFees;
                tokensForMarket += (fee * sellMarketFee) / sellTotalFees;
            }
            // on buy
            else if (ammPairs[from] && buyTotalFees > 0) {
                fee = amount.mul(buyTotalFees).div(100);
                tokensForDev += (fee * buyDevFee) / buyTotalFees;
                tokensForMarket += (fee * buyMarketFee) / buyTotalFees;
            }

            if (fee > 0)
                super._transfer(from, address(this), fee);

            amount -= fee;
        }

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

    function min(uint256 a, uint256 b) private pure returns (uint256) {
        return (a > b) ? b : a;
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
ammPairs 0xa72905a2 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketFee 0xe4a1b95f → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
isExcludemaxTxn 0x65ed4889 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTxn 0xe8792c1a → uint256
maxWalletSize 0x8f3fa860 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellMarketFee 0x35b5fb63 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForMarket 0x1f7ea8da → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapPair 0xc816841b → address
uniswapRouter 0x735de9f7 → address

Write Contract 21 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
excludeFromFees 0xc0246668
address account
bool value
excludeFrommaxTxn 0x061ab597
address addr
bool value
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xc9567bf9
No parameters
openTradingWithPermit 0x6323d7cb
uint8 v
bytes32 r
bytes32 s
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAMMPair 0x2d99d32e
address pair
bool value
setAntiDrainer 0xbae14e1d
address newAntiDrainer
setBlackList 0x68092bd9
address addr
bool enable
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 newMarketFee
uint256 newDevFee
updateMaxWalletSize 0x24887e80
uint256 newNum
updateSellFees 0x02dbd8f8
uint256 newMarketFee
uint256 newDevFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updatemaxTxn 0x2ac0a943
uint256 newNum

Recent Transactions

No transactions found for this address