Address Contract Partially Verified
Address
0x0E5078376a70c77b37F8174f38Fb3D2c7c84efd0
Balance
0 ETH
Nonce
1
Code Size
19720 bytes
Creator
0xA5a88724...6512 at tx 0xa2f9b27d...2dab76
Indexed Transactions
0
Contract Bytecode
19720 bytes
0x6080604052600436106102e85760003560e01c80638da5cb5b11610190578063c0246668116100dc578063dd62ed3e11610095578063f11a24d31161006f578063f11a24d314610b6b578063f2fde38b14610b96578063f637434214610bbf578063f8b45b0514610bea576102ef565b8063dd62ed3e14610ad8578063e2f4560514610b15578063e884f26014610b40576102ef565b8063c0246668146109c8578063c18bc195146109f1578063c876d0b914610a1a578063c8c8ebe414610a45578063d257b34f14610a70578063d85ba06314610aad576102ef565b80639c3b4fdc11610149578063a457c2d711610123578063a457c2d7146108e6578063a9059cbb14610923578063b62496f514610960578063bbc0c7421461099d576102ef565b80639c3b4fdc146108655780639fccce3214610890578063a0d82dc5146108bb576102ef565b80638da5cb5b146107675780638ea5220f1461079257806392136913146107bd578063924de9b7146107e857806395d89b41146108115780639a7a23d61461083c576102ef565b8063395093511161024f57806370a08231116102085780637571336a116101e25780637571336a146106d157806375f0a874146106fa5780637bce5a04146107255780638a8c523c14610750576102ef565b806370a0823114610652578063715018a61461068f578063751039fc146106a6576102ef565b8063395093511461052c57806349bd5a5e146105695780634a62bb65146105945780634fbee193146105bf5780636a486a8e146105fc5780636ddd171314610627576102ef565b80631a8145bb116102a15780631a8145bb1461041a5780631f3fed8f14610445578063203e727e1461047057806323b872dd1461049957806327c8f835146104d6578063313ce56714610501576102ef565b806306fdde03146102f4578063095ea7b31461031f5780630c568aa11461035c57806310d5de53146103875780631694505e146103c457806318160ddd146103ef576102ef565b366102ef57005b600080fd5b34801561030057600080fd5b50610309610c15565b6040516103169190613934565b60405180910390f35b34801561032b57600080fd5b50610346600480360381019061034191906139ef565b610ca7565b6040516103539190613a4a565b60405180910390f35b34801561036857600080fd5b50610371610cc5565b60405161037e9190613a74565b60405180910390f35b34801561039357600080fd5b506103ae60048036038101906103a99190613a8f565b610ceb565b6040516103bb9190613a4a565b60405180910390f35b3480156103d057600080fd5b506103d9610d0b565b6040516103e69190613b1b565b60405180910390f35b3480156103fb57600080fd5b50610404610d2f565b6040516104119190613b45565b60405180910390f35b34801561042657600080fd5b5061042f610d39565b60405161043c9190613b45565b60405180910390f35b34801561045157600080fd5b5061045a610d3f565b6040516104679190613b45565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190613b60565b610d45565b005b3480156104a557600080fd5b506104c060048036038101906104bb9190613b8d565b610e54565b6040516104cd9190613a4a565b60405180910390f35b3480156104e257600080fd5b506104eb610f4c565b6040516104f89190613a74565b60405180910390f35b34801561050d57600080fd5b50610516610f52565b6040516105239190613bfc565b60405180910390f35b34801561053857600080fd5b50610553600480360381019061054e91906139ef565b610f5b565b6040516105609190613a4a565b60405180910390f35b34801561057557600080fd5b5061057e611007565b60405161058b9190613a74565b60405180910390f35b3480156105a057600080fd5b506105a961102b565b6040516105b69190613a4a565b60405180910390f35b3480156105cb57600080fd5b506105e660048036038101906105e19190613a8f565b61103e565b6040516105f39190613a4a565b60405180910390f35b34801561060857600080fd5b50610611611094565b60405161061e9190613b45565b60405180910390f35b34801561063357600080fd5b5061063c61109a565b6040516106499190613a4a565b60405180910390f35b34801561065e57600080fd5b5061067960048036038101906106749190613a8f565b6110ad565b6040516106869190613b45565b60405180910390f35b34801561069b57600080fd5b506106a46110f5565b005b3480156106b257600080fd5b506106bb61117d565b6040516106c89190613a4a565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f39190613c43565b61121d565b005b34801561070657600080fd5b5061070f6112f4565b60405161071c9190613a74565b60405180910390f35b34801561073157600080fd5b5061073a61131a565b6040516107479190613b45565b60405180910390f35b34801561075c57600080fd5b50610765611320565b005b34801561077357600080fd5b5061077c6113d4565b6040516107899190613a74565b60405180910390f35b34801561079e57600080fd5b506107a76113fe565b6040516107b49190613a74565b60405180910390f35b3480156107c957600080fd5b506107d2611424565b6040516107df9190613b45565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a9190613c83565b61142a565b005b34801561081d57600080fd5b506108266114c3565b6040516108339190613934565b60405180910390f35b34801561084857600080fd5b50610863600480360381019061085e9190613c43565b611555565b005b34801561087157600080fd5b5061087a61166d565b6040516108879190613b45565b60405180910390f35b34801561089c57600080fd5b506108a5611673565b6040516108b29190613b45565b60405180910390f35b3480156108c757600080fd5b506108d0611679565b6040516108dd9190613b45565b60405180910390f35b3480156108f257600080fd5b5061090d600480360381019061090891906139ef565b61167f565b60405161091a9190613a4a565b60405180910390f35b34801561092f57600080fd5b5061094a600480360381019061094591906139ef565b61176a565b6040516109579190613a4a565b60405180910390f35b34801561096c57600080fd5b5061098760048036038101906109829190613a8f565b611788565b6040516109949190613a4a565b60405180910390f35b3480156109a957600080fd5b506109b26117a8565b6040516109bf9190613a4a565b60405180910390f35b3480156109d457600080fd5b506109ef60048036038101906109ea9190613c43565b6117bb565b005b3480156109fd57600080fd5b50610a186004803603810190610a139190613b60565b6118e0565b005b348015610a2657600080fd5b50610a2f6119ef565b604051610a3c9190613a4a565b60405180910390f35b348015610a5157600080fd5b50610a5a611a02565b604051610a679190613b45565b60405180910390f35b348015610a7c57600080fd5b50610a976004803603810190610a929190613b60565b611a08565b604051610aa49190613a4a565b60405180910390f35b348015610ab957600080fd5b50610ac2611b5d565b604051610acf9190613b45565b60405180910390f35b348015610ae457600080fd5b50610aff6004803603810190610afa9190613cb0565b611b63565b604051610b0c9190613b45565b60405180910390f35b348015610b2157600080fd5b50610b2a611bea565b604051610b379190613b45565b60405180910390f35b348015610b4c57600080fd5b50610b55611bf0565b604051610b629190613a4a565b60405180910390f35b348015610b7757600080fd5b50610b80611c90565b604051610b8d9190613b45565b60405180910390f35b348015610ba257600080fd5b50610bbd6004803603810190610bb89190613a8f565b611c96565b005b348015610bcb57600080fd5b50610bd4611d8d565b604051610be19190613b45565b60405180910390f35b348015610bf657600080fd5b50610bff611d93565b604051610c0c9190613b45565b60405180910390f35b606060038054610c2490613d1f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5090613d1f565b8015610c9d5780601f10610c7257610100808354040283529160200191610c9d565b820191906000526020600020905b815481529060010190602001808311610c8057829003601f168201915b5050505050905090565b6000610cbb610cb4611d99565b8484611da1565b6001905092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601b6020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60185481565b60175481565b610d4d611d99565b73ffffffffffffffffffffffffffffffffffffffff16610d6b6113d4565b73ffffffffffffffffffffffffffffffffffffffff1614610dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db890613d9c565b60405180910390fd5b670de0b6b3a76400006103e86001610dd7610d2f565b610de19190613deb565b610deb9190613e74565b610df59190613e74565b811015610e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2e90613f17565b60405180910390fd5b670de0b6b3a764000081610e4b9190613deb565b60098190555050565b6000610e61848484611f6a565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610eac611d99565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2390613fa9565b60405180910390fd5b610f4085610f38611d99565b858403611da1565b60019150509392505050565b61dead81565b60006012905090565b6000610ffd610f68611d99565b848460016000610f76611d99565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ff89190613fc9565b611da1565b6001905092915050565b7f00000000000000000000000071ff049e48607101cf356e728af51e441f28773481565b600c60009054906101000a900460ff1681565b6000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60135481565b600c60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110fd611d99565b73ffffffffffffffffffffffffffffffffffffffff1661111b6113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116890613d9c565b60405180910390fd5b61117b6000612c01565b565b6000611187611d99565b73ffffffffffffffffffffffffffffffffffffffff166111a56113d4565b73ffffffffffffffffffffffffffffffffffffffff16146111fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f290613d9c565b60405180910390fd5b6000600c60006101000a81548160ff0219169083151502179055506001905090565b611225611d99565b73ffffffffffffffffffffffffffffffffffffffff166112436113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611299576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129090613d9c565b60405180910390fd5b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b611328611d99565b73ffffffffffffffffffffffffffffffffffffffff166113466113d4565b73ffffffffffffffffffffffffffffffffffffffff161461139c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139390613d9c565b60405180910390fd5b6001600c60016101000a81548160ff0219169083151502179055506001600c60026101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60145481565b611432611d99565b73ffffffffffffffffffffffffffffffffffffffff166114506113d4565b73ffffffffffffffffffffffffffffffffffffffff16146114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d90613d9c565b60405180910390fd5b80600c60026101000a81548160ff02191690831515021790555050565b6060600480546114d290613d1f565b80601f01602080910402602001604051908101604052809291908181526020018280546114fe90613d1f565b801561154b5780601f106115205761010080835404028352916020019161154b565b820191906000526020600020905b81548152906001019060200180831161152e57829003601f168201915b5050505050905090565b61155d611d99565b73ffffffffffffffffffffffffffffffffffffffff1661157b6113d4565b73ffffffffffffffffffffffffffffffffffffffff16146115d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c890613d9c565b60405180910390fd5b7f00000000000000000000000071ff049e48607101cf356e728af51e441f28773473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165690614091565b60405180910390fd5b6116698282612cc7565b5050565b60125481565b60195481565b60165481565b6000806001600061168e611d99565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290614123565b60405180910390fd5b61175f611756611d99565b85858403611da1565b600191505092915050565b600061177e611777611d99565b8484611f6a565b6001905092915050565b601c6020528060005260406000206000915054906101000a900460ff1681565b600c60019054906101000a900460ff1681565b6117c3611d99565b73ffffffffffffffffffffffffffffffffffffffff166117e16113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182e90613d9c565b60405180910390fd5b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516118d49190613a4a565b60405180910390a25050565b6118e8611d99565b73ffffffffffffffffffffffffffffffffffffffff166119066113d4565b73ffffffffffffffffffffffffffffffffffffffff161461195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390613d9c565b60405180910390fd5b670de0b6b3a76400006103e86005611972610d2f565b61197c9190613deb565b6119869190613e74565b6119909190613e74565b8110156119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c9906141b5565b60405180910390fd5b670de0b6b3a7640000816119e69190613deb565b600b8190555050565b600e60009054906101000a900460ff1681565b60095481565b6000611a12611d99565b73ffffffffffffffffffffffffffffffffffffffff16611a306113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d90613d9c565b60405180910390fd5b620186a06001611a94610d2f565b611a9e9190613deb565b611aa89190613e74565b821015611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae190614247565b60405180910390fd5b6103e86005611af7610d2f565b611b019190613deb565b611b0b9190613e74565b821115611b4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b44906142d9565b60405180910390fd5b81600a8190555060019050919050565b600f5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b6000611bfa611d99565b73ffffffffffffffffffffffffffffffffffffffff16611c186113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6590613d9c565b60405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055506001905090565b60115481565b611c9e611d99565b73ffffffffffffffffffffffffffffffffffffffff16611cbc6113d4565b73ffffffffffffffffffffffffffffffffffffffff1614611d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0990613d9c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d789061436b565b60405180910390fd5b611d8a81612c01565b50565b60155481565b600b5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e07906143fd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e769061448f565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611f5d9190613b45565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611fd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd090614521565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203f906145b3565b60405180910390fd5b600081036120615761205c83836000612d68565b612bfc565b600c60009054906101000a900460ff16156127245761207e6113d4565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120ec57506120bc6113d4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156121255750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561215f575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156121785750600660149054906101000a900460ff16155b1561272357600c60019054906101000a900460ff1661227257601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806122325750601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612271576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122689061461f565b60405180910390fd5b5b600e60009054906101000a900460ff161561243a5761228f6113d4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561231657507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561236e57507f00000000000000000000000071ff049e48607101cf356e728af51e441f28773473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156124395743600d60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106123f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123eb906146d7565b60405180910390fd5b43600d60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156124dd5750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561258457600954811115612527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251e90614769565b60405180910390fd5b600b54612533836110ad565b8261253e9190613fc9565b111561257f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612576906147d5565b60405180910390fd5b612722565b601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156126275750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561267657600954811115612671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266890614867565b60405180910390fd5b612721565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661272057600b546126d3836110ad565b826126de9190613fc9565b111561271f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612716906147d5565b60405180910390fd5b5b5b5b5b5b600061272f306110ad565b90506000600a5482101590508080156127545750600c60029054906101000a900460ff165b801561276d5750600660149054906101000a900460ff16155b80156127c35750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156128195750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561286f5750601a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156128b3576001600660146101000a81548160ff021916908315150217905550612897612fe7565b6000600660146101000a81548160ff0219169083151502179055505b6000600660149054906101000a900460ff16159050601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806129695750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561297357600090505b60008115612bec57601c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156129d657506000601354115b15612aa357612a0360646129f5601354886132e190919063ffffffff16565b6132f790919063ffffffff16565b905060135460155482612a169190613deb565b612a209190613e74565b60186000828254612a319190613fc9565b9250508190555060135460165482612a499190613deb565b612a539190613e74565b60196000828254612a649190613fc9565b9250508190555060135460145482612a7c9190613deb565b612a869190613e74565b60176000828254612a979190613fc9565b92505081905550612bc8565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612afe57506000600f54115b15612bc757612b2b6064612b1d600f54886132e190919063ffffffff16565b6132f790919063ffffffff16565b9050600f5460115482612b3e9190613deb565b612b489190613e74565b60186000828254612b599190613fc9565b92505081905550600f5460125482612b719190613deb565b612b7b9190613e74565b60196000828254612b8c9190613fc9565b92505081905550600f5460105482612ba49190613deb565b612bae9190613e74565b60176000828254612bbf9190613fc9565b925050819055505b5b6000811115612bdd57612bdc873083612d68565b5b8085612be99190614887565b94505b612bf7878787612d68565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612dd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dce90614521565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3d906145b3565b60405180910390fd5b612e5183838361330d565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ece9061492d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f6a9190613fc9565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612fce9190613b45565b60405180910390a3612fe1848484613312565b50505050565b6000612ff2306110ad565b905060006019546017546018546130099190613fc9565b6130139190613fc9565b90506000808314806130255750600082145b15613032575050506132df565b6014600a546130419190613deb565b83111561305a576014600a546130579190613deb565b92505b60006002836018548661306d9190613deb565b6130779190613e74565b6130819190613e74565b90506000613098828661331790919063ffffffff16565b905060004790506130a88261332d565b60006130bd824761331790919063ffffffff16565b905060006130e8876130da601754856132e190919063ffffffff16565b6132f790919063ffffffff16565b9050600061311388613105601954866132e190919063ffffffff16565b6132f790919063ffffffff16565b905060008183856131249190614887565b61312e9190614887565b9050600060188190555060006017819055506000601981905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161318e9061497e565b60006040518083038185875af1925050503d80600081146131cb576040519150601f19603f3d011682016040523d82523d6000602084013e6131d0565b606091505b505080985050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660028461321c9190613e74565b6040516132289061497e565b60006040518083038185875af1925050503d8060008114613265576040519150601f19603f3d011682016040523d82523d6000602084013e61326a565b606091505b5050809850506000871180156132805750600081115b156132cb5761328f878261356a565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682896040516132c293929190614993565b60405180910390a15b6132d447613666565b505050505050505050505b565b600081836132ef9190613deb565b905092915050565b600081836133059190613e74565b905092915050565b505050565b505050565b600081836133259190614887565b905092915050565b6000600267ffffffffffffffff81111561334a576133496149ca565b5b6040519080825280602002602001820160405280156133785781602001602082028036833780820191505090505b50905030816000815181106133905761338f6149f9565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613435573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134599190614a3d565b8160018151811061346d5761346c6149f9565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506134d2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611da1565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613534959493929190614b63565b600060405180830381600087803b15801561354e57600080fd5b505af1158015613562573d6000803e3d6000fd5b505050505050565b613595307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611da1565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b815260040161361c96959493929190614bbd565b60606040518083038185885af115801561363a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061365f9190614c33565b5050505050565b6000600267ffffffffffffffff811115613683576136826149ca565b5b6040519080825280602002602001820160405280156136b15781602001602082028036833780820191505090505b5090507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561371f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137439190614a3d565b81600081518110613757576137566149f9565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816001815181106137c8576137c76149f9565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663b6f9de958360008461dead426040518663ffffffff1660e01b81526004016138659493929190614c86565b6000604051808303818588803b15801561387e57600080fd5b505af1158015613892573d6000803e3d6000fd5b50505050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138d55780820151818401526020810190506138ba565b838111156138e4576000848401525b50505050565b6000601f19601f8301169050919050565b60006139068261389b565b61391081856138a6565b93506139208185602086016138b7565b613929816138ea565b840191505092915050565b6000602082019050818103600083015261394e81846138fb565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139868261395b565b9050919050565b6139968161397b565b81146139a157600080fd5b50565b6000813590506139b38161398d565b92915050565b6000819050919050565b6139cc816139b9565b81146139d757600080fd5b50565b6000813590506139e9816139c3565b92915050565b60008060408385031215613a0657613a05613956565b5b6000613a14858286016139a4565b9250506020613a25858286016139da565b9150509250929050565b60008115159050919050565b613a4481613a2f565b82525050565b6000602082019050613a5f6000830184613a3b565b92915050565b613a6e8161397b565b82525050565b6000602082019050613a896000830184613a65565b92915050565b600060208284031215613aa557613aa4613956565b5b6000613ab3848285016139a4565b91505092915050565b6000819050919050565b6000613ae1613adc613ad78461395b565b613abc565b61395b565b9050919050565b6000613af382613ac6565b9050919050565b6000613b0582613ae8565b9050919050565b613b1581613afa565b82525050565b6000602082019050613b306000830184613b0c565b92915050565b613b3f816139b9565b82525050565b6000602082019050613b5a6000830184613b36565b92915050565b600060208284031215613b7657613b75613956565b5b6000613b84848285016139da565b91505092915050565b600080600060608486031215613ba657613ba5613956565b5b6000613bb4868287016139a4565b9350506020613bc5868287016139a4565b9250506040613bd6868287016139da565b9150509250925092565b600060ff82169050919050565b613bf681613be0565b82525050565b6000602082019050613c116000830184613bed565b92915050565b613c2081613a2f565b8114613c2b57600080fd5b50565b600081359050613c3d81613c17565b92915050565b60008060408385031215613c5a57613c59613956565b5b6000613c68858286016139a4565b9250506020613c7985828601613c2e565b9150509250929050565b600060208284031215613c9957613c98613956565b5b6000613ca784828501613c2e565b91505092915050565b60008060408385031215613cc757613cc6613956565b5b6000613cd5858286016139a4565b9250506020613ce6858286016139a4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d3757607f821691505b602082108103613d4a57613d49613cf0565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d866020836138a6565b9150613d9182613d50565b602082019050919050565b60006020820190508181036000830152613db581613d79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613df6826139b9565b9150613e01836139b9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e3a57613e39613dbc565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e7f826139b9565b9150613e8a836139b9565b925082613e9a57613e99613e45565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b6000613f01602f836138a6565b9150613f0c82613ea5565b604082019050919050565b60006020820190508181036000830152613f3081613ef4565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613f936028836138a6565b9150613f9e82613f37565b604082019050919050565b60006020820190508181036000830152613fc281613f86565b9050919050565b6000613fd4826139b9565b9150613fdf836139b9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561401457614013613dbc565b5b828201905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b600061407b6039836138a6565b91506140868261401f565b604082019050919050565b600060208201905081810360008301526140aa8161406e565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061410d6025836138a6565b9150614118826140b1565b604082019050919050565b6000602082019050818103600083015261413c81614100565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b600061419f6024836138a6565b91506141aa82614143565b604082019050919050565b600060208201905081810360008301526141ce81614192565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b60006142316035836138a6565b915061423c826141d5565b604082019050919050565b6000602082019050818103600083015261426081614224565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b60006142c36034836138a6565b91506142ce82614267565b604082019050919050565b600060208201905081810360008301526142f2816142b6565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143556026836138a6565b9150614360826142f9565b604082019050919050565b6000602082019050818103600083015261438481614348565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006143e76024836138a6565b91506143f28261438b565b604082019050919050565b60006020820190508181036000830152614416816143da565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006144796022836138a6565b91506144848261441d565b604082019050919050565b600060208201905081810360008301526144a88161446c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061450b6025836138a6565b9150614516826144af565b604082019050919050565b6000602082019050818103600083015261453a816144fe565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061459d6023836138a6565b91506145a882614541565b604082019050919050565b600060208201905081810360008301526145cc81614590565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b60006146096016836138a6565b9150614614826145d3565b602082019050919050565b60006020820190508181036000830152614638816145fc565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60008201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b60006146c16049836138a6565b91506146cc8261463f565b606082019050919050565b600060208201905081810360008301526146f0816146b4565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b60006147536035836138a6565b915061475e826146f7565b604082019050919050565b6000602082019050818103600083015261478281614746565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006147bf6013836138a6565b91506147ca82614789565b602082019050919050565b600060208201905081810360008301526147ee816147b2565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006148516036836138a6565b915061485c826147f5565b604082019050919050565b6000602082019050818103600083015261488081614844565b9050919050565b6000614892826139b9565b915061489d836139b9565b9250828210156148b0576148af613dbc565b5b828203905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006149176026836138a6565b9150614922826148bb565b604082019050919050565b600060208201905081810360008301526149468161490a565b9050919050565b600081905092915050565b50565b600061496860008361494d565b915061497382614958565b600082019050919050565b60006149898261495b565b9150819050919050565b60006060820190506149a86000830186613b36565b6149b56020830185613b36565b6149c26040830184613b36565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614a378161398d565b92915050565b600060208284031215614a5357614a52613956565b5b6000614a6184828501614a28565b91505092915050565b6000819050919050565b6000614a8f614a8a614a8584614a6a565b613abc565b6139b9565b9050919050565b614a9f81614a74565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ada8161397b565b82525050565b6000614aec8383614ad1565b60208301905092915050565b6000602082019050919050565b6000614b1082614aa5565b614b1a8185614ab0565b9350614b2583614ac1565b8060005b83811015614b56578151614b3d8882614ae0565b9750614b4883614af8565b925050600181019050614b29565b5085935050505092915050565b600060a082019050614b786000830188613b36565b614b856020830187614a96565b8181036040830152614b978186614b05565b9050614ba66060830185613a65565b614bb36080830184613b36565b9695505050505050565b600060c082019050614bd26000830189613a65565b614bdf6020830188613b36565b614bec6040830187614a96565b614bf96060830186614a96565b614c066080830185613a65565b614c1360a0830184613b36565b979650505050505050565b600081519050614c2d816139c3565b92915050565b600080600060608486031215614c4c57614c4b613956565b5b6000614c5a86828701614c1e565b9350506020614c6b86828701614c1e565b9250506040614c7c86828701614c1e565b9150509250925092565b6000608082019050614c9b6000830187614a96565b8181036020830152614cad8186614b05565b9050614cbc6040830185613a65565b614cc96060830184613b36565b9594505050505056fea26469706673582212208417794951882ff67a0a4063005c3396a922f4430694d97b230ccfdededad43364736f6c634300080f0033
Verified Source Code Partial Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: No
X7Cash.sol 1039 lines
// SPDX-License-Identifier: MIT
// File: X7Cash.sol
/**
X7Cash
*/
pragma solidity ^0.8.15;
pragma experimental ABIEncoderV2;
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
/* pragma solidity ^0.8.15; */
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
////// lib/openzeppelin-contracts/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
/* pragma solidity ^0.8.15; */
/* import "../utils/Context.sol"; */
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
/* pragma solidity ^0.8.15; */
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
/* pragma solidity ^0.8.15; */
/* import "../IERC20.sol"; */
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)
/* pragma solidity ^0.8.15; */
/* import "./IERC20.sol"; */
/* import "./extensions/IERC20Metadata.sol"; */
/* import "../../utils/Context.sol"; */
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 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 recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, 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;
_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;
}
_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 _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
////// lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)
/* pragma solidity ^0.8.15; */
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// 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);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
/* pragma solidity 0.8.15; */
/* pragma experimental ABIEncoderV2; */
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;
}
/* pragma solidity 0.8.15; */
/* pragma experimental ABIEncoderV2; */
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event 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 mint(address to) external returns (uint256 liquidity);
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;
}
/* pragma solidity 0.8.15; */
/* pragma experimental ABIEncoderV2; */
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function 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;
}
/* pragma solidity >=0.8.15; */
/* import {IUniswapV2Router02} from "./IUniswapV2Router02.sol"; */
/* import {IUniswapV2Factory} from "./IUniswapV2Factory.sol"; */
/* import {IUniswapV2Pair} from "./IUniswapV2Pair.sol"; */
/* import {IERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol"; */
/* import {ERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; */
/* import {Ownable} from "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; */
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
contract X7Cash is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
address public x7m105 = address(0x06D5cA7C9accd15a87d4993A421B7e702BDBaB20);
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public transferDelayEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
/******************/
// exlcude from fees and max transaction amount
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping(address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("X7Cash", "X7C") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 4;
uint256 _buyLiquidityFee = 1;
uint256 _buyDevFee = 1;
uint256 _sellMarketingFee = 4;
uint256 _sellLiquidityFee = 1;
uint256 _sellDevFee = 1;
uint256 totalSupply = 100000000 * 1e18;
maxTransactionAmount = 250000 * 1e18; // .25% from total supply maxTransactionAmountTxn
maxWallet = 1500000 * 1e18; // 1.5% from total supply maxWallet
swapTokensAtAmount = (totalSupply * 10) / 10000; // 0.1% swap wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
marketingWallet = address(0x5Bacb575b88888D08231b65B243419eDe49D1795); // set as marketing wallet
devWallet = address(0x96a946D53BeCa3aa91Db4D81E3fbDaDBfEd4BF7E); // set as dev wallet
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(address(marketingWallet), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
excludeFromMaxTransaction(address(marketingWallet), true);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, totalSupply);
}
receive() external payable {}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner returns (bool) {
transferDelayEnabled = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set maxTransactionAmount lower than 0.1%"
);
maxTransactionAmount = newNum * (10**18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxWallet lower than 0.5%"
);
maxWallet = newNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingActive) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled) {
if (
to != owner() &&
to != address(uniswapV2Router) &&
to != address(uniswapV2Pair)
) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number,
"_transfer:: Transfer Delay enabled. Only one purchase per block allowed."
);
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"Sell transfer amount exceeds the maxTransactionAmount."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(100);
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForDev += (fees * sellDevFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForDev += (fees * buyDevFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
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, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function burnx7m105(uint256 ethAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = x7m105;
// make the swap
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(
0,
path,
deadAddress,
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
devWallet,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDev;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
(success, ) = address(devWallet).call{value: ethForDev}("");
(success, ) = address(marketingWallet).call{value: ethForMarketing/2}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
liquidityTokens
);
}
burnx7m105(address(this).balance);
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
x7m105 0x0c568aa1 → address
Write Contract 17 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
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address