Address Contract Partially Verified
Address
0xD5bc75fE875E2234458957f88756A618C078760F
Balance
0 ETH
Nonce
1
Code Size
19747 bytes
Creator
0xe55f296b...4c2C at tx 0x2eb52cd1...c4f4a5
Indexed Transactions
0
Contract Bytecode
19747 bytes
0x6080604052600436106102e7575f3560e01c80638a8c523c1161018f578063b62496f5116100db578063d257b34f11610094578063e2f456051161006e578063e2f4560514610b30578063ef8700e514610b5a578063f2fde38b14610b84578063fbc03bc814610bac576102ee565b8063d257b34f14610a8e578063d85ba06314610aca578063dd62ed3e14610af4576102ee565b8063b62496f514610986578063b70143c9146109c2578063bbc0c742146109ea578063c024666814610a14578063c04a541414610a3c578063c79c04fd14610a66576102ee565b8063a44edb2b11610148578063a90eab8c11610122578063a90eab8c146108d0578063aacebbe3146108f8578063af5b0f3714610920578063b20414111461095c576102ee565b8063a44edb2b1461082e578063a457c2d714610858578063a9059cbb14610894576102ee565b80638a8c523c1461074a5780638da5cb5b14610760578063921369131461078a578063924de9b7146107b457806395d89b41146107dc5780639a7a23d614610806576102ee565b80633aa7a74d1161024e5780636ddd171311610207578063751039fc116101e1578063751039fc146106a45780637571336a146106ce57806375f0a874146106f65780637bce5a0414610720576102ee565b80636ddd17131461062857806370a0823114610652578063715018a61461068e576102ee565b80633aa7a74d1461051e57806349bd5a5e146105465780634a62bb65146105705780634fbee1931461059a57806366ca9b83146105d65780636a486a8e146105fe576102ee565b806318a94cf1116102a057806318a94cf1146103fe5780631f3fed8f1461042857806323b872dd1461045257806327c8f8351461048e578063313ce567146104b857806339509351146104e2576102ee565b806302dbd8f8146102f257806306fdde031461031a578063095ea7b3146103445780631694505e1461038057806318126dce146103aa57806318160ddd146103d4576102ee565b366102ee57005b5f80fd5b3480156102fd575f80fd5b506103186004803603810190610313919061380e565b610bd4565b005b348015610325575f80fd5b5061032e610cbe565b60405161033b91906138d6565b60405180910390f35b34801561034f575f80fd5b5061036a60048036038101906103659190613950565b610d4e565b60405161037791906139a8565b60405180910390f35b34801561038b575f80fd5b50610394610d6b565b6040516103a19190613a1c565b60405180910390f35b3480156103b5575f80fd5b506103be610d8f565b6040516103cb9190613a44565b60405180910390f35b3480156103df575f80fd5b506103e8610d95565b6040516103f59190613a44565b60405180910390f35b348015610409575f80fd5b50610412610d9e565b60405161041f9190613a44565b60405180910390f35b348015610433575f80fd5b5061043c610da4565b6040516104499190613a44565b60405180910390f35b34801561045d575f80fd5b5061047860048036038101906104739190613a5d565b610daa565b60405161048591906139a8565b60405180910390f35b348015610499575f80fd5b506104a2610e9c565b6040516104af9190613abc565b60405180910390f35b3480156104c3575f80fd5b506104cc610ea2565b6040516104d99190613af0565b60405180910390f35b3480156104ed575f80fd5b5061050860048036038101906105039190613950565b610eaa565b60405161051591906139a8565b60405180910390f35b348015610529575f80fd5b50610544600480360381019061053f9190613b09565b610f51565b005b348015610551575f80fd5b5061055a611060565b6040516105679190613abc565b60405180910390f35b34801561057b575f80fd5b50610584611085565b60405161059191906139a8565b60405180910390f35b3480156105a5575f80fd5b506105c060048036038101906105bb9190613b34565b611097565b6040516105cd91906139a8565b60405180910390f35b3480156105e1575f80fd5b506105fc60048036038101906105f7919061380e565b6110e9565b005b348015610609575f80fd5b506106126111d3565b60405161061f9190613a44565b60405180910390f35b348015610633575f80fd5b5061063c6111d9565b60405161064991906139a8565b60405180910390f35b34801561065d575f80fd5b5061067860048036038101906106739190613b34565b6111ec565b6040516106859190613a44565b60405180910390f35b348015610699575f80fd5b506106a2611231565b005b3480156106af575f80fd5b506106b86112b8565b6040516106c591906139a8565b60405180910390f35b3480156106d9575f80fd5b506106f460048036038101906106ef9190613b89565b611355565b005b348015610701575f80fd5b5061070a611429565b6040516107179190613abc565b60405180910390f35b34801561072b575f80fd5b5061073461144e565b6040516107419190613a44565b60405180910390f35b348015610755575f80fd5b5061075e611454565b005b34801561076b575f80fd5b50610774611508565b6040516107819190613abc565b60405180910390f35b348015610795575f80fd5b5061079e611530565b6040516107ab9190613a44565b60405180910390f35b3480156107bf575f80fd5b506107da60048036038101906107d59190613bc7565b611536565b005b3480156107e7575f80fd5b506107f06115cf565b6040516107fd91906138d6565b60405180910390f35b348015610811575f80fd5b5061082c60048036038101906108279190613b89565b61165f565b005b348015610839575f80fd5b50610842611778565b60405161084f9190613a44565b60405180910390f35b348015610863575f80fd5b5061087e60048036038101906108799190613950565b61177e565b60405161088b91906139a8565b60405180910390f35b34801561089f575f80fd5b506108ba60048036038101906108b59190613950565b611864565b6040516108c791906139a8565b60405180910390f35b3480156108db575f80fd5b506108f660048036038101906108f19190613c4f565b611881565b005b348015610903575f80fd5b5061091e60048036038101906109199190613b34565b611b04565b005b34801561092b575f80fd5b5061094660048036038101906109419190613b34565b611c3e565b60405161095391906139a8565b60405180910390f35b348015610967575f80fd5b50610970611c5b565b60405161097d9190613a44565b60405180910390f35b348015610991575f80fd5b506109ac60048036038101906109a79190613b34565b611c61565b6040516109b991906139a8565b60405180910390f35b3480156109cd575f80fd5b506109e860048036038101906109e39190613b09565b611c7e565b005b3480156109f5575f80fd5b506109fe611d3f565b604051610a0b91906139a8565b60405180910390f35b348015610a1f575f80fd5b50610a3a6004803603810190610a359190613b89565b611d52565b005b348015610a47575f80fd5b50610a50611e74565b604051610a5d9190613abc565b60405180910390f35b348015610a71575f80fd5b50610a8c6004803603810190610a879190613b34565b611e99565b005b348015610a99575f80fd5b50610ab46004803603810190610aaf9190613b09565b611fd3565b604051610ac191906139a8565b60405180910390f35b348015610ad5575f80fd5b50610ade612127565b604051610aeb9190613a44565b60405180910390f35b348015610aff575f80fd5b50610b1a6004803603810190610b159190613c9f565b61212d565b604051610b279190613a44565b60405180910390f35b348015610b3b575f80fd5b50610b446121af565b604051610b519190613a44565b60405180910390f35b348015610b65575f80fd5b50610b6e6121b5565b604051610b7b9190613a44565b60405180910390f35b348015610b8f575f80fd5b50610baa6004803603810190610ba59190613b34565b6121bb565b005b348015610bb7575f80fd5b50610bd26004803603810190610bcd9190613b09565b6122b1565b005b610bdc6123c0565b73ffffffffffffffffffffffffffffffffffffffff16610bfa611508565b73ffffffffffffffffffffffffffffffffffffffff1614610c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4790613d27565b60405180910390fd5b8160118190555080601281905550601254601154610c6e9190613d72565b601081905550603c6010541115610cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb190613def565b60405180910390fd5b5050565b606060038054610ccd90613e3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf990613e3a565b8015610d445780601f10610d1b57610100808354040283529160200191610d44565b820191905f5260205f20905b815481529060010190602001808311610d2757829003601f168201915b5050505050905090565b5f610d61610d5a6123c0565b84846123c7565b6001905092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60095481565b5f600254905090565b60125481565b60135481565b5f610db684848461258a565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610dfd6123c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7390613eda565b60405180910390fd5b610e9085610e886123c0565b8584036123c7565b60019150509392505050565b61dead81565b5f6012905090565b5f610f47610eb66123c0565b848460015f610ec36123c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610f429190613d72565b6123c7565b6001905092915050565b610f596123c0565b73ffffffffffffffffffffffffffffffffffffffff16610f77611508565b73ffffffffffffffffffffffffffffffffffffffff1614610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490613d27565b60405180910390fd5b670de0b6b3a76400006103e86001610fe3610d95565b610fed9190613ef8565b610ff79190613f66565b6110019190613f66565b811015611043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103a90613fe0565b60405180910390fd5b670de0b6b3a7640000816110579190613ef8565b60098190555050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900460ff1681565b5f60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b6110f16123c0565b73ffffffffffffffffffffffffffffffffffffffff1661110f611508565b73ffffffffffffffffffffffffffffffffffffffff1614611165576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115c90613d27565b60405180910390fd5b81600e8190555080600f81905550600f54600e546111839190613d72565b600d81905550601e600d5411156111cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c690614048565b60405180910390fd5b5050565b60105481565b600c60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6112396123c0565b73ffffffffffffffffffffffffffffffffffffffff16611257611508565b73ffffffffffffffffffffffffffffffffffffffff16146112ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a490613d27565b60405180910390fd5b6112b65f612fb6565b565b5f6112c16123c0565b73ffffffffffffffffffffffffffffffffffffffff166112df611508565b73ffffffffffffffffffffffffffffffffffffffff1614611335576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132c90613d27565b60405180910390fd5b5f600c5f6101000a81548160ff0219169083151502179055506001905090565b61135d6123c0565b73ffffffffffffffffffffffffffffffffffffffff1661137b611508565b73ffffffffffffffffffffffffffffffffffffffff16146113d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c890613d27565b60405180910390fd5b8060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b61145c6123c0565b73ffffffffffffffffffffffffffffffffffffffff1661147a611508565b73ffffffffffffffffffffffffffffffffffffffff16146114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790613d27565b60405180910390fd5b6001600c60016101000a81548160ff0219169083151502179055506001600c60026101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b61153e6123c0565b73ffffffffffffffffffffffffffffffffffffffff1661155c611508565b73ffffffffffffffffffffffffffffffffffffffff16146115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a990613d27565b60405180910390fd5b80600c60026101000a81548160ff02191690831515021790555050565b6060600480546115de90613e3a565b80601f016020809104026020016040519081016040528092919081815260200182805461160a90613e3a565b80156116555780601f1061162c57610100808354040283529160200191611655565b820191905f5260205f20905b81548152906001019060200180831161163857829003601f168201915b5050505050905090565b6116676123c0565b73ffffffffffffffffffffffffffffffffffffffff16611685611508565b73ffffffffffffffffffffffffffffffffffffffff16146116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290613d27565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361176a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611761906140d6565b60405180910390fd5b6117748282613079565b5050565b600b5481565b5f8060015f61178b6123c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c90614164565b60405180910390fd5b6118596118506123c0565b858584036123c7565b600191505092915050565b5f6118776118706123c0565b848461258a565b6001905092915050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6040518060400160405280600d81526020017f54726164696e6720546f6b656e00000000000000000000000000000000000000815250805190602001206040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250805190602001204630604051602001611933959493929190614191565b6040516020818303038152906040528051906020012090505f7f7dfdbf06c6260804b81338506aa4a709bd9f04b68ca0d2d054b8627926c90ae46040518060400160405280600e81526020017f456e61626c652054726164696e67000000000000000000000000000000000000815250805190602001205f6040516020016119bd939291906141e2565b6040516020818303038152906040528051906020012090505f82826040516020016119e992919061428b565b6040516020818303038152906040528051906020012090505f6001828888886040515f8152602001604052604051611a2494939291906142c1565b6020604051602081039080840390855afa158015611a44573d5f803e3d5ffd5b505050602060405103519050611a58611508565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc9061434e565b60405180910390fd5b6001600c60016101000a81548160ff0219169083151502179055506001600c60026101000a81548160ff02191690831515021790555050505050505050565b611b0c6123c0565b73ffffffffffffffffffffffffffffffffffffffff16611b2a611508565b73ffffffffffffffffffffffffffffffffffffffff1614611b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7790613d27565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6016602052805f5260405f205f915054906101000a900460ff1681565b600f5481565b6017602052805f5260405f205f915054906101000a900460ff1681565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611cbe6123c0565b73ffffffffffffffffffffffffffffffffffffffff1614611cdd575f80fd5b611ce6306111ec565b8111158015611cf457505f81115b611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a906143b6565b60405180910390fd5b611d3c81613117565b50565b600c60019054906101000a900460ff1681565b611d5a6123c0565b73ffffffffffffffffffffffffffffffffffffffff16611d78611508565b73ffffffffffffffffffffffffffffffffffffffff1614611dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc590613d27565b60405180910390fd5b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611e6891906139a8565b60405180910390a25050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ea16123c0565b73ffffffffffffffffffffffffffffffffffffffff16611ebf611508565b73ffffffffffffffffffffffffffffffffffffffff1614611f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0c90613d27565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ffaf1b77ed79f6e898c44dd8ab36b330c7b2fd39bcaab05ed6362480df870396560405160405180910390a38060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f611fdc6123c0565b73ffffffffffffffffffffffffffffffffffffffff16611ffa611508565b73ffffffffffffffffffffffffffffffffffffffff1614612050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204790613d27565b60405180910390fd5b620186a0600161205e610d95565b6120689190613ef8565b6120729190613f66565b8210156120b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ab90614444565b60405180910390fd5b6103e860056120c1610d95565b6120cb9190613ef8565b6120d59190613f66565b821115612117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210e906144d2565b60405180910390fd5b81600a8190555060019050919050565b600d5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5481565b60145481565b6121c36123c0565b73ffffffffffffffffffffffffffffffffffffffff166121e1611508565b73ffffffffffffffffffffffffffffffffffffffff1614612237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222e90613d27565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90614560565b60405180910390fd5b6122ae81612fb6565b50565b6122b96123c0565b73ffffffffffffffffffffffffffffffffffffffff166122d7611508565b73ffffffffffffffffffffffffffffffffffffffff161461232d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232490613d27565b60405180910390fd5b670de0b6b3a76400006103e86005612343610d95565b61234d9190613ef8565b6123579190613f66565b6123619190613f66565b8110156123a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239a906145c8565b60405180910390fd5b670de0b6b3a7640000816123b79190613ef8565b600b8190555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242c90614656565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249a906146e4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161257d9190613a44565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ef90614772565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265d90614800565b60405180910390fd5b5f810361267d5761267883835f61334a565b612fb1565b600c5f9054906101000a900460ff1615612b6157612699611508565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561270757506126d7611508565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561273f57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612779575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156127925750600660149054906101000a900460ff16155b15612b6057600c60019054906101000a900460ff166128865760155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612846575060155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287c90614868565b60405180910390fd5b5b60175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612923575060165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156129ca5760095481111561296d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612964906148f6565b60405180910390fd5b600b54612979836111ec565b826129849190613d72565b11156129c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129bc9061495e565b60405180910390fd5b612b5f565b60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612a67575060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612ab657600954811115612ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa8906149ec565b60405180910390fd5b612b5e565b60165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612b5d57600b54612b10836111ec565b82612b1b9190613d72565b1115612b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b539061495e565b60405180910390fd5b5b5b5b5b5b5f612b6b306111ec565b90505f600a548210159050808015612b8f5750600c60029054906101000a900460ff165b8015612ba85750600660149054906101000a900460ff16155b8015612bfb575060175f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612c4e575060155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612ca1575060155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612ce4576001600660146101000a81548160ff021916908315150217905550612cc96135bf565b5f600660146101000a81548160ff0219169083151502179055505b5f600660149054906101000a900460ff1615905060155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612d93575060155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612d9c575f90505b5f8115612fa15760175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612dfa57505f601054115b15612e9257612e276064612e196010548861378e90919063ffffffff16565b6137a390919063ffffffff16565b905060105460125482612e3a9190613ef8565b612e449190613f66565b60145f828254612e549190613d72565b9250508190555060105460115482612e6c9190613ef8565b612e769190613f66565b60135f828254612e869190613d72565b92505081905550612f7e565b60175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612ee957505f600d54115b15612f7d57612f166064612f08600d548861378e90919063ffffffff16565b6137a390919063ffffffff16565b9050600d54600f5482612f299190613ef8565b612f339190613f66565b60145f828254612f439190613d72565b92505081905550600d54600e5482612f5b9190613ef8565b612f659190613f66565b60135f828254612f759190613d72565b925050819055505b5b5f811115612f9257612f9187308361334a565b5b8085612f9e9190614a0a565b94505b612fac87878761334a565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f600267ffffffffffffffff81111561313357613132614a3d565b5b6040519080825280602002602001820160405280156131615781602001602082028036833780820191505090505b50905030815f8151811061317857613177614a6a565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561321b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061323f9190614aab565b8160018151811061325357613252614a6a565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506132b8307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846123c7565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401613319959493929190614bc6565b5f604051808303815f87803b158015613330575f80fd5b505af1158015613342573d5f803e3d5ffd5b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133af90614772565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613426576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341d90614800565b60405180910390fd5b6134318383836137b8565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156134b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ab90614c8e565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546135429190613d72565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135a69190613a44565b60405180910390a36135b98484846137bd565b50505050565b5f6135c9306111ec565b90505f6014546013546135dc9190613d72565b90505f8083036135ee5750505061378c565b6014600a546135fd9190613ef8565b831115613616576014600a546136139190613ef8565b92505b5f47905061362384613117565b5f61363782476137c290919063ffffffff16565b90505f613661856136536014548561378e90919063ffffffff16565b6137a390919063ffffffff16565b90505f6013819055505f60148190555060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516136b690614cd9565b5f6040518083038185875af1925050503d805f81146136f0576040519150601f19603f3d011682016040523d82523d5f602084013e6136f5565b606091505b50508094505060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161374090614cd9565b5f6040518083038185875af1925050503d805f811461377a576040519150601f19603f3d011682016040523d82523d5f602084013e61377f565b606091505b5050809450505050505050505b565b5f818361379b9190613ef8565b905092915050565b5f81836137b09190613f66565b905092915050565b505050565b505050565b5f81836137cf9190614a0a565b905092915050565b5f80fd5b5f819050919050565b6137ed816137db565b81146137f7575f80fd5b50565b5f81359050613808816137e4565b92915050565b5f8060408385031215613824576138236137d7565b5b5f613831858286016137fa565b9250506020613842858286016137fa565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613883578082015181840152602081019050613868565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6138a88261384c565b6138b28185613856565b93506138c2818560208601613866565b6138cb8161388e565b840191505092915050565b5f6020820190508181035f8301526138ee818461389e565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61391f826138f6565b9050919050565b61392f81613915565b8114613939575f80fd5b50565b5f8135905061394a81613926565b92915050565b5f8060408385031215613966576139656137d7565b5b5f6139738582860161393c565b9250506020613984858286016137fa565b9150509250929050565b5f8115159050919050565b6139a28161398e565b82525050565b5f6020820190506139bb5f830184613999565b92915050565b5f819050919050565b5f6139e46139df6139da846138f6565b6139c1565b6138f6565b9050919050565b5f6139f5826139ca565b9050919050565b5f613a06826139eb565b9050919050565b613a16816139fc565b82525050565b5f602082019050613a2f5f830184613a0d565b92915050565b613a3e816137db565b82525050565b5f602082019050613a575f830184613a35565b92915050565b5f805f60608486031215613a7457613a736137d7565b5b5f613a818682870161393c565b9350506020613a928682870161393c565b9250506040613aa3868287016137fa565b9150509250925092565b613ab681613915565b82525050565b5f602082019050613acf5f830184613aad565b92915050565b5f60ff82169050919050565b613aea81613ad5565b82525050565b5f602082019050613b035f830184613ae1565b92915050565b5f60208284031215613b1e57613b1d6137d7565b5b5f613b2b848285016137fa565b91505092915050565b5f60208284031215613b4957613b486137d7565b5b5f613b568482850161393c565b91505092915050565b613b688161398e565b8114613b72575f80fd5b50565b5f81359050613b8381613b5f565b92915050565b5f8060408385031215613b9f57613b9e6137d7565b5b5f613bac8582860161393c565b9250506020613bbd85828601613b75565b9150509250929050565b5f60208284031215613bdc57613bdb6137d7565b5b5f613be984828501613b75565b91505092915050565b613bfb81613ad5565b8114613c05575f80fd5b50565b5f81359050613c1681613bf2565b92915050565b5f819050919050565b613c2e81613c1c565b8114613c38575f80fd5b50565b5f81359050613c4981613c25565b92915050565b5f805f60608486031215613c6657613c656137d7565b5b5f613c7386828701613c08565b9350506020613c8486828701613c3b565b9250506040613c9586828701613c3b565b9150509250925092565b5f8060408385031215613cb557613cb46137d7565b5b5f613cc28582860161393c565b9250506020613cd38582860161393c565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613d11602083613856565b9150613d1c82613cdd565b602082019050919050565b5f6020820190508181035f830152613d3e81613d05565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613d7c826137db565b9150613d87836137db565b9250828201905080821115613d9f57613d9e613d45565b5b92915050565b7f4d757374206b656570206665657320617420363025206f72206c6573730000005f82015250565b5f613dd9601d83613856565b9150613de482613da5565b602082019050919050565b5f6020820190508181035f830152613e0681613dcd565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613e5157607f821691505b602082108103613e6457613e63613e0d565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f613ec4602883613856565b9150613ecf82613e6a565b604082019050919050565b5f6020820190508181035f830152613ef181613eb8565b9050919050565b5f613f02826137db565b9150613f0d836137db565b9250828202613f1b816137db565b91508282048414831517613f3257613f31613d45565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613f70826137db565b9150613f7b836137db565b925082613f8b57613f8a613f39565b5b828204905092915050565b7f43616e6e6f7420736574206d617854206c6f776572207468616e20302e3125005f82015250565b5f613fca601f83613856565b9150613fd582613f96565b602082019050919050565b5f6020820190508181035f830152613ff781613fbe565b9050919050565b7f4d757374206b656570206665657320617420333025206f72206c6573730000005f82015250565b5f614032601d83613856565b915061403d82613ffe565b602082019050919050565b5f6020820190508181035f83015261405f81614026565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6140c0603983613856565b91506140cb82614066565b604082019050919050565b5f6020820190508181035f8301526140ed816140b4565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61414e602583613856565b9150614159826140f4565b604082019050919050565b5f6020820190508181035f83015261417b81614142565b9050919050565b61418b81613c1c565b82525050565b5f60a0820190506141a45f830188614182565b6141b16020830187614182565b6141be6040830186614182565b6141cb6060830185613a35565b6141d86080830184613aad565b9695505050505050565b5f6060820190506141f55f830186614182565b6142026020830185614182565b61420f6040830184613a35565b949350505050565b5f81905092915050565b7f19010000000000000000000000000000000000000000000000000000000000005f82015250565b5f614255600283614217565b915061426082614221565b600282019050919050565b5f819050919050565b61428561428082613c1c565b61426b565b82525050565b5f61429582614249565b91506142a18285614274565b6020820191506142b18284614274565b6020820191508190509392505050565b5f6080820190506142d45f830187614182565b6142e16020830186613ae1565b6142ee6040830185614182565b6142fb6060830184614182565b95945050505050565b7f496e76616c6964207369676e61747572650000000000000000000000000000005f82015250565b5f614338601183613856565b915061434382614304565b602082019050919050565b5f6020820190508181035f8301526143658161432c565b9050919050565b7f57726f6e6720616d6f756e7400000000000000000000000000000000000000005f82015250565b5f6143a0600c83613856565b91506143ab8261436c565b602082019050919050565b5f6020820190508181035f8301526143cd81614394565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f61442e603583613856565b9150614439826143d4565b604082019050919050565b5f6020820190508181035f83015261445b81614422565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6144bc603483613856565b91506144c782614462565b604082019050919050565b5f6020820190508181035f8301526144e9816144b0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61454a602683613856565b9150614555826144f0565b604082019050919050565b5f6020820190508181035f8301526145778161453e565b9050919050565b7f43616e6e6f7420736574206d617857206c6f776572207468616e20302e3525005f82015250565b5f6145b2601f83613856565b91506145bd8261457e565b602082019050919050565b5f6020820190508181035f8301526145df816145a6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f614640602483613856565b915061464b826145e6565b604082019050919050565b5f6020820190508181035f83015261466d81614634565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6146ce602283613856565b91506146d982614674565b604082019050919050565b5f6020820190508181035f8301526146fb816146c2565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61475c602583613856565b915061476782614702565b604082019050919050565b5f6020820190508181035f83015261478981614750565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6147ea602383613856565b91506147f582614790565b604082019050919050565b5f6020820190508181035f830152614817816147de565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f614852601683613856565b915061485d8261481e565b602082019050919050565b5f6020820190508181035f83015261487f81614846565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d6178542e000000000000000000000000000000000000000000000000000000602082015250565b5f6148e0602583613856565b91506148eb82614886565b604082019050919050565b5f6020820190508181035f83015261490d816148d4565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f614948601383613856565b915061495382614914565b602082019050919050565b5f6020820190508181035f8301526149758161493c565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d6178542e0000000000000000000000000000000000000000000000000000602082015250565b5f6149d6602683613856565b91506149e18261497c565b604082019050919050565b5f6020820190508181035f830152614a03816149ca565b9050919050565b5f614a14826137db565b9150614a1f836137db565b9250828203905081811115614a3757614a36613d45565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050614aa581613926565b92915050565b5f60208284031215614ac057614abf6137d7565b5b5f614acd84828501614a97565b91505092915050565b5f819050919050565b5f614af9614af4614aef84614ad6565b6139c1565b6137db565b9050919050565b614b0981614adf565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614b4181613915565b82525050565b5f614b528383614b38565b60208301905092915050565b5f602082019050919050565b5f614b7482614b0f565b614b7e8185614b19565b9350614b8983614b29565b805f5b83811015614bb9578151614ba08882614b47565b9750614bab83614b5e565b925050600181019050614b8c565b5085935050505092915050565b5f60a082019050614bd95f830188613a35565b614be66020830187614b00565b8181036040830152614bf88186614b6a565b9050614c076060830185613aad565b614c146080830184613a35565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614c78602683613856565b9150614c8382614c1e565b604082019050919050565b5f6020820190508181035f830152614ca581614c6c565b9050919050565b5f81905092915050565b50565b5f614cc45f83614cac565b9150614ccf82614cb6565b5f82019050919050565b5f614ce382614cb9565b915081905091905056fea2646970667358221220b10db0fa2caf57347c42e0ff04b6e13c89aae83ed761c30fe9a80610fa54f61a64736f6c63430008170033
Verified Source Code Partial Match
Compiler: v0.8.23+commit.f704f362
EVM: shanghai
Optimization: No
Yummy.sol 934 lines
// SPDX-License-Identifier: MIT
/*
🍕 $YUMMY Official Links 🍕
website: yummycoin.vip
tg channel: t.me/yummycoinportal
twitter: https://x.com/yummyerc
*/
pragma solidity ^0.8.23;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
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);
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, 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 sender,
address recipient,
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 recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, 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 _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
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 mod(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;
}
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
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 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 Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
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 burn(address to)
external
returns (uint256 amount0, uint256 amount1);
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 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 swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract Yummy is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public developmentWallet;
uint256 public maxT;
uint256 public swapTokensAtAmount;
uint256 public maxW;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyDevelopmentFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellDevelopmentFee;
uint256 public tokensForMarketing;
uint256 public tokensForDevelopment;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedmaxT;
mapping(address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event developmentWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
constructor() ERC20("Yummy", unicode"YUMMY") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 11;
uint256 _buyDevelopmentFee = 4;
uint256 _sellMarketingFee = 45;
uint256 _sellDevelopmentFee = 15;
uint256 totalSupply = 100_000_000 * 1e18;
maxT = 2_000_000 * 1e18; // 2% from total supply maxTTxn
maxW = 2_000_000 * 1e18; // 2% from total supply maxW
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swap wallet
buyMarketingFee = _buyMarketingFee;
buyDevelopmentFee = _buyDevelopmentFee;
buyTotalFees = buyMarketingFee + buyDevelopmentFee;
sellMarketingFee = _sellMarketingFee;
sellDevelopmentFee = _sellDevelopmentFee;
sellTotalFees = sellMarketingFee + sellDevelopmentFee;
marketingWallet = address(0x3c7223cBcF3188D7B446f89de63bDaB1D339609e);
developmentWallet = address(0x0dF80b7073C21393521e5E37C80cd1A40521407C);
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_mint(msg.sender, totalSupply);
}
receive() external payable {}
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
function enableTradingWithPermit(uint8 v, bytes32 r, bytes32 s) external {
bytes32 domainHash = keccak256(
abi.encode(
keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
keccak256(bytes('Trading Token')),
keccak256(bytes('1')),
block.chainid,
address(this)
)
);
bytes32 structHash = keccak256(
abi.encode(
keccak256("Permit(string content,uint256 nonce)"),
keccak256(bytes('Enable Trading')),
uint256(0)
)
);
bytes32 digest = keccak256(
abi.encodePacked(
'\x19\x01',
domainHash,
structHash
)
);
address sender = ecrecover(digest, v, r, s);
require(sender == owner(), "Invalid signature");
tradingActive = true;
swapEnabled = true;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updatemaxTAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set maxT lower than 0.1%"
);
maxT = newNum * (10**18);
}
function updatemaxWAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxW lower than 0.5%"
);
maxW = newNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedmaxT[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function updateBuyFees(
uint256 _marketingFee,
uint256 _devFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyDevelopmentFee = _devFee;
buyTotalFees = buyMarketingFee + buyDevelopmentFee;
require(buyTotalFees <= 30, "Must keep fees at 30% or less");
}
function updateSellFees(
uint256 _marketingFee,
uint256 _devFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellDevelopmentFee = _devFee;
sellTotalFees = sellMarketingFee + sellDevelopmentFee;
require(sellTotalFees <= 60, "Must keep fees at 60% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_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 updateMarketingWallet(address newMarketingWallet) external onlyOwner {
emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
marketingWallet = newMarketingWallet;
}
function updatedevelopmentWallet(address newWallet) external onlyOwner {
emit developmentWalletUpdated(newWallet, developmentWallet);
developmentWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
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 (limitsInEffect) {
if (from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping) {
if (!tradingActive) {
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedmaxT[to]) {
require(amount <= maxT, "Buy transfer amount exceeds the maxT.");
require(amount + balanceOf(to) <= maxW, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedmaxT[from]) {
require(amount <= maxT, "Sell transfer amount exceeds the maxT.");
}
else if (!_isExcludedmaxT[to]) {
require(amount + balanceOf(to) <= maxW, "Max wallet exceeded");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(100);
tokensForDevelopment += (fees * sellDevelopmentFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForDevelopment += (fees * buyDevelopmentFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function min(uint256 a, uint256 b) private pure returns (uint256) {
return (a > b) ? b : a;
}
function manualSwap(uint256 amount) external {
require(_msgSender() == marketingWallet);
require(amount <= balanceOf(address(this)) && amount > 0, "Wrong amount");
swapTokensForEth(amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForMarketing + tokensForDevelopment;
bool success;
if (contractBalance == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(contractBalance);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForDev = ethBalance.mul(tokensForDevelopment).div(totalTokensToSwap);
tokensForMarketing = 0;
tokensForDevelopment = 0;
(success, ) = address(developmentWallet).call{value: ethForDev}("");
(success, ) = address(marketingWallet).call{ value: address(this).balance }("");
}
}
Read Contract
_isExcludedmaxT 0xaf5b0f37 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevelopmentFee 0xb2041411 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
developmentWallet 0xc04a5414 → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxT 0x18126dce → uint256
maxW 0xa44edb2b → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevelopmentFee 0x18a94cf1 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDevelopment 0xef8700e5 → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 22 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
enableTrading 0x8a8c523c
No parameters
enableTradingWithPermit 0xa90eab8c
uint8 v
bytes32 r
bytes32 s
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwap 0xb70143c9
uint256 amount
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _marketingFee
uint256 _devFee
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateSellFees 0x02dbd8f8
uint256 _marketingFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updatedevelopmentWallet 0xc79c04fd
address newWallet
updatemaxTAmount 0x3aa7a74d
uint256 newNum
updatemaxWAmount 0xfbc03bc8
uint256 newNum
Recent Transactions
No transactions found for this address