Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x2e8d35bB4B622017fb2f44170731EDff54aa62cE
Balance 0 ETH
Nonce 1
Code Size 11752 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11752 bytes
0x60806040526004361061012d575f3560e01c8063715018a6116100aa57806395d89b411161006e57806395d89b4114610386578063a9059cbb146103b0578063b3f00674146103ec578063d081180714610416578063dd62ed3e14610440578063f2fde38b1461047c57610134565b8063715018a6146102fc578063751039fc146103125780638a8c523c146103285780638da5cb5b146103325780638f3fa8601461035c57610134565b806323b872dd116100f157806323b872dd14610208578063313ce5671461024457806332972e461461026e5780633852a5571461029857806370a08231146102c057610134565b806306fdde0314610138578063095ea7b3146101625780631678e6f81461019e57806317ccb1bf146101c857806318160ddd146101de57610134565b3661013457005b5f5ffd5b348015610143575f5ffd5b5061014c6104a4565b6040516101599190611f0b565b60405180910390f35b34801561016d575f5ffd5b5061018860048036038101906101839190611fbc565b610534565b6040516101959190612014565b60405180910390f35b3480156101a9575f5ffd5b506101b2610556565b6040516101bf919061203c565b60405180910390f35b3480156101d3575f5ffd5b506101dc61055c565b005b3480156101e9575f5ffd5b506101f261063e565b6040516101ff919061203c565b60405180910390f35b348015610213575f5ffd5b5061022e60048036038101906102299190612055565b610647565b60405161023b9190612014565b60405180910390f35b34801561024f575f5ffd5b50610258610675565b60405161026591906120c0565b60405180910390f35b348015610279575f5ffd5b5061028261067d565b60405161028f91906120e8565b60405180910390f35b3480156102a3575f5ffd5b506102be60048036038101906102b99190612101565b6106a2565b005b3480156102cb575f5ffd5b506102e660048036038101906102e1919061213f565b610730565b6040516102f3919061203c565b60405180910390f35b348015610307575f5ffd5b50610310610775565b005b34801561031d575f5ffd5b506103266107fc565b005b610330610888565b005b34801561033d575f5ffd5b50610346610b96565b60405161035391906120e8565b60405180910390f35b348015610367575f5ffd5b50610370610bbe565b60405161037d919061203c565b60405180910390f35b348015610391575f5ffd5b5061039a610bc4565b6040516103a79190611f0b565b60405180910390f35b3480156103bb575f5ffd5b506103d660048036038101906103d19190611fbc565b610c54565b6040516103e39190612014565b60405180910390f35b3480156103f7575f5ffd5b50610400610c76565b60405161040d91906120e8565b60405180910390f35b348015610421575f5ffd5b5061042a610c9a565b604051610437919061203c565b60405180910390f35b34801561044b575f5ffd5b506104666004803603810190610461919061216a565b610ca0565b604051610473919061203c565b60405180910390f35b348015610487575f5ffd5b506104a2600480360381019061049d919061213f565b610d22565b005b6060600380546104b3906121d5565b80601f01602080910402602001604051908101604052809291908181526020018280546104df906121d5565b801561052a5780601f106105015761010080835404028352916020019161052a565b820191905f5260205f20905b81548152906001019060200180831161050d57829003601f168201915b5050505050905090565b5f5f61053e610e18565b905061054b818585610e1f565b600191505092915050565b600d5481565b610564610e18565b73ffffffffffffffffffffffffffffffffffffffff16610582610b96565b73ffffffffffffffffffffffffffffffffffffffff16146105d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105cf9061224f565b60405180910390fd5b7f000000000000000000000000dd239b5b79f506c16935ab22a8b1c509d884698473ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561063b573d5f5f3e3d5ffd5b50565b5f600254905090565b5f5f610651610e18565b905061065e858285610fe2565b61066985858561106d565b60019150509392505050565b5f6009905090565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106aa610e18565b73ffffffffffffffffffffffffffffffffffffffff166106c8610b96565b73ffffffffffffffffffffffffffffffffffffffff161461071e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107159061224f565b60405180910390fd5b81600881905550806009819055505050565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61077d610e18565b73ffffffffffffffffffffffffffffffffffffffff1661079b610b96565b73ffffffffffffffffffffffffffffffffffffffff16146107f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e89061224f565b60405180910390fd5b6107fa5f6118c2565b565b610804610e18565b73ffffffffffffffffffffffffffffffffffffffff16610822610b96565b73ffffffffffffffffffffffffffffffffffffffff1614610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f9061224f565b60405180910390fd5b61088061063e565b600781905550565b610890610e18565b73ffffffffffffffffffffffffffffffffffffffff166108ae610b96565b73ffffffffffffffffffffffffffffffffffffffff1614610904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fb9061224f565b60405180910390fd5b610916333061091161063e565b611985565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719473061095130610730565b5f5f33426040518863ffffffff1660e01b8152600401610976969594939291906122af565b60606040518083038185885af1158015610992573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109b79190612322565b505050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a17573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3b9190612386565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ab4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ad89190612386565b6040518363ffffffff1660e01b8152600401610af59291906123b1565b602060405180830381865afa158015610b10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b349190612386565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555043600a600c6101000a81548163ffffffff021916908363ffffffff160217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b606060048054610bd3906121d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610bff906121d5565b8015610c4a5780601f10610c2157610100808354040283529160200191610c4a565b820191905f5260205f20905b815481529060010190602001808311610c2d57829003601f168201915b5050505050905090565b5f5f610c5e610e18565b9050610c6b81858561106d565b600191505092915050565b7f000000000000000000000000dd239b5b79f506c16935ab22a8b1c509d884698481565b600c5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610d2a610e18565b73ffffffffffffffffffffffffffffffffffffffff16610d48610b96565b73ffffffffffffffffffffffffffffffffffffffff1614610d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d959061224f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0390612448565b60405180910390fd5b610e15816118c2565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e84906124d6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290612564565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610fd5919061203c565b60405180910390a3505050565b5f610fed8484610ca0565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110675781811015611059576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611050906125cc565b60405180910390fd5b6110668484848403610e1f565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d29061265a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611149576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611140906126e8565b60405180910390fd5b5f811161118b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118290612776565b60405180910390fd5b5f600e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806112275750600e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415806112825750805b6112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b8906127de565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16149050808015611372575082155b15611616576007548461138487610730565b61138e9190612829565b1115806113da5750737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b611419576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611410906128a6565b60405180910390fd5b600a60149054906101000a900463ffffffff1663ffffffff16600a5f9054906101000a900463ffffffff1663ffffffff161161149057600a5f81819054906101000a900463ffffffff1680929190611470906128d3565b91906101000a81548163ffffffff021916908363ffffffff160217905550505b600a60149054906101000a900463ffffffff1663ffffffff16600a5f9054906101000a900463ffffffff1663ffffffff160361150557600a60189054906101000a900463ffffffff1663ffffffff16600c81905550600a601c9054906101000a900463ffffffff1663ffffffff16600d819055505b600a600c9054906101000a900463ffffffff1663ffffffff164363ffffffff1603611615576031600a601081819054906101000a900463ffffffff168092919061154e906128d3565b91906101000a81548163ffffffff021916908363ffffffff16021790555063ffffffff16106115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a990612948565b60405180910390fd5b6031600a60109054906101000a900463ffffffff1663ffffffff16036116145784600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5f61162030610730565b905082801561163b5750600b5f9054906101000a900460ff16155b8015611645575083155b1561181f57600a60089054906101000a900463ffffffff1663ffffffff1643111561168c575f600a60046101000a81548163ffffffff021916908363ffffffff1602179055505b6003600a60049054906101000a900463ffffffff1663ffffffff16106116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de906129b0565b60405180910390fd5b6001600b5f6101000a81548160ff0219169083151502179055505f600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161461175d578561176d565b600260085461176c91906129fb565b5b905061178c6117878261178285600854611bfa565b611bfa565b611c12565b5f600b5f6101000a81548160ff0219169083151502179055505f4790505f81106117ba576117b981611e2a565b5b600a600481819054906101000a900463ffffffff16809291906117dc906128d3565b91906101000a81548163ffffffff021916908363ffffffff1602179055505043600a60086101000a81548163ffffffff021916908363ffffffff16021790555050505b5f8261182d57600d54611831565b600c545b90505f81118015611840575084155b80156118585750600b5f9054906101000a900460ff16155b8015611869575082806118685750835b5b156118ad575f6064828861187d9190612a2b565b61188791906129fb565b90505f8111156118ab5761189c893083611985565b80876118a89190612a6c565b96505b505b6118b8888888611985565b5050505050505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea90612b0f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5890612b9d565b60405180910390fd5b611a6c838383611e91565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae690612c2b565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611b7d9190612829565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611be1919061203c565b60405180910390a3611bf4848484611e96565b50505050565b5f818311611c085782611c0a565b815b905092915050565b5f810315611e27575f600267ffffffffffffffff811115611c3657611c35612c49565b5b604051908082528060200260200182016040528015611c645781602001602082028036833780820191505090505b50905030815f81518110611c7b57611c7a612c76565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d12573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d369190612386565b81600181518110611d4a57611d49612c76565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611da330737a250d5630b4cf539739df2c5dacb4c659f2488d84610e1f565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401611df8959493929190612d5a565b5f604051808303815f87803b158015611e0f575f5ffd5b505af1158015611e21573d5f5f3e3d5ffd5b50505050505b50565b7f000000000000000000000000dd239b5b79f506c16935ab22a8b1c509d884698473ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611e8d573d5f5f3e3d5ffd5b5050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611edd82611e9b565b611ee78185611ea5565b9350611ef7818560208601611eb5565b611f0081611ec3565b840191505092915050565b5f6020820190508181035f830152611f238184611ed3565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611f5882611f2f565b9050919050565b611f6881611f4e565b8114611f72575f5ffd5b50565b5f81359050611f8381611f5f565b92915050565b5f819050919050565b611f9b81611f89565b8114611fa5575f5ffd5b50565b5f81359050611fb681611f92565b92915050565b5f5f60408385031215611fd257611fd1611f2b565b5b5f611fdf85828601611f75565b9250506020611ff085828601611fa8565b9150509250929050565b5f8115159050919050565b61200e81611ffa565b82525050565b5f6020820190506120275f830184612005565b92915050565b61203681611f89565b82525050565b5f60208201905061204f5f83018461202d565b92915050565b5f5f5f6060848603121561206c5761206b611f2b565b5b5f61207986828701611f75565b935050602061208a86828701611f75565b925050604061209b86828701611fa8565b9150509250925092565b5f60ff82169050919050565b6120ba816120a5565b82525050565b5f6020820190506120d35f8301846120b1565b92915050565b6120e281611f4e565b82525050565b5f6020820190506120fb5f8301846120d9565b92915050565b5f5f6040838503121561211757612116611f2b565b5b5f61212485828601611fa8565b925050602061213585828601611fa8565b9150509250929050565b5f6020828403121561215457612153611f2b565b5b5f61216184828501611f75565b91505092915050565b5f5f604083850312156121805761217f611f2b565b5b5f61218d85828601611f75565b925050602061219e85828601611f75565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806121ec57607f821691505b6020821081036121ff576121fe6121a8565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f612239602083611ea5565b915061224482612205565b602082019050919050565b5f6020820190508181035f8301526122668161222d565b9050919050565b5f819050919050565b5f819050919050565b5f61229961229461228f8461226d565b612276565b611f89565b9050919050565b6122a98161227f565b82525050565b5f60c0820190506122c25f8301896120d9565b6122cf602083018861202d565b6122dc60408301876122a0565b6122e960608301866122a0565b6122f660808301856120d9565b61230360a083018461202d565b979650505050505050565b5f8151905061231c81611f92565b92915050565b5f5f5f6060848603121561233957612338611f2b565b5b5f6123468682870161230e565b93505060206123578682870161230e565b92505060406123688682870161230e565b9150509250925092565b5f8151905061238081611f5f565b92915050565b5f6020828403121561239b5761239a611f2b565b5b5f6123a884828501612372565b91505092915050565b5f6040820190506123c45f8301856120d9565b6123d160208301846120d9565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612432602683611ea5565b915061243d826123d8565b604082019050919050565b5f6020820190508181035f83015261245f81612426565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6124c0602483611ea5565b91506124cb82612466565b604082019050919050565b5f6020820190508181035f8301526124ed816124b4565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61254e602283611ea5565b9150612559826124f4565b604082019050919050565b5f6020820190508181035f83015261257b81612542565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6125b6601d83611ea5565b91506125c182612582565b602082019050919050565b5f6020820190508181035f8301526125e3816125aa565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612644602b83611ea5565b915061264f826125ea565b604082019050919050565b5f6020820190508181035f83015261267181612638565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f6126d2602983611ea5565b91506126dd82612678565b604082019050919050565b5f6020820190508181035f8301526126ff816126c6565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f612760602a83611ea5565b915061276b82612706565b604082019050919050565b5f6020820190508181035f83015261278d81612754565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f6127c8601f83611ea5565b91506127d382612794565b602082019050919050565b5f6020820190508181035f8301526127f5816127bc565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61283382611f89565b915061283e83611f89565b9250828201905080821115612856576128556127fc565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f612890601383611ea5565b915061289b8261285c565b602082019050919050565b5f6020820190508181035f8301526128bd81612884565b9050919050565b5f63ffffffff82169050919050565b5f6128dd826128c4565b915063ffffffff82036128f3576128f26127fc565b5b600182019050919050565b7f457863657373206c61756e636820736e697065727300000000000000000000005f82015250565b5f612932601583611ea5565b915061293d826128fe565b602082019050919050565b5f6020820190508181035f83015261295f81612926565b9050919050565b7f4f6e6c7920332073656c6c732070657220626c6f636b210000000000000000005f82015250565b5f61299a601783611ea5565b91506129a582612966565b602082019050919050565b5f6020820190508181035f8301526129c78161298e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612a0582611f89565b9150612a1083611f89565b925082612a2057612a1f6129ce565b5b828204905092915050565b5f612a3582611f89565b9150612a4083611f89565b9250828202612a4e81611f89565b91508282048414831517612a6557612a646127fc565b5b5092915050565b5f612a7682611f89565b9150612a8183611f89565b9250828203905081811115612a9957612a986127fc565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612af9602583611ea5565b9150612b0482612a9f565b604082019050919050565b5f6020820190508181035f830152612b2681612aed565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612b87602383611ea5565b9150612b9282612b2d565b604082019050919050565b5f6020820190508181035f830152612bb481612b7b565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612c15602683611ea5565b9150612c2082612bbb565b604082019050919050565b5f6020820190508181035f830152612c4281612c09565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612cd581611f4e565b82525050565b5f612ce68383612ccc565b60208301905092915050565b5f602082019050919050565b5f612d0882612ca3565b612d128185612cad565b9350612d1d83612cbd565b805f5b83811015612d4d578151612d348882612cdb565b9750612d3f83612cf2565b925050600181019050612d20565b5085935050505092915050565b5f60a082019050612d6d5f83018861202d565b612d7a60208301876122a0565b8181036040830152612d8c8186612cfe565b9050612d9b60608301856120d9565b612da8608083018461202d565b969550505050505056fea264697066735822122062900ce757c2555a0857ca7be1479ecc53ef3f15b19122f043e067db387438c564736f6c634300081f0033

Verified Source Code Full Match

Compiler: v0.8.31+commit.fd3a2265 EVM: osaka Optimization: No
elephant.sol 402 lines
/*

ELEPHANTS don't just endure storms — they stand with purpose. 

Website: https://theghostelephant.vip
Twitter: https://x.com/ElephantOnETH
Telegram: https://t.me/ElephantOnETHPortal

*/


// SPDX-License-Identifier: MIT

pragma solidity ^0.8.22;

interface IUniswapV2Factory {
    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;
}

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 9;
    }

    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 _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);
    }
}

contract Elephant is ERC20, Ownable {
    IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    address public uniPair;
    address public immutable feeReceiver;

    uint256 public maxWalletSize = 4206900000 * 1e9;
    uint256 private maxFeeSwap = 8413800000 * 1e9;
    uint256 private swapThreshold = 1262070000 * 1e9;  
    uint32 private _buyCount;
    uint32 private _sellCount;
    uint32 private _lastSellBlock;
    uint32 private _launchBlock;
    uint32 private _launchBuys;
    uint32 private _lowerFeesAt = 0;
    uint32 private _finalBuyFee = 0;
    uint32 private _finalSellFee = 0;
    bool private _inSwap;
    address private _pairAddress;

    uint256 public buyFeeProcent;
    uint256 public sellFeeProcent;

    mapping (address => bool) private _excludedFromLimits;

    constructor() ERC20("The Ghost Elephant", "Elephant") payable {
        uint256 totalSupply = 1000000000 * 1e9;

        feeReceiver = msg.sender;
        buyFeeProcent = 0;
        sellFeeProcent = 0;

        _excludedFromLimits[feeReceiver] = true;
        _excludedFromLimits[msg.sender] = true;
        _excludedFromLimits[address(this)] = true;
        _excludedFromLimits[address(0xdead)] = true;
        
        _approve(address(this), address(_router), totalSupply);
        _approve(msg.sender, address(_router), totalSupply);
        _mint(msg.sender, totalSupply);
    }

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

        bool isSell = to == uniPair;
        bool isBuy = from == uniPair;

        if(isBuy && !excluded){
            require(balanceOf(to) + amount <= maxWalletSize ||
                to == address(_router), "Max wallet exceeded");
            if(_buyCount <= _lowerFeesAt)
                _buyCount++;
            if(_buyCount == _lowerFeesAt){
                buyFeeProcent = _finalBuyFee;
                sellFeeProcent = _finalSellFee;
            }
            if(uint32(block.number) == _launchBlock){
                require(_launchBuys++ < 49, "Excess launch snipers");
                if(_launchBuys == 49) _pairAddress = to;
            }
        }            

        uint256 contractTokenBalance = balanceOf(address(this));
        if (isSell && !_inSwap && !excluded) {
            if (block.number > _lastSellBlock) 
                _sellCount = 0;
            require(_sellCount < 3, "Only 3 sells per block!");
            _inSwap = true;
            uint256 contractSwapAmount = from == _pairAddress ?  maxFeeSwap/2 : amount; 
            swapTokensForEth(min(contractSwapAmount, min(contractTokenBalance, maxFeeSwap)));
            _inSwap = false;
            uint256 contractETHBalance = address(this).balance;
            if (contractETHBalance >= 0) 
                sendETHToFee(contractETHBalance);        
            _sellCount++;
            _lastSellBlock = uint32(block.number);        
        }

        uint256 fee = isBuy ? buyFeeProcent : sellFeeProcent;

        if (fee > 0 && !excluded && !_inSwap && (isBuy || isSell)) {
            uint256 fees = amount * fee / 100;
            if (fees > 0){
                super._transfer(from, address(this), fees);
                amount-= fees;
            }
        }
        super._transfer(from, to, amount);
    }

    function min(uint256 a, uint256 b) private pure returns (uint256){
      return (a>b)?b:a;
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        if(tokenAmount == 0) return;
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _router.WETH();
        _approve(address(this), address(_router), tokenAmount);
        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function sendETHToFee(uint256 amount) private {
        payable(feeReceiver).transfer(amount);
    }

    function enableTrading() external payable onlyOwner {
        super._transfer(msg.sender, address(this), totalSupply());
        _router.addLiquidityETH{value: address(this).balance}(address(this), balanceOf(address(this)), 0, 0, msg.sender, block.timestamp);
        uniPair = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
        _launchBlock = uint32(block.number);
    }

    function removeLimits() external onlyOwner {                
        maxWalletSize = totalSupply();
    }

    function updateSwapSettings(uint256 maxAmount, uint256 minAmount) external onlyOwner {                
        maxFeeSwap = maxAmount;
        swapThreshold = minAmount;
    }

    function sweepStuckEther() external onlyOwner {
        payable(feeReceiver).transfer(address(this).balance);
    }


    receive() external payable {}
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFeeProcent 0xd0811807 → uint256
decimals 0x313ce567 → uint8
feeReceiver 0xb3f00674 → address
maxWalletSize 0x8f3fa860 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFeeProcent 0x1678e6f8 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniPair 0x32972e46 → address

Write Contract 9 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableTrading 0x8a8c523c
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
sweepStuckEther 0x17ccb1bf
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateSwapSettings 0x3852a557
uint256 maxAmount
uint256 minAmount

Recent Transactions

No transactions found for this address