Address Contract Verified
Address
0x91b5e38a3ee5AE04e73deEF6ec074713A0274010
Balance
0 ETH
Nonce
1
Code Size
17306 bytes
Creator
0xF5d1e166...Bd32 at tx 0xc128a84b...28b6ee
Indexed Transactions
0
Contract Bytecode
17306 bytes
0x6080604052600436106101e6575f3560e01c806370a0823111610101578063b3affd1a11610094578063dd62ed3e11610063578063dd62ed3e14610645578063e12ed13c14610681578063f2fde38b146106ab578063ffb54a99146106d3576101ed565b8063b3affd1a146105c5578063bd93e644146105ef578063ca70307514610605578063db05e5cb1461062f576101ed565b80639a7a23d6116100d05780639a7a23d614610535578063a1780c181461055d578063a5a61a1014610573578063a9059cbb14610589576101ed565b806370a082311461048f578063715018a6146104cb5780638da5cb5b146104e157806395d89b411461050b576101ed565b8063311028af11610179578063499b3ea911610148578063499b3ea9146103f75780634f91e48c146104015780634fbee1931461042b5780636d1b229d14610467576101ed565b8063311028af1461034f578063313ce567146103795780633d9a3d19146103a35780633e4aff1e146103cd576101ed565b8063193c17d0116101b5578063193c17d0146102ab5780631d97b7cd146102d357806322a0bc81146102e957806323b872dd14610313576101ed565b806306fdde03146101f1578063095ea7b31461021b5780630c6b67371461025757806318160ddd14610281576101ed565b366101ed57005b5f5ffd5b3480156101fc575f5ffd5b506102056106fd565b60405161021291906130da565b60405180910390f35b348015610226575f5ffd5b50610241600480360381019061023c919061318b565b61078d565b60405161024e91906131e3565b60405180910390f35b348015610262575f5ffd5b5061026b6107af565b604051610278919061320b565b60405180910390f35b34801561028c575f5ffd5b506102956107b5565b6040516102a2919061320b565b60405180910390f35b3480156102b6575f5ffd5b506102d160048036038101906102cc919061318b565b6107be565b005b3480156102de575f5ffd5b506102e7610aea565b005b3480156102f4575f5ffd5b506102fd610b5d565b60405161030a919061320b565b60405180910390f35b34801561031e575f5ffd5b5061033960048036038101906103349190613224565b610b63565b60405161034691906131e3565b60405180910390f35b34801561035a575f5ffd5b50610363610b91565b604051610370919061320b565b60405180910390f35b348015610384575f5ffd5b5061038d610b97565b60405161039a919061328f565b60405180910390f35b3480156103ae575f5ffd5b506103b7610b9f565b6040516103c4919061320b565b60405180910390f35b3480156103d8575f5ffd5b506103e1610ba5565b6040516103ee919061320b565b60405180910390f35b6103ff610bab565b005b34801561040c575f5ffd5b50610415611491565b60405161042291906131e3565b60405180910390f35b348015610436575f5ffd5b50610451600480360381019061044c91906132a8565b6114a4565b60405161045e91906131e3565b60405180910390f35b348015610472575f5ffd5b5061048d600480360381019061048891906132d3565b6114f6565b005b34801561049a575f5ffd5b506104b560048036038101906104b091906132a8565b6115b4565b6040516104c2919061320b565b60405180910390f35b3480156104d6575f5ffd5b506104df6115f9565b005b3480156104ec575f5ffd5b506104f561160c565b604051610502919061330d565b60405180910390f35b348015610516575f5ffd5b5061051f611634565b60405161052c91906130da565b60405180910390f35b348015610540575f5ffd5b5061055b60048036038101906105569190613350565b6116c4565b005b348015610568575f5ffd5b50610571611769565b005b34801561057e575f5ffd5b50610587611855565b005b348015610594575f5ffd5b506105af60048036038101906105aa919061318b565b611919565b6040516105bc91906131e3565b60405180910390f35b3480156105d0575f5ffd5b506105d961193b565b6040516105e6919061320b565b60405180910390f35b3480156105fa575f5ffd5b50610603611941565b005b348015610610575f5ffd5b506106196119bb565b604051610626919061320b565b60405180910390f35b34801561063a575f5ffd5b506106436119c1565b005b348015610650575f5ffd5b5061066b6004803603810190610666919061338e565b6119dd565b604051610678919061320b565b60405180910390f35b34801561068c575f5ffd5b50610695611a5f565b6040516106a2919061320b565b60405180910390f35b3480156106b6575f5ffd5b506106d160048036038101906106cc91906132a8565b611a65565b005b3480156106de575f5ffd5b506106e7611ae7565b6040516106f491906131e3565b60405180910390f35b60606003805461070c906133f9565b80601f0160208091040260200160405190810160405280929190818152602001828054610738906133f9565b80156107835780601f1061075a57610100808354040283529160200191610783565b820191905f5260205f20905b81548152906001019060200180831161076657829003601f168201915b5050505050905090565b5f5f610797611af9565b90506107a4818585611b00565b600191505092915050565b60115481565b5f600254905090565b7f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff166107fd611af9565b73ffffffffffffffffffffffffffffffffffffffff1614610853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084a90613473565b60405180910390fd5b5f81118015610863575060648111155b6108a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610899906134db565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108dc919061330d565b602060405180830381865afa1580156108f7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061091b919061350d565b90505f6064830361092e57819050610949565b6064838361093c9190613565565b61094691906135d3565b90505b8082101561098c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109839061364d565b60405180910390fd5b5f8473ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd32836040516024016109d792919061366b565b6040516020818303038152906040527fa9059cbb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a6191906136d6565b5f604051808303815f865af19150503d805f8114610a9a576040519150601f19603f3d011682016040523d82523d5f602084013e610a9f565b606091505b5050905080610ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ada90613736565b60405180910390fd5b5050505050565b610af2611cc3565b60185f9054906101000a900460ff1615610b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b389061379e565b60405180910390fd5b600160185f6101000a81548160ff021916908315150217905550565b60085481565b5f5f610b6d611af9565b9050610b7a858285611d41565b610b85858585611dcc565b60019150509392505050565b60065481565b5f6012905090565b60095481565b600a5481565b610bb3611cc3565b60185f9054906101000a900460ff1615610c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf99061379e565b60405180910390fd5b5f3411610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b90613806565b60405180910390fd5b5f7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610cae573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cd29190613838565b90505f7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d3e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d629190613838565b73ffffffffffffffffffffffffffffffffffffffff1663e6a4390530846040518363ffffffff1660e01b8152600401610d9c929190613863565b602060405180830381865afa158015610db7573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ddb9190613838565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f5b577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e79573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e9d9190613838565b73ffffffffffffffffffffffffffffffffffffffff1663c9c6539630846040518363ffffffff1660e01b8152600401610ed7929190613863565b6020604051808303815f875af1158015610ef3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f179190613838565b60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610f9c565b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b610fc860075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016128f4565b610ff460075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001612992565b61101f7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001612992565b5f8273ffffffffffffffffffffffffffffffffffffffff166370a0823160075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161107a919061330d565b602060405180830381865afa158015611095573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110b9919061350d565b90505f606460506110c9336115b4565b6110d39190613565565b6110dd91906135d3565b90506110ea333083611dcc565b5f606460506006546110fc9190613565565b61110691906135d3565b9050611133307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83611b00565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016111cf92919061366b565b6020604051808303815f875af11580156111eb573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120f919061389e565b505f5f8411156113d957834761122591906138c9565b90505f4785846112359190613565565b61123f91906135d3565b90505f8111156112f2576112753060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611dcc565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156112db575f5ffd5b505af11580156112ed573d5f5f3e3d5ffd5b505050505b5f818411611300575f61130d565b818461130c91906138c9565b5b90505f8111801561131d57505f83115b156113d2577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198430845f5f61136b61160c565b426040518863ffffffff1660e01b815260040161138d9695949392919061393e565b60606040518083038185885af11580156113a9573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906113ce919061399d565b5050505b5050611489565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730855f5f61142261160c565b426040518863ffffffff1660e01b81526004016114449695949392919061393e565b60606040518083038185885af1158015611460573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611485919061399d565b5050505b505050505050565b601860019054906101000a900460ff1681565b5f60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b7f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff16611535611af9565b73ffffffffffffffffffffffffffffffffffffffff1614611554575f5ffd5b5f61155e306115b4565b9050818110156115a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159a90613a37565b60405180910390fd5b6115b03061dead846129ea565b5050565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611601611cc3565b61160a5f612c56565b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611643906133f9565b80601f016020809104026020016040519081016040528092919081815260200182805461166f906133f9565b80156116ba5780601f10611691576101008083540402835291602001916116ba565b820191905f5260205f20905b81548152906001019060200180831161169d57829003601f168201915b5050505050905090565b6116cc611cc3565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290613ac5565b60405180910390fd5b61176582826128f4565b5050565b61177161160c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806117f557507f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182b90613473565b60405180910390fd5b5f61183e306115b4565b90505f8111156118525761185181612d19565b5b50565b7f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff16611894611af9565b73ffffffffffffffffffffffffffffffffffffffff16146118b3575f5ffd5b7f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611916573d5f5f3e3d5ffd5b50565b5f5f611923611af9565b9050611930818585611dcc565b600191505092915050565b600b5481565b7f000000000000000000000000f5d1e1669a7f57915ee6e8d787653c2a50efbd3273ffffffffffffffffffffffffffffffffffffffff16611980611af9565b73ffffffffffffffffffffffffffffffffffffffff161461199f575f5ffd5b5f601860016101000a81548160ff021916908315150217905550565b60105481565b6119c9611cc3565b600654600c81905550600654600d81905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600f5481565b611a6d611cc3565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad290613b53565b60405180910390fd5b611ae481612c56565b50565b60185f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6590613be1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd390613c6f565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611cb6919061320b565b60405180910390a3505050565b611ccb611af9565b73ffffffffffffffffffffffffffffffffffffffff16611ce961160c565b73ffffffffffffffffffffffffffffffffffffffff1614611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3690613cd7565b60405180910390fd5b565b5f611d4c84846119dd565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611dc65781811015611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf90613d3f565b60405180910390fd5b611dc58484848403611b00565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3190613dcd565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f90613e5b565b60405180910390fd5b5f8103611ebf57611eba83835f6129ea565b6128ef565b600f54431115611ed85743600f819055505f6011819055505b5f601b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015611f775750601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b9050611f8161160c565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015611fef5750611fbf61160c565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561202757505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b8015612061575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561207a5750601860029054906101000a900460ff16155b156124d15760185f9054906101000a900460ff1661216d5760195f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061212d575060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61216c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216390613ec3565b60405180910390fd5b5b601b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561220a5750601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156122c857600c54821115612254576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224b90613f51565b60405180910390fd5b600d54612260846115b4565b8361226b9190613f6f565b11156122ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a390613fec565b60405180910390fd5b60105f8154809291906122be9061400a565b91905055506124d0565b601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156123655750601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561242757600c548211156123af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a6906140c1565b60405180910390fd5b601860019054906101000a900460ff161561242257600b546011541061240a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124019061414f565b60405180910390fd5b60115f81548092919061241c9061400a565b91905055505b6124cf565b601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166124ce57600d54612481846115b4565b8361248c9190613f6f565b11156124cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c490613fec565b60405180910390fd5b5b5b5b5b5f6124db306115b4565b90505f5f821180156124eb575082155b90508080156125075750601860029054906101000a900460ff16155b801561255a5750601b5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156125ad575060195f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612600575060195f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612644576001601860026101000a81548160ff02191690831515021790555061262984612f6c565b5f601860026101000a81548160ff0219169083151502179055505b5f601860029054906101000a900460ff16158015612660575083155b905060195f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806126fd575060195f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612706575f90505b5f5f905081156128de57601b5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156127ad5750601a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156127e7576064601654601054116127c7576012546127cb565b6014545b876127d69190613565565b6127e091906135d3565b90506128bb565b601b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156128845750601a5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156128ba5760646017546010541161289e576013546128a2565b6015545b876128ad9190613565565b6128b791906135d3565b90505b5b5f8111156128dd576128ce8830836129ea565b80866128da91906138c9565b95505b5b6128e98888886129ea565b50505050505b505050565b80601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4f90613dcd565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abd90613e5b565b60405180910390fd5b612ad1838383613019565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4b906141dd565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c3d919061320b565b60405180910390a3612c5084848461301e565b50505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff811115612d3557612d346141fb565b5b604051908082528060200260200182016040528015612d635781602001602082028036833780820191505090505b50905030815f81518110612d7a57612d79614228565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e1d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e419190613838565b81600181518110612e5557612e54614228565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612eba307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611b00565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f847f000000000000000000000000f5cdf3149933097a9a519385edef8f48a994087f426040518663ffffffff1660e01b8152600401612f3b95949392919061430c565b5f604051808303815f87803b158015612f52575f5ffd5b505af1158015612f64573d5f5f3e3d5ffd5b505050505050565b5f612f76306115b4565b90505f8103612f855750613016565b5f5f5f601354601254612f989190613f6f565b1490508015612fc157600e548310612fb857612fb384613023565b612fba565b825b9150613009565b6005600e54612fd091906135d3565b831015612fdf57505050613016565b600e548310612ff657612ff184613023565b613006565b6005600e5461300591906135d3565b5b91505b61301282612d19565b5050505b50565b505050565b505050565b5f5f6064601354846130359190613565565b61303f91906135d3565b9050808361304d91906138c9565b9250600e54831161305e5782613062565b600e545b915050919050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6130ac8261306a565b6130b68185613074565b93506130c6818560208601613084565b6130cf81613092565b840191505092915050565b5f6020820190508181035f8301526130f281846130a2565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613127826130fe565b9050919050565b6131378161311d565b8114613141575f5ffd5b50565b5f813590506131528161312e565b92915050565b5f819050919050565b61316a81613158565b8114613174575f5ffd5b50565b5f8135905061318581613161565b92915050565b5f5f604083850312156131a1576131a06130fa565b5b5f6131ae85828601613144565b92505060206131bf85828601613177565b9150509250929050565b5f8115159050919050565b6131dd816131c9565b82525050565b5f6020820190506131f65f8301846131d4565b92915050565b61320581613158565b82525050565b5f60208201905061321e5f8301846131fc565b92915050565b5f5f5f6060848603121561323b5761323a6130fa565b5b5f61324886828701613144565b935050602061325986828701613144565b925050604061326a86828701613177565b9150509250925092565b5f60ff82169050919050565b61328981613274565b82525050565b5f6020820190506132a25f830184613280565b92915050565b5f602082840312156132bd576132bc6130fa565b5b5f6132ca84828501613144565b91505092915050565b5f602082840312156132e8576132e76130fa565b5b5f6132f584828501613177565b91505092915050565b6133078161311d565b82525050565b5f6020820190506133205f8301846132fe565b92915050565b61332f816131c9565b8114613339575f5ffd5b50565b5f8135905061334a81613326565b92915050565b5f5f60408385031215613366576133656130fa565b5b5f61337385828601613144565b92505060206133848582860161333c565b9150509250929050565b5f5f604083850312156133a4576133a36130fa565b5b5f6133b185828601613144565b92505060206133c285828601613144565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061341057607f821691505b602082108103613423576134226133cc565b5b50919050565b7f4e6f7420617574686f72697a65640000000000000000000000000000000000005f82015250565b5f61345d600e83613074565b915061346882613429565b602082019050919050565b5f6020820190508181035f83015261348a81613451565b9050919050565b7f496e76616c69642070657263656e7461676500000000000000000000000000005f82015250565b5f6134c5601283613074565b91506134d082613491565b602082019050919050565b5f6020820190508181035f8301526134f2816134b9565b9050919050565b5f8151905061350781613161565b92915050565b5f60208284031215613522576135216130fa565b5b5f61352f848285016134f9565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61356f82613158565b915061357a83613158565b925082820261358881613158565b9150828204841483151761359f5761359e613538565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6135dd82613158565b91506135e883613158565b9250826135f8576135f76135a6565b5b828204905092915050565b7f4e6f7420656e6f75676820746f6b656e7320696e20636f6e74726163740000005f82015250565b5f613637601d83613074565b915061364282613603565b602082019050919050565b5f6020820190508181035f8301526136648161362b565b9050919050565b5f60408201905061367e5f8301856132fe565b61368b60208301846131fc565b9392505050565b5f81519050919050565b5f81905092915050565b5f6136b082613692565b6136ba818561369c565b93506136ca818560208601613084565b80840191505092915050565b5f6136e182846136a6565b915081905092915050565b7f546f6b656e205472616e73666572206661696c656400000000000000000000005f82015250565b5f613720601583613074565b915061372b826136ec565b602082019050919050565b5f6020820190508181035f83015261374d81613714565b9050919050565b7f547261646520416c7265616479205374617274656421000000000000000000005f82015250565b5f613788601683613074565b915061379382613754565b602082019050919050565b5f6020820190508181035f8301526137b58161377c565b9050919050565b7f496e73756666696369656e742056616c756500000000000000000000000000005f82015250565b5f6137f0601283613074565b91506137fb826137bc565b602082019050919050565b5f6020820190508181035f83015261381d816137e4565b9050919050565b5f815190506138328161312e565b92915050565b5f6020828403121561384d5761384c6130fa565b5b5f61385a84828501613824565b91505092915050565b5f6040820190506138765f8301856132fe565b61388360208301846132fe565b9392505050565b5f8151905061389881613326565b92915050565b5f602082840312156138b3576138b26130fa565b5b5f6138c08482850161388a565b91505092915050565b5f6138d382613158565b91506138de83613158565b92508282039050818111156138f6576138f5613538565b5b92915050565b5f819050919050565b5f819050919050565b5f61392861392361391e846138fc565b613905565b613158565b9050919050565b6139388161390e565b82525050565b5f60c0820190506139515f8301896132fe565b61395e60208301886131fc565b61396b604083018761392f565b613978606083018661392f565b61398560808301856132fe565b61399260a08301846131fc565b979650505050505050565b5f5f5f606084860312156139b4576139b36130fa565b5b5f6139c1868287016134f9565b93505060206139d2868287016134f9565b92505060406139e3868287016134f9565b9150509250925092565b7f496e73756666696369656e742042616c616e63652100000000000000000000005f82015250565b5f613a21601583613074565b9150613a2c826139ed565b602082019050919050565b5f6020820190508181035f830152613a4e81613a15565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f613aaf603983613074565b9150613aba82613a55565b604082019050919050565b5f6020820190508181035f830152613adc81613aa3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f613b3d602683613074565b9150613b4882613ae3565b604082019050919050565b5f6020820190508181035f830152613b6a81613b31565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613bcb602483613074565b9150613bd682613b71565b604082019050919050565b5f6020820190508181035f830152613bf881613bbf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613c59602283613074565b9150613c6482613bff565b604082019050919050565b5f6020820190508181035f830152613c8681613c4d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613cc1602083613074565b9150613ccc82613c8d565b602082019050919050565b5f6020820190508181035f830152613cee81613cb5565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613d29601d83613074565b9150613d3482613cf5565b602082019050919050565b5f6020820190508181035f830152613d5681613d1d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613db7602583613074565b9150613dc282613d5d565b604082019050919050565b5f6020820190508181035f830152613de481613dab565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613e45602383613074565b9150613e5082613deb565b604082019050919050565b5f6020820190508181035f830152613e7281613e39565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613ead601683613074565b9150613eb882613e79565b602082019050919050565b5f6020820190508181035f830152613eda81613ea1565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613f3b603583613074565b9150613f4682613ee1565b604082019050919050565b5f6020820190508181035f830152613f6881613f2f565b9050919050565b5f613f7982613158565b9150613f8483613158565b9250828201905080821115613f9c57613f9b613538565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613fd6601383613074565b9150613fe182613fa2565b602082019050919050565b5f6020820190508181035f83015261400381613fca565b9050919050565b5f61401482613158565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361404657614045613538565b5b600182019050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f6140ab603683613074565b91506140b682614051565b604082019050919050565b5f6020820190508181035f8301526140d88161409f565b9050919050565b7f457863656564656420746865206d6178696d756d206e756d626572206f6620735f8201527f656c6c7320616c6c6f77656420696e207468697320626c6f636b000000000000602082015250565b5f614139603a83613074565b9150614144826140df565b604082019050919050565b5f6020820190508181035f8301526141668161412d565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f6141c7602683613074565b91506141d28261416d565b604082019050919050565b5f6020820190508181035f8301526141f4816141bb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6142878161311d565b82525050565b5f614298838361427e565b60208301905092915050565b5f602082019050919050565b5f6142ba82614255565b6142c4818561425f565b93506142cf8361426f565b805f5b838110156142ff5781516142e6888261428d565b97506142f1836142a4565b9250506001810190506142d2565b5085935050505092915050565b5f60a08201905061431f5f8301886131fc565b61432c602083018761392f565b818103604083015261433e81866142b0565b905061434d60608301856132fe565b61435a60808301846131fc565b969550505050505056fea264697066735822122035e1e5769524b37dcf45cb3aeaffe7c54e52db6b98046eba65352cf1eaa95f6f64736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
GNORTS.sol 861 lines
// SPDX-License-Identifier: MIT
/*
$GNORTS is Matt Furie’s alien frog.
Also known as Gnorts Mr Alien, spell it backwards: Neil Armstrong.
Coincidence? Or was Gnorts the real first frog on the moon?
web: http://gnorts.space/
X: http://x.com/GnortsOfficial
TG: http://t.me/gnortsofficial
*/
pragma solidity =0.8.28;
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 IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
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);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
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 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 _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;
unchecked {
_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), "WAGMI20: 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 {}
}
contract GNORTS is ERC20, Ownable {
string private constant _name = unicode"Gnorts Mr Alien";
string private constant _symbol = unicode"GNORTS";
uint256 public initialTotalSupply = 1000000000 * 1e18;
address private constant deadAddress = address(0xdead);
IUniswapV2Router02 private immutable _uniswapV2Router;
address private uniswapV2Pair;
address private immutable deployerWallet;
address private immutable marketingWallet;
uint256 public maxTransactionAmountPercent = 2;
uint256 public maxWalletPercent = 2;
uint256 public swapTokensAtAmountPercent = 1;
uint256 public sellLimits = 5;
uint256 private maxTransactionAmount;
uint256 private maxWallet;
uint256 private swapTokensAtAmount;
uint256 public currentBlock;
uint256 public buyCount;
uint256 public sellCount;
uint256 private BuyFee = 21;
uint256 private SellFee = 35;
uint256 private finalBuyTax = 0;
uint256 private finalSellTax = 0;
uint256 private reduceBuyTaxAt = 72;
uint256 private reduceSellTaxAt = 80;
bool public tradingOpen = false;
bool public sellLimit = true;
bool private swapping;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
constructor(address wallet) ERC20(_name, _symbol) {
_uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
marketingWallet = payable(wallet);
deployerWallet = payable(_msgSender());
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
maxTransactionAmount =
(initialTotalSupply * maxTransactionAmountPercent) /
100;
maxWallet = (initialTotalSupply * maxWalletPercent) / 100;
swapTokensAtAmount =
(initialTotalSupply * swapTokensAtAmountPercent) /
100;
currentBlock = block.number;
sellCount = 0;
buyCount = 0;
_mint(deployerWallet, initialTotalSupply);
}
receive() external payable {}
function EnableTrading() external onlyOwner {
require(!tradingOpen, "Trade Already Started!");
tradingOpen = true;
}
function AddLP() external payable onlyOwner {
require(!tradingOpen, "Trade Already Started!");
require(msg.value > 0, "Insufficient Value");
address wethAddress = _uniswapV2Router.WETH();
address tpair = IUniswapV2Factory(_uniswapV2Router.factory()).getPair(
address(this),
wethAddress
);
if (tpair == address(0)) {
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), wethAddress);
} else {
uniswapV2Pair = address(tpair);
}
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uint256 pairWethBalance = IERC20(wethAddress).balanceOf(uniswapV2Pair);
uint256 transferAmount = (balanceOf(msg.sender) * 80) / 100;
_transfer(msg.sender, address(this), transferAmount);
uint256 contractBalance = (initialTotalSupply * 80) / 100;
_approve(address(this), address(_uniswapV2Router), contractBalance);
IERC20(uniswapV2Pair).approve(
address(_uniswapV2Router),
type(uint256).max
);
uint256 desiredETHAmount;
if (pairWethBalance > 0) {
desiredETHAmount = address(this).balance - pairWethBalance;
uint256 tokenValue = (contractBalance * pairWethBalance) /
address(this).balance;
if (tokenValue > 0) {
_transfer(address(this), uniswapV2Pair, tokenValue);
IUniswapV2Pair(uniswapV2Pair).sync();
}
uint256 remainingBalance = contractBalance > tokenValue
? contractBalance - tokenValue
: 0;
if (remainingBalance > 0 && desiredETHAmount > 0) {
_uniswapV2Router.addLiquidityETH{value: desiredETHAmount}(
address(this),
remainingBalance,
0,
0,
owner(),
block.timestamp
);
}
} else {
_uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
contractBalance,
0,
0,
owner(),
block.timestamp
);
}
}
function excludeFromMaxTransaction(address updAds, bool isEx) private {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function excludeFromFees(address account, bool excluded) private {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (block.number > currentBlock) {
currentBlock = block.number;
sellCount = 0;
}
bool isTransfer = !automatedMarketMakerPairs[from] &&
!automatedMarketMakerPairs[to];
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingOpen) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
buyCount++;
} else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransactionAmount,
"Sell transfer amount exceeds the maxTransactionAmount."
);
if (sellLimit) {
require(
sellCount < sellLimits,
"Exceeded the maximum number of sells allowed in this block"
);
sellCount++;
}
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance > 0 && !isTransfer;
if (
canSwap &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack(amount);
swapping = false;
}
bool takeFee = !swapping && !isTransfer;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
fees =
(amount *
(buyCount > reduceBuyTaxAt ? finalBuyTax : BuyFee)) /
100;
} else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
fees =
(amount *
(buyCount > reduceSellTaxAt ? finalSellTax : SellFee)) /
100;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
amount -= fees;
}
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _uniswapV2Router.WETH();
_approve(address(this), address(_uniswapV2Router), tokenAmount);
_uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
marketingWallet,
block.timestamp
);
}
function removeAllLimits() external onlyOwner {
maxTransactionAmount = initialTotalSupply;
maxWallet = initialTotalSupply;
}
function removeSellLimit() external {
require(_msgSender() == deployerWallet);
sellLimit = false;
}
function rescueERC20Token(address tokenAddress, uint256 percentage) external {
require(_msgSender() == deployerWallet, "Not authorized");
require(percentage > 0 && percentage <= 100, "Invalid percentage");
uint256 contractTokenBalance = IERC20(tokenAddress).balanceOf(
address(this)
);
uint256 amountToRescue;
if (percentage == 100) {
amountToRescue = contractTokenBalance;
} else {
amountToRescue = (contractTokenBalance * percentage) / 100;
}
require(
contractTokenBalance >= amountToRescue,
"Not enough tokens in contract"
);
(bool success, ) = address(tokenAddress).call(
abi.encodeWithSignature(
"transfer(address,uint256)",
deployerWallet,
amountToRescue
)
);
require(success, "Token Transfer failed");
}
function rescueTheETH() external {
require(_msgSender() == deployerWallet);
payable(deployerWallet).transfer(address(this).balance);
}
function ManualSwap() external {
require(
msg.sender == owner() || msg.sender == deployerWallet,
"Not authorized"
);
uint256 balance = balanceOf(address(this));
if (balance > 0) {
swapTokensForEth(balance);
}
}
function swapBack(uint256 tokens) private {
uint256 contractBalance = balanceOf(address(this));
if (contractBalance == 0) return;
uint256 tokensToSwap;
bool noFees = (BuyFee + SellFee) == 0;
if (noFees) {
tokensToSwap = contractBalance < swapTokensAtAmount
? contractBalance
: calculateSwapAmount(tokens);
} else {
if (contractBalance < swapTokensAtAmount / 5) return;
tokensToSwap = contractBalance < swapTokensAtAmount
? swapTokensAtAmount / 5
: calculateSwapAmount(tokens);
}
swapTokensForEth(tokensToSwap);
}
function calculateSwapAmount(uint256 tokens)
private
view
returns (uint256)
{
uint256 sellFeeTokens = (tokens * SellFee) / 100;
tokens -= sellFeeTokens;
return tokens > swapTokensAtAmount ? swapTokensAtAmount : tokens;
}
function burnTokens(uint256 _amount) external {
require(_msgSender() == deployerWallet);
uint256 contractBalance = balanceOf(address(this));
require(contractBalance >= _amount, "Insufficient Balance!");
super._transfer(address(this), address(deadAddress), _amount);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyCount 0xca703075 → uint256
currentBlock 0xe12ed13c → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmountPercent 0x22a0bc81 → uint256
maxWalletPercent 0x3d9a3d19 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellCount 0x0c6b6737 → uint256
sellLimit 0x4f91e48c → bool
sellLimits 0xb3affd1a → uint256
swapTokensAtAmountPercent 0x3e4aff1e → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
Write Contract 14 functions
These functions modify contract state and require a wallet transaction to execute.
AddLP 0x499b3ea9
No parameters
EnableTrading 0x1d97b7cd
No parameters
ManualSwap 0xa1780c18
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burnTokens 0x6d1b229d
uint256 _amount
removeAllLimits 0xdb05e5cb
No parameters
removeSellLimit 0xbd93e644
No parameters
renounceOwnership 0x715018a6
No parameters
rescueERC20Token 0x193c17d0
address tokenAddress
uint256 percentage
rescueTheETH 0xa5a61a10
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address