Address Contract Verified
Address
0x70c9BC0578b00a586c6CE46e602f3D6BD9cEf063
Balance
0.005460 ETH ($10.76)
Nonce
1
Code Size
18094 bytes
Creator
0x76A064e7...ffe1 at tx 0x148b353e...bcb0e2
Indexed Transactions
0
Contract Bytecode
18094 bytes
0x6080604052600436106102cd5760003560e01c80639c2e4ac611610175578063d729715f116100dc578063e37ba8f911610095578063f11a24d31161006f578063f11a24d314610b1f578063f2fde38b14610b4a578063f637434214610b73578063fde83a3414610b9e576102d4565b8063e37ba8f914610a90578063e596219514610ab9578063e7ad9fcd14610af6576102d4565b8063d729715f14610990578063d85ba063146109bb578063dd62ed3e146109e6578063df778d2614610a23578063e1fff23714610a3a578063e2f4560514610a65576102d4565b8063b9fb024a1161012e578063b9fb024a14610880578063c0246668146108a9578063c9ed07c4146108d2578063cc2ffe7c146108fd578063d257b34f14610928578063d469801614610965576102d4565b80639c2e4ac61461074a578063a00ad28b14610775578063a457c2d7146107a0578063a9059cbb146107dd578063ae303d071461081a578063b62496f514610843576102d4565b8063534c090611610234578063715018a6116101ed578063809d458d116101c7578063809d458d146106a25780638da5cb5b146106cb57806395d89b41146106f65780639a7a23d614610721576102d4565b8063715018a6146106375780637be807e31461064e5780637cb332bb14610679576102d4565b8063534c090614610523578063599270441461054e5780635c068a8c146105795780636a486a8e146105a45780636b2fb124146105cf57806370a08231146105fa576102d4565b80632e6ed7ef116102865780632e6ed7ef146103ff578063313ce5671461042857806339509351146104535780634626402b1461049057806349bd5a5e146104bb5780634fbee193146104e6576102d4565b806306fdde03146102d9578063095ea7b3146103045780631694505e1461034157806318160ddd1461036c5780631a8145bb1461039757806323b872dd146103c2576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102ee610bc9565b6040516102fb9190613580565b60405180910390f35b34801561031057600080fd5b5061032b60048036038101906103269190613640565b610c5b565b604051610338919061369b565b60405180910390f35b34801561034d57600080fd5b50610356610c79565b6040516103639190613715565b60405180910390f35b34801561037857600080fd5b50610381610c9d565b60405161038e919061373f565b60405180910390f35b3480156103a357600080fd5b506103ac610ca7565b6040516103b9919061373f565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e4919061375a565b610cad565b6040516103f6919061369b565b60405180910390f35b34801561040b57600080fd5b50610426600480360381019061042191906137ad565b610da5565b005b34801561043457600080fd5b5061043d610e83565b60405161044a9190613830565b60405180910390f35b34801561045f57600080fd5b5061047a60048036038101906104759190613640565b610e8c565b604051610487919061369b565b60405180910390f35b34801561049c57600080fd5b506104a5610f38565b6040516104b2919061385a565b60405180910390f35b3480156104c757600080fd5b506104d0610f5e565b6040516104dd919061385a565b60405180910390f35b3480156104f257600080fd5b5061050d60048036038101906105089190613875565b610f82565b60405161051a919061369b565b60405180910390f35b34801561052f57600080fd5b50610538610fd8565b604051610545919061385a565b60405180910390f35b34801561055a57600080fd5b50610563610ffe565b604051610570919061385a565b60405180910390f35b34801561058557600080fd5b5061058e611024565b60405161059b919061373f565b60405180910390f35b3480156105b057600080fd5b506105b961102a565b6040516105c6919061373f565b60405180910390f35b3480156105db57600080fd5b506105e4611030565b6040516105f1919061373f565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c9190613875565b611036565b60405161062e919061373f565b60405180910390f35b34801561064357600080fd5b5061064c61107e565b005b34801561065a57600080fd5b50610663611106565b604051610670919061373f565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b9190613875565b61110c565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190613875565b611248565b005b3480156106d757600080fd5b506106e0611384565b6040516106ed919061385a565b60405180910390f35b34801561070257600080fd5b5061070b6113ae565b6040516107189190613580565b60405180910390f35b34801561072d57600080fd5b50610748600480360381019061074391906138ce565b611440565b005b34801561075657600080fd5b5061075f611558565b60405161076c919061373f565b60405180910390f35b34801561078157600080fd5b5061078a61155e565b604051610797919061373f565b60405180910390f35b3480156107ac57600080fd5b506107c760048036038101906107c29190613640565b611564565b6040516107d4919061369b565b60405180910390f35b3480156107e957600080fd5b5061080460048036038101906107ff9190613640565b61164f565b604051610811919061369b565b60405180910390f35b34801561082657600080fd5b50610841600480360381019061083c9190613973565b61166d565b005b34801561084f57600080fd5b5061086a60048036038101906108659190613875565b61187c565b604051610877919061369b565b60405180910390f35b34801561088c57600080fd5b506108a760048036038101906108a29190613875565b61189c565b005b3480156108b557600080fd5b506108d060048036038101906108cb91906138ce565b6119d8565b005b3480156108de57600080fd5b506108e7611afd565b6040516108f4919061373f565b60405180910390f35b34801561090957600080fd5b50610912611b03565b60405161091f919061373f565b60405180910390f35b34801561093457600080fd5b5061094f600480360381019061094a91906139d3565b611b09565b60405161095c919061369b565b60405180910390f35b34801561097157600080fd5b5061097a611c5e565b604051610987919061385a565b60405180910390f35b34801561099c57600080fd5b506109a5611c84565b6040516109b2919061373f565b60405180910390f35b3480156109c757600080fd5b506109d0611c8a565b6040516109dd919061373f565b60405180910390f35b3480156109f257600080fd5b50610a0d6004803603810190610a089190613a00565b611c90565b604051610a1a919061373f565b60405180910390f35b348015610a2f57600080fd5b50610a38611d17565b005b348015610a4657600080fd5b50610a4f611dd3565b604051610a5c919061385a565b60405180910390f35b348015610a7157600080fd5b50610a7a611df9565b604051610a87919061373f565b60405180910390f35b348015610a9c57600080fd5b50610ab76004803603810190610ab29190613875565b611dff565b005b348015610ac557600080fd5b50610ae06004803603810190610adb9190613875565b611f3b565b604051610aed919061369b565b60405180910390f35b348015610b0257600080fd5b50610b1d6004803603810190610b1891906137ad565b611f5b565b005b348015610b2b57600080fd5b50610b34612039565b604051610b41919061373f565b60405180910390f35b348015610b5657600080fd5b50610b716004803603810190610b6c9190613875565b61203f565b005b348015610b7f57600080fd5b50610b88612136565b604051610b95919061373f565b60405180910390f35b348015610baa57600080fd5b50610bb361213c565b604051610bc0919061373f565b60405180910390f35b606060038054610bd890613a6f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0490613a6f565b8015610c515780601f10610c2657610100808354040283529160200191610c51565b820191906000526020600020905b815481529060010190602001808311610c3457829003601f168201915b5050505050905090565b6000610c6f610c68612142565b848461214a565b6001905092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60185481565b6000610cba848484612313565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610d05612142565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7c90613b12565b60405180910390fd5b610d9985610d91612142565b85840361214a565b60019150509392505050565b610dad612142565b73ffffffffffffffffffffffffffffffffffffffff16610dcb611384565b73ffffffffffffffffffffffffffffffffffffffff1614610e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1890613b7e565b60405180910390fd5b83600e8190555082600f819055508160108190555080601181905550601154601054600f54600e54610e539190613bcd565b610e5d9190613bcd565b610e679190613bcd565b600d8190555060fa600d541115610e7d57600080fd5b50505050565b60006012905090565b6000610f2e610e99612142565b848460016000610ea7612142565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f299190613bcd565b61214a565b6001905092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000b5bb92fbcb5d50ff3f4b982c8d33fc05b7da0e1e81565b6000601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b60125481565b60135481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611086612142565b73ffffffffffffffffffffffffffffffffffffffff166110a4611384565b73ffffffffffffffffffffffffffffffffffffffff16146110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f190613b7e565b60405180910390fd5b61110460006129c4565b565b601a5481565b611114612142565b73ffffffffffffffffffffffffffffffffffffffff16611132611384565b73ffffffffffffffffffffffffffffffffffffffff1614611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f90613b7e565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8aa0f85050aca99be43beb823e0457e77966b3baf697a289b03681978f96166860405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611250612142565b73ffffffffffffffffffffffffffffffffffffffff1661126e611384565b73ffffffffffffffffffffffffffffffffffffffff16146112c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112bb90613b7e565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f02f8a1483978974a6412ba3a67040b4daa4fc0dfe9439a7295f9a9538394f63560405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546113bd90613a6f565b80601f01602080910402602001604051908101604052809291908181526020018280546113e990613a6f565b80156114365780601f1061140b57610100808354040283529160200191611436565b820191906000526020600020905b81548152906001019060200180831161141957829003601f168201915b5050505050905090565b611448612142565b73ffffffffffffffffffffffffffffffffffffffff16611466611384565b73ffffffffffffffffffffffffffffffffffffffff16146114bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b390613b7e565b60405180910390fd5b7f000000000000000000000000b5bb92fbcb5d50ff3f4b982c8d33fc05b7da0e1e73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361154a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154190613c73565b60405180910390fd5b6115548282612a8a565b5050565b60105481565b60115481565b60008060016000611573612142565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162790613d05565b60405180910390fd5b61164461163b612142565b8585840361214a565b600191505092915050565b600061166361165c612142565b8484612313565b6001905092915050565b611675612142565b73ffffffffffffffffffffffffffffffffffffffff16611693611384565b73ffffffffffffffffffffffffffffffffffffffff16146116e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e090613b7e565b60405180910390fd5b60005b8383905081101561187657600084848381811061170c5761170b613d25565b5b90506020020160208101906117219190613875565b90503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156117ad5750600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561180557507f000000000000000000000000b5bb92fbcb5d50ff3f4b982c8d33fc05b7da0e1e73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156118625782600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50808061186e90613d54565b9150506116ec565b50505050565b601c6020528060005260406000206000915054906101000a900460ff1681565b6118a4612142565b73ffffffffffffffffffffffffffffffffffffffff166118c2611384565b73ffffffffffffffffffffffffffffffffffffffff1614611918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190f90613b7e565b60405180910390fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f2cedfb43b177935e24ab414bb3108e14a70d6d587a48b1208b7df5c9c25d82fe60405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6119e0612142565b73ffffffffffffffffffffffffffffffffffffffff166119fe611384565b73ffffffffffffffffffffffffffffffffffffffff1614611a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4b90613b7e565b60405180910390fd5b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611af1919061369b565b60405180910390a25050565b60165481565b60175481565b6000611b13612142565b73ffffffffffffffffffffffffffffffffffffffff16611b31611384565b73ffffffffffffffffffffffffffffffffffffffff1614611b87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7e90613b7e565b60405180910390fd5b620186a06001611b95610c9d565b611b9f9190613d9c565b611ba99190613e0d565b821015611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613eb0565b60405180910390fd5b6103e86005611bf8610c9d565b611c029190613d9c565b611c0c9190613e0d565b821115611c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4590613f42565b60405180910390fd5b81600b8190555060019050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60155481565b600d5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611d1f612142565b73ffffffffffffffffffffffffffffffffffffffff16611d3d611384565b73ffffffffffffffffffffffffffffffffffffffff1614611d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8a90613b7e565b60405180910390fd5b6001600660146101000a81548160ff021916908315150217905550611db6612b2b565b6000600660146101000a81548160ff021916908315150217905550565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b611e07612142565b73ffffffffffffffffffffffffffffffffffffffff16611e25611384565b73ffffffffffffffffffffffffffffffffffffffff1614611e7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7290613b7e565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f3e0ea4f8339b6050ff814971a9814aa39176c149fcf185975c219f33db2342db60405160405180910390a380600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c6020528060005260406000206000915054906101000a900460ff1681565b611f63612142565b73ffffffffffffffffffffffffffffffffffffffff16611f81611384565b73ffffffffffffffffffffffffffffffffffffffff1614611fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fce90613b7e565b60405180910390fd5b836013819055508260148190555081601581905550806016819055506016546015546014546013546120099190613bcd565b6120139190613bcd565b61201d9190613bcd565b60128190555060fa601254111561203357600080fd5b50505050565b600f5481565b612047612142565b73ffffffffffffffffffffffffffffffffffffffff16612065611384565b73ffffffffffffffffffffffffffffffffffffffff16146120bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b290613b7e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361212a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212190613fd4565b60405180910390fd5b612133816129c4565b50565b60145481565b60195481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b090614066565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221f906140f8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612306919061373f565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123799061418a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e89061421c565b60405180910390fd5b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561247e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247590614288565b60405180910390fd5b600081036124975761249283836000612eec565b6129bf565b60006124a230611036565b90506000600b5482101590508080156124c85750600660149054906101000a900460ff16155b801561251e5750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125745750601b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125ca5750601b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561260e576001600660146101000a81548160ff0219169083151502179055506125f2612b2b565b6000600660146101000a81548160ff0219169083151502179055505b6000600660149054906101000a900460ff16159050601b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806126c45750601b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156126ce57600090505b600081156129af57601c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561273157506000601254115b156128325761275f6103e86127516012548861316b90919063ffffffff16565b61318190919063ffffffff16565b9050601254601454826127729190613d9c565b61277c9190613e0d565b6018600082825461278d9190613bcd565b92505081905550601254601554826127a59190613d9c565b6127af9190613e0d565b601960008282546127c09190613bcd565b92505081905550601254601354826127d89190613d9c565b6127e29190613e0d565b601760008282546127f39190613bcd565b925050819055506012546016548261280b9190613d9c565b6128159190613e0d565b601a60008282546128269190613bcd565b9250508190555061298b565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561288d57506000600d54115b1561298a576128bb6103e86128ad600d548861316b90919063ffffffff16565b61318190919063ffffffff16565b9050600d54600f54826128ce9190613d9c565b6128d89190613e0d565b601860008282546128e99190613bcd565b92505081905550600d54601054826129019190613d9c565b61290b9190613e0d565b6019600082825461291c9190613bcd565b92505081905550600d54600e54826129349190613d9c565b61293e9190613e0d565b6017600082825461294f9190613bcd565b92505081905550600d54601154826129679190613d9c565b6129719190613e0d565b601a60008282546129829190613bcd565b925050819055505b5b60008111156129a05761299f873083612eec565b5b80856129ac91906142a8565b94505b6129ba878787612eec565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b6000612b3630611036565b90506000601a54601954601754601854612b509190613bcd565b612b5a9190613bcd565b612b649190613bcd565b9050600080831480612b765750600082145b15612b8357505050612eea565b6014600b54612b929190613d9c565b831115612bab576014600b54612ba89190613d9c565b92505b600060028360185486612bbe9190613d9c565b612bc89190613e0d565b612bd29190613e0d565b90506000612be9828661319790919063ffffffff16565b90506000479050612bf9826131ad565b6000612c0e824761319790919063ffffffff16565b90506000612c3987612c2b6017548561316b90919063ffffffff16565b61318190919063ffffffff16565b90506000612c6488612c566019548661316b90919063ffffffff16565b61318190919063ffffffff16565b90506000612c8f89612c81601a548761316b90919063ffffffff16565b61318190919063ffffffff16565b9050600081838587612ca191906142a8565b612cab91906142a8565b612cb591906142a8565b90506000601881905550600060178190555060006019819055506000601a81905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1683604051612d1d9061430d565b60006040518083038185875af1925050503d8060008114612d5a576040519150601f19603f3d011682016040523d82523d6000602084013e612d5f565b606091505b505080995050600088118015612d755750600081115b15612dc257612d8488826133ea565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618782601854604051612db993929190614322565b60405180910390a15b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051612e089061430d565b60006040518083038185875af1925050503d8060008114612e45576040519150601f19603f3d011682016040523d82523d6000602084013e612e4a565b606091505b505080995050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612e969061430d565b60006040518083038185875af1925050503d8060008114612ed3576040519150601f19603f3d011682016040523d82523d6000602084013e612ed8565b606091505b50508099505050505050505050505050505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f529061418a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612fca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc19061421c565b60405180910390fd5b612fd58383836134e6565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561305b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613052906143cb565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ee9190613bcd565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613152919061373f565b60405180910390a36131658484846134eb565b50505050565b600081836131799190613d9c565b905092915050565b6000818361318f9190613e0d565b905092915050565b600081836131a591906142a8565b905092915050565b6000600267ffffffffffffffff8111156131ca576131c96143eb565b5b6040519080825280602002602001820160405280156131f85781602001602082028036833780820191505090505b50905030816000815181106132105761320f613d25565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132d9919061442f565b816001815181106132ed576132ec613d25565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613352307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461214a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b81526004016133b4959493929190614555565b600060405180830381600087803b1580156133ce57600080fd5b505af11580156133e2573d6000803e3d6000fd5b505050505050565b613415307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461214a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b815260040161349c969594939291906145af565b60606040518083038185885af11580156134ba573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906134df9190614625565b5050505050565b505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561352a57808201518184015260208101905061350f565b60008484015250505050565b6000601f19601f8301169050919050565b6000613552826134f0565b61355c81856134fb565b935061356c81856020860161350c565b61357581613536565b840191505092915050565b6000602082019050818103600083015261359a8184613547565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135d7826135ac565b9050919050565b6135e7816135cc565b81146135f257600080fd5b50565b600081359050613604816135de565b92915050565b6000819050919050565b61361d8161360a565b811461362857600080fd5b50565b60008135905061363a81613614565b92915050565b60008060408385031215613657576136566135a2565b5b6000613665858286016135f5565b92505060206136768582860161362b565b9150509250929050565b60008115159050919050565b61369581613680565b82525050565b60006020820190506136b0600083018461368c565b92915050565b6000819050919050565b60006136db6136d66136d1846135ac565b6136b6565b6135ac565b9050919050565b60006136ed826136c0565b9050919050565b60006136ff826136e2565b9050919050565b61370f816136f4565b82525050565b600060208201905061372a6000830184613706565b92915050565b6137398161360a565b82525050565b60006020820190506137546000830184613730565b92915050565b600080600060608486031215613773576137726135a2565b5b6000613781868287016135f5565b9350506020613792868287016135f5565b92505060406137a38682870161362b565b9150509250925092565b600080600080608085870312156137c7576137c66135a2565b5b60006137d58782880161362b565b94505060206137e68782880161362b565b93505060406137f78782880161362b565b92505060606138088782880161362b565b91505092959194509250565b600060ff82169050919050565b61382a81613814565b82525050565b60006020820190506138456000830184613821565b92915050565b613854816135cc565b82525050565b600060208201905061386f600083018461384b565b92915050565b60006020828403121561388b5761388a6135a2565b5b6000613899848285016135f5565b91505092915050565b6138ab81613680565b81146138b657600080fd5b50565b6000813590506138c8816138a2565b92915050565b600080604083850312156138e5576138e46135a2565b5b60006138f3858286016135f5565b9250506020613904858286016138b9565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126139335761393261390e565b5b8235905067ffffffffffffffff8111156139505761394f613913565b5b60208301915083602082028301111561396c5761396b613918565b5b9250929050565b60008060006040848603121561398c5761398b6135a2565b5b600084013567ffffffffffffffff8111156139aa576139a96135a7565b5b6139b68682870161391d565b935093505060206139c9868287016138b9565b9150509250925092565b6000602082840312156139e9576139e86135a2565b5b60006139f78482850161362b565b91505092915050565b60008060408385031215613a1757613a166135a2565b5b6000613a25858286016135f5565b9250506020613a36858286016135f5565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a8757607f821691505b602082108103613a9a57613a99613a40565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613afc6028836134fb565b9150613b0782613aa0565b604082019050919050565b60006020820190508181036000830152613b2b81613aef565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b686020836134fb565b9150613b7382613b32565b602082019050919050565b60006020820190508181036000830152613b9781613b5b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613bd88261360a565b9150613be38361360a565b9250828201905080821115613bfb57613bfa613b9e565b5b92915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b6000613c5d6039836134fb565b9150613c6882613c01565b604082019050919050565b60006020820190508181036000830152613c8c81613c50565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000613cef6025836134fb565b9150613cfa82613c93565b604082019050919050565b60006020820190508181036000830152613d1e81613ce2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613d5f8261360a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613d9157613d90613b9e565b5b600182019050919050565b6000613da78261360a565b9150613db28361360a565b9250828202613dc08161360a565b91508282048414831517613dd757613dd6613b9e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e188261360a565b9150613e238361360a565b925082613e3357613e32613dde565b5b828204905092915050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b6000613e9a6035836134fb565b9150613ea582613e3e565b604082019050919050565b60006020820190508181036000830152613ec981613e8d565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b6000613f2c6034836134fb565b9150613f3782613ed0565b604082019050919050565b60006020820190508181036000830152613f5b81613f1f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613fbe6026836134fb565b9150613fc982613f62565b604082019050919050565b60006020820190508181036000830152613fed81613fb1565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006140506024836134fb565b915061405b82613ff4565b604082019050919050565b6000602082019050818103600083015261407f81614043565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006140e26022836134fb565b91506140ed82614086565b604082019050919050565b60006020820190508181036000830152614111816140d5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006141746025836134fb565b915061417f82614118565b604082019050919050565b600060208201905081810360008301526141a381614167565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006142066023836134fb565b9150614211826141aa565b604082019050919050565b60006020820190508181036000830152614235816141f9565b9050919050565b7f536e6970657220626c6f636b6564000000000000000000000000000000000000600082015250565b6000614272600e836134fb565b915061427d8261423c565b602082019050919050565b600060208201905081810360008301526142a181614265565b9050919050565b60006142b38261360a565b91506142be8361360a565b92508282039050818111156142d6576142d5613b9e565b5b92915050565b600081905092915050565b50565b60006142f76000836142dc565b9150614302826142e7565b600082019050919050565b6000614318826142ea565b9150819050919050565b60006060820190506143376000830186613730565b6143446020830185613730565b6143516040830184613730565b949350505050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006143b56026836134fb565b91506143c082614359565b604082019050919050565b600060208201905081810360008301526143e4816143a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600081519050614429816135de565b92915050565b600060208284031215614445576144446135a2565b5b60006144538482850161441a565b91505092915050565b6000819050919050565b600061448161447c6144778461445c565b6136b6565b61360a565b9050919050565b61449181614466565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144cc816135cc565b82525050565b60006144de83836144c3565b60208301905092915050565b6000602082019050919050565b600061450282614497565b61450c81856144a2565b9350614517836144b3565b8060005b8381101561454857815161452f88826144d2565b975061453a836144ea565b92505060018101905061451b565b5085935050505092915050565b600060a08201905061456a6000830188613730565b6145776020830187614488565b818103604083015261458981866144f7565b9050614598606083018561384b565b6145a56080830184613730565b9695505050505050565b600060c0820190506145c4600083018961384b565b6145d16020830188613730565b6145de6040830187614488565b6145eb6060830186614488565b6145f8608083018561384b565b61460560a0830184613730565b979650505050505050565b60008151905061461f81613614565b92915050565b60008060006060848603121561463e5761463d6135a2565b5b600061464c86828701614610565b935050602061465d86828701614610565b925050604061466e86828701614610565b915050925092509256fea26469706673582212202cc28a4167da1e4d86309c20ddd26727e7de009867aeb58eedb5daffe9f09cff64736f6c63430008110033
Verified Source Code Full Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: No
AnonPVP.sol 367 lines
// SPDX-License-Identifier: MIT
pragma solidity =0.8.17 >=0.8.17 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
import './Helpers.sol';
contract AnonPVP is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public routerCA = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
bool private swapping;
address public treasuryWallet;
address public teamWallet;
address public liquidityWallet;
address public gameWallet;
uint256 public swapTokensAtAmount;
mapping(address => bool) public blocked;
uint256 public buyTotalFees;
uint256 public buyTreasuryFee;
uint256 public buyLiquidityFee;
uint256 public buyTeamFee;
uint256 public buyGameFee;
uint256 public sellTotalFees;
uint256 public sellTreasuryFee;
uint256 public sellLiquidityFee;
uint256 public sellTeamFee;
uint256 public sellGameFee;
uint256 public tokensForTreasury;
uint256 public tokensForLiquidity;
uint256 public tokensForTeam;
uint256 public tokensForGame;
mapping(address => bool) private _isExcludedFromFees;
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 treasuryWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event teamWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event liquidityWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event gameWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("AnonPVP", "PVP") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(routerCA);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyTreasuryFee = 18;
uint256 _buyLiquidityFee = 6;
uint256 _buyTeamFee = 196;
uint256 _buyGameFee = 30;
uint256 _sellTreasuryFee = 18;
uint256 _sellLiquidityFee = 6;
uint256 _sellTeamFee = 196;
uint256 _sellGameFee = 30;
uint256 totalSupply = 65_000_000 * 1e18;
swapTokensAtAmount = (totalSupply * 5) / 10000;
buyTreasuryFee = _buyTreasuryFee;
buyLiquidityFee = _buyLiquidityFee;
buyTeamFee = _buyTeamFee;
buyGameFee = _buyGameFee;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyTeamFee + buyGameFee;
sellTreasuryFee = _sellTreasuryFee;
sellLiquidityFee = _sellLiquidityFee;
sellTeamFee = _sellTeamFee;
sellGameFee = _sellGameFee;
sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellTeamFee + sellGameFee;
treasuryWallet = address(0x7Bac0CA4f267Ebb47A751832A333447c53FB367F);
teamWallet = address(0xda273697e5971f902872A5E2c64821E452Ba9E7f);
liquidityWallet = address(0x2F74cd4806237Ff5E27DDbaeDAdb161b496F25Dc);
gameWallet = address(0x05Ab2310b0B82D92D93832AEeebC043E449AE2F6);
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
_mint(msg.sender, totalSupply);
}
receive() external payable {}
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 updateBuyFees(
uint256 _treasuryFee,
uint256 _liquidityFee,
uint256 _teamFee,
uint256 _gameFee
) external onlyOwner {
buyTreasuryFee = _treasuryFee;
buyLiquidityFee = _liquidityFee;
buyTeamFee = _teamFee;
buyGameFee = _gameFee;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyTeamFee + buyGameFee;
require(buyTotalFees <= 250);
}
function updateSellFees(
uint256 _treasuryFee,
uint256 _liquidityFee,
uint256 _teamFee,
uint256 _gameFee
) external onlyOwner {
sellTreasuryFee = _treasuryFee;
sellLiquidityFee = _liquidityFee;
sellTeamFee = _teamFee;
sellGameFee = _gameFee;
sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellTeamFee + sellGameFee;
require(sellTotalFees <= 250);
}
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 updateTreasuryWallet(address newTreasuryWallet) external onlyOwner {
emit treasuryWalletUpdated(newTreasuryWallet, treasuryWallet);
treasuryWallet = newTreasuryWallet;
}
function updateTeamWallet(address newTeamWallet) external onlyOwner {
emit teamWalletUpdated(newTeamWallet, teamWallet);
teamWallet = newTeamWallet;
}
function updateGameWallet(address newGameWallet) external onlyOwner {
emit gameWalletUpdated(newGameWallet, gameWallet);
gameWallet = newGameWallet;
}
function updateLiquidityWallet(address newLiquidityWallet) external onlyOwner {
emit liquidityWalletUpdated(newLiquidityWallet, liquidityWallet);
liquidityWallet = newLiquidityWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!blocked[from], "Sniper blocked");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (canSwap && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(1000);
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForTeam += (fees * sellTeamFee) / sellTotalFees;
tokensForTreasury += (fees * sellTreasuryFee) / sellTotalFees;
tokensForGame += (fees * sellGameFee) / sellTotalFees;
}
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(1000);
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForTeam += (fees * buyTeamFee) / buyTotalFees;
tokensForTreasury += (fees * buyTreasuryFee) / buyTotalFees;
tokensForGame += (fees * buyGameFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function multiBlock(address[] calldata blockees, bool shouldBlock) external onlyOwner {
for (uint256 i = 0; i < blockees.length; i++) {
address blockee = blockees[i];
if (blockee != address(this) &&
blockee != routerCA &&
blockee != address(uniswapV2Pair))
blocked[blockee] = shouldBlock;
}
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value : ethAmount}(
address(this),
tokenAmount,
0,
0,
liquidityWallet,
block.timestamp
);
}
function forceSwap() external onlyOwner {
swapping = true;
swapBack();
swapping = false;
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForTreasury +
tokensForTeam +
tokensForGame;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForTreasury = ethBalance.mul(tokensForTreasury).div(totalTokensToSwap);
uint256 ethForTeam = ethBalance.mul(tokensForTeam).div(totalTokensToSwap);
uint256 ethForGame = ethBalance.mul(tokensForGame).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForTreasury - ethForTeam - ethForGame;
tokensForLiquidity = 0;
tokensForTreasury = 0;
tokensForTeam = 0;
tokensForGame = 0;
(success,) = address(teamWallet).call{value : ethForTeam}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success,) = address(gameWallet).call{value : ethForGame}("");
(success,) = address(treasuryWallet).call{value : address(this).balance}("");
}
}
Helpers.sol 530 lines
// SPDX-License-Identifier: MIT
pragma solidity =0.8.17 >=0.8.17 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
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;
}
Read Contract
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blocked 0xe5962195 → bool
buyGameFee 0xa00ad28b → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTeamFee 0x9c2e4ac6 → uint256
buyTotalFees 0xd85ba063 → uint256
buyTreasuryFee 0x5c068a8c → uint256
decimals 0x313ce567 → uint8
gameWallet 0xe1fff237 → address
isExcludedFromFees 0x4fbee193 → bool
liquidityWallet 0xd4698016 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
routerCA 0x534c0906 → address
sellGameFee 0xc9ed07c4 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTeamFee 0xd729715f → uint256
sellTotalFees 0x6a486a8e → uint256
sellTreasuryFee 0x6b2fb124 → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
tokensForGame 0x7be807e3 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForTeam 0xfde83a34 → uint256
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
treasuryWallet 0x4626402b → address
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 18 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
excludeFromFees 0xc0246668
address account
bool excluded
forceSwap 0xdf778d26
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
multiBlock 0xae303d07
address[] blockees
bool shouldBlock
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 0x2e6ed7ef
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _teamFee
uint256 _gameFee
updateGameWallet 0xb9fb024a
address newGameWallet
updateLiquidityWallet 0xe37ba8f9
address newLiquidityWallet
updateSellFees 0xe7ad9fcd
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _teamFee
uint256 _gameFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTeamWallet 0x7cb332bb
address newTeamWallet
updateTreasuryWallet 0x809d458d
address newTreasuryWallet
Recent Transactions
No transactions found for this address