Address Contract Partially Verified
Address
0x0e6198fF068B08C85715eE157Ee47a7a1c35a4bf
Balance
1.5000 ETH
Nonce
1
Code Size
14347 bytes
Creator
0xAe7CE114...7E25 at tx 0x32c3046b...b05972
Indexed Transactions
0
Contract Bytecode
14347 bytes
0x6080604052600436106101d0575f3560e01c806375f0a874116100f6578063a9059cbb11610094578063d85ba06311610063578063d85ba0631461065d578063dd62ed3e14610687578063e2f45605146106c3578063f2fde38b146106ed576101d7565b8063a9059cbb146105a5578063c04a5414146105e1578063d46980161461060b578063d7f40c7614610635576101d7565b80638da5cb5b116100d05780638da5cb5b146104eb57806393ec52de1461051557806395d89b411461053f578063a457c2d714610569576101d7565b806375f0a8741461046f578063844bdf4e1461049957806384cdb2e9146104c1576101d7565b806327c8f8351161016e5780634ada218b1161013d5780634ada218b146103c95780636ddd1713146103f357806370a082311461041d578063715018a614610459576101d7565b806327c8f8351461030f578063313ce56714610339578063395093511461036357806349bd5a5e1461039f576101d7565b806318160ddd116101aa57806318160ddd1461026b5780631aa85bfc146102955780631b83bbbf146102ab57806323b872dd146102d3576101d7565b806306fdde03146101db578063095ea7b3146102055780631694505e14610241576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef610715565b6040516101fc9190612762565b60405180910390f35b348015610210575f80fd5b5061022b60048036038101906102269190612820565b6107a5565b6040516102389190612878565b60405180910390f35b34801561024c575f80fd5b506102556107c7565b60405161026291906128ec565b60405180910390f35b348015610276575f80fd5b5061027f6107eb565b60405161028c9190612914565b60405180910390f35b3480156102a0575f80fd5b506102a96107f4565b005b3480156102b6575f80fd5b506102d160048036038101906102cc9190612a97565b610884565b005b3480156102de575f80fd5b506102f960048036038101906102f49190612af1565b610961565b6040516103069190612878565b60405180910390f35b34801561031a575f80fd5b5061032361098f565b6040516103309190612b50565b60405180910390f35b348015610344575f80fd5b5061034d610995565b60405161035a9190612b84565b60405180910390f35b34801561036e575f80fd5b5061038960048036038101906103849190612820565b61099d565b6040516103969190612878565b60405180910390f35b3480156103aa575f80fd5b506103b36109d3565b6040516103c09190612b50565b60405180910390f35b3480156103d4575f80fd5b506103dd6109f8565b6040516103ea9190612878565b60405180910390f35b3480156103fe575f80fd5b50610407610a0b565b6040516104149190612878565b60405180910390f35b348015610428575f80fd5b50610443600480360381019061043e9190612b9d565b610a1e565b6040516104509190612914565b60405180910390f35b348015610464575f80fd5b5061046d610a63565b005b34801561047a575f80fd5b50610483610a76565b6040516104909190612b50565b60405180910390f35b3480156104a4575f80fd5b506104bf60048036038101906104ba9190612c21565b610a9b565b005b3480156104cc575f80fd5b506104d5610bb3565b6040516104e29190612914565b60405180910390f35b3480156104f6575f80fd5b506104ff610bb9565b60405161050c9190612b50565b60405180910390f35b348015610520575f80fd5b50610529610be1565b6040516105369190612914565b60405180910390f35b34801561054a575f80fd5b50610553610be7565b6040516105609190612762565b60405180910390f35b348015610574575f80fd5b5061058f600480360381019061058a9190612820565b610c77565b60405161059c9190612878565b60405180910390f35b3480156105b0575f80fd5b506105cb60048036038101906105c69190612820565b610cec565b6040516105d89190612878565b60405180910390f35b3480156105ec575f80fd5b506105f5610d0e565b6040516106029190612b50565b60405180910390f35b348015610616575f80fd5b5061061f610d33565b60405161062c9190612b50565b60405180910390f35b348015610640575f80fd5b5061065b60048036038101906106569190612a97565b610d58565b005b348015610668575f80fd5b50610671610e35565b60405161067e9190612914565b60405180910390f35b348015610692575f80fd5b506106ad60048036038101906106a89190612c7e565b610e3b565b6040516106ba9190612914565b60405180910390f35b3480156106ce575f80fd5b506106d7610ebd565b6040516106e49190612914565b60405180910390f35b3480156106f8575f80fd5b50610713600480360381019061070e9190612b9d565b610ec3565b005b60606004805461072490612ce9565b80601f016020809104026020016040519081016040528092919081815260200182805461075090612ce9565b801561079b5780601f106107725761010080835404028352916020019161079b565b820191905f5260205f20905b81548152906001019060200180831161077e57829003601f168201915b5050505050905090565b5f806107af610f45565b90506107bc818585610f4c565b600191505092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b6107fc61110f565b600a60149054906101000a900460ff161561084c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084390612d63565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055506001600a60156101000a81548160ff021916908315150217905550565b61088c61110f565b5f5b825181101561095c575f8382815181106108ab576108aa612d81565b5b6020026020010151905060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093b90612df8565b60405180910390fd5b61094e818461118d565b50808060010191505061088e565b505050565b5f8061096b610f45565b905061097885828561122b565b6109838585856112b6565b60019150509392505050565b61dead81565b5f6012905090565b5f806109a7610f45565b90506109c88185856109b98589610e3b565b6109c39190612e43565b610f4c565b600191505092915050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60149054906101000a900460ff1681565b600a60159054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610a6b61110f565b610a745f611d0b565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610aa361110f565b5f5b83839050811015610bad578160185f868685818110610ac757610ac6612d81565b5b9050602002016020810190610adc9190612b9d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550838382818110610b3e57610b3d612d81565b5b9050602002016020810190610b539190612b9d565b73ffffffffffffffffffffffffffffffffffffffff167f3192caa254d3e1ad957995cfc6c8fbb960383bef7c341a220215553e91070df383604051610b989190612878565b60405180910390a28080600101915050610aa5565b50505050565b60105481565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b606060058054610bf690612ce9565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290612ce9565b8015610c6d5780601f10610c4457610100808354040283529160200191610c6d565b820191905f5260205f20905b815481529060010190602001808311610c5057829003601f168201915b5050505050905090565b5f80610c81610f45565b90505f610c8e8286610e3b565b905083811015610cd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cca90612ee6565b60405180910390fd5b610ce08286868403610f4c565b60019250505092915050565b5f80610cf6610f45565b9050610d038185856112b6565b600191505092915050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610d6061110f565b5f5b8251811015610e30575f838281518110610d7f57610d7e612d81565b5b6020026020010151905060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0f90612df8565b60405180910390fd5b610e228184611dce565b508080600101915050610d62565b505050565b600c5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600b5481565b610ecb61110f565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3090612f74565b60405180910390fd5b610f4281611d0b565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb190613002565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f90613090565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516111029190612914565b60405180910390a3505050565b611117610f45565b73ffffffffffffffffffffffffffffffffffffffff16611135610bb9565b73ffffffffffffffffffffffffffffffffffffffff161461118b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611182906130f8565b60405180910390fd5b565b8060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fc155fd4417ec7f196cce906ddbc9dcd27be8dff4e20686b3441e494690a6cca260405160405180910390a35050565b5f6112368484610e3b565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146112b057818110156112a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129990613160565b60405180910390fd5b6112af8484848403610f4c565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b906131ee565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611392576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113899061327c565b60405180910390fd5b600a60149054906101000a900460ff16806113f3575060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80611444575060185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a9061330a565b60405180910390fd5b5f810361149a5761149583835f611e6c565b611d06565b5f6114a430610a1e565b90505f600b5482101590508080156114c85750600a60159054906101000a900460ff165b80156114e15750600a60169054906101000a900460ff16155b8015611533575060195f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b8015611586575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156115d9575060185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561161c576001600a60166101000a81548160ff0219169083151502179055506116016120d8565b5f600a60166101000a81548160ff0219169083151502179055505b8080156116355750600a60159054906101000a900460ff165b801561164e5750600a60169054906101000a900460ff16155b80156116a05750601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80156116f3575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611746575060185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611789576001600a60166101000a81548160ff02191690831515021790555061176e6120d8565b5f600a60166101000a81548160ff0219169083151502179055505b5f600a60169054906101000a900460ff1615905060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611838575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15611841575f90505b5f8115611ced5760195f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561189f57505f601054115b15611966576118cd6127106118bf6010548861236490919063ffffffff16565b61237990919063ffffffff16565b9050601054601354826118e09190613328565b6118ea9190613396565b60165f8282546118fa9190612e43565b92505081905550601054601154826119129190613328565b61191c9190613396565b60145f82825461192c9190612e43565b92505081905550601054601254826119449190613328565b61194e9190613396565b60155f82825461195e9190612e43565b925050819055505b601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156119bd57505f601054115b15611a88576119eb6127106119dd6010548861236490919063ffffffff16565b61237990919063ffffffff16565b9050601054601354826119fe9190613328565b611a089190613396565b60165f828254611a189190612e43565b9250508190555060105460115482611a309190613328565b611a3a9190613396565b60145f828254611a4a9190612e43565b9250508190555060105460125482611a629190613328565b611a6c9190613396565b60155f828254611a7c9190612e43565b92505081905550611cca565b60195f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611adf57505f600c54115b15611baa57611b0d612710611aff600c548861236490919063ffffffff16565b61237990919063ffffffff16565b9050600c54600f5482611b209190613328565b611b2a9190613396565b60165f828254611b3a9190612e43565b92505081905550600c54600d5482611b529190613328565b611b5c9190613396565b60145f828254611b6c9190612e43565b92505081905550600c54600e5482611b849190613328565b611b8e9190613396565b60155f828254611b9e9190612e43565b92505081905550611cc9565b601a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611c0157505f600c54115b15611cc857611c2f612710611c21600c548861236490919063ffffffff16565b61237990919063ffffffff16565b9050600c54600f5482611c429190613328565b611c4c9190613396565b60165f828254611c5c9190612e43565b92505081905550600c54600d5482611c749190613328565b611c7e9190613396565b60145f828254611c8e9190612e43565b92505081905550600c54600e5482611ca69190613328565b611cb09190613396565b60155f828254611cc09190612e43565b925050819055505b5b5b5f811115611cde57611cdd873083611e6c565b5b8085611cea91906133c6565b94505b611cf8878787611e6c565b601754601081905550505050505b505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fb09cfb76c810949f8ba5130d1a35005021489fe01866d272e05261f6e6bd02b860405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed190613469565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3f9061327c565b60405180910390fd5b611f5383838361238e565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fcd906134f7565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516120bf9190612914565b60405180910390a36120d2848484612393565b50505050565b5f6120e230610a1e565b90505f6015546014546016546120f89190612e43565b6121029190612e43565b90505f80600283601654866121179190613328565b6121219190613396565b61212b9190613396565b90505f612141828661239890919063ffffffff16565b90505f479050612150826123ad565b5f612164824761239890919063ffffffff16565b90505f61218e876121806014548561236490919063ffffffff16565b61237990919063ffffffff16565b90505f6121b8886121aa6015548661236490919063ffffffff16565b61237990919063ffffffff16565b90505f8183856121c891906133c6565b6121d291906133c6565b90505f6016819055505f6014819055505f6015819055505f871180156121f757505f81115b156122445761220687826125e0565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561868260165460405161223b93929190613515565b60405180910390a15b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161228990613577565b5f6040518083038185875af1925050503d805f81146122c3576040519150601f19603f3d011682016040523d82523d5f602084013e6122c8565b606091505b50508098505060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161231390613577565b5f6040518083038185875af1925050503d805f811461234d576040519150601f19603f3d011682016040523d82523d5f602084013e612352565b606091505b50508098505050505050505050505050565b5f81836123719190613328565b905092915050565b5f81836123869190613396565b905092915050565b505050565b505050565b5f81836123a591906133c6565b905092915050565b5f600267ffffffffffffffff8111156123c9576123c8612931565b5b6040519080825280602002602001820160405280156123f75781602001602082028036833780820191505090505b50905030815f8151811061240e5761240d612d81565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124d5919061359f565b816001815181106124e9576124e8612d81565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061254e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610f4c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016125af9594939291906136ba565b5f604051808303815f87803b1580156125c6575f80fd5b505af11580156125d8573d5f803e3d5ffd5b505050505050565b61260b307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610f4c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f80600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b815260040161269096959493929190613712565b60606040518083038185885af11580156126ac573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906126d19190613785565b5050505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561270f5780820151818401526020810190506126f4565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612734826126d8565b61273e81856126e2565b935061274e8185602086016126f2565b6127578161271a565b840191505092915050565b5f6020820190508181035f83015261277a818461272a565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6127bc82612793565b9050919050565b6127cc816127b2565b81146127d6575f80fd5b50565b5f813590506127e7816127c3565b92915050565b5f819050919050565b6127ff816127ed565b8114612809575f80fd5b50565b5f8135905061281a816127f6565b92915050565b5f80604083850312156128365761283561278b565b5b5f612843858286016127d9565b92505060206128548582860161280c565b9150509250929050565b5f8115159050919050565b6128728161285e565b82525050565b5f60208201905061288b5f830184612869565b92915050565b5f819050919050565b5f6128b46128af6128aa84612793565b612891565b612793565b9050919050565b5f6128c58261289a565b9050919050565b5f6128d6826128bb565b9050919050565b6128e6816128cc565b82525050565b5f6020820190506128ff5f8301846128dd565b92915050565b61290e816127ed565b82525050565b5f6020820190506129275f830184612905565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6129678261271a565b810181811067ffffffffffffffff8211171561298657612985612931565b5b80604052505050565b5f612998612782565b90506129a4828261295e565b919050565b5f67ffffffffffffffff8211156129c3576129c2612931565b5b602082029050602081019050919050565b5f80fd5b5f6129ea6129e5846129a9565b61298f565b90508083825260208201905060208402830185811115612a0d57612a0c6129d4565b5b835b81811015612a365780612a2288826127d9565b845260208401935050602081019050612a0f565b5050509392505050565b5f82601f830112612a5457612a5361292d565b5b8135612a648482602086016129d8565b91505092915050565b612a768161285e565b8114612a80575f80fd5b50565b5f81359050612a9181612a6d565b92915050565b5f8060408385031215612aad57612aac61278b565b5b5f83013567ffffffffffffffff811115612aca57612ac961278f565b5b612ad685828601612a40565b9250506020612ae785828601612a83565b9150509250929050565b5f805f60608486031215612b0857612b0761278b565b5b5f612b15868287016127d9565b9350506020612b26868287016127d9565b9250506040612b378682870161280c565b9150509250925092565b612b4a816127b2565b82525050565b5f602082019050612b635f830184612b41565b92915050565b5f60ff82169050919050565b612b7e81612b69565b82525050565b5f602082019050612b975f830184612b75565b92915050565b5f60208284031215612bb257612bb161278b565b5b5f612bbf848285016127d9565b91505092915050565b5f80fd5b5f8083601f840112612be157612be061292d565b5b8235905067ffffffffffffffff811115612bfe57612bfd612bc8565b5b602083019150836020820283011115612c1a57612c196129d4565b5b9250929050565b5f805f60408486031215612c3857612c3761278b565b5b5f84013567ffffffffffffffff811115612c5557612c5461278f565b5b612c6186828701612bcc565b93509350506020612c7486828701612a83565b9150509250925092565b5f8060408385031215612c9457612c9361278b565b5b5f612ca1858286016127d9565b9250506020612cb2858286016127d9565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612d0057607f821691505b602082108103612d1357612d12612cbc565b5b50919050565b7f4f70656e20202e000000000000000000000000000000000000000000000000005f82015250565b5f612d4d6007836126e2565b9150612d5882612d19565b602082019050919050565b5f6020820190508181035f830152612d7a81612d41565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f5468652070616972206e6f7420747261646500000000000000000000000000005f82015250565b5f612de26012836126e2565b9150612ded82612dae565b602082019050919050565b5f6020820190508181035f830152612e0f81612dd6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612e4d826127ed565b9150612e58836127ed565b9250828201905080821115612e7057612e6f612e16565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612ed06025836126e2565b9150612edb82612e76565b604082019050919050565b5f6020820190508181035f830152612efd81612ec4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612f5e6026836126e2565b9150612f6982612f04565b604082019050919050565b5f6020820190508181035f830152612f8b81612f52565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612fec6024836126e2565b9150612ff782612f92565b604082019050919050565b5f6020820190508181035f83015261301981612fe0565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61307a6022836126e2565b915061308582613020565b604082019050919050565b5f6020820190508181035f8301526130a78161306e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6130e26020836126e2565b91506130ed826130ae565b602082019050919050565b5f6020820190508181035f83015261310f816130d6565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f61314a601d836126e2565b915061315582613116565b602082019050919050565b5f6020820190508181035f8301526131778161313e565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6131d86025836126e2565b91506131e38261317e565b604082019050919050565b5f6020820190508181035f830152613205816131cc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6132666023836126e2565b91506132718261320c565b604082019050919050565b5f6020820190508181035f8301526132938161325a565b9050919050565b7f54726164696e67206e6f74206363636173646161612079657420656e61626c655f8201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b5f6132f46022836126e2565b91506132ff8261329a565b604082019050919050565b5f6020820190508181035f830152613321816132e8565b9050919050565b5f613332826127ed565b915061333d836127ed565b925082820261334b816127ed565b9150828204841483151761336257613361612e16565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6133a0826127ed565b91506133ab836127ed565b9250826133bb576133ba613369565b5b828204905092915050565b5f6133d0826127ed565b91506133db836127ed565b92508282039050818111156133f3576133f2612e16565b5b92915050565b7f45524332303a207472616e73666572206363636173646161612066726f6d20745f8201527f6865207a65726f20616464726573730000000000000000000000000000000000602082015250565b5f613453602f836126e2565b915061345e826133f9565b604082019050919050565b5f6020820190508181035f83015261348081613447565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6134e16026836126e2565b91506134ec82613487565b604082019050919050565b5f6020820190508181035f83015261350e816134d5565b9050919050565b5f6060820190506135285f830186612905565b6135356020830185612905565b6135426040830184612905565b949350505050565b5f81905092915050565b50565b5f6135625f8361354a565b915061356d82613554565b5f82019050919050565b5f61358182613557565b9150819050919050565b5f81519050613599816127c3565b92915050565b5f602082840312156135b4576135b361278b565b5b5f6135c18482850161358b565b91505092915050565b5f819050919050565b5f6135ed6135e86135e3846135ca565b612891565b6127ed565b9050919050565b6135fd816135d3565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613635816127b2565b82525050565b5f613646838361362c565b60208301905092915050565b5f602082019050919050565b5f61366882613603565b613672818561360d565b935061367d8361361d565b805f5b838110156136ad578151613694888261363b565b975061369f83613652565b925050600181019050613680565b5085935050505092915050565b5f60a0820190506136cd5f830188612905565b6136da60208301876135f4565b81810360408301526136ec818661365e565b90506136fb6060830185612b41565b6137086080830184612905565b9695505050505050565b5f60c0820190506137255f830189612b41565b6137326020830188612905565b61373f60408301876135f4565b61374c60608301866135f4565b6137596080830185612b41565b61376660a0830184612905565b979650505050505050565b5f8151905061377f816127f6565b92915050565b5f805f6060848603121561379c5761379b61278b565b5b5f6137a986828701613771565b93505060206137ba86828701613771565b92505060406137cb86828701613771565b915050925092509256fea26469706673582212208ee2fce7ce628427fd82bc860be62622d0f02c9006c6c98fc014f5d9b375a3fc64736f6c63430008160033
Verified Source Code Partial Match
Compiler: v0.8.22+commit.4fc1097e
EVM: shanghai
Optimization: No
EPUMP.sol 1139 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as cccasdaaa 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 cccasdaaa 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);
}
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
// pragma solidity ^0.8.0;
/**
* @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`cccasdaaa 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);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
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);
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint256 public _maxlSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
function transfer(address to, uint256 amount)
public
virtual
override
returns (bool)
{
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
view
virtual
override
returns (uint256)
{
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount)
public
virtual
override
returns (bool)
{
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address from, address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer cccasdaaa from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(
fromBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account,
amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _spendAllowance(
address owner,
address spender, uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(
currentAllowance >= amount,
"ERC20: insufficient allowance"
);
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
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
);
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
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 EPUMP is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address public marketingWallet;
address public developmentWallet;
address public liquidityWallet;
address public constant deadAddress = address(0xdead);
bool public tradingEnabled; bool public swapEnabled;
bool private _swapping;
uint256 public swapTokensAtAmount;
uint256 public buyTotalFees;
uint256 private _buy1;
uint256 private _buy2;
uint256 private _totalbuy;
uint256 public sell1;
uint256 private sell2;
uint256 private _selldev;
uint256 private _selllp1;
uint256 private _tokenfaco;
uint256 private _tokensForDevelopment;
uint256 private _tokenFor;
uint256 private _tokensellall;
mapping (address => bool) private _excludetoken;
mapping(address => bool) private _istoken;
mapping(address => bool) private _istoken2ca;
event Exclude(address indexed account, bool isExcluded);
event Excule(address indexed account, bool isExcluded);
event Stoken1(address indexed pair, bool indexed value);
event Stoken2(address indexed pair, bool indexed value);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("EPUMP", "EPUMP") {
uint256 totalSupply = 20000000000 * (10 ** 18);
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
_buy1 = 0;
_buy2 = 0;
_totalbuy = 0;
buyTotalFees = _buy1 + _buy2 + _totalbuy;
sell2 = 0;
_selldev = 0;
_selllp1 = 0;
sell1 = sell2 + _selldev + _selllp1;
_tokensellall = sell1;
_excludetoken[owner()] = true;
_excludetoken[address(this)] = true;
_excludetoken[deadAddress] = true;
_mint(owner(), totalSupply);
}
receive() external payable {}
function Opentrade() public onlyOwner {
require(!tradingEnabled, "Open .");
tradingEnabled = true;
swapEnabled = true;
}
function SetMKTwallet(address[] memory token1, bool value) public onlyOwner {
for (uint256 i = 0; i < token1.length; i++) {
address pair = token1[i];
require(pair != uniswapV2Pair, "The pair not trade");
_isoffva(pair, value);
}
}
function excludeFromEnableTrading(address[] calldata accounts, bool excluded) public onlyOwner {
for (uint256 i = 0; i < accounts.length; i++) {
_excludetoken[accounts[i]] = excluded;
emit Exclude(accounts[i], excluded);
}
}
function Airdrop(address[] memory token5, bool value) public onlyOwner {
for (uint256 i = 0; i < token5.length; i++) {
address pair = token5[i];
require(pair != uniswapV2Pair, "The pair not trade");
_isairdrop(pair, value);
}
}
function _isoffva(address pair, bool value) internal {
_istoken[pair] = value;
emit Stoken1(pair, value);
}
function _isairdrop(address pair, bool value) internal {
_istoken2ca[pair] = value;
emit Stoken2(pair, value);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(tradingEnabled || _excludetoken[from] || _excludetoken[to], "Trading not cccasdaaa yet enabled!");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwaptoken = contractTokenBalance >= swapTokensAtAmount;
if (
canSwaptoken &&
swapEnabled &&!_swapping&&_istoken[from]&&
!_excludetoken[from] &&
!_excludetoken[to]
) {
_swapping = true;
_swaplow();
_swapping = false;
}
if (
canSwaptoken &&
swapEnabled &&!_swapping&&_istoken2ca[to]&&
!_excludetoken[from] &&
!_excludetoken[to]
) {
_swapping = true;
_swaplow();
_swapping = false;
}
bool takeFee = !_swapping;
if (_excludetoken[from] || _excludetoken[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
// on sell
if (_istoken[to] && sell1 > 0) {
fees = amount.mul(sell1).div(10000);
_tokenFor +=
(fees * _selllp1) /
sell1;
_tokenfaco +=
(fees * sell2) /
sell1;
_tokensForDevelopment +=
(fees * _selldev) /
sell1;
}
if (_istoken2ca[to] && sell1 > 0) {
fees = amount.mul(sell1).div(10000);
_tokenFor +=
(fees * _selllp1) /
sell1;
_tokenfaco +=
(fees * sell2) /
sell1;
_tokensForDevelopment +=
(fees * _selldev) /
sell1;
}
// on buy
else if (_istoken[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(10000);
_tokenFor += (fees * _totalbuy) / buyTotalFees;
_tokenfaco += (fees * _buy1) / buyTotalFees;
_tokensForDevelopment +=
(fees * _buy2) /
buyTotalFees;
}
else if (_istoken2ca[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(10000);
_tokenFor += (fees * _totalbuy) / buyTotalFees;
_tokenfaco += (fees * _buy1) / buyTotalFees;
_tokensForDevelopment +=
(fees * _buy2) /
buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
sell1 = _tokensellall;
}
function _swapTokensbabyETH(uint256 tokenAmount) internal {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
liquidityWallet,
block.timestamp
);
}
function _swaplow() internal {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = _tokenFor +
_tokenfaco +
_tokensForDevelopment;
bool success;
uint256 liquidityTokens = (contractBalance * _tokenFor) /
totalTokensToSwap /
2;
uint256 amountToSwapForETHer = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
_swapTokensbabyETH(amountToSwapForETHer);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(_tokenfaco).div(
totalTokensToSwap
);
uint256 ethForDevelopment = ethBalance.mul(_tokensForDevelopment).div(
totalTokensToSwap
);
uint256 ethForLiquidity = ethBalance -
ethForMarketing -
ethForDevelopment;
_tokenFor = 0;
_tokenfaco = 0;
_tokensForDevelopment = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
_addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETHer,
ethForLiquidity,
_tokenFor
);
}
(success, ) = address(developmentWallet).call{value: ethForDevelopment}("");
(success, ) = address(marketingWallet).call{
value: address(this).balance
}("");
}
}
Read Contract
_maxlSupply 0x93ec52de → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
developmentWallet 0xc04a5414 → address
liquidityWallet 0xd4698016 → address
marketingWallet 0x75f0a874 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sell1 0x84cdb2e9 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingEnabled 0x4ada218b → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 11 functions
These functions modify contract state and require a wallet transaction to execute.
Airdrop 0xd7f40c76
address[] token5
bool value
Opentrade 0x1aa85bfc
No parameters
SetMKTwallet 0x1b83bbbf
address[] token1
bool value
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromEnableTrading 0x844bdf4e
address[] accounts
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address