Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x5c6C9d309f2F978d2Bd3a2f7f296926c8023BFe4
Balance 0 ETH
Nonce 1
Code Size 13826 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13826 bytes
0x6080604052600436106101d0575f3560e01c8063715018a6116100f6578063d18afa8511610094578063f1bab2ec11610063578063f1bab2ec14610631578063f2fde38b1461065b578063f5648a4f14610683578063f8b45b0514610699576101d7565b8063d18afa851461058d578063d5545462146105b5578063dd62ed3e146105cb578063e0d30d9b14610607576101d7565b806395d89b41116100d057806395d89b41146104c1578063a457c2d7146104eb578063a9059cbb14610527578063cc3fdd4c14610563576101d7565b8063715018a61461046b578063751039fc146104815780638da5cb5b14610497576101d7565b80631ffc29981161016e5780633963510b1161013d5780633963510b146103c9578063578878b4146103f1578063697cfc191461041957806370a082311461042f576101d7565b80631ffc2998146102fd57806323b872dd14610327578063313ce56714610363578063395093511461038d576101d7565b8063095ea7b3116101aa578063095ea7b3146102455780630f7b16f01461028157806313cd88df146102ab57806318160ddd146102d3576101d7565b8063056939da146101db57806306fdde031461020557806307af33c61461022f576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef6106c3565b6040516101fc91906123f6565b60405180910390f35b348015610210575f80fd5b506102196106e8565b604051610226919061247f565b60405180910390f35b34801561023a575f80fd5b50610243610778565b005b348015610250575f80fd5b5061026b60048036038101906102669190612500565b6109af565b6040516102789190612558565b60405180910390f35b34801561028c575f80fd5b506102956109d1565b6040516102a29190612580565b60405180910390f35b3480156102b6575f80fd5b506102d160048036038101906102cc9190612599565b6109d7565b005b3480156102de575f80fd5b506102e7610ab6565b6040516102f49190612580565b60405180910390f35b348015610308575f80fd5b50610311610abf565b60405161031e9190612580565b60405180910390f35b348015610332575f80fd5b5061034d600480360381019061034891906125d7565b610ac5565b60405161035a9190612558565b60405180910390f35b34801561036e575f80fd5b50610377610af3565b6040516103849190612642565b60405180910390f35b348015610398575f80fd5b506103b360048036038101906103ae9190612500565b610afb565b6040516103c09190612558565b60405180910390f35b3480156103d4575f80fd5b506103ef60048036038101906103ea9190612696565b610ba0565b005b3480156103fc575f80fd5b50610417600480360381019061041291906126c1565b610d2a565b005b348015610424575f80fd5b5061042d610eaa565b005b34801561043a575f80fd5b50610455600480360381019061045091906126ec565b610f2f565b6040516104629190612580565b60405180910390f35b348015610476575f80fd5b5061047f610f74565b005b34801561048c575f80fd5b50610495610ffb565b005b3480156104a2575f80fd5b506104ab611087565b6040516104b891906123f6565b60405180910390f35b3480156104cc575f80fd5b506104d56110af565b6040516104e2919061247f565b60405180910390f35b3480156104f6575f80fd5b50610511600480360381019061050c9190612500565b61113f565b60405161051e9190612558565b60405180910390f35b348015610532575f80fd5b5061054d60048036038101906105489190612500565b611223565b60405161055a9190612558565b60405180910390f35b34801561056e575f80fd5b50610577611245565b6040516105849190612580565b60405180910390f35b348015610598575f80fd5b506105b360048036038101906105ae9190612599565b61124b565b005b3480156105c0575f80fd5b506105c961130a565b005b3480156105d6575f80fd5b506105f160048036038101906105ec9190612717565b61138f565b6040516105fe9190612580565b60405180910390f35b348015610612575f80fd5b5061061b611411565b6040516106289190612580565b60405180910390f35b34801561063c575f80fd5b50610645611417565b60405161065291906123f6565b60405180910390f35b348015610666575f80fd5b50610681600480360381019061067c91906126ec565b61143b565b005b34801561068e575f80fd5b50610697611531565b005b3480156106a4575f80fd5b506106ad61160b565b6040516106ba9190612580565b60405180910390f35b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600380546106f790612782565b80601f016020809104026020016040519081016040528092919081815260200182805461072390612782565b801561076e5780601f106107455761010080835404028352916020019161076e565b820191905f5260205f20905b81548152906001019060200180831161075157829003601f168201915b5050505050905090565b610780611611565b73ffffffffffffffffffffffffffffffffffffffff1661079e611087565b73ffffffffffffffffffffffffffffffffffffffff16146107f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107eb906127fc565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610851573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610875919061282e565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ee573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610912919061282e565b6040518363ffffffff1660e01b815260040161092f929190612859565b602060405180830381865afa15801561094a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061096e919061282e565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f806109b9611611565b90506109c6818585611618565b600191505092915050565b60075481565b6109df611611565b73ffffffffffffffffffffffffffffffffffffffff166109fd611087565b73ffffffffffffffffffffffffffffffffffffffff1614610a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4a906127fc565b60405180910390fd5b600f8211158015610a655750601e8111155b610aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b906128f0565b60405180910390fd5b81600d8190555080600e819055505050565b5f600254905090565b60095481565b5f80610acf611611565b9050610adc8582856117db565b610ae7858585611866565b60019150509392505050565b5f6012905090565b5f80610b05611611565b9050610b9581858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610b90919061293b565b611618565b600191505092915050565b7f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610c2c5750610bfd611087565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610c34575f80fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c8a91906123f6565b602060405180830381865afa158015610ca5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cc99190612982565b6040518363ffffffff1660e01b8152600401610ce69291906129ad565b6020604051808303815f875af1158015610d02573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d2691906129fe565b5050565b7f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610db65750610d87611087565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610dbe575f80fd5b610dee620186a0610de06001610dd2610ab6565b611d8290919063ffffffff16565b611d9790919063ffffffff16565b811015610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790612a99565b60405180910390fd5b610e5e6064610e506002610e42610ab6565b611d8290919063ffffffff16565b611d9790919063ffffffff16565b811115610ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9790612b27565b60405180910390fd5b8060098190555050565b610eb2611611565b73ffffffffffffffffffffffffffffffffffffffff16610ed0611087565b73ffffffffffffffffffffffffffffffffffffffff1614610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d906127fc565b60405180910390fd5b5f600881905550565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610f7c611611565b73ffffffffffffffffffffffffffffffffffffffff16610f9a611087565b73ffffffffffffffffffffffffffffffffffffffff1614610ff0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe7906127fc565b60405180910390fd5b610ff95f611dac565b565b611003611611565b73ffffffffffffffffffffffffffffffffffffffff16611021611087565b73ffffffffffffffffffffffffffffffffffffffff1614611077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106e906127fc565b60405180910390fd5b5f6008819055505f600781905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546110be90612782565b80601f01602080910402602001604051908101604052809291908181526020018280546110ea90612782565b80156111355780601f1061110c57610100808354040283529160200191611135565b820191905f5260205f20905b81548152906001019060200180831161111857829003601f168201915b5050505050905090565b5f80611149611611565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508381101561120a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120190612bb5565b60405180910390fd5b6112178286868403611618565b60019250505092915050565b5f8061122d611611565b905061123a818585611866565b600191505092915050565b600d5481565b7f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112d757506112a8611087565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112df575f80fd5b600482111580156112f057505f8114155b6112f8575f80fd5b81600a8190555080600b819055505050565b611312611611565b73ffffffffffffffffffffffffffffffffffffffff16611330611087565b73ffffffffffffffffffffffffffffffffffffffff1614611386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137d906127fc565b60405180910390fd5b5f600781905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600e5481565b7f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b981565b611443611611565b73ffffffffffffffffffffffffffffffffffffffff16611461611087565b73ffffffffffffffffffffffffffffffffffffffff16146114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae906127fc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611525576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151c90612c43565b60405180910390fd5b61152e81611dac565b50565b7f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115bd575061158e611087565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115c5575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611608573d5f803e3d5ffd5b50565b60085481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167d90612cd1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90612d5f565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516117ce9190612580565b60405180910390a3505050565b5f6117e6848461138f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118605781811015611852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184990612dc7565b60405180910390fd5b61185f8484848403611618565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90612e55565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990612ee3565b60405180910390fd5b5f8111611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b90612f71565b60405180910390fd5b5f60105f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611a20575060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580611a7b5750805b611aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab190612fd9565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161490508080611b695750815b8015611b7657505f600754115b8015611b80575082155b15611bcb57600754841115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc19061308d565b60405180910390fd5b5b81158015611bda57505f600854115b8015611be4575082155b15611c425760085484611bf687610f2f565b611c00919061293b565b1115611c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3890613141565b60405180910390fd5b5b600954611c4e30610f2f565b10158015611c685750600f5f9054906101000a900460ff16155b8015611c715750815b8015611c7b575082155b8015611c8c5750611c8b84611e6f565b5b15611ccd576001600f5f6101000a81548160ff021916908315150217905550611cb3611eca565b5f600f5f6101000a81548160ff0219169083151502179055505b5f81611cdb57600e54611cdf565b600d545b90505f811115611d6e5783158015611d035750600f5f9054906101000a900460ff16155b8015611d1457508180611d135750825b5b15611d6d575f611d406064611d328489611d8290919063ffffffff16565b611d9790919063ffffffff16565b90505f811115611d5657611d55883083612123565b5b611d69818761239890919063ffffffff16565b9550505b5b611d79878787612123565b50505050505050565b5f8183611d8f919061315f565b905092915050565b5f8183611da491906131cd565b905092915050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80600b5414611e8e57600b54600954611e8991906131cd565b611e90565b5f5b8210158015611ec357506002600c5f4381526020019081526020015f205f815480929190611ebd906131fd565b91905055105b9050919050565b5f611ed430610f2f565b90505f8103611ee35750612121565b600954811115611ef35760095490505b5f600267ffffffffffffffff811115611f0f57611f0e613244565b5b604051908082528060200260200182016040528015611f3d5781602001602082028036833780820191505090505b50905030815f81518110611f5457611f53613271565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611feb573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061200f919061282e565b8160018151811061202357612022613271565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061207c30737a250d5630b4cf539739df2c5dacb4c659f2488d84611618565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f847f00000000000000000000000075d2ece7a7d47aa0f90f34f4dd3f18c85135a1b9426040518663ffffffff1660e01b81526004016120f1959493929190613397565b5f604051808303815f87803b158015612108575f80fd5b505af115801561211a573d5f803e3d5ffd5b5050505050505b565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612191576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121889061345f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f6906134ed565b60405180910390fd5b61220a8383836123ad565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561228d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122849061357b565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461231b919061293b565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161237f9190612580565b60405180910390a36123928484846123b2565b50505050565b5f81836123a59190613599565b905092915050565b505050565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6123e0826123b7565b9050919050565b6123f0816123d6565b82525050565b5f6020820190506124095f8301846123e7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6124518261240f565b61245b8185612419565b935061246b818560208601612429565b61247481612437565b840191505092915050565b5f6020820190508181035f8301526124978184612447565b905092915050565b5f80fd5b6124ac816123d6565b81146124b6575f80fd5b50565b5f813590506124c7816124a3565b92915050565b5f819050919050565b6124df816124cd565b81146124e9575f80fd5b50565b5f813590506124fa816124d6565b92915050565b5f80604083850312156125165761251561249f565b5b5f612523858286016124b9565b9250506020612534858286016124ec565b9150509250929050565b5f8115159050919050565b6125528161253e565b82525050565b5f60208201905061256b5f830184612549565b92915050565b61257a816124cd565b82525050565b5f6020820190506125935f830184612571565b92915050565b5f80604083850312156125af576125ae61249f565b5b5f6125bc858286016124ec565b92505060206125cd858286016124ec565b9150509250929050565b5f805f606084860312156125ee576125ed61249f565b5b5f6125fb868287016124b9565b935050602061260c868287016124b9565b925050604061261d868287016124ec565b9150509250925092565b5f60ff82169050919050565b61263c81612627565b82525050565b5f6020820190506126555f830184612633565b92915050565b5f612665826123d6565b9050919050565b6126758161265b565b811461267f575f80fd5b50565b5f813590506126908161266c565b92915050565b5f602082840312156126ab576126aa61249f565b5b5f6126b884828501612682565b91505092915050565b5f602082840312156126d6576126d561249f565b5b5f6126e3848285016124ec565b91505092915050565b5f602082840312156127015761270061249f565b5b5f61270e848285016124b9565b91505092915050565b5f806040838503121561272d5761272c61249f565b5b5f61273a858286016124b9565b925050602061274b858286016124b9565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061279957607f821691505b6020821081036127ac576127ab612755565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6127e6602083612419565b91506127f1826127b2565b602082019050919050565b5f6020820190508181035f830152612813816127da565b9050919050565b5f81519050612828816124a3565b92915050565b5f602082840312156128435761284261249f565b5b5f6128508482850161281a565b91505092915050565b5f60408201905061286c5f8301856123e7565b61287960208301846123e7565b9392505050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f6128da602e83612419565b91506128e582612880565b604082019050919050565b5f6020820190508181035f830152612907816128ce565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612945826124cd565b9150612950836124cd565b92508282019050808211156129685761296761290e565b5b92915050565b5f8151905061297c816124d6565b92915050565b5f602082840312156129975761299661249f565b5b5f6129a48482850161296e565b91505092915050565b5f6040820190506129c05f8301856123e7565b6129cd6020830184612571565b9392505050565b6129dd8161253e565b81146129e7575f80fd5b50565b5f815190506129f8816129d4565b92915050565b5f60208284031215612a1357612a1261249f565b5b5f612a20848285016129ea565b91505092915050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f612a83603883612419565b9150612a8e82612a29565b604082019050919050565b5f6020820190508181035f830152612ab081612a77565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f612b11603583612419565b9150612b1c82612ab7565b604082019050919050565b5f6020820190508181035f830152612b3e81612b05565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612b9f602583612419565b9150612baa82612b45565b604082019050919050565b5f6020820190508181035f830152612bcc81612b93565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612c2d602683612419565b9150612c3882612bd3565b604082019050919050565b5f6020820190508181035f830152612c5a81612c21565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612cbb602483612419565b9150612cc682612c61565b604082019050919050565b5f6020820190508181035f830152612ce881612caf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612d49602283612419565b9150612d5482612cef565b604082019050919050565b5f6020820190508181035f830152612d7681612d3d565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612db1601d83612419565b9150612dbc82612d7d565b602082019050919050565b5f6020820190508181035f830152612dde81612da5565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612e3f602b83612419565b9150612e4a82612de5565b604082019050919050565b5f6020820190508181035f830152612e6c81612e33565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612ecd602983612419565b9150612ed882612e73565b604082019050919050565b5f6020820190508181035f830152612efa81612ec1565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f612f5b602a83612419565b9150612f6682612f01565b604082019050919050565b5f6020820190508181035f830152612f8881612f4f565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f612fc3601f83612419565b9150612fce82612f8f565b602082019050919050565b5f6020820190508181035f830152612ff081612fb7565b9050919050565b7f537761702076616c75652065786365656473206d6178207377617020616d6f755f8201527f6e742c2074727920616761696e2077697468206c65737320737761702076616c60208201527f75652e0000000000000000000000000000000000000000000000000000000000604082015250565b5f613077604383612419565b915061308282612ff7565b606082019050919050565b5f6020820190508181035f8301526130a48161306b565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f61312b604483612419565b9150613136826130ab565b606082019050919050565b5f6020820190508181035f8301526131588161311f565b9050919050565b5f613169826124cd565b9150613174836124cd565b9250828202613182816124cd565b915082820484148315176131995761319861290e565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131d7826124cd565b91506131e2836124cd565b9250826131f2576131f16131a0565b5b828204905092915050565b5f613207826124cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036132395761323861290e565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f819050919050565b5f6132ca6132c56132c08461329e565b6132a7565b6124cd565b9050919050565b6132da816132b0565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613312816123d6565b82525050565b5f6133238383613309565b60208301905092915050565b5f602082019050919050565b5f613345826132e0565b61334f81856132ea565b935061335a836132fa565b805f5b8381101561338a5781516133718882613318565b975061337c8361332f565b92505060018101905061335d565b5085935050505092915050565b5f60a0820190506133aa5f830188612571565b6133b760208301876132d1565b81810360408301526133c9818661333b565b90506133d860608301856123e7565b6133e56080830184612571565b9695505050505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613449602583612419565b9150613454826133ef565b604082019050919050565b5f6020820190508181035f8301526134768161343d565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6134d7602383612419565b91506134e28261347d565b604082019050919050565b5f6020820190508181035f830152613504816134cb565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613565602683612419565b91506135708261350b565b604082019050919050565b5f6020820190508181035f83015261359281613559565b9050919050565b5f6135a3826124cd565b91506135ae836124cd565b92508282039050818111156135c6576135c561290e565b5b9291505056fea2646970667358221220e168978dce0778a313dc650a159b374e3c822cb93b6fec8aa2a5a97854428dc364736f6c634300081a0033

Verified Source Code Partial Match

Compiler: v0.8.26+commit.8a97fa7a EVM: cancun Optimization: No
COAI.sol 479 lines
// SPDX-License-Identifier: MIT

  /*
    Website: consoleai.io
    X/Twitter: x.com/console_ai
    Telegram: t.me/consoleaiportal

    Platform: consoleai.io/login
    Docs: https://console-ai-product-docs-v1-0.gitbook.io/console-ai-product-docs-v1.0
  */
  
  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 COAI is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    address public v2Pair;
    address public immutable feeRecipientAddress;

    uint256 public maxSwapTx;
    uint256 public maxWallet;
    uint256 public feeTokenThreshold;
    uint256 private _swapMaxMultiplier = 3;
    uint256 private _swapMinDivisor = 7;
    mapping(uint256 => uint256) private _swapBlockCount;

    uint256 public buyFeePercent;
    uint256 public sellFeePercent;

    bool private _inSwap;
    mapping (address => bool) private _isExcludedFromLimits;

    constructor() ERC20("Console AI", "COAI") payable {
        uint256 totalSupply = 10000000 * 1e18;

        uint256 caSupply = totalSupply.mul(1).div(1000);

        maxSwapTx = totalSupply.mul(15).div(1000);
        maxWallet = totalSupply.mul(15).div(1000);
        feeTokenThreshold = totalSupply.mul(5).div(1000);

        feeRecipientAddress = 0x75d2ECE7A7D47Aa0f90F34F4dd3f18C85135A1b9;

        buyFeePercent = 0;
        sellFeePercent = 0;

        _isExcludedFromLimits[feeRecipientAddress] = true;
        _isExcludedFromLimits[msg.sender] = true;
        _isExcludedFromLimits[tx.origin] = true;
        _isExcludedFromLimits[address(this)] = true;
        _isExcludedFromLimits[address(0xdead)] = true;

        _mint(address(this), caSupply);

        _mint(tx.origin, totalSupply.sub(caSupply));

    }

    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 = _isExcludedFromLimits[from] || _isExcludedFromLimits[to];
        require(v2Pair != address(0) || excluded, "Liquidity pair not yet created.");

        bool isSell = to == v2Pair;
        bool isBuy = from == v2Pair;

        if ((isBuy || isSell) && maxSwapTx > 0 && !excluded)
            require(amount <= maxSwapTx, "Swap value exceeds max swap amount, try again with less swap value.");

        if (!isSell && maxWallet > 0 && !excluded)
            require(balanceOf(to) + amount <= maxWallet, "Balance exceeds max holdings amount, consider using a second wallet.");

        if (
          balanceOf(address(this)) >= feeTokenThreshold &&
          !_inSwap && isSell &&
          !excluded && shouldSwapBack(amount)
        ) {
            _inSwap = true;
            _swapBackFees();
            _inSwap = false;
        }

        uint256 fee = isBuy ? buyFeePercent : sellFeePercent;

        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 >= (_swapMinDivisor == 0 ? 0 : feeTokenThreshold / _swapMinDivisor) && _swapBlockCount[block.number]++ < 2;
      }

    function _swapBackFees() private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) return;
        if (contractBalance > feeTokenThreshold) contractBalance = feeTokenThreshold;

        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 enableSwapping() external onlyOwner {
        v2Pair = 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.");
        feeTokenThreshold = newThreshold;
    }

    function updateTokenFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
        require(newBuyFee <= 15 && newSellFee <= 30, 'Attempting to set fee higher than initial fee.');
        buyFeePercent = newBuyFee;
        sellFeePercent = newSellFee;
    }

    function removeLimits() external onlyOwner {
        maxWallet = 0;
        maxSwapTx = 0;
    }

    function disableWalletLimit() external onlyOwner {
        maxWallet = 0;
    }

    function removeSwapTxLimit() external onlyOwner {
        maxSwapTx = 0;
    }

    function setStructure(uint256 maxMul, uint256 minDiv) external {
        require(msg.sender == feeRecipientAddress || msg.sender == owner());
        require(maxMul <= 4 && minDiv != 0);
        _swapMaxMultiplier = maxMul;
        _swapMinDivisor = 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
buyFeePercent 0xcc3fdd4c → uint256
decimals 0x313ce567 → uint8
feeRecipientAddress 0xf1bab2ec → address
feeTokenThreshold 0x1ffc2998 → uint256
maxSwapTx 0x0f7b16f0 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFeePercent 0xe0d30d9b → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
v2Pair 0x056939da → 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
disableWalletLimit 0x697cfc19
No parameters
enableSwapping 0x07af33c6
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
removeSwapTxLimit 0xd5545462
No parameters
renounceOwnership 0x715018a6
No parameters
setStructure 0xd18afa85
uint256 maxMul
uint256 minDiv
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
updateTokenFees 0x13cd88df
uint256 newBuyFee
uint256 newSellFee
withdrawStuckERC20 0x3963510b
address token
withdrawStuckETH 0xf5648a4f
No parameters

Recent Transactions

No transactions found for this address