Address Contract Partially Verified
Address
0xed13003F49ea5d6033405C9EBd52E52eF1f2AA32
Balance
0 ETH
Nonce
1
Code Size
13621 bytes
Creator
0x93378A5C...A252 at tx 0x17008b27...1ce6cc
Indexed Transactions
0 (1 on-chain, 0.9% indexed)
Contract Bytecode
13621 bytes
0x6080604052600436106101c5575f3560e01c80636edc4388116100f657806398118cb411610094578063dd62ed3e11610063578063dd62ed3e146105fe578063ecfbe70c1461063a578063f2fde38b14610662578063ffb54a991461068a576101cc565b806398118cb4146105465780639d0014b114610570578063a9059cbb14610598578063b62f6e04146105d4576101cc565b806375f0a874116100d057806375f0a8741461049e5780638da5cb5b146104c857806395d89b41146104f257806396e1c7d11461051c576101cc565b80636edc43881461042457806370a082311461044c578063715018a614610488576101cc565b806323b872dd116101635780634cf1115d1161013d5780634cf1115d146103825780635e7f2dc1146103ac57806361231f77146103d4578063690d8320146103fc576101cc565b806323b872dd146102f2578063313ce5671461032e57806349bd5a5e14610358576101cc565b806318160ddd1161019f57806318160ddd14610260578063188866571461028a5780631eed1ac8146102b45780632333f9f1146102ca576101cc565b806306fdde03146101d0578063095ea7b3146101fa5780631694505e14610236576101cc565b366101cc57005b5f80fd5b3480156101db575f80fd5b506101e46106b4565b6040516101f191906123d6565b60405180910390f35b348015610205575f80fd5b50610220600480360381019061021b919061248b565b610744565b60405161022d91906124e3565b60405180910390f35b348015610241575f80fd5b5061024a610766565b6040516102579190612557565b60405180910390f35b34801561026b575f80fd5b5061027461078b565b604051610281919061257f565b60405180910390f35b348015610295575f80fd5b5061029e610794565b6040516102ab919061257f565b60405180910390f35b3480156102bf575f80fd5b506102c861079a565b005b3480156102d5575f80fd5b506102f060048036038101906102eb91906125c2565b610847565b005b3480156102fd575f80fd5b5061031860048036038101906103139190612600565b6108f5565b60405161032591906124e3565b60405180910390f35b348015610339575f80fd5b50610342610923565b60405161034f919061266b565b60405180910390f35b348015610363575f80fd5b5061036c61092b565b6040516103799190612693565b60405180910390f35b34801561038d575f80fd5b50610396610950565b6040516103a3919061257f565b60405180910390f35b3480156103b7575f80fd5b506103d260048036038101906103cd9190612762565b610956565b005b3480156103df575f80fd5b506103fa60048036038101906103f591906127e0565b610a5e565b005b348015610407575f80fd5b50610422600480360381019061041d9190612859565b610b2a565b005b34801561042f575f80fd5b5061044a60048036038101906104459190612884565b610c73565b005b348015610457575f80fd5b50610472600480360381019061046d91906128af565b610cbc565b60405161047f919061257f565b60405180910390f35b348015610493575f80fd5b5061049c610d01565b005b3480156104a9575f80fd5b506104b2610d14565b6040516104bf9190612693565b60405180910390f35b3480156104d3575f80fd5b506104dc610d39565b6040516104e99190612693565b60405180910390f35b3480156104fd575f80fd5b50610506610d61565b60405161051391906123d6565b60405180910390f35b348015610527575f80fd5b50610530610df1565b60405161053d919061257f565b60405180910390f35b348015610551575f80fd5b5061055a610df7565b604051610567919061257f565b60405180910390f35b34801561057b575f80fd5b5061059660048036038101906105919190612884565b610dfd565b005b3480156105a3575f80fd5b506105be60048036038101906105b9919061248b565b610ed1565b6040516105cb91906124e3565b60405180910390f35b3480156105df575f80fd5b506105e8610ef3565b6040516105f5919061257f565b60405180910390f35b348015610609575f80fd5b50610624600480360381019061061f91906128da565b610ef9565b604051610631919061257f565b60405180910390f35b348015610645575f80fd5b50610660600480360381019061065b91906128da565b610f7b565b005b34801561066d575f80fd5b50610688600480360381019061068391906128af565b61110f565b005b348015610695575f80fd5b5061069e611193565b6040516106ab91906124e3565b60405180910390f35b6060600380546106c390612945565b80601f01602080910402602001604051908101604052809291908181526020018280546106ef90612945565b801561073a5780601f106107115761010080835404028352916020019161073a565b820191905f5260205f20905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b5f8061074e6111a6565b905061075b8185856111ad565b600191505092915050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600254905090565b60095481565b6107a26111bf565b600b60019054906101000a900460ff16156107f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e9906129bf565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055507f44025b4c6266facf728a25ba1ed858c89e2215e03094486152577b87636ea7ab600160405161083d91906124e3565b60405180910390a1565b61084f6111bf565b80600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167fb662f3bfb1735e6cf86c62e0de5e8ded221db1f328a15d104be3fd29977cf23e826040516108e991906124e3565b60405180910390a25050565b5f806108ff6111a6565b905061090c858285611246565b6109178585856112d8565b60019150509392505050565b5f6012905090565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b61095e6111bf565b5f5b84849050811015610a1a5782828281811061097e5761097d6129dd565b5b90506020020160208101906109939190612a0a565b600f5f8787858181106109a9576109a86129dd565b5b90506020020160208101906109be91906128af565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610960565b507fec332beaa25122e2aaf782a4144424379d8b725b55f4656dc18bf72b4050819984848484604051610a509493929190612bad565b60405180910390a150505050565b610a666111bf565b5f8183610a739190612c13565b90505f6064600a54610a859190612c73565b905080821115610aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac190612ced565b60405180910390fd5b83600d8190555082600c81905550606482610ae59190612d0b565b600a819055507f35ad15e7f5e4a16b548e8916bd02c51847dde8d106f334b4edaaacf140e43c91600a54604051610b1c919061257f565b60405180910390a150505050565b610b326111bf565b5f4711610b74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6b90612d96565b60405180910390fd5b5f4790505f8273ffffffffffffffffffffffffffffffffffffffff1682604051610b9d90612de1565b5f6040518083038185875af1925050503d805f8114610bd7576040519150601f19603f3d011682016040523d82523d5f602084013e610bdc565b606091505b5050905080610c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1790612e3f565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c83604051610c66919061257f565b60405180910390a2505050565b610c7b6111bf565b806009819055507fee131fa00e37f4b10e0ad1bffe4a204cdc5e73b4c9bfab1e2de9ae163dde1edc81604051610cb1919061257f565b60405180910390a150565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610d096111bf565b610d125f611865565b565b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610d7090612945565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9c90612945565b8015610de75780601f10610dbe57610100808354040283529160200191610de7565b820191905f5260205f20905b815481529060010190602001808311610dca57829003601f168201915b5050505050905090565b600a5481565b600c5481565b610e056111bf565b5f610e0e61078b565b90505f61271082610e1f9190612c73565b90505f6103e8600584610e329190612d0b565b610e3c9190612c73565b9050818410158015610e4e5750808411155b610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8490612ecd565b60405180910390fd5b836008819055507fd9865007332e13f0dcab58b7d2a784fb5276e18f0c72e90c1a404e88a562898184604051610ec3919061257f565b60405180910390a150505050565b5f80610edb6111a6565b9050610ee88185856112d8565b600191505092915050565b60085481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610f836111bf565b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fbd9190612693565b602060405180830381865afa158015610fd8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ffc9190612eff565b90505f8111611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103790612f74565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b815260040161107b929190612f92565b6020604051808303815f875af1158015611097573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110bb9190612fcd565b508173ffffffffffffffffffffffffffffffffffffffff167f7e2c99819371db0a6fc6f4269fe872496e44f502df19ba3eae594b7a1598746082604051611102919061257f565b60405180910390a2505050565b6111176111bf565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611187575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161117e9190612693565b60405180910390fd5b61119081611865565b50565b600b60019054906101000a900460ff1681565b5f33905090565b6111ba8383836001611928565b505050565b6111c76111a6565b73ffffffffffffffffffffffffffffffffffffffff166111e5610d39565b73ffffffffffffffffffffffffffffffffffffffff1614611244576112086111a6565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161123b9190612693565b60405180910390fd5b565b5f6112518484610ef9565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146112d257818110156112c3578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016112ba93929190612ff8565b60405180910390fd5b6112d184848484035f611928565b5b50505050565b5f811161131a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113119061309d565b60405180910390fd5b600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615806113b75750600f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561140c57600b60019054906101000a900460ff1661140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140290613105565b60405180910390fd5b5b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156114b6575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b80156115095750600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156115735761271060095461151c61078b565b6115269190612d0b565b6115309190612c73565b821115611572576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156990613193565b60405180910390fd5b5b600f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615806116105750600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561164857503073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b156117305760075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116f4575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b801561170157505f600a54115b1561172f57612710600a54836117179190612d0b565b6117219190612c73565b905061172e843083611af7565b5b5b600b5f9054906101000a900460ff16158015611798575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80156117eb5750600f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611849575f6117fa30610cbc565b90506008548110611847575f60056008546118159190612c73565b6008546118229190612c13565b90508082106118395761183481611be7565b611845565b611844600854611be7565b5b505b505b61185f8484838561185a91906131b1565b611af7565b50505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611998575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161198f9190612693565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a08575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016119ff9190612693565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611af1578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611ae8919061257f565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b67575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401611b5e9190612693565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bd7575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401611bce9190612693565b60405180910390fd5b611be2838383611e37565b505050565b600b5f9054906101000a900460ff1615611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d9061322e565b60405180910390fd5b6001600b5f6101000a81548160ff0219169083151502179055505f4790505f6064600a54611c649190612c73565b90505f81600d5485611c769190612d0b565b611c809190612c73565b90505f805f80600c541115611cc85784600c5488611c9e9190612d0b565b611ca89190612c73565b9250600283611cb79190612c73565b91508183611cc591906131b1565b90505b5f8285611cd59190612c13565b9050611ce081612050565b5f8747611ced91906131b1565b90505f828783611cfd9190612d0b565b611d079190612c73565b90505f600c541115611d6f575f8183611d2091906131b1565b9050611d2c8582612286565b7fada09296b37f942dad4a0318731be5f9df8af6bf0364ffc08234b0a7d842186184868385604051611d61949392919061324c565b60405180910390a150611dad565b7fada09296b37f942dad4a0318731be5f9df8af6bf0364ffc08234b0a7d8421861835f8084604051611da494939291906132c8565b60405180910390a15b600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611e11573d5f803e3d5ffd5b505050505050505050505f600b5f6101000a81548160ff02191690831515021790555050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e87578060025f828254611e7b9190612c13565b92505081905550611f55565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611f10578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611f0793929190612ff8565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f9c578060025f8282540392505081905550611fe6565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612043919061257f565b60405180910390a3505050565b5f600267ffffffffffffffff81111561206c5761206b61330b565b5b60405190808252806020026020018201604052801561209a5781602001602082028036833780820191505090505b50905030815f815181106120b1576120b06129dd565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612155573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612179919061334c565b8160018151811061218d5761218c6129dd565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506121f33060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846111ad565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016122559594939291906133f8565b5f604051808303815f87803b15801561226c575f80fd5b505af115801561227e573d5f803e3d5ffd5b505050505050565b6122b23060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846111ad565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f806122fc610d39565b426040518863ffffffff1660e01b815260040161231e96959493929190613450565b60606040518083038185885af115801561233a573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061235f91906134af565b5050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6123a882612366565b6123b28185612370565b93506123c2818560208601612380565b6123cb8161238e565b840191505092915050565b5f6020820190508181035f8301526123ee818461239e565b905092915050565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612427826123fe565b9050919050565b6124378161241d565b8114612441575f80fd5b50565b5f813590506124528161242e565b92915050565b5f819050919050565b61246a81612458565b8114612474575f80fd5b50565b5f8135905061248581612461565b92915050565b5f80604083850312156124a1576124a06123f6565b5b5f6124ae85828601612444565b92505060206124bf85828601612477565b9150509250929050565b5f8115159050919050565b6124dd816124c9565b82525050565b5f6020820190506124f65f8301846124d4565b92915050565b5f819050919050565b5f61251f61251a612515846123fe565b6124fc565b6123fe565b9050919050565b5f61253082612505565b9050919050565b5f61254182612526565b9050919050565b61255181612537565b82525050565b5f60208201905061256a5f830184612548565b92915050565b61257981612458565b82525050565b5f6020820190506125925f830184612570565b92915050565b6125a1816124c9565b81146125ab575f80fd5b50565b5f813590506125bc81612598565b92915050565b5f80604083850312156125d8576125d76123f6565b5b5f6125e585828601612444565b92505060206125f6858286016125ae565b9150509250929050565b5f805f60608486031215612617576126166123f6565b5b5f61262486828701612444565b935050602061263586828701612444565b925050604061264686828701612477565b9150509250925092565b5f60ff82169050919050565b61266581612650565b82525050565b5f60208201905061267e5f83018461265c565b92915050565b61268d8161241d565b82525050565b5f6020820190506126a65f830184612684565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126126cd576126cc6126ac565b5b8235905067ffffffffffffffff8111156126ea576126e96126b0565b5b602083019150836020820283011115612706576127056126b4565b5b9250929050565b5f8083601f840112612722576127216126ac565b5b8235905067ffffffffffffffff81111561273f5761273e6126b0565b5b60208301915083602082028301111561275b5761275a6126b4565b5b9250929050565b5f805f806040858703121561277a576127796123f6565b5b5f85013567ffffffffffffffff811115612797576127966123fa565b5b6127a3878288016126b8565b9450945050602085013567ffffffffffffffff8111156127c6576127c56123fa565b5b6127d28782880161270d565b925092505092959194509250565b5f80604083850312156127f6576127f56123f6565b5b5f61280385828601612477565b925050602061281485828601612477565b9150509250929050565b5f612828826123fe565b9050919050565b6128388161281e565b8114612842575f80fd5b50565b5f813590506128538161282f565b92915050565b5f6020828403121561286e5761286d6123f6565b5b5f61287b84828501612845565b91505092915050565b5f60208284031215612899576128986123f6565b5b5f6128a684828501612477565b91505092915050565b5f602082840312156128c4576128c36123f6565b5b5f6128d184828501612444565b91505092915050565b5f80604083850312156128f0576128ef6123f6565b5b5f6128fd85828601612444565b925050602061290e85828601612444565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061295c57607f821691505b60208210810361296f5761296e612918565b5b50919050565b7f54726164696e6720616c7265616479206f70656e0000000000000000000000005f82015250565b5f6129a9601483612370565b91506129b482612975565b602082019050919050565b5f6020820190508181035f8301526129d68161299d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215612a1f57612a1e6123f6565b5b5f612a2c848285016125ae565b91505092915050565b5f82825260208201905092915050565b5f819050919050565b612a578161241d565b82525050565b5f612a688383612a4e565b60208301905092915050565b5f612a826020840184612444565b905092915050565b5f602082019050919050565b5f612aa18385612a35565b9350612aac82612a45565b805f5b85811015612ae457612ac18284612a74565b612acb8882612a5d565b9750612ad683612a8a565b925050600181019050612aaf565b5085925050509392505050565b5f82825260208201905092915050565b5f819050919050565b612b13816124c9565b82525050565b5f612b248383612b0a565b60208301905092915050565b5f612b3e60208401846125ae565b905092915050565b5f602082019050919050565b5f612b5d8385612af1565b9350612b6882612b01565b805f5b85811015612ba057612b7d8284612b30565b612b878882612b19565b9750612b9283612b46565b925050600181019050612b6b565b5085925050509392505050565b5f6040820190508181035f830152612bc6818688612a96565b90508181036020830152612bdb818486612b52565b905095945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612c1d82612458565b9150612c2883612458565b9250828201905080821115612c4057612c3f612be6565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612c7d82612458565b9150612c8883612458565b925082612c9857612c97612c46565b5b828204905092915050565b7f596f752063616e206f6e6c79206c6f77657220666565730000000000000000005f82015250565b5f612cd7601783612370565b9150612ce282612ca3565b602082019050919050565b5f6020820190508181035f830152612d0481612ccb565b9050919050565b5f612d1582612458565b9150612d2083612458565b9250828202612d2e81612458565b91508282048414831517612d4557612d44612be6565b5b5092915050565b7f4e6f2045544820746f20776974686472617700000000000000000000000000005f82015250565b5f612d80601283612370565b9150612d8b82612d4c565b602082019050919050565b5f6020820190508181035f830152612dad81612d74565b9050919050565b5f81905092915050565b50565b5f612dcc5f83612db4565b9150612dd782612dbe565b5f82019050919050565b5f612deb82612dc1565b9150819050919050565b7f4661696c656420746f2073656e642045746865720000000000000000000000005f82015250565b5f612e29601483612370565b9150612e3482612df5565b602082019050919050565b5f6020820190508181035f830152612e5681612e1d565b9050919050565b7f536e4c205468726573686f6c64206d7573742062652077697468696e207468655f8201527f20616c6c6f7765642072616e6765000000000000000000000000000000000000602082015250565b5f612eb7602e83612370565b9150612ec282612e5d565b604082019050919050565b5f6020820190508181035f830152612ee481612eab565b9050919050565b5f81519050612ef981612461565b92915050565b5f60208284031215612f1457612f136123f6565b5b5f612f2184828501612eeb565b91505092915050565b7f4e6f7420656e6f75676820746f6b656e7320696e20636f6e74726163740000005f82015250565b5f612f5e601d83612370565b9150612f6982612f2a565b602082019050919050565b5f6020820190508181035f830152612f8b81612f52565b9050919050565b5f604082019050612fa55f830185612684565b612fb26020830184612570565b9392505050565b5f81519050612fc781612598565b92915050565b5f60208284031215612fe257612fe16123f6565b5b5f612fef84828501612fb9565b91505092915050565b5f60608201905061300b5f830186612684565b6130186020830185612570565b6130256040830184612570565b949350505050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e20300000000000000000000000000000000000000000000000000000602082015250565b5f613087602683612370565b91506130928261302d565b604082019050919050565b5f6020820190508181035f8301526130b48161307b565b9050919050565b7f54726164696e6720436c6f7365640000000000000000000000000000000000005f82015250565b5f6130ef600e83612370565b91506130fa826130bb565b602082019050919050565b5f6020820190508181035f83015261311c816130e3565b9050919050565b7f416d6f756e742065786365656473206d617820707572636861736520616d6f755f8201527f6e742e0000000000000000000000000000000000000000000000000000000000602082015250565b5f61317d602383612370565b915061318882613123565b604082019050919050565b5f6020820190508181035f8301526131aa81613171565b9050919050565b5f6131bb82612458565b91506131c683612458565b92508282039050818111156131de576131dd612be6565b5b92915050565b7f43757272656e746c7920696e207377617020616e64206c6971756966790000005f82015250565b5f613218601d83612370565b9150613223826131e4565b602082019050919050565b5f6020820190508181035f8301526132458161320c565b9050919050565b5f60808201905061325f5f830187612570565b61326c6020830186612570565b6132796040830185612570565b6132866060830184612570565b95945050505050565b5f819050919050565b5f6132b26132ad6132a88461328f565b6124fc565b612458565b9050919050565b6132c281613298565b82525050565b5f6080820190506132db5f830187612570565b6132e860208301866132b9565b6132f560408301856132b9565b6133026060830184612570565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f815190506133468161242e565b92915050565b5f60208284031215613361576133606123f6565b5b5f61336e84828501613338565b91505092915050565b5f81519050919050565b5f819050602082019050919050565b5f602082019050919050565b5f6133a682613377565b6133b08185612a35565b93506133bb83613381565b805f5b838110156133eb5781516133d28882612a5d565b97506133dd83613390565b9250506001810190506133be565b5085935050505092915050565b5f60a08201905061340b5f830188612570565b61341860208301876132b9565b818103604083015261342a818661339c565b90506134396060830185612684565b6134466080830184612570565b9695505050505050565b5f60c0820190506134635f830189612684565b6134706020830188612570565b61347d60408301876132b9565b61348a60608301866132b9565b6134976080830185612684565b6134a460a0830184612570565b979650505050505050565b5f805f606084860312156134c6576134c56123f6565b5b5f6134d386828701612eeb565b93505060206134e486828701612eeb565b92505060406134f586828701612eeb565b915050925092509256fea2646970667358221220f5b0006c034fb03ffa209e5611a97cbc054cca98336d7ae996cbc13a61c5263864736f6c634300081a0033
Verified Source Code Partial Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
IntelX.sol 1155 lines
/*
Introducing Intel X, the first suite of trading tools for X.
https://t.me/intelxtools
https://x.com/intelxtools
https://intelx.site
*/
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol
pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
// File: contracts/IntelXToken.sol
contract IntelX is ERC20, Ownable {
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
uint public swapAndLiqThreshold;
uint public purchaseLimit;
uint public buySellTax;
bool private inSwapAndLiquify;
bool public tradingOpen;
uint256 public liquidityFee;
uint256 public ethFee;
address public marketingWallet;
mapping (address => bool) private _isExcludedFromLimit;
event ExcludeFromLimitation(address indexed account, bool isExcluded);
event BatchExcludeFromLimitation(address[] account, bool[] isExcluded);
event SwapAndLiquified(uint256 tokensSwapped, uint256 tokensForLiquidity, uint256 ethForLiquidity, uint256 ethForMarketing);
event TaxUpdated(uint taxPercent);
event PurchaseLimitUpdated(uint limitPercent);
event SwapAndLiqThresholdSet(uint256 amount);
event ETHWithdrawn(address indexed to, uint256 amount);
event ERC20Withdrawn(address indexed to, uint256 amount);
event TradingStatusUpdated(bool status);
modifier lockTheSwap {
require(!inSwapAndLiquify, "Currently in swap and liquify");
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor(
address _router,
uint256 _buySellTax,
uint256 __ethFeeInPercent,
uint256 __liquidityFeeInPercent,
uint256 __purchaseLimit,
address _marketingWallet) ERC20(
"Intel X",
"INTEL") Ownable(msg.sender) {
_mint(_msgSender(), 1e6 ether);
marketingWallet = payable(_marketingWallet);
address uniswapRouter = _router;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uniswapRouter);
IUniswapV2Factory _uniswapFactory = IUniswapV2Factory(_uniswapV2Router.factory());
ethFee = __ethFeeInPercent;
liquidityFee = __liquidityFeeInPercent;
address _uniswapV2Pair = _uniswapFactory.createPair(
address(this),
_uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = _uniswapV2Pair;
buySellTax = _buySellTax;
purchaseLimit = __purchaseLimit;
swapAndLiqThreshold = 3e3 ether;
excludeFromLimitation(uniswapV2Pair, true);
excludeFromLimitation(address(uniswapRouter), true);
excludeFromLimitation(_msgSender(), true);
excludeFromLimitation(address(this), true);
}
receive() external payable {}
function swapAndLiquify(uint256 toSwapLiquidity) private lockTheSwap {
uint256 initialBalance = address(this).balance;
uint256 totalFee = buySellTax / 100;
uint256 forETH = toSwapLiquidity * ethFee / totalFee;
uint256 forLiquidity = 0;
uint256 tokensToSellForLiq = 0;
uint256 tokensToAddLiq = 0;
if (liquidityFee > 0) {
forLiquidity = toSwapLiquidity * liquidityFee / totalFee;
tokensToSellForLiq = forLiquidity / 2;
tokensToAddLiq = forLiquidity - tokensToSellForLiq;
}
uint256 toSwap = forETH + tokensToSellForLiq;
swapTokensForETH(toSwap);
uint256 updatedBalance = address(this).balance - initialBalance;
uint256 ethForMarketing = updatedBalance * forETH / toSwap;
if (liquidityFee > 0) {
uint256 ethForLiquidity = updatedBalance - ethForMarketing;
addLiquidity(tokensToAddLiq, ethForLiquidity);
emit SwapAndLiquified(toSwap, tokensToAddLiq, ethForLiquidity, ethForMarketing);
} else {
emit SwapAndLiquified(toSwap, 0, 0, ethForMarketing);
}
payable(marketingWallet).transfer(ethForMarketing);
}
function addLiquidity(
uint256 tokenAmount,
uint256 ethAmount) private {
_approve(
address(this),
address(uniswapV2Router),
tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
owner(),
block.timestamp
);
}
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,
address(this),
block.timestamp
);
}
function _transfer(
address from,
address to,
uint256 amount) internal override {
require(amount > 0, "Transfer amount must be greater than 0");
if(!_isExcludedFromLimit[from] || !_isExcludedFromLimit[to]) {
require(tradingOpen, "Trading Closed");
}
uint256 taxAmount = 0;
if (from == uniswapV2Pair && to != address(uniswapV2Router) && !_isExcludedFromLimit[to]) {
require(amount <= totalSupply() * purchaseLimit / 1e4, "Amount exceeds max purchase amount.");
}
if((!_isExcludedFromLimit[from] || !_isExcludedFromLimit[to]) && from != address(this)){
if((from == uniswapV2Pair || to == uniswapV2Pair) && buySellTax > 0){
taxAmount = amount * buySellTax / 1e4;
super._transfer(from, address(this), taxAmount);
}
}
if (!inSwapAndLiquify && to == uniswapV2Pair && !_isExcludedFromLimit[from]) {
uint256 balance = balanceOf(address(this));
if(balance >= swapAndLiqThreshold) {
uint256 maxSwapAndLiq = swapAndLiqThreshold + (swapAndLiqThreshold / 5);
if(balance >= maxSwapAndLiq){
swapAndLiquify(maxSwapAndLiq);
}
else {
swapAndLiquify(swapAndLiqThreshold);
}
}
}
super._transfer(from, to, (amount-taxAmount));
}
function setSellBuyTax(
uint forMarketingInPercentage,
uint forLiquidityInPercentage) external onlyOwner {
uint256 taxInPercentage = forMarketingInPercentage + forLiquidityInPercentage;
uint256 currentTaxInPercentage = buySellTax / 100;
require(taxInPercentage <= currentTaxInPercentage, "You can only lower fees");
ethFee = forMarketingInPercentage;
liquidityFee = forLiquidityInPercentage;
buySellTax = taxInPercentage * 100;
emit TaxUpdated(buySellTax);
}
function setTradingOpen() external onlyOwner {
require(!tradingOpen, "Trading already open");
tradingOpen = true;
emit TradingStatusUpdated(true);
}
function setPurchaseLimit(uint _limit) external onlyOwner {
purchaseLimit = _limit;
emit PurchaseLimitUpdated(_limit);
}
function setSwapThreshold(uint256 amount) public onlyOwner {
uint256 currentTotalSupply = totalSupply();
uint256 minSwapAndLiqThreshold = currentTotalSupply / 10000;
uint256 maxSwapAndLiqThreshold = currentTotalSupply * 5 / 1000;
require(amount >= minSwapAndLiqThreshold && amount <= maxSwapAndLiqThreshold, "SnL Threshold must be within the allowed range");
swapAndLiqThreshold = amount;
emit SwapAndLiqThresholdSet(amount);
}
function excludeFromLimitation(
address account,
bool excluded) public onlyOwner {
_isExcludedFromLimit[account] = excluded;
emit ExcludeFromLimitation(account, excluded);
}
function batchExcludeFromLimitation(
address[] calldata account,
bool[] calldata excluded) public onlyOwner {
for(uint i = 0 ; i < account.length ; i ++) {
_isExcludedFromLimit[account[i]] = excluded[i];
}
emit BatchExcludeFromLimitation(account, excluded);
}
function withdrawETH(address payable _to) external onlyOwner {
require(address(this).balance > 0, "No ETH to withdraw");
uint256 amount = address(this).balance;
(bool sent, ) = _to.call{value: amount}("");
require(sent, "Failed to send Ether");
emit ETHWithdrawn(_to, amount);
}
function withdrawERC20Token(
address token,
address to) public onlyOwner {
uint256 balance = IERC20(address(token)).balanceOf(address(this));
require(balance > 0, "Not enough tokens in contract");
IERC20(address(token)).transfer(to, balance);
emit ERC20Withdrawn(to, balance);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buySellTax 0x96e1c7d1 → uint256
decimals 0x313ce567 → uint8
ethFee 0x4cf1115d → uint256
liquidityFee 0x98118cb4 → uint256
marketingWallet 0x75f0a874 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
purchaseLimit 0x18886657 → uint256
swapAndLiqThreshold 0xb62f6e04 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 13 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
batchExcludeFromLimitation 0x5e7f2dc1
address[] account
bool[] excluded
excludeFromLimitation 0x2333f9f1
address account
bool excluded
renounceOwnership 0x715018a6
No parameters
setPurchaseLimit 0x6edc4388
uint256 _limit
setSellBuyTax 0x61231f77
uint256 forMarketingInPercentage
uint256 forLiquidityInPercentage
setSwapThreshold 0x9d0014b1
uint256 amount
setTradingOpen 0x1eed1ac8
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawERC20Token 0xecfbe70c
address token
address to
withdrawETH 0x690d8320
address _to
Recent Transactions
This address has 1 on-chain transactions, but only 0.9% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →