Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xd05E1bA555f555cD6570e25A64D95A43468264a6
Balance 0 ETH
Nonce 1
Code Size 10336 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

10336 bytes
0x608060405260043610610138575f3560e01c8063768dc710116100aa578063a84033921161006e578063a8403392146103fb578063a9059cbb14610425578063bf474bed14610461578063dd62ed3e1461048b578063f2fde38b146104c7578063f900c69b146104ef5761013f565b8063768dc7101461031b578063801e169a146103575780638da5cb5b1461037f57806395d89b41146103a9578063983e9158146103d35761013f565b806323b872dd116100fc57806323b872dd14610223578063313ce5671461025f5780633c52fb931461028957806351bc3c85146102b357806370a08231146102c9578063715018a6146103055761013f565b8063034832bd1461014357806306fdde031461016b578063095ea7b314610195578063131e00b7146101d157806318160ddd146101f95761013f565b3661013f57005b5f80fd5b34801561014e575f80fd5b5061016960048036038101906101649190611a71565b610519565b005b348015610176575f80fd5b5061017f61056d565b60405161018c9190611b0c565b60405180910390f35b3480156101a0575f80fd5b506101bb60048036038101906101b69190611b86565b6105aa565b6040516101c89190611bde565b60405180910390f35b3480156101dc575f80fd5b506101f760048036038101906101f29190611bf7565b6105c7565b005b348015610204575f80fd5b5061020d610627565b60405161021a9190611c31565b60405180910390f35b34801561022e575f80fd5b5061024960048036038101906102449190611c4a565b61064a565b6040516102569190611bde565b60405180910390f35b34801561026a575f80fd5b5061027361071e565b6040516102809190611cb5565b60405180910390f35b348015610294575f80fd5b5061029d610726565b6040516102aa9190611c31565b60405180910390f35b3480156102be575f80fd5b506102c761072c565b005b3480156102d4575f80fd5b506102ef60048036038101906102ea9190611bf7565b6107c3565b6040516102fc9190611c31565b60405180910390f35b348015610310575f80fd5b50610319610809565b005b348015610326575f80fd5b50610341600480360381019061033c9190611bf7565b61081c565b60405161034e9190611bde565b60405180910390f35b348015610362575f80fd5b5061037d60048036038101906103789190611cce565b610839565b005b34801561038a575f80fd5b506103936108db565b6040516103a09190611d1b565b60405180910390f35b3480156103b4575f80fd5b506103bd610902565b6040516103ca9190611b0c565b60405180910390f35b3480156103de575f80fd5b506103f960048036038101906103f49190611bf7565b61093f565b005b348015610406575f80fd5b5061040f61099e565b60405161041c9190611d54565b60405180910390f35b348015610430575f80fd5b5061044b60048036038101906104469190611b86565b6109c3565b6040516104589190611bde565b60405180910390f35b34801561046c575f80fd5b506104756109e0565b6040516104829190611c31565b60405180910390f35b348015610496575f80fd5b506104b160048036038101906104ac9190611d6d565b6109e6565b6040516104be9190611c31565b60405180910390f35b3480156104d2575f80fd5b506104ed60048036038101906104e89190611bf7565b610a68565b005b3480156104fa575f80fd5b50610503610aea565b6040516105109190611c31565b60405180910390f35b610521610af0565b5f8111610563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055a90611df5565b60405180910390fd5b8060048190555050565b60606040518060400160405280600881526020017f445a204d41464941000000000000000000000000000000000000000000000000815250905090565b5f6105bd6105b6610b6e565b8484610b75565b6001905092915050565b6105cf610af0565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b5f6012600a6106369190611f6f565b633b9aca006106459190611fb9565b905090565b5f610656848484610d38565b61071384610662610b6e565b61070e856040518060600160405280602881526020016128036028913960025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6106c5610b6e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546113da9092919063ffffffff16565b610b75565b600190509392505050565b5f6012905090565b60075481565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661076c610b6e565b73ffffffffffffffffffffffffffffffffffffffff161461078b575f80fd5b5f610795306107c3565b90505f8111156107a9576107a88161143c565b5b5f4790505f8111156107bf576107be816116b0565b5b5050565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610811610af0565b61081a5f6117b2565b565b6003602052805f5260405f205f915054906101000a900460ff1681565b610841610af0565b6019821115610885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087c90612044565b60405180910390fd5b60198111156108c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c090612044565b60405180910390fd5b81600681905550806007819055505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600881526020017f445a204d41464941000000000000000000000000000000000000000000000000815250905090565b610947610af0565b5f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6109d66109cf610b6e565b8484610d38565b6001905092915050565b60045481565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610a70610af0565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad5906120d2565b60405180910390fd5b610ae7816117b2565b50565b60065481565b610af8610b6e565b73ffffffffffffffffffffffffffffffffffffffff16610b166108db565b73ffffffffffffffffffffffffffffffffffffffff1614610b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b639061213a565b60405180910390fd5b565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bda906121c8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4890612256565b60405180910390fd5b8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610d2b9190611c31565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9d906122e4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0b90612372565b60405180910390fd5b5f8111610e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90612400565b60405180910390fd5b5f60035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015610ef5575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561112a575f6006541115610fde5760095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148015610fad575060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15610fdd57610fda6064610fcc6006548561187390919063ffffffff16565b6118ea90919063ffffffff16565b90505b5b5f60075411156110685760095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110675761106460646110566007548561187390919063ffffffff16565b6118ea90919063ffffffff16565b90505b5b5f611072306107c3565b9050600960149054906101000a900460ff161580156110dd575060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80156110f55750600960159054906101000a900460ff165b8015611102575060045481115b15611128576111108161143c565b5f4790505f81111561112657611125476116b0565b5b505b505b5f811115611229576111828160015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461193390919063ffffffff16565b60015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112209190611c31565b60405180910390a35b6112798260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461199090919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555061131c6112d0828461199090919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461193390919063ffffffff16565b60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6113bf848661199090919063ffffffff16565b6040516113cc9190611c31565b60405180910390a350505050565b5f838311158290611421576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114189190611b0c565b60405180910390fd5b505f838561142f919061241e565b9050809150509392505050565b6001600960146101000a81548160ff0219169083151502179055505f810315611693575f600267ffffffffffffffff81111561147b5761147a612451565b5b6040519080825280602002602001820160405280156114a95781602001602082028036833780820191505090505b50905030815f815181106114c0576114bf61247e565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611564573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061158891906124bf565b8160018151811061159c5761159b61247e565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506116023060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b75565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016116649594939291906125e3565b5f604051808303815f87803b15801561167b575f80fd5b505af115801561168d573d5f803e3d5ffd5b50505050505b5f600960146101000a81548160ff02191690831515021790555050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516116f690612668565b5f6040518083038185875af1925050503d805f8114611730576040519150601f19603f3d011682016040523d82523d5f602084013e611735565b606091505b50509050806117ae5760055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f0759dac7fa668d044a7de2b7fd31ccc6f577fdf83cd0441d6ebaba277754db57836040516117a59190611c31565b60405180910390a25b5050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f808303611883575f90506118e4565b5f82846118909190611fb9565b905082848261189f91906126a9565b146118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d690612749565b60405180910390fd5b809150505b92915050565b5f61192b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119d9565b905092915050565b5f8082846119419190612767565b905083811015611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d906127e4565b60405180910390fd5b8091505092915050565b5f6119d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506113da565b905092915050565b5f8083118290611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a169190611b0c565b60405180910390fd5b505f8385611a2d91906126a9565b9050809150509392505050565b5f80fd5b5f819050919050565b611a5081611a3e565b8114611a5a575f80fd5b50565b5f81359050611a6b81611a47565b92915050565b5f60208284031215611a8657611a85611a3a565b5b5f611a9384828501611a5d565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ade82611a9c565b611ae88185611aa6565b9350611af8818560208601611ab6565b611b0181611ac4565b840191505092915050565b5f6020820190508181035f830152611b248184611ad4565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b5582611b2c565b9050919050565b611b6581611b4b565b8114611b6f575f80fd5b50565b5f81359050611b8081611b5c565b92915050565b5f8060408385031215611b9c57611b9b611a3a565b5b5f611ba985828601611b72565b9250506020611bba85828601611a5d565b9150509250929050565b5f8115159050919050565b611bd881611bc4565b82525050565b5f602082019050611bf15f830184611bcf565b92915050565b5f60208284031215611c0c57611c0b611a3a565b5b5f611c1984828501611b72565b91505092915050565b611c2b81611a3e565b82525050565b5f602082019050611c445f830184611c22565b92915050565b5f805f60608486031215611c6157611c60611a3a565b5b5f611c6e86828701611b72565b9350506020611c7f86828701611b72565b9250506040611c9086828701611a5d565b9150509250925092565b5f60ff82169050919050565b611caf81611c9a565b82525050565b5f602082019050611cc85f830184611ca6565b92915050565b5f8060408385031215611ce457611ce3611a3a565b5b5f611cf185828601611a5d565b9250506020611d0285828601611a5d565b9150509250929050565b611d1581611b4b565b82525050565b5f602082019050611d2e5f830184611d0c565b92915050565b5f611d3e82611b2c565b9050919050565b611d4e81611d34565b82525050565b5f602082019050611d675f830184611d45565b92915050565b5f8060408385031215611d8357611d82611a3a565b5b5f611d9085828601611b72565b9250506020611da185828601611b72565b9150509250929050565b7f5468726573686f6c642063616e6e6f74206265203000000000000000000000005f82015250565b5f611ddf601583611aa6565b9150611dea82611dab565b602082019050919050565b5f6020820190508181035f830152611e0c81611dd3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b6001851115611e9557808604811115611e7157611e70611e13565b5b6001851615611e805780820291505b8081029050611e8e85611e40565b9450611e55565b94509492505050565b5f82611ead5760019050611f68565b81611eba575f9050611f68565b8160018114611ed05760028114611eda57611f09565b6001915050611f68565b60ff841115611eec57611eeb611e13565b5b8360020a915084821115611f0357611f02611e13565b5b50611f68565b5060208310610133831016604e8410600b8410161715611f3e5782820a905083811115611f3957611f38611e13565b5b611f68565b611f4b8484846001611e4c565b92509050818404811115611f6257611f61611e13565b5b81810290505b9392505050565b5f611f7982611a3e565b9150611f8483611c9a565b9250611fb17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611e9e565b905092915050565b5f611fc382611a3e565b9150611fce83611a3e565b9250828202611fdc81611a3e565b91508282048414831517611ff357611ff2611e13565b5b5092915050565b7f54617820746f6f206869676800000000000000000000000000000000000000005f82015250565b5f61202e600c83611aa6565b915061203982611ffa565b602082019050919050565b5f6020820190508181035f83015261205b81612022565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6120bc602683611aa6565b91506120c782612062565b604082019050919050565b5f6020820190508181035f8301526120e9816120b0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f612124602083611aa6565b915061212f826120f0565b602082019050919050565b5f6020820190508181035f83015261215181612118565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6121b2602483611aa6565b91506121bd82612158565b604082019050919050565b5f6020820190508181035f8301526121df816121a6565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612240602283611aa6565b915061224b826121e6565b604082019050919050565b5f6020820190508181035f83015261226d81612234565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6122ce602583611aa6565b91506122d982612274565b604082019050919050565b5f6020820190508181035f8301526122fb816122c2565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f61235c602383611aa6565b915061236782612302565b604082019050919050565b5f6020820190508181035f83015261238981612350565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b5f6123ea602983611aa6565b91506123f582612390565b604082019050919050565b5f6020820190508181035f830152612417816123de565b9050919050565b5f61242882611a3e565b915061243383611a3e565b925082820390508181111561244b5761244a611e13565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f815190506124b981611b5c565b92915050565b5f602082840312156124d4576124d3611a3a565b5b5f6124e1848285016124ab565b91505092915050565b5f819050919050565b5f819050919050565b5f61251661251161250c846124ea565b6124f3565b611a3e565b9050919050565b612526816124fc565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61255e81611b4b565b82525050565b5f61256f8383612555565b60208301905092915050565b5f602082019050919050565b5f6125918261252c565b61259b8185612536565b93506125a683612546565b805f5b838110156125d65781516125bd8882612564565b97506125c88361257b565b9250506001810190506125a9565b5085935050505092915050565b5f60a0820190506125f65f830188611c22565b612603602083018761251d565b81810360408301526126158186612587565b90506126246060830185611d0c565b6126316080830184611c22565b9695505050505050565b5f81905092915050565b50565b5f6126535f8361263b565b915061265e82612645565b5f82019050919050565b5f61267282612648565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6126b382611a3e565b91506126be83611a3e565b9250826126ce576126cd61267c565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f612733602183611aa6565b915061273e826126d9565b604082019050919050565b5f6020820190508181035f83015261276081612727565b9050919050565b5f61277182611a3e565b915061277c83611a3e565b925082820190508082111561279457612793611e13565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f6127ce601b83611aa6565b91506127d98261279a565b602082019050919050565b5f6020820190508181035f8301526127fb816127c2565b905091905056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220e7945cfa6185f5d41059fa06137d38397b6b6dad8211c115b80704364349b1af64736f6c634300081a0033

Verified Source Code Partial Match

Compiler: v0.8.26+commit.8a97fa7a EVM: cancun Optimization: No
dzMafia.sol 349 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;


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

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

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

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

}

abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}

contract dzMafia is Context, IERC20, Ownable {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) public _isExcludedFromFee;
   
    uint8 private constant _decimals = 18;
    uint256 private constant _tTotal = 1000000000 * 10**_decimals;
    string private constant _name = unicode"DZ MAFIA";
    string private constant _symbol = unicode"DZ MAFIA";
    uint256 public _taxSwapThreshold= 500000 * 10**_decimals;
    address payable public _mafiaWallet = payable(0x6D3eAc9D8dc077CE3aFdf06d84d2E6E1Abb9C2AB);
    
    uint256 public _dzBuyTax = 5;
    uint256 public _dzSellTax = 5;
    
    IUniswapV2Router02 private uniswapV2Router;
    address private uniswapV2Pair;
    bool private inSwap = false;
    bool private swapEnabled = true;

    modifier lockTheSwap {
        inSwap = true;
        _;
        inSwap = false;
    }

    event TaxWalletPaymentRevert(address indexed taxWallet, uint256 amount);


    constructor () {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // mainnet router address
      //  IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xD99D1c33F9fC3444f8101754aBC46c52416550D1); // test router address
        
        // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;

        _balances[_msgSender()] = _tTotal;
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[_mafiaWallet] = true;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    function totalSupply() public pure override returns (uint256) {
        return _tTotal;
    }

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

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

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

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

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function _approve(address owner, address spender, uint256 amount) private {
        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 from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 taxAmount=0;
        if (!_isExcludedFromFee[from] && !_isExcludedFromFee[to]) {

            if(_dzBuyTax > 0) {
            if (from == uniswapV2Pair && to != address(uniswapV2Router)) {
                taxAmount = amount.mul(_dzBuyTax).div(100);
            }
            }

            if(_dzSellTax > 0) {
            if(to == uniswapV2Pair){
                taxAmount = amount.mul(_dzSellTax).div(100);
            }
            }

            uint256 contractTokenBalance = balanceOf(address(this));
            if (!inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance>_taxSwapThreshold) {
                swapTokensForEth(contractTokenBalance);
                uint256 contractETHBalance = address(this).balance;
                if(contractETHBalance > 0) {
                    sendETHToFee(address(this).balance);
                }
            }
        }

        if(taxAmount>0){
          _balances[address(this)]=_balances[address(this)].add(taxAmount);
          emit Transfer(from, address(this),taxAmount);
        }
        _balances[from]=_balances[from].sub(amount);
        _balances[to]=_balances[to].add(amount.sub(taxAmount));
        emit Transfer(from, to, amount.sub(taxAmount));
    }


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

    function swapTokensForEth(uint256 tokenAmount) private lockTheSwap {
        if(tokenAmount==0){return;}
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function sendETHToFee(uint256 amount) private {
        (bool callSuccess, ) = payable(_mafiaWallet).call{value: amount}("");

        if (!callSuccess) {
        // Log the failure but do not revert the transaction
        emit TaxWalletPaymentRevert(_mafiaWallet, amount);
    }

    }


    receive() external payable {}

    function modifyDzTaxes(uint256 buyFee, uint256 sellFee) public onlyOwner {
        require(buyFee <= 25, "Tax too high");
        require(sellFee <= 25, "Tax too high");
        _dzBuyTax = buyFee;
        _dzSellTax = sellFee;
    }

    function updateTaxSwapThreshold(uint256 _taxLimit) public onlyOwner{
        require(_taxLimit > 0, "Threshold cannot be 0");
        _taxSwapThreshold = _taxLimit;
    }

    function manualSwap() external {
        require(_msgSender()==_mafiaWallet);
        uint256 tokenBalance=balanceOf(address(this));
        if(tokenBalance>0){
          swapTokensForEth(tokenBalance);
        }
        uint256 ethBalance=address(this).balance;
        if(ethBalance>0){
          sendETHToFee(ethBalance);
        }
    }

    function excludeFromTaxes(address account) public onlyOwner {
        _isExcludedFromFee[account] = true;
    }

    function includeInTaxes(address account) public onlyOwner {
        _isExcludedFromFee[account] = false;
    }
    
    }

Read Contract

_dzBuyTax 0xf900c69b → uint256
_dzSellTax 0x3c52fb93 → uint256
_isExcludedFromFee 0x768dc710 → bool
_mafiaWallet 0xa8403392 → address
_taxSwapThreshold 0xbf474bed → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 10 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
excludeFromTaxes 0x131e00b7
address account
includeInTaxes 0x983e9158
address account
manualSwap 0x51bc3c85
No parameters
modifyDzTaxes 0x801e169a
uint256 buyFee
uint256 sellFee
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateTaxSwapThreshold 0x034832bd
uint256 _taxLimit

Recent Transactions

No transactions found for this address