Address Contract Partially Verified
Address
0x616bBb932602A9C9871E99806BDb63c9e6DA9F8B
Balance
0 ETH
Nonce
1
Code Size
19556 bytes
Creator
0xfc1938F1...7bc5 at tx 0xc874d363...32f86e
Indexed Transactions
0
Contract Bytecode
19556 bytes
0x6080604052600436106102e7575f3560e01c80638da5cb5b1161018f578063b819a1a9116100db578063d85ba06311610094578063e6819ba71161006e578063e6819ba714610b22578063e884f26014610b5e578063f1b9ad6b14610b88578063f2fde38b14610bb0576102ee565b8063d85ba06314610a92578063dd62ed3e14610abc578063e2f4560514610af8576102ee565b8063b819a1a91461098a578063bbc0c742146109b2578063c0246668146109dc578063c6616ba114610a04578063c876d0b914610a2c578063d257b34f14610a56576102ee565b80639fccce3211610148578063a72f458611610122578063a72f4586146108c0578063a9059cbb146108ea578063b62496f514610926578063b70143c914610962576102ee565b80639fccce3214610830578063a0d82dc51461085a578063a457c2d714610884576102ee565b80638da5cb5b146107385780639213691314610762578063924de9b71461078c57806395d89b41146107b45780639a7a23d6146107de5780639c3b4fdc14610806576102ee565b806349bd5a5e1161024e5780636ddd1713116102075780637437681e116101e15780637437681e146106a4578063751039fc146106ce5780637bce5a04146106f85780638a8c523c14610722576102ee565b80636ddd17131461062857806370a0823114610652578063715018a61461068e576102ee565b806349bd5a5e1461051c5780634a62bb65146105465780634fbee1931461057057806361528e27146105ac578063644130d8146105d65780636a486a8e146105fe576102ee565b806323b872dd116102a057806323b872dd146103fc57806327c8f8351461043857806330a136ad146104625780633103b39e1461048c578063313ce567146104b657806339509351146104e0576102ee565b806306fdde03146102f2578063095ea7b31461031c5780631694505e1461035857806318160ddd14610382578063203e727e146103ac578063217580a2146103d4576102ee565b366102ee57005b5f80fd5b3480156102fd575f80fd5b50610306610bd8565b60405161031391906138d1565b60405180910390f35b348015610327575f80fd5b50610342600480360381019061033d9190613982565b610c68565b60405161034f91906139da565b60405180910390f35b348015610363575f80fd5b5061036c610c85565b6040516103799190613a4e565b60405180910390f35b34801561038d575f80fd5b50610396610ca9565b6040516103a39190613a76565b60405180910390f35b3480156103b7575f80fd5b506103d260048036038101906103cd9190613a8f565b610cb2565b005b3480156103df575f80fd5b506103fa60048036038101906103f59190613a8f565b610dc1565b005b348015610407575f80fd5b50610422600480360381019061041d9190613aba565b610ed0565b60405161042f91906139da565b60405180910390f35b348015610443575f80fd5b5061044c610fc2565b6040516104599190613b19565b60405180910390f35b34801561046d575f80fd5b50610476610fc8565b6040516104839190613a76565b60405180910390f35b348015610497575f80fd5b506104a0610fce565b6040516104ad9190613b19565b60405180910390f35b3480156104c1575f80fd5b506104ca610ff3565b6040516104d79190613b4d565b60405180910390f35b3480156104eb575f80fd5b5061050660048036038101906105019190613982565b610ffb565b60405161051391906139da565b60405180910390f35b348015610527575f80fd5b506105306110a2565b60405161053d9190613b19565b60405180910390f35b348015610551575f80fd5b5061055a6110c7565b60405161056791906139da565b60405180910390f35b34801561057b575f80fd5b5061059660048036038101906105919190613b66565b6110d9565b6040516105a391906139da565b60405180910390f35b3480156105b7575f80fd5b506105c061112b565b6040516105cd9190613a76565b60405180910390f35b3480156105e1575f80fd5b506105fc60048036038101906105f79190613bbb565b611131565b005b348015610609575f80fd5b50610612611205565b60405161061f9190613a76565b60405180910390f35b348015610633575f80fd5b5061063c61120b565b60405161064991906139da565b60405180910390f35b34801561065d575f80fd5b5061067860048036038101906106739190613b66565b61121e565b6040516106859190613a76565b60405180910390f35b348015610699575f80fd5b506106a2611263565b005b3480156106af575f80fd5b506106b86112ea565b6040516106c59190613a76565b60405180910390f35b3480156106d9575f80fd5b506106e26112f0565b6040516106ef91906139da565b60405180910390f35b348015610703575f80fd5b5061070c61138d565b6040516107199190613a76565b60405180910390f35b34801561072d575f80fd5b50610736611393565b005b348015610743575f80fd5b5061074c611447565b6040516107599190613b19565b60405180910390f35b34801561076d575f80fd5b5061077661146f565b6040516107839190613a76565b60405180910390f35b348015610797575f80fd5b506107b260048036038101906107ad9190613bf9565b611475565b005b3480156107bf575f80fd5b506107c861150e565b6040516107d591906138d1565b60405180910390f35b3480156107e9575f80fd5b5061080460048036038101906107ff9190613bbb565b61159e565b005b348015610811575f80fd5b5061081a6116b7565b6040516108279190613a76565b60405180910390f35b34801561083b575f80fd5b506108446116bd565b6040516108519190613a76565b60405180910390f35b348015610865575f80fd5b5061086e6116c3565b60405161087b9190613a76565b60405180910390f35b34801561088f575f80fd5b506108aa60048036038101906108a59190613982565b6116c9565b6040516108b791906139da565b60405180910390f35b3480156108cb575f80fd5b506108d46117af565b6040516108e19190613b19565b60405180910390f35b3480156108f5575f80fd5b50610910600480360381019061090b9190613982565b6117d4565b60405161091d91906139da565b60405180910390f35b348015610931575f80fd5b5061094c60048036038101906109479190613b66565b6117f1565b60405161095991906139da565b60405180910390f35b34801561096d575f80fd5b5061098860048036038101906109839190613a8f565b61180e565b005b348015610995575f80fd5b506109b060048036038101906109ab9190613b66565b6118cf565b005b3480156109bd575f80fd5b506109c6611a09565b6040516109d391906139da565b60405180910390f35b3480156109e7575f80fd5b50610a0260048036038101906109fd9190613bbb565b611a1c565b005b348015610a0f575f80fd5b50610a2a6004803603810190610a259190613c24565b611b3e565b005b348015610a37575f80fd5b50610a40611c94565b604051610a4d91906139da565b60405180910390f35b348015610a61575f80fd5b50610a7c6004803603810190610a779190613a8f565b611ca6565b604051610a8991906139da565b60405180910390f35b348015610a9d575f80fd5b50610aa6611dfa565b604051610ab39190613a76565b60405180910390f35b348015610ac7575f80fd5b50610ae26004803603810190610add9190613c88565b611e00565b604051610aef9190613a76565b60405180910390f35b348015610b03575f80fd5b50610b0c611e82565b604051610b199190613a76565b60405180910390f35b348015610b2d575f80fd5b50610b486004803603810190610b439190613b66565b611e88565b604051610b5591906139da565b60405180910390f35b348015610b69575f80fd5b50610b72611ea5565b604051610b7f91906139da565b60405180910390f35b348015610b93575f80fd5b50610bae6004803603810190610ba99190613b66565b611f42565b005b348015610bbb575f80fd5b50610bd66004803603810190610bd19190613b66565b61207c565b005b606060038054610be790613cf3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1390613cf3565b8015610c5e5780601f10610c3557610100808354040283529160200191610c5e565b820191905f5260205f20905b815481529060010190602001808311610c4157829003601f168201915b5050505050905090565b5f610c7b610c74612172565b8484612179565b6001905092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610cba612172565b73ffffffffffffffffffffffffffffffffffffffff16610cd8611447565b73ffffffffffffffffffffffffffffffffffffffff1614610d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2590613d6d565b60405180910390fd5b670de0b6b3a76400006103e86001610d44610ca9565b610d4e9190613db8565b610d589190613e26565b610d629190613e26565b811015610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b90613ea0565b60405180910390fd5b670de0b6b3a764000081610db89190613db8565b60098190555050565b610dc9612172565b73ffffffffffffffffffffffffffffffffffffffff16610de7611447565b73ffffffffffffffffffffffffffffffffffffffff1614610e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3490613d6d565b60405180910390fd5b670de0b6b3a76400006103e86005610e53610ca9565b610e5d9190613db8565b610e679190613e26565b610e719190613e26565b811015610eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaa90613f2e565b60405180910390fd5b670de0b6b3a764000081610ec79190613db8565b600b8190555050565b5f610edc84848461233c565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610f23612172565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9990613fbc565b60405180910390fd5b610fb685610fae612172565b858403612179565b60019150509392505050565b61dead81565b600b5481565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6012905090565b5f611098611007612172565b848460015f611014612172565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546110939190613fda565b612179565b6001905092915050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900460ff1681565b5f60185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60155481565b611139612172565b73ffffffffffffffffffffffffffffffffffffffff16611157611447565b73ffffffffffffffffffffffffffffffffffffffff16146111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a490613d6d565b60405180910390fd5b8060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b60125481565b600c60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61126b612172565b73ffffffffffffffffffffffffffffffffffffffff16611289611447565b73ffffffffffffffffffffffffffffffffffffffff16146112df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d690613d6d565b60405180910390fd5b6112e85f613040565b565b60095481565b5f6112f9612172565b73ffffffffffffffffffffffffffffffffffffffff16611317611447565b73ffffffffffffffffffffffffffffffffffffffff161461136d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136490613d6d565b60405180910390fd5b5f600c5f6101000a81548160ff0219169083151502179055506001905090565b60105481565b61139b612172565b73ffffffffffffffffffffffffffffffffffffffff166113b9611447565b73ffffffffffffffffffffffffffffffffffffffff161461140f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140690613d6d565b60405180910390fd5b6001600c60016101000a81548160ff0219169083151502179055506001600c60026101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60135481565b61147d612172565b73ffffffffffffffffffffffffffffffffffffffff1661149b611447565b73ffffffffffffffffffffffffffffffffffffffff16146114f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e890613d6d565b60405180910390fd5b80600c60026101000a81548160ff02191690831515021790555050565b60606004805461151d90613cf3565b80601f016020809104026020016040519081016040528092919081815260200182805461154990613cf3565b80156115945780601f1061156b57610100808354040283529160200191611594565b820191905f5260205f20905b81548152906001019060200180831161157757829003601f168201915b5050505050905090565b6115a6612172565b73ffffffffffffffffffffffffffffffffffffffff166115c4611447565b73ffffffffffffffffffffffffffffffffffffffff161461161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161190613d6d565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a09061407d565b60405180910390fd5b6116b38282613103565b5050565b60115481565b60165481565b60145481565b5f8060015f6116d6612172565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611790576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117879061410b565b60405180910390fd5b6117a461179b612172565b85858403612179565b600191505092915050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6117e76117e0612172565b848461233c565b6001905092915050565b601a602052805f5260405f205f915054906101000a900460ff1681565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661184e612172565b73ffffffffffffffffffffffffffffffffffffffff161461186d575f80fd5b6118763061121e565b811115801561188457505f81115b6118c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ba90614173565b60405180910390fd5b6118cc816131a1565b50565b6118d7612172565b73ffffffffffffffffffffffffffffffffffffffff166118f5611447565b73ffffffffffffffffffffffffffffffffffffffff161461194b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194290613d6d565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f9e3da7e72199adc414f24e73d3985f288cce5edbc5c370e29af583afdd78c2c260405160405180910390a38060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60019054906101000a900460ff1681565b611a24612172565b73ffffffffffffffffffffffffffffffffffffffff16611a42611447565b73ffffffffffffffffffffffffffffffffffffffff1614611a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8f90613d6d565b60405180910390fd5b8060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611b3291906139da565b60405180910390a25050565b611b46612172565b73ffffffffffffffffffffffffffffffffffffffff16611b64611447565b73ffffffffffffffffffffffffffffffffffffffff1614611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb190613d6d565b60405180910390fd5b8360108190555082601181905550601154601054611bd89190613fda565b600f819055508160138190555080601481905550601454601354611bfc9190613fda565b601281905550604b600f541115611c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3f906141db565b60405180910390fd5b604b6012541115611c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c85906141db565b60405180910390fd5b50505050565b600e5f9054906101000a900460ff1681565b5f611caf612172565b73ffffffffffffffffffffffffffffffffffffffff16611ccd611447565b73ffffffffffffffffffffffffffffffffffffffff1614611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a90613d6d565b60405180910390fd5b620186a06001611d31610ca9565b611d3b9190613db8565b611d459190613e26565b821015611d87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7e90614269565b60405180910390fd5b6103e86005611d94610ca9565b611d9e9190613db8565b611da89190613e26565b821115611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de1906142f7565b60405180910390fd5b81600a8190555060019050919050565b600f5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5481565b6019602052805f5260405f205f915054906101000a900460ff1681565b5f611eae612172565b73ffffffffffffffffffffffffffffffffffffffff16611ecc611447565b73ffffffffffffffffffffffffffffffffffffffff1614611f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1990613d6d565b60405180910390fd5b5f600e5f6101000a81548160ff0219169083151502179055506001905090565b611f4a612172565b73ffffffffffffffffffffffffffffffffffffffff16611f68611447565b73ffffffffffffffffffffffffffffffffffffffff1614611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb590613d6d565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f455cf943964d06e77e44126ecca5a66b2c9721f4576a31f8693127282c55700f60405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612084612172565b73ffffffffffffffffffffffffffffffffffffffff166120a2611447565b73ffffffffffffffffffffffffffffffffffffffff16146120f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ef90613d6d565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612166576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215d90614385565b60405180910390fd5b61216f81613040565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121de90614413565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224c906144a1565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161232f9190613a76565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a19061452f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240f906145bd565b60405180910390fd5b60175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156124a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249990614625565b60405180910390fd5b60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561252c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125239061468d565b60405180910390fd5b5f81036125435761253e83835f6133d4565b61303b565b600c5f9054906101000a900460ff1615612beb5761255f611447565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156125cd575061259d611447565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561260557505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561263f575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126585750600660149054906101000a900460ff16155b15612bea57600c60019054906101000a900460ff1661274c5760185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061270c575060185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61274b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612742906146f5565b60405180910390fd5b5b600e5f9054906101000a900460ff161561291057612768611447565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156127ef57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612848575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561290f5743600d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054106128cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c3906147a9565b60405180910390fd5b43600d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156129ad575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612a54576009548111156129f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ee90614837565b60405180910390fd5b600b54612a038361121e565b82612a0e9190613fda565b1115612a4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a469061489f565b60405180910390fd5b612be9565b601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612af1575060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612b4057600954811115612b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b329061492d565b60405180910390fd5b612be8565b60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612be757600b54612b9a8361121e565b82612ba59190613fda565b1115612be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdd9061489f565b60405180910390fd5b5b5b5b5b5b5f612bf53061121e565b90505f600a548210159050808015612c195750600c60029054906101000a900460ff165b8015612c325750600660149054906101000a900460ff16155b8015612c855750601a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612cd8575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612d2b575060185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612d6e576001600660146101000a81548160ff021916908315150217905550612d53613649565b5f600660146101000a81548160ff0219169083151502179055505b5f600660149054906101000a900460ff1615905060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612e1d575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612e26575f90505b5f811561302b57601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612e8457505f601254115b15612f1c57612eb16064612ea36012548861381890919063ffffffff16565b61382d90919063ffffffff16565b905060125460145482612ec49190613db8565b612ece9190613e26565b60165f828254612ede9190613fda565b9250508190555060125460135482612ef69190613db8565b612f009190613e26565b60155f828254612f109190613fda565b92505081905550613008565b601a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612f7357505f600f54115b1561300757612fa06064612f92600f548861381890919063ffffffff16565b61382d90919063ffffffff16565b9050600f5460115482612fb39190613db8565b612fbd9190613e26565b60165f828254612fcd9190613fda565b92505081905550600f5460105482612fe59190613db8565b612fef9190613e26565b60155f828254612fff9190613fda565b925050819055505b5b5f81111561301c5761301b8730836133d4565b5b8085613028919061494b565b94505b6130368787876133d4565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f600267ffffffffffffffff8111156131bd576131bc61497e565b5b6040519080825280602002602001820160405280156131eb5781602001602082028036833780820191505090505b50905030815f81518110613202576132016149ab565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132a5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132c991906149ec565b816001815181106132dd576132dc6149ab565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613342307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612179565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016133a3959493929190614b07565b5f604051808303815f87803b1580156133ba575f80fd5b505af11580156133cc573d5f803e3d5ffd5b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613442576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134399061452f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036134b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a7906145bd565b60405180910390fd5b6134bb838383613842565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561353e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353590614bcf565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546135cc9190613fda565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516136309190613a76565b60405180910390a3613643848484613847565b50505050565b5f6136533061121e565b90505f6016546015546136669190613fda565b90505f80830361367857505050613816565b6014600a546136879190613db8565b8311156136a0576014600a5461369d9190613db8565b92505b5f4790506136ad846131a1565b5f6136c1824761384c90919063ffffffff16565b90505f6136eb856136dd6016548561381890919063ffffffff16565b61382d90919063ffffffff16565b90505f6015819055505f60168190555060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161374090614c1a565b5f6040518083038185875af1925050503d805f811461377a576040519150601f19603f3d011682016040523d82523d5f602084013e61377f565b606091505b50508094505060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516137ca90614c1a565b5f6040518083038185875af1925050503d805f8114613804576040519150601f19603f3d011682016040523d82523d5f602084013e613809565b606091505b5050809450505050505050505b565b5f81836138259190613db8565b905092915050565b5f818361383a9190613e26565b905092915050565b505050565b505050565b5f8183613859919061494b565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6138a382613861565b6138ad818561386b565b93506138bd81856020860161387b565b6138c681613889565b840191505092915050565b5f6020820190508181035f8301526138e98184613899565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61391e826138f5565b9050919050565b61392e81613914565b8114613938575f80fd5b50565b5f8135905061394981613925565b92915050565b5f819050919050565b6139618161394f565b811461396b575f80fd5b50565b5f8135905061397c81613958565b92915050565b5f8060408385031215613998576139976138f1565b5b5f6139a58582860161393b565b92505060206139b68582860161396e565b9150509250929050565b5f8115159050919050565b6139d4816139c0565b82525050565b5f6020820190506139ed5f8301846139cb565b92915050565b5f819050919050565b5f613a16613a11613a0c846138f5565b6139f3565b6138f5565b9050919050565b5f613a27826139fc565b9050919050565b5f613a3882613a1d565b9050919050565b613a4881613a2e565b82525050565b5f602082019050613a615f830184613a3f565b92915050565b613a708161394f565b82525050565b5f602082019050613a895f830184613a67565b92915050565b5f60208284031215613aa457613aa36138f1565b5b5f613ab18482850161396e565b91505092915050565b5f805f60608486031215613ad157613ad06138f1565b5b5f613ade8682870161393b565b9350506020613aef8682870161393b565b9250506040613b008682870161396e565b9150509250925092565b613b1381613914565b82525050565b5f602082019050613b2c5f830184613b0a565b92915050565b5f60ff82169050919050565b613b4781613b32565b82525050565b5f602082019050613b605f830184613b3e565b92915050565b5f60208284031215613b7b57613b7a6138f1565b5b5f613b888482850161393b565b91505092915050565b613b9a816139c0565b8114613ba4575f80fd5b50565b5f81359050613bb581613b91565b92915050565b5f8060408385031215613bd157613bd06138f1565b5b5f613bde8582860161393b565b9250506020613bef85828601613ba7565b9150509250929050565b5f60208284031215613c0e57613c0d6138f1565b5b5f613c1b84828501613ba7565b91505092915050565b5f805f8060808587031215613c3c57613c3b6138f1565b5b5f613c498782880161396e565b9450506020613c5a8782880161396e565b9350506040613c6b8782880161396e565b9250506060613c7c8782880161396e565b91505092959194509250565b5f8060408385031215613c9e57613c9d6138f1565b5b5f613cab8582860161393b565b9250506020613cbc8582860161393b565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d0a57607f821691505b602082108103613d1d57613d1c613cc6565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613d5760208361386b565b9150613d6282613d23565b602082019050919050565b5f6020820190508181035f830152613d8481613d4b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613dc28261394f565b9150613dcd8361394f565b9250828202613ddb8161394f565b91508282048414831517613df257613df1613d8b565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613e308261394f565b9150613e3b8361394f565b925082613e4b57613e4a613df9565b5b828204905092915050565b7f43616e6e6f7420736574206d61785478206c6f776572207468616e20302e31255f82015250565b5f613e8a60208361386b565b9150613e9582613e56565b602082019050919050565b5f6020820190508181035f830152613eb781613e7e565b9050919050565b7f43616e6e6f7420736574206d617857616c6c657473206c6f776572207468616e5f8201527f20302e3525000000000000000000000000000000000000000000000000000000602082015250565b5f613f1860258361386b565b9150613f2382613ebe565b604082019050919050565b5f6020820190508181035f830152613f4581613f0c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f613fa660288361386b565b9150613fb182613f4c565b604082019050919050565b5f6020820190508181035f830152613fd381613f9a565b9050919050565b5f613fe48261394f565b9150613fef8361394f565b925082820190508082111561400757614006613d8b565b5b92915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f61406760398361386b565b91506140728261400d565b604082019050919050565b5f6020820190508181035f8301526140948161405b565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6140f560258361386b565b91506141008261409b565b604082019050919050565b5f6020820190508181035f830152614122816140e9565b9050919050565b7f57726f6e6720616d6f756e7400000000000000000000000000000000000000005f82015250565b5f61415d600c8361386b565b915061416882614129565b602082019050919050565b5f6020820190508181035f83015261418a81614151565b9050919050565b7f4d757374206b656570206665657320617420373525206f72206c6573730000005f82015250565b5f6141c5601d8361386b565b91506141d082614191565b602082019050919050565b5f6020820190508181035f8301526141f2816141b9565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f61425360358361386b565b915061425e826141f9565b604082019050919050565b5f6020820190508181035f83015261428081614247565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6142e160348361386b565b91506142ec82614287565b604082019050919050565b5f6020820190508181035f83015261430e816142d5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61436f60268361386b565b915061437a82614315565b604082019050919050565b5f6020820190508181035f83015261439c81614363565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6143fd60248361386b565b9150614408826143a3565b604082019050919050565b5f6020820190508181035f83015261442a816143f1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61448b60228361386b565b915061449682614431565b604082019050919050565b5f6020820190508181035f8301526144b88161447f565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61451960258361386b565b9150614524826144bf565b604082019050919050565b5f6020820190508181035f8301526145468161450d565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6145a760238361386b565b91506145b28261454d565b604082019050919050565b5f6020820190508181035f8301526145d48161459b565b9050919050565b7f5b66726f6d5d20626c61636b206c6973740000000000000000000000000000005f82015250565b5f61460f60118361386b565b915061461a826145db565b602082019050919050565b5f6020820190508181035f83015261463c81614603565b9050919050565b7f5b746f5d20626c61636b206c69737400000000000000000000000000000000005f82015250565b5f614677600f8361386b565b915061468282614643565b602082019050919050565b5f6020820190508181035f8301526146a48161466b565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6146df60168361386b565b91506146ea826146ab565b602082019050919050565b5f6020820190508181035f83015261470c816146d3565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b5f61479360498361386b565b915061479e82614713565b606082019050919050565b5f6020820190508181035f8301526147c081614787565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d617854782e0000000000000000000000000000000000000000000000000000602082015250565b5f61482160268361386b565b915061482c826147c7565b604082019050919050565b5f6020820190508181035f83015261484e81614815565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f61488960138361386b565b915061489482614855565b602082019050919050565b5f6020820190508181035f8301526148b68161487d565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d617854782e00000000000000000000000000000000000000000000000000602082015250565b5f61491760278361386b565b9150614922826148bd565b604082019050919050565b5f6020820190508181035f8301526149448161490b565b9050919050565b5f6149558261394f565b91506149608361394f565b925082820390508181111561497857614977613d8b565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f815190506149e681613925565b92915050565b5f60208284031215614a0157614a006138f1565b5b5f614a0e848285016149d8565b91505092915050565b5f819050919050565b5f614a3a614a35614a3084614a17565b6139f3565b61394f565b9050919050565b614a4a81614a20565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a8281613914565b82525050565b5f614a938383614a79565b60208301905092915050565b5f602082019050919050565b5f614ab582614a50565b614abf8185614a5a565b9350614aca83614a6a565b805f5b83811015614afa578151614ae18882614a88565b9750614aec83614a9f565b925050600181019050614acd565b5085935050505092915050565b5f60a082019050614b1a5f830188613a67565b614b276020830187614a41565b8181036040830152614b398186614aab565b9050614b486060830185613b0a565b614b556080830184613a67565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614bb960268361386b565b9150614bc482614b5f565b604082019050919050565b5f6020820190508181035f830152614be681614bad565b9050919050565b5f81905092915050565b50565b5f614c055f83614bed565b9150614c1082614bf7565b5f82019050919050565b5f614c2482614bfa565b915081905091905056fea264697066735822122036f62398fffc89d3f5ea93fba56baa9ebf2afee7e5dee018abf621a66f74b45464736f6c634300081a0033
Verified Source Code Partial Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: No
CHAINNET.sol 913 lines
/**
ChainNet: The New Protocol Redefining Web3 Exploration
➤ How It Works: ChainNet allows you to embed specific functions within your contract, enabling us to build a fully functional web page for you—completely on-chain.
Prefer to host elsewhere? Simply link your site within the contract, and ChainNet will automatically detect and attach it to your contract's profile.
Website: https://chainnet.cloud
X: https://x.com/chainnetapp
Telegram: https://t.me/chainnetapp
Docs: https://docs.chainnet.cloud
Download the latest version of our browser from the website.
**/
// SPDX-License-Identifier: MIT
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 CHAINNET 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 marketerWallet;
address public DevsWallet;
uint256 public maxTx;
uint256 public swapTokensAtAmount;
uint256 public maxWallets;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp;
bool public transferDelayEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellDevFee;
uint256 public tokensForMarkets;
uint256 public tokensForDev;
mapping(address => bool) private _isBlackList;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedmaxTx;
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 marketerWalletUpdated(
address indexed newWallet,
address indexed olDevsWalletallet
);
event DevsWalletUpdated(
address indexed newWallet,
address indexed olDevsWalletallet
);
constructor() ERC20("ChainNet", unicode"CNET") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFrommaxTx(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFrommaxTx(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 5;
uint256 _sellMarketingFee = 5;
uint256 _buyDevFee = 0;
uint256 _sellDevFee = 0;
uint256 totalSupply = 100_000_000 * 1e18;
maxTx = 2_000_000 * 1e18;
maxWallets = 2_000_000 * 1e18;
swapTokensAtAmount = (totalSupply * 3) / 10000;
buyMarketingFee = _buyMarketingFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellDevFee;
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFrommaxTx(owner(), true);
excludeFrommaxTx(address(this), true);
excludeFrommaxTx(address(0xdead), true);
marketerWallet = address(0x334FD0c5aBb982325a294c2345505Ab0D7B14921);
DevsWallet = address(0x334FD0c5aBb982325a294c2345505Ab0D7B14921);
_mint(msg.sender, totalSupply);
}
receive() external payable {}
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
function disableTransferDelay() external onlyOwner returns (bool) {
transferDelayEnabled = false;
return true;
}
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 updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set maxTx lower than 0.1%"
);
maxTx = newNum * (10**18);
}
function updatemaxWalletsAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxWallets lower than 0.5%"
);
maxWallets = newNum * (10**18);
}
function excludeFrommaxTx(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedmaxTx[updAds] = isEx;
}
function updateSwapEnabled(bool enabled) external onlyOwner {
swapEnabled = enabled;
}
function updateFees(
uint256 _buyMarketingFee,
uint256 _buyDevFee,
uint256 _sellMarketingFee,
uint256 _sellDevFee) external onlyOwner {
buyMarketingFee = _buyMarketingFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellDevFee;
require(buyTotalFees <= 75, "Must keep fees at 75% or less");
require(sellTotalFees <= 75, "Must keep fees at 75% 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 updatemarketerWallet(address newmarketerWallet) external onlyOwner {
emit marketerWalletUpdated(newmarketerWallet, marketerWallet);
marketerWallet = newmarketerWallet;
}
function updateDevsWallet(address newWallet) external onlyOwner {
emit DevsWalletUpdated(newWallet, DevsWallet);
DevsWallet = 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");
require(!_isBlackList[from], "[from] black list");
require(!_isBlackList[to], "[to] black list");
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.");
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled) {
if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)) {
require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled. Only one purchase per block allowed.");
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedmaxTx[to]) {
require(amount <= maxTx, "Buy transfer amount exceeds the maxTx.");
require(amount + balanceOf(to) <= maxWallets, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedmaxTx[from]) {
require(amount <= maxTx, "Sell transfer amount exceeds the maxTx.");
}
else if (!_isExcludedmaxTx[to]) {
require(amount + balanceOf(to) <= maxWallets, "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);
tokensForDev += (fees * sellDevFee) / sellTotalFees;
tokensForMarkets += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(100);
tokensForDev += (fees * buyDevFee) / buyTotalFees;
tokensForMarkets += (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() == marketerWallet);
require(amount <= balanceOf(address(this)) && amount > 0, "Wrong amount");
swapTokensForEth(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);
// 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 = tokensForMarkets + tokensForDev;
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(tokensForDev).div(totalTokensToSwap);
tokensForMarkets = 0;
tokensForDev = 0;
(success, ) = address(DevsWallet).call{value: ethForDev}("");
(success, ) = address(marketerWallet).call{ value: address(this).balance }("");
}
}
Read Contract
DevsWallet 0x3103b39e → address
_isExcludedmaxTx 0xe6819ba7 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketerWallet 0xa72f4586 → address
maxTx 0x7437681e → uint256
maxWallets 0x30a136ad → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForMarkets 0x61528e27 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 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
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFrommaxTx 0x644130d8
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
updateDevsWallet 0xb819a1a9
address newWallet
updateFees 0xc6616ba1
uint256 _buyMarketingFee
uint256 _buyDevFee
uint256 _sellMarketingFee
uint256 _sellDevFee
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updatemarketerWallet 0xf1b9ad6b
address newmarketerWallet
updatemaxWalletsAmount 0x217580a2
uint256 newNum
Recent Transactions
No transactions found for this address