Address Contract Partially Verified
Address
0xf0dc42d7D0e64e2009489F049eAc8C47cd1166Ef
Balance
0 ETH
Nonce
1
Code Size
13826 bytes
Creator
0xc1510D7D...3CDd at tx 0x4a06ddbf...5010ab
Indexed Transactions
0 (1 on-chain, 1.1% indexed)
Contract Bytecode
13826 bytes
0x6080604052600436106101d0575f3560e01c80638bcea939116100f6578063d18afa8511610094578063e91284d411610063578063e91284d414610631578063f1bab2ec1461065b578063f2fde38b14610685578063f5648a4f146106ad576101d7565b8063d18afa851461058d578063db05e5cb146105b5578063dd62ed3e146105cb578063e54f4faa14610607576101d7565b806395d89b41116100d057806395d89b41146104c1578063a457c2d7146104eb578063a9059cbb14610527578063b78f7d6714610563576101d7565b80638bcea939146104575780638da5cb5b146104815780639049a3ce146104ab576101d7565b806337efc0c91161016e5780635b6ac7761161013d5780635b6ac776146103b35780636db79437146103dd57806370a0823114610405578063715018a614610441576101d7565b806337efc0c91461031157806339509351146103275780633963510b14610363578063578878b41461038b576101d7565b80631ba2c27f116101aa5780631ba2c27f1461026b57806323b872dd14610295578063293230b8146102d1578063313ce567146102e7576101d7565b806306fdde03146101db578063095ea7b31461020557806318160ddd14610241576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef6106c3565b6040516101fc9190612427565b60405180910390f35b348015610210575f80fd5b5061022b600480360381019061022691906124d8565b610753565b6040516102389190612530565b60405180910390f35b34801561024c575f80fd5b50610255610775565b6040516102629190612558565b60405180910390f35b348015610276575f80fd5b5061027f61077e565b60405161028c9190612558565b60405180910390f35b3480156102a0575f80fd5b506102bb60048036038101906102b69190612571565b610784565b6040516102c89190612530565b60405180910390f35b3480156102dc575f80fd5b506102e56107b2565b005b3480156102f2575f80fd5b506102fb6109e9565b60405161030891906125dc565b60405180910390f35b34801561031c575f80fd5b506103256109f1565b005b348015610332575f80fd5b5061034d600480360381019061034891906124d8565b610a76565b60405161035a9190612530565b60405180910390f35b34801561036e575f80fd5b5061038960048036038101906103849190612630565b610b1b565b005b348015610396575f80fd5b506103b160048036038101906103ac919061265b565b610ca5565b005b3480156103be575f80fd5b506103c7610e25565b6040516103d49190612558565b60405180910390f35b3480156103e8575f80fd5b5061040360048036038101906103fe9190612686565b610e2b565b005b348015610410575f80fd5b5061042b600480360381019061042691906126c4565b610f0a565b6040516104389190612558565b60405180910390f35b34801561044c575f80fd5b50610455610f4f565b005b348015610462575f80fd5b5061046b610fd6565b60405161047891906126fe565b60405180910390f35b34801561048c575f80fd5b50610495610ffb565b6040516104a291906126fe565b60405180910390f35b3480156104b6575f80fd5b506104bf611023565b005b3480156104cc575f80fd5b506104d56110a8565b6040516104e29190612427565b60405180910390f35b3480156104f6575f80fd5b50610511600480360381019061050c91906124d8565b611138565b60405161051e9190612530565b60405180910390f35b348015610532575f80fd5b5061054d600480360381019061054891906124d8565b61121c565b60405161055a9190612530565b60405180910390f35b34801561056e575f80fd5b5061057761123e565b6040516105849190612558565b60405180910390f35b348015610598575f80fd5b506105b360048036038101906105ae9190612686565b611244565b005b3480156105c0575f80fd5b506105c9611303565b005b3480156105d6575f80fd5b506105f160048036038101906105ec9190612717565b61138f565b6040516105fe9190612558565b60405180910390f35b348015610612575f80fd5b5061061b611411565b6040516106289190612558565b60405180910390f35b34801561063c575f80fd5b50610645611417565b6040516106529190612558565b60405180910390f35b348015610666575f80fd5b5061066f61141d565b60405161067c91906126fe565b60405180910390f35b348015610690575f80fd5b506106ab60048036038101906106a691906126c4565b611441565b005b3480156106b8575f80fd5b506106c1611537565b005b6060600380546106d290612782565b80601f01602080910402602001604051908101604052809291908181526020018280546106fe90612782565b80156107495780601f1061072057610100808354040283529160200191610749565b820191905f5260205f20905b81548152906001019060200180831161072c57829003601f168201915b5050505050905090565b5f8061075d611611565b905061076a818585611618565b600191505092915050565b5f600254905090565b600e5481565b5f8061078e611611565b905061079b8582856117db565b6107a6858585611866565b60019150509392505050565b6107ba611611565b73ffffffffffffffffffffffffffffffffffffffff166107d8610ffb565b73ffffffffffffffffffffffffffffffffffffffff161461082e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610825906127fc565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108af919061282e565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610928573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061094c919061282e565b6040518363ffffffff1660e01b8152600401610969929190612859565b602060405180830381865afa158015610984573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109a8919061282e565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f6012905090565b6109f9611611565b73ffffffffffffffffffffffffffffffffffffffff16610a17610ffb565b73ffffffffffffffffffffffffffffffffffffffff1614610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a64906127fc565b60405180910390fd5b5f600781905550565b5f80610a80611611565b9050610b1081858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610b0b91906128ad565b611618565b600191505092915050565b7f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ba75750610b78610ffb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610baf575f80fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c0591906126fe565b602060405180830381865afa158015610c20573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4491906128f4565b6040518363ffffffff1660e01b8152600401610c6192919061291f565b6020604051808303815f875af1158015610c7d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ca19190612970565b5050565b7f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610d315750610d02610ffb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610d39575f80fd5b610d69620186a0610d5b6001610d4d610775565b611d8290919063ffffffff16565b611d9790919063ffffffff16565b811015610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da290612a0b565b60405180910390fd5b610dd96064610dcb6002610dbd610775565b611d8290919063ffffffff16565b611d9790919063ffffffff16565b811115610e1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1290612a99565b60405180910390fd5b8060098190555050565b60075481565b610e33611611565b73ffffffffffffffffffffffffffffffffffffffff16610e51610ffb565b73ffffffffffffffffffffffffffffffffffffffff1614610ea7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9e906127fc565b60405180910390fd5b60198211158015610eb9575060198111155b610ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eef90612b27565b60405180910390fd5b81600d8190555080600e819055505050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610f57611611565b73ffffffffffffffffffffffffffffffffffffffff16610f75610ffb565b73ffffffffffffffffffffffffffffffffffffffff1614610fcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc2906127fc565b60405180910390fd5b610fd45f611dac565b565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61102b611611565b73ffffffffffffffffffffffffffffffffffffffff16611049610ffb565b73ffffffffffffffffffffffffffffffffffffffff161461109f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611096906127fc565b60405180910390fd5b5f600881905550565b6060600480546110b790612782565b80601f01602080910402602001604051908101604052809291908181526020018280546110e390612782565b801561112e5780601f106111055761010080835404028352916020019161112e565b820191905f5260205f20905b81548152906001019060200180831161111157829003601f168201915b5050505050905090565b5f80611142611611565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905083811015611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa90612bb5565b60405180910390fd5b6112108286868403611618565b60019250505092915050565b5f80611226611611565b9050611233818585611866565b600191505092915050565b600d5481565b7f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112d057506112a1610ffb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112d8575f80fd5b600482111580156112e957505f8114155b6112f1575f80fd5b81600a8190555080600b819055505050565b61130b611611565b73ffffffffffffffffffffffffffffffffffffffff16611329610ffb565b73ffffffffffffffffffffffffffffffffffffffff161461137f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611376906127fc565b60405180910390fd5b5f6008819055505f600781905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60085481565b60095481565b7f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e81565b611449611611565b73ffffffffffffffffffffffffffffffffffffffff16611467610ffb565b73ffffffffffffffffffffffffffffffffffffffff16146114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b4906127fc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361152b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152290612c43565b60405180910390fd5b61153481611dac565b50565b7f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115c35750611594610ffb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115cb575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561160e573d5f803e3d5ffd5b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167d90612cd1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90612d5f565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516117ce9190612558565b60405180910390a3505050565b5f6117e6848461138f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118605781811015611852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184990612dc7565b60405180910390fd5b61185f8484848403611618565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90612e55565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990612ee3565b60405180910390fd5b5f8111611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b90612f71565b60405180910390fd5b5f60105f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611a20575060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580611a7b5750805b611aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab190612fd9565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161490508080611b695750815b8015611b7657505f600754115b8015611b80575082155b15611bcb57600754841115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc19061308d565b60405180910390fd5b5b81158015611bda57505f600854115b8015611be4575082155b15611c425760085484611bf687610f0a565b611c0091906128ad565b1115611c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3890613141565b60405180910390fd5b5b600954611c4e30610f0a565b10158015611c685750600f5f9054906101000a900460ff16155b8015611c715750815b8015611c7b575082155b8015611c8c5750611c8b84611e6f565b5b15611ccd576001600f5f6101000a81548160ff021916908315150217905550611cb3611eca565b5f600f5f6101000a81548160ff0219169083151502179055505b5f81611cdb57600e54611cdf565b600d545b90505f811115611d6e5783158015611d035750600f5f9054906101000a900460ff16155b8015611d1457508180611d135750825b5b15611d6d575f611d406064611d328489611d8290919063ffffffff16565b611d9790919063ffffffff16565b90505f811115611d5657611d55883083612123565b5b611d69818761239890919063ffffffff16565b9550505b5b611d79878787612123565b50505050505050565b5f8183611d8f919061315f565b905092915050565b5f8183611da491906131cd565b905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80600b5414611e8e57600b54600954611e8991906131cd565b611e90565b5f5b8210158015611ec357506002600c5f4381526020019081526020015f205f815480929190611ebd906131fd565b91905055105b9050919050565b5f611ed430610f0a565b90505f8103611ee35750612121565b600954811115611ef35760095490505b5f600267ffffffffffffffff811115611f0f57611f0e613244565b5b604051908082528060200260200182016040528015611f3d5781602001602082028036833780820191505090505b50905030815f81518110611f5457611f53613271565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611feb573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061200f919061282e565b8160018151811061202357612022613271565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061207c30737a250d5630b4cf539739df2c5dacb4c659f2488d84611618565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f847f0000000000000000000000005c37e80ff371260af4e20de51522d89f7d280f0e426040518663ffffffff1660e01b81526004016120f1959493929190613397565b5f604051808303815f87803b158015612108575f80fd5b505af115801561211a573d5f803e3d5ffd5b5050505050505b565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612191576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121889061345f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f6906134ed565b60405180910390fd5b61220a8383836123ad565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561228d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122849061357b565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461231b91906128ad565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161237f9190612558565b60405180910390a36123928484846123b2565b50505050565b5f81836123a59190613599565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6123f9826123b7565b61240381856123c1565b93506124138185602086016123d1565b61241c816123df565b840191505092915050565b5f6020820190508181035f83015261243f81846123ef565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6124748261244b565b9050919050565b6124848161246a565b811461248e575f80fd5b50565b5f8135905061249f8161247b565b92915050565b5f819050919050565b6124b7816124a5565b81146124c1575f80fd5b50565b5f813590506124d2816124ae565b92915050565b5f80604083850312156124ee576124ed612447565b5b5f6124fb85828601612491565b925050602061250c858286016124c4565b9150509250929050565b5f8115159050919050565b61252a81612516565b82525050565b5f6020820190506125435f830184612521565b92915050565b612552816124a5565b82525050565b5f60208201905061256b5f830184612549565b92915050565b5f805f6060848603121561258857612587612447565b5b5f61259586828701612491565b93505060206125a686828701612491565b92505060406125b7868287016124c4565b9150509250925092565b5f60ff82169050919050565b6125d6816125c1565b82525050565b5f6020820190506125ef5f8301846125cd565b92915050565b5f6125ff8261246a565b9050919050565b61260f816125f5565b8114612619575f80fd5b50565b5f8135905061262a81612606565b92915050565b5f6020828403121561264557612644612447565b5b5f6126528482850161261c565b91505092915050565b5f602082840312156126705761266f612447565b5b5f61267d848285016124c4565b91505092915050565b5f806040838503121561269c5761269b612447565b5b5f6126a9858286016124c4565b92505060206126ba858286016124c4565b9150509250929050565b5f602082840312156126d9576126d8612447565b5b5f6126e684828501612491565b91505092915050565b6126f88161246a565b82525050565b5f6020820190506127115f8301846126ef565b92915050565b5f806040838503121561272d5761272c612447565b5b5f61273a85828601612491565b925050602061274b85828601612491565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061279957607f821691505b6020821081036127ac576127ab612755565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6127e66020836123c1565b91506127f1826127b2565b602082019050919050565b5f6020820190508181035f830152612813816127da565b9050919050565b5f815190506128288161247b565b92915050565b5f6020828403121561284357612842612447565b5b5f6128508482850161281a565b91505092915050565b5f60408201905061286c5f8301856126ef565b61287960208301846126ef565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6128b7826124a5565b91506128c2836124a5565b92508282019050808211156128da576128d9612880565b5b92915050565b5f815190506128ee816124ae565b92915050565b5f6020828403121561290957612908612447565b5b5f612916848285016128e0565b91505092915050565b5f6040820190506129325f8301856126ef565b61293f6020830184612549565b9392505050565b61294f81612516565b8114612959575f80fd5b50565b5f8151905061296a81612946565b92915050565b5f6020828403121561298557612984612447565b5b5f6129928482850161295c565b91505092915050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f6129f56038836123c1565b9150612a008261299b565b604082019050919050565b5f6020820190508181035f830152612a22816129e9565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f612a836035836123c1565b9150612a8e82612a29565b604082019050919050565b5f6020820190508181035f830152612ab081612a77565b9050919050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f612b11602e836123c1565b9150612b1c82612ab7565b604082019050919050565b5f6020820190508181035f830152612b3e81612b05565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612b9f6025836123c1565b9150612baa82612b45565b604082019050919050565b5f6020820190508181035f830152612bcc81612b93565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612c2d6026836123c1565b9150612c3882612bd3565b604082019050919050565b5f6020820190508181035f830152612c5a81612c21565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612cbb6024836123c1565b9150612cc682612c61565b604082019050919050565b5f6020820190508181035f830152612ce881612caf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612d496022836123c1565b9150612d5482612cef565b604082019050919050565b5f6020820190508181035f830152612d7681612d3d565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612db1601d836123c1565b9150612dbc82612d7d565b602082019050919050565b5f6020820190508181035f830152612dde81612da5565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612e3f602b836123c1565b9150612e4a82612de5565b604082019050919050565b5f6020820190508181035f830152612e6c81612e33565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612ecd6029836123c1565b9150612ed882612e73565b604082019050919050565b5f6020820190508181035f830152612efa81612ec1565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f612f5b602a836123c1565b9150612f6682612f01565b604082019050919050565b5f6020820190508181035f830152612f8881612f4f565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f612fc3601f836123c1565b9150612fce82612f8f565b602082019050919050565b5f6020820190508181035f830152612ff081612fb7565b9050919050565b7f537761702076616c75652065786365656473206d6178207377617020616d6f755f8201527f6e742c2074727920616761696e2077697468206c65737320737761702076616c60208201527f75652e0000000000000000000000000000000000000000000000000000000000604082015250565b5f6130776043836123c1565b915061308282612ff7565b606082019050919050565b5f6020820190508181035f8301526130a48161306b565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f61312b6044836123c1565b9150613136826130ab565b606082019050919050565b5f6020820190508181035f8301526131588161311f565b9050919050565b5f613169826124a5565b9150613174836124a5565b9250828202613182816124a5565b9150828204841483151761319957613198612880565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131d7826124a5565b91506131e2836124a5565b9250826131f2576131f16131a0565b5b828204905092915050565b5f613207826124a5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361323957613238612880565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f819050919050565b5f6132ca6132c56132c08461329e565b6132a7565b6124a5565b9050919050565b6132da816132b0565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6133128161246a565b82525050565b5f6133238383613309565b60208301905092915050565b5f602082019050919050565b5f613345826132e0565b61334f81856132ea565b935061335a836132fa565b805f5b8381101561338a5781516133718882613318565b975061337c8361332f565b92505060018101905061335d565b5085935050505092915050565b5f60a0820190506133aa5f830188612549565b6133b760208301876132d1565b81810360408301526133c9818661333b565b90506133d860608301856126ef565b6133e56080830184612549565b9695505050505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6134496025836123c1565b9150613454826133ef565b604082019050919050565b5f6020820190508181035f8301526134768161343d565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6134d76023836123c1565b91506134e28261347d565b604082019050919050565b5f6020820190508181035f830152613504816134cb565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6135656026836123c1565b91506135708261350b565b604082019050919050565b5f6020820190508181035f83015261359281613559565b9050919050565b5f6135a3826124a5565b91506135ae836124a5565b92508282039050818111156135c6576135c5612880565b5b9291505056fea2646970667358221220108020b5a7e8fff2e05ed569918afea995fe0f6aa92cff3ba43c649b0cd2599964736f6c634300081a0033
Verified Source Code Partial Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
Cryptaine.sol 478 lines
// SPDX-License-Identifier: MIT
/*
Website: https://cryptaine.com
X/Twitter: https://x.com/CryptaineBase
Telegram: https://t.me/CryptaineBase
Description
*/
pragma solidity ^0.8.26;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
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 to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, _allowances[owner][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = _allowances[owner][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_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 _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 {}
}
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);
}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
function getPair(address tokenA, address tokenB) external view returns (address pair);
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract Cryptaine is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniV2Pair;
address public immutable feeRecipientAddress;
uint256 public maxSwapTxSize;
uint256 public maxHoldings;
uint256 public feeThresholdSize;
uint256 private _contractSwapMax = 3;
uint256 private _contractSwapMin = 7;
mapping(uint256 => uint256) private _swapBlocks;
uint256 public swapTax;
uint256 public swapBackTax;
bool private _inSwap;
mapping (address => bool) private _excludedLimits;
constructor() ERC20("Cryptaine", "CRY") payable {
uint256 totalSupply = 8888888888 * 1e18;
uint256 lpSupply = totalSupply.mul(75).div(100);
uint256 caSupply = totalSupply.mul(20).div(100);
maxSwapTxSize = totalSupply.mul(2).div(100);
maxHoldings = totalSupply.mul(2).div(100);
feeThresholdSize = totalSupply.mul(1).div(100);
feeRecipientAddress = 0x5C37E80Ff371260Af4e20De51522D89F7d280f0e;
swapTax = 10;
swapBackTax = 10;
_excludedLimits[feeRecipientAddress] = true;
_excludedLimits[msg.sender] = true;
_excludedLimits[tx.origin] = true;
_excludedLimits[address(this)] = true;
_excludedLimits[address(0xdead)] = true;
_mint(address(this), caSupply);
_mint(tx.origin, totalSupply.sub(lpSupply).sub(caSupply));
_mint(msg.sender, lpSupply);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "Transfer from the zero address not allowed.");
require(to != address(0), "Transfer to the zero address not allowed.");
require(amount > 0, 'Transfer amount must be greater than zero.');
bool excluded = _excludedLimits[from] || _excludedLimits[to];
require(uniV2Pair != address(0) || excluded, "Liquidity pair not yet created.");
bool isSell = to == uniV2Pair;
bool isBuy = from == uniV2Pair;
if ((isBuy || isSell) && maxSwapTxSize > 0 && !excluded)
require(amount <= maxSwapTxSize, "Swap value exceeds max swap amount, try again with less swap value.");
if (!isSell && maxHoldings > 0 && !excluded)
require(balanceOf(to) + amount <= maxHoldings, "Balance exceeds max holdings amount, consider using a second wallet.");
if (
balanceOf(address(this)) >= feeThresholdSize &&
!_inSwap && isSell &&
!excluded && shouldSwapBack(amount)
) {
_inSwap = true;
_swapBackFees();
_inSwap = false;
}
uint256 fee = isBuy ? swapTax : swapBackTax;
if (fee > 0) {
if (!excluded && !_inSwap && (isBuy || isSell)) {
uint256 fees = amount.mul(fee).div(100);
if (fees > 0)
super._transfer(from, address(this), fees);
amount = amount.sub(fees);
}
}
super._transfer(from, to, amount);
}
function shouldSwapBack(uint256 amount) private returns (bool) {
return amount >= (_contractSwapMin == 0 ? 0 : feeThresholdSize / _contractSwapMin) && _swapBlocks[block.number]++ < 2;
}
function _swapBackFees() private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
if (contractBalance > feeThresholdSize) contractBalance = feeThresholdSize;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _router.WETH();
_approve(address(this), address(_router), contractBalance);
_router.swapExactTokensForETHSupportingFeeOnTransferTokens(
contractBalance,
0,
path,
feeRecipientAddress,
block.timestamp
);
}
function startTrading() external onlyOwner {
uniV2Pair = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
}
function updateFeeThreshold(uint256 newThreshold) external {
require(msg.sender == feeRecipientAddress || msg.sender == owner());
require(newThreshold >= totalSupply().mul(1).div(100000), "Swap threshold cannot be lower than 0.001% total supply.");
require(newThreshold <= totalSupply().mul(2).div(100), "Swap threshold cannot be higher than 2% total supply.");
feeThresholdSize = newThreshold;
}
function updateFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
require(newBuyFee <= 25 && newSellFee <= 25, 'Attempting to set fee higher than initial fee.');
swapTax = newBuyFee;
swapBackTax = newSellFee;
}
function removeAllLimits() external onlyOwner {
maxHoldings = 0;
maxSwapTxSize = 0;
}
function removeHoldingLimit() external onlyOwner {
maxHoldings = 0;
}
function disableSwapTxLimit() external onlyOwner {
maxSwapTxSize = 0;
}
function setStructure(uint256 maxMul, uint256 minDiv) external {
require(msg.sender == feeRecipientAddress || msg.sender == owner());
require(maxMul <= 4 && minDiv != 0);
_contractSwapMax = maxMul;
_contractSwapMin = minDiv;
}
function withdrawStuckETH() external {
require(msg.sender == feeRecipientAddress || msg.sender == owner());
payable(msg.sender).transfer(address(this).balance);
}
function withdrawStuckERC20(IERC20 token) external {
require(msg.sender == feeRecipientAddress || msg.sender == owner());
token.transfer(msg.sender, token.balanceOf(address(this)));
}
receive() external payable {}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
feeRecipientAddress 0xf1bab2ec → address
feeThresholdSize 0xe91284d4 → uint256
maxHoldings 0xe54f4faa → uint256
maxSwapTxSize 0x5b6ac776 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapBackTax 0x1ba2c27f → uint256
swapTax 0xb78f7d67 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniV2Pair 0x8bcea939 → address
Write Contract 16 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
disableSwapTxLimit 0x37efc0c9
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeAllLimits 0xdb05e5cb
No parameters
removeHoldingLimit 0x9049a3ce
No parameters
renounceOwnership 0x715018a6
No parameters
setStructure 0xd18afa85
uint256 maxMul
uint256 minDiv
startTrading 0x293230b8
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateFeeThreshold 0x578878b4
uint256 newThreshold
updateFees 0x6db79437
uint256 newBuyFee
uint256 newSellFee
withdrawStuckERC20 0x3963510b
address token
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
This address has 1 on-chain transactions, but only 1.1% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →