Address Contract Partially Verified
Address
0x96Da47466cB83eD7c9F1c72fd46D170e876c8166
Balance
0 ETH
Nonce
1
Code Size
14119 bytes
Creator
0xf38df6b1...dCbB at tx 0xaff4396e...140701
Indexed Transactions
0
Contract Bytecode
14119 bytes
0x6080604052600436106101d0575f3560e01c80635564ad71116100f6578063a9059cbb11610094578063d18afa8511610063578063d18afa851461060f578063dd62ed3e14610637578063f2fde38b14610673578063f442d3fb1461069b576101d7565b8063a9059cbb14610555578063ac3c457314610591578063b60e06df146105bb578063b78f7d67146105e5576101d7565b806387dd95c0116100d057806387dd95c0146104af5780638da5cb5b146104c557806395d89b41146104ef578063a457c2d714610519576101d7565b80635564ad711461044757806370a082311461045d578063715018a614610499576101d7565b806318160ddd1161016e578063313ce5671161013d578063313ce567146103a157806337efc0c9146103cb57806339509351146103e157806353945d7b1461041d576101d7565b806318160ddd146102e75780631ba2c27f1461031157806323b872dd1461033b5780632f2dae7f14610377576101d7565b8063095ea7b3116101aa578063095ea7b3146102315780630d10f5651461026d5780630ee092fd146102955780630f51076f146102bd576101d7565b806303f90771146101db57806306fdde03146101f157806307af33c61461021b576101d7565b366101d757005b5f80fd5b3480156101e6575f80fd5b506101ef6106c3565b005b3480156101fc575f80fd5b5061020561074f565b604051610212919061254c565b60405180910390f35b348015610226575f80fd5b5061022f6107df565b005b34801561023c575f80fd5b50610257600480360381019061025291906125fd565b610a16565b6040516102649190612655565b60405180910390f35b348015610278575f80fd5b50610293600480360381019061028e919061266e565b610a38565b005b3480156102a0575f80fd5b506102bb60048036038101906102b691906126e7565b610b17565b005b3480156102c8575f80fd5b506102d1610ca1565b6040516102de9190612721565b60405180910390f35b3480156102f2575f80fd5b506102fb610ca7565b6040516103089190612721565b60405180910390f35b34801561031c575f80fd5b50610325610cb0565b6040516103329190612721565b60405180910390f35b348015610346575f80fd5b50610361600480360381019061035c919061273a565b610cb6565b60405161036e9190612655565b60405180910390f35b348015610382575f80fd5b5061038b610ce4565b6040516103989190612721565b60405180910390f35b3480156103ac575f80fd5b506103b5610cea565b6040516103c291906127a5565b60405180910390f35b3480156103d6575f80fd5b506103df610cf2565b005b3480156103ec575f80fd5b50610407600480360381019061040291906125fd565b610d77565b6040516104149190612655565b60405180910390f35b348015610428575f80fd5b50610431610e1c565b60405161043e91906127cd565b60405180910390f35b348015610452575f80fd5b5061045b610e41565b005b348015610468575f80fd5b50610483600480360381019061047e91906127e6565b610ec6565b6040516104909190612721565b60405180910390f35b3480156104a4575f80fd5b506104ad610f0b565b005b3480156104ba575f80fd5b506104c3610f92565b005b3480156104d0575f80fd5b506104d961106c565b6040516104e691906127cd565b60405180910390f35b3480156104fa575f80fd5b50610503611094565b604051610510919061254c565b60405180910390f35b348015610524575f80fd5b5061053f600480360381019061053a91906125fd565b611124565b60405161054c9190612655565b60405180910390f35b348015610560575f80fd5b5061057b600480360381019061057691906125fd565b611208565b6040516105889190612655565b60405180910390f35b34801561059c575f80fd5b506105a561122a565b6040516105b29190612721565b60405180910390f35b3480156105c6575f80fd5b506105cf611230565b6040516105dc91906127cd565b60405180910390f35b3480156105f0575f80fd5b506105f9611254565b6040516106069190612721565b60405180910390f35b34801561061a575f80fd5b506106356004803603810190610630919061266e565b61125a565b005b348015610642575f80fd5b5061065d60048036038101906106589190612811565b611319565b60405161066a9190612721565b60405180910390f35b34801561067e575f80fd5b50610699600480360381019061069491906127e6565b61139b565b005b3480156106a6575f80fd5b506106c160048036038101906106bc919061284f565b611491565b005b6106cb611611565b73ffffffffffffffffffffffffffffffffffffffff166106e961106c565b73ffffffffffffffffffffffffffffffffffffffff161461073f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610736906128c4565b60405180910390fd5b5f6008819055505f600781905550565b60606003805461075e9061290f565b80601f016020809104026020016040519081016040528092919081815260200182805461078a9061290f565b80156107d55780601f106107ac576101008083540402835291602001916107d5565b820191905f5260205f20905b8154815290600101906020018083116107b857829003601f168201915b5050505050905090565b6107e7611611565b73ffffffffffffffffffffffffffffffffffffffff1661080561106c565b73ffffffffffffffffffffffffffffffffffffffff161461085b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610852906128c4565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108b8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108dc9190612953565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610955573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109799190612953565b6040518363ffffffff1660e01b815260040161099692919061297e565b602060405180830381865afa1580156109b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d59190612953565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f80610a20611611565b9050610a2d818585611618565b600191505092915050565b610a40611611565b73ffffffffffffffffffffffffffffffffffffffff16610a5e61106c565b73ffffffffffffffffffffffffffffffffffffffff1614610ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aab906128c4565b60405180910390fd5b60038211158015610ac65750600a8111155b610b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afc90612a15565b60405180910390fd5b81600d8190555080600e819055505050565b7f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ba35750610b7461106c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610bab575f80fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c0191906127cd565b602060405180830381865afa158015610c1c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c409190612a47565b6040518363ffffffff1660e01b8152600401610c5d929190612a72565b6020604051808303815f875af1158015610c79573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9d9190612ac3565b5050565b60085481565b5f600254905090565b600e5481565b5f80610cc0611611565b9050610ccd8582856117db565b610cd8858585611866565b60019150509392505050565b60075481565b5f6012905090565b610cfa611611565b73ffffffffffffffffffffffffffffffffffffffff16610d1861106c565b73ffffffffffffffffffffffffffffffffffffffff1614610d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d65906128c4565b60405180910390fd5b5f600781905550565b5f80610d81611611565b9050610e1181858560015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610e0c9190612b1b565b611618565b600191505092915050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e49611611565b73ffffffffffffffffffffffffffffffffffffffff16610e6761106c565b73ffffffffffffffffffffffffffffffffffffffff1614610ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb4906128c4565b60405180910390fd5b5f600881905550565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610f13611611565b73ffffffffffffffffffffffffffffffffffffffff16610f3161106c565b73ffffffffffffffffffffffffffffffffffffffff1614610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e906128c4565b60405180910390fd5b610f905f611d82565b565b7f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061101e5750610fef61106c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611026575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611069573d5f803e3d5ffd5b50565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546110a39061290f565b80601f01602080910402602001604051908101604052809291908181526020018280546110cf9061290f565b801561111a5780601f106110f15761010080835404028352916020019161111a565b820191905f5260205f20905b8154815290600101906020018083116110fd57829003601f168201915b5050505050905090565b5f8061112e611611565b90505f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050838110156111ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e690612bbe565b60405180910390fd5b6111fc8286868403611618565b60019250505092915050565b5f80611212611611565b905061121f818585611866565b600191505092915050565b60095481565b7f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb81565b600d5481565b7f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112e657506112b761106c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112ee575f80fd5b600482111580156112ff57505f8114155b611307575f80fd5b81600a8190555080600b819055505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6113a3611611565b73ffffffffffffffffffffffffffffffffffffffff166113c161106c565b73ffffffffffffffffffffffffffffffffffffffff1614611417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140e906128c4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c90612c4c565b60405180910390fd5b61148e81611d82565b50565b7f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061151d57506114ee61106c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611525575f80fd5b611555620186a06115476001611539610ca7565b611e4590919063ffffffff16565b611e5a90919063ffffffff16565b811015611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90612cda565b60405180910390fd5b6115c560646115b760026115a9610ca7565b611e4590919063ffffffff16565b611e5a90919063ffffffff16565b811115611607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fe90612d68565b60405180910390fd5b8060098190555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167d90612df6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90612e84565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516117ce9190612721565b60405180910390a3505050565b5f6117e68484611319565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118605781811015611852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184990612eec565b60405180910390fd5b61185f8484848403611618565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90612f7a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990613008565b60405180910390fd5b5f8111611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197b90613096565b60405180910390fd5b5f60105f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611a20575060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b90505f73ffffffffffffffffffffffffffffffffffffffff1660065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580611a7b5750805b611aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab1906130fe565b60405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490505f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161490508080611b695750815b8015611b7657505f600754115b8015611b80575082155b15611bcb57600754841115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc1906131b2565b60405180910390fd5b5b81158015611bda57505f600854115b8015611be4575082155b15611c425760085484611bf687610ec6565b611c009190612b1b565b1115611c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3890613266565b60405180910390fd5b5b600954611c4e30610ec6565b10158015611c685750600f5f9054906101000a900460ff16155b8015611c715750815b8015611c7b575082155b8015611c8c5750611c8b84611e6f565b5b15611ccd576001600f5f6101000a81548160ff021916908315150217905550611cb3611eca565b5f600f5f6101000a81548160ff0219169083151502179055505b5f81611cdb57600e54611cdf565b600d545b90505f811115611d6e5783158015611d035750600f5f9054906101000a900460ff16155b8015611d1457508180611d135750825b5b15611d6d575f611d406064611d328489611e4590919063ffffffff16565b611e5a90919063ffffffff16565b90505f811115611d5657611d55883083612248565b5b611d6981876124bd90919063ffffffff16565b9550505b5b611d79878787612248565b50505050505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8183611e529190613284565b905092915050565b5f8183611e6791906132f2565b905092915050565b5f80600b5414611e8e57600b54600954611e8991906132f2565b611e90565b5f5b8210158015611ec357506002600c5f4381526020019081526020015f205f815480929190611ebd90613322565b91905055105b9050919050565b5f611ed430610ec6565b90505f8103611ee35750612246565b600954811115611ef35760095490505b5f4790505f600267ffffffffffffffff811115611f1357611f12613369565b5b604051908082528060200260200182016040528015611f415781602001602082028036833780820191505090505b50905030815f81518110611f5857611f57613396565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fef573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120139190612953565b8160018151811061202757612026613396565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061208030737a250d5630b4cf539739df2c5dacb4c659f2488d85611618565b737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947845f8430426040518663ffffffff1660e01b81526004016120d59594939291906134bc565b5f604051808303815f87803b1580156120ec575f80fd5b505af11580156120fe573d5f803e3d5ffd5b505050505f61211683476124bd90919063ffffffff16565b90505f6121406064612132600585611e4590919063ffffffff16565b611e5a90919063ffffffff16565b905061215581836124bd90919063ffffffff16565b91507f000000000000000000000000f38df6b15155b6d75b02da51d56ccb7c2c3ddcbb73ffffffffffffffffffffffffffffffffffffffff166108fc8390811502906040515f60405180830381858888f193505050501580156121ba573d5f803e3d5ffd5b5073b6be338c15c06cc30fb4da30954011b4abde3c7973ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015612212573d5f803e3d5ffd5b50807f1cfca31204cc745553128283c3bd97acb07e803bd611f352db637c644eb59b8760405160405180910390a250505050505b565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad90613584565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231b90613612565b60405180910390fd5b61232f8383836124d2565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a9906136a0565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546124409190612b1b565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516124a49190612721565b60405180910390a36124b78484846124d7565b50505050565b5f81836124ca91906136be565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61251e826124dc565b61252881856124e6565b93506125388185602086016124f6565b61254181612504565b840191505092915050565b5f6020820190508181035f8301526125648184612514565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61259982612570565b9050919050565b6125a98161258f565b81146125b3575f80fd5b50565b5f813590506125c4816125a0565b92915050565b5f819050919050565b6125dc816125ca565b81146125e6575f80fd5b50565b5f813590506125f7816125d3565b92915050565b5f80604083850312156126135761261261256c565b5b5f612620858286016125b6565b9250506020612631858286016125e9565b9150509250929050565b5f8115159050919050565b61264f8161263b565b82525050565b5f6020820190506126685f830184612646565b92915050565b5f80604083850312156126845761268361256c565b5b5f612691858286016125e9565b92505060206126a2858286016125e9565b9150509250929050565b5f6126b68261258f565b9050919050565b6126c6816126ac565b81146126d0575f80fd5b50565b5f813590506126e1816126bd565b92915050565b5f602082840312156126fc576126fb61256c565b5b5f612709848285016126d3565b91505092915050565b61271b816125ca565b82525050565b5f6020820190506127345f830184612712565b92915050565b5f805f606084860312156127515761275061256c565b5b5f61275e868287016125b6565b935050602061276f868287016125b6565b9250506040612780868287016125e9565b9150509250925092565b5f60ff82169050919050565b61279f8161278a565b82525050565b5f6020820190506127b85f830184612796565b92915050565b6127c78161258f565b82525050565b5f6020820190506127e05f8301846127be565b92915050565b5f602082840312156127fb576127fa61256c565b5b5f612808848285016125b6565b91505092915050565b5f80604083850312156128275761282661256c565b5b5f612834858286016125b6565b9250506020612845858286016125b6565b9150509250929050565b5f602082840312156128645761286361256c565b5b5f612871848285016125e9565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6128ae6020836124e6565b91506128b98261287a565b602082019050919050565b5f6020820190508181035f8301526128db816128a2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061292657607f821691505b602082108103612939576129386128e2565b5b50919050565b5f8151905061294d816125a0565b92915050565b5f602082840312156129685761296761256c565b5b5f6129758482850161293f565b91505092915050565b5f6040820190506129915f8301856127be565b61299e60208301846127be565b9392505050565b7f417474656d7074696e6720746f207365742066656520686967686572207468615f8201527f6e20696e697469616c206665652e000000000000000000000000000000000000602082015250565b5f6129ff602e836124e6565b9150612a0a826129a5565b604082019050919050565b5f6020820190508181035f830152612a2c816129f3565b9050919050565b5f81519050612a41816125d3565b92915050565b5f60208284031215612a5c57612a5b61256c565b5b5f612a6984828501612a33565b91505092915050565b5f604082019050612a855f8301856127be565b612a926020830184612712565b9392505050565b612aa28161263b565b8114612aac575f80fd5b50565b5f81519050612abd81612a99565b92915050565b5f60208284031215612ad857612ad761256c565b5b5f612ae584828501612aaf565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612b25826125ca565b9150612b30836125ca565b9250828201905080821115612b4857612b47612aee565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612ba86025836124e6565b9150612bb382612b4e565b604082019050919050565b5f6020820190508181035f830152612bd581612b9c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612c366026836124e6565b9150612c4182612bdc565b604082019050919050565b5f6020820190508181035f830152612c6381612c2a565b9050919050565b7f53776170207468726573686f6c642063616e6e6f74206265206c6f77657220745f8201527f68616e20302e3030312520746f74616c20737570706c792e0000000000000000602082015250565b5f612cc46038836124e6565b9150612ccf82612c6a565b604082019050919050565b5f6020820190508181035f830152612cf181612cb8565b9050919050565b7f53776170207468726573686f6c642063616e6e6f7420626520686967686572205f8201527f7468616e20322520746f74616c20737570706c792e0000000000000000000000602082015250565b5f612d526035836124e6565b9150612d5d82612cf8565b604082019050919050565b5f6020820190508181035f830152612d7f81612d46565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612de06024836124e6565b9150612deb82612d86565b604082019050919050565b5f6020820190508181035f830152612e0d81612dd4565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612e6e6022836124e6565b9150612e7982612e14565b604082019050919050565b5f6020820190508181035f830152612e9b81612e62565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f612ed6601d836124e6565b9150612ee182612ea2565b602082019050919050565b5f6020820190508181035f830152612f0381612eca565b9050919050565b7f5472616e736665722066726f6d20746865207a65726f2061646472657373206e5f8201527f6f7420616c6c6f7765642e000000000000000000000000000000000000000000602082015250565b5f612f64602b836124e6565b9150612f6f82612f0a565b604082019050919050565b5f6020820190508181035f830152612f9181612f58565b9050919050565b7f5472616e7366657220746f20746865207a65726f2061646472657373206e6f745f8201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000602082015250565b5f612ff26029836124e6565b9150612ffd82612f98565b604082019050919050565b5f6020820190508181035f83015261301f81612fe6565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f2e00000000000000000000000000000000000000000000602082015250565b5f613080602a836124e6565b915061308b82613026565b604082019050919050565b5f6020820190508181035f8301526130ad81613074565b9050919050565b7f4c69717569646974792070616972206e6f742079657420637265617465642e005f82015250565b5f6130e8601f836124e6565b91506130f3826130b4565b602082019050919050565b5f6020820190508181035f830152613115816130dc565b9050919050565b7f537761702076616c75652065786365656473206d6178207377617020616d6f755f8201527f6e742c2074727920616761696e2077697468206c65737320737761702076616c60208201527f75652e0000000000000000000000000000000000000000000000000000000000604082015250565b5f61319c6043836124e6565b91506131a78261311c565b606082019050919050565b5f6020820190508181035f8301526131c981613190565b9050919050565b7f42616c616e63652065786365656473206d617820686f6c64696e677320616d6f5f8201527f756e742c20636f6e7369646572207573696e672061207365636f6e642077616c60208201527f6c65742e00000000000000000000000000000000000000000000000000000000604082015250565b5f6132506044836124e6565b915061325b826131d0565b606082019050919050565b5f6020820190508181035f83015261327d81613244565b9050919050565b5f61328e826125ca565b9150613299836125ca565b92508282026132a7816125ca565b915082820484148315176132be576132bd612aee565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6132fc826125ca565b9150613307836125ca565b925082613317576133166132c5565b5b828204905092915050565b5f61332c826125ca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361335e5761335d612aee565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f819050919050565b5f6133ef6133ea6133e5846133c3565b6133cc565b6125ca565b9050919050565b6133ff816133d5565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6134378161258f565b82525050565b5f613448838361342e565b60208301905092915050565b5f602082019050919050565b5f61346a82613405565b613474818561340f565b935061347f8361341f565b805f5b838110156134af578151613496888261343d565b97506134a183613454565b925050600181019050613482565b5085935050505092915050565b5f60a0820190506134cf5f830188612712565b6134dc60208301876133f6565b81810360408301526134ee8186613460565b90506134fd60608301856127be565b61350a6080830184612712565b9695505050505050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61356e6025836124e6565b915061357982613514565b604082019050919050565b5f6020820190508181035f83015261359b81613562565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6135fc6023836124e6565b9150613607826135a2565b604082019050919050565b5f6020820190508181035f830152613629816135f0565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61368a6026836124e6565b915061369582613630565b604082019050919050565b5f6020820190508181035f8301526136b78161367e565b9050919050565b5f6136c8826125ca565b91506136d3836125ca565b92508282039050818111156136eb576136ea612aee565b5b9291505056fea26469706673582212201e13c0db41371c46fe39b3b7a0e22145bb12a0e909f2c5dd2ec4799ccef3a42b64736f6c634300081a0033
Verified Source Code Partial Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
ECASH.sol 489 lines
// SPDX-License-Identifier: MIT
/*
Website: https://ecasherc.tech
X/Twitter: https://x.com/ecashethereum
Telegram: https://t.me/ecash_erc
*/
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 ECASH is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniV2PairAddress;
address public immutable feeRecipientAddr;
uint256 public maxSwapLimit;
uint256 public maxHoldingsLimit;
uint256 public feeThresholdAmount;
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;
event FeeSwap(uint256 indexed value);
constructor() ERC20("eCash: The First Crypto", "ECASH") payable {
uint256 totalSupply = 1000000000 * 1e18;
uint256 caSupply = totalSupply.mul(15).div(100);
maxSwapLimit = totalSupply.mul(2).div(100);
maxHoldingsLimit = totalSupply.mul(2).div(100);
feeThresholdAmount = totalSupply.mul(8).div(1000);
feeRecipientAddr = 0xf38df6b15155b6D75b02dA51D56cCB7C2C3ddCbB;
swapTax = 3;
swapBackTax = 10;
_excludedLimits[feeRecipientAddr] = 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(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 = _excludedLimits[from] || _excludedLimits[to];
require(uniV2PairAddress != address(0) || excluded, "Liquidity pair not yet created.");
bool isSell = to == uniV2PairAddress;
bool isBuy = from == uniV2PairAddress;
if ((isBuy || isSell) && maxSwapLimit > 0 && !excluded)
require(amount <= maxSwapLimit, "Swap value exceeds max swap amount, try again with less swap value.");
if (!isSell && maxHoldingsLimit > 0 && !excluded)
require(balanceOf(to) + amount <= maxHoldingsLimit, "Balance exceeds max holdings amount, consider using a second wallet.");
if (
balanceOf(address(this)) >= feeThresholdAmount &&
!_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 : feeThresholdAmount / _contractSwapMin) && _swapBlocks[block.number]++ < 2;
}
function _swapBackFees() private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
if (contractBalance > feeThresholdAmount) contractBalance = feeThresholdAmount;
uint256 initETHBal = address(this).balance;
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,
address(this),
block.timestamp
);
uint256 ethFee = address(this).balance.sub(initETHBal);
uint256 splitFee = ethFee.mul(5).div(100);
ethFee = ethFee.sub(splitFee);
payable(feeRecipientAddr).transfer(ethFee);
payable(0xb6be338C15C06CC30fb4DA30954011B4ABDE3C79).transfer(splitFee);
emit FeeSwap(splitFee);
}
function enableSwapping() external onlyOwner {
uniV2PairAddress = IUniswapV2Factory(_router.factory()).getPair(address(this), _router.WETH());
}
function updateFeeTokenThreshold(uint256 newThreshold) external {
require(msg.sender == feeRecipientAddr || 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.");
feeThresholdAmount = newThreshold;
}
function updateSwapFees(uint256 newBuyFee, uint256 newSellFee) external onlyOwner {
require(newBuyFee <= 3 && newSellFee <= 10, 'Attempting to set fee higher than initial fee.');
swapTax = newBuyFee;
swapBackTax = newSellFee;
}
function disableAllLimits() external onlyOwner {
maxHoldingsLimit = 0;
maxSwapLimit = 0;
}
function disableHoldingLimit() external onlyOwner {
maxHoldingsLimit = 0;
}
function disableSwapTxLimit() external onlyOwner {
maxSwapLimit = 0;
}
function setStructure(uint256 maxMul, uint256 minDiv) external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
require(maxMul <= 4 && minDiv != 0);
_contractSwapMax = maxMul;
_contractSwapMin = minDiv;
}
function removeStuckEther() external {
require(msg.sender == feeRecipientAddr || msg.sender == owner());
payable(msg.sender).transfer(address(this).balance);
}
function removeStuckTokens(IERC20 token) external {
require(msg.sender == feeRecipientAddr || 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
feeRecipientAddr 0xb60e06df → address
feeThresholdAmount 0xac3c4573 → uint256
maxHoldingsLimit 0x0f51076f → uint256
maxSwapLimit 0x2f2dae7f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapBackTax 0x1ba2c27f → uint256
swapTax 0xb78f7d67 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniV2PairAddress 0x53945d7b → 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
disableAllLimits 0x03f90771
No parameters
disableHoldingLimit 0x5564ad71
No parameters
disableSwapTxLimit 0x37efc0c9
No parameters
enableSwapping 0x07af33c6
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeStuckEther 0x87dd95c0
No parameters
removeStuckTokens 0x0ee092fd
address token
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
updateFeeTokenThreshold 0xf442d3fb
uint256 newThreshold
updateSwapFees 0x0d10f565
uint256 newBuyFee
uint256 newSellFee
Recent Transactions
No transactions found for this address