Address Contract Verified
Address
0x2de72aDa48BDF7Bac276256D3F016fE058490C34
Balance
0.166731 ETH ($329.91)
Nonce
1
Code Size
24113 bytes
Creator
0x04e019F6...fe38 at tx 0xab467ee3...c01c57
Indexed Transactions
Index loading...
Contract Bytecode
24113 bytes
0x6080604052600436106102e85760003560e01c80636053a0e311610190578063a5ece941116100dc578063d6b513cf11610095578063ea2f0b371161006f578063ea2f0b3714610b37578063ec28438a14610b60578063f0f165af14610b89578063f2fde38b14610bb2576102ef565b8063d6b513cf14610aa6578063dd46706414610ad1578063dd62ed3e14610afa576102ef565b8063a5ece941146109aa578063a69df4b5146109d5578063a9059cbb146109ec578063b0cb81f114610a29578063bdc653ef14610a52578063c49b9a8014610a7d576102ef565b806388f8202011610149578063906e9dd011610123578063906e9dd0146108ee57806395d89b4114610917578063a073d37f14610942578063a457c2d71461096d576102ef565b806388f820201461085d5780638da5cb5b1461089a5780638ee88c53146108c5576102ef565b80636053a0e31461075f5780636bc87c3a1461078a57806370a08231146107b5578063715018a6146107f25780637d1db4a51461080957806382d2a4bb14610834576102ef565b80633685d4191161024f57806349bd5a5e1161020857806352390c02116101e257806352390c02146106a35780635342acb4146106cc578063557ed1ba14610709578063602bc62b14610734576102ef565b806349bd5a5e146106365780634a74bb02146106615780635134f6ab1461068c576102ef565b80633685d41914610516578063395093511461053f5780633b124fe71461057c5780633bd5d173146105a7578063437823ec146105d05780634549b039146105f9576102ef565b806318160ddd116102a157806318160ddd146103f257806323b872dd1461041d57806327c8f8351461045a57806329370cc6146104855780632d838119146104ae578063313ce567146104eb576102ef565b8063061c82d0146102f457806306fdde031461031d57806307efbfdc14610348578063095ea7b31461035f57806313114a9d1461039c5780631694505e146103c7576102ef565b366102ef57005b600080fd5b34801561030057600080fd5b5061031b60048036038101906103169190614df4565b610bdb565b005b34801561032957600080fd5b50610332610c7a565b60405161033f9190615270565b60405180910390f35b34801561035457600080fd5b5061035d610d0c565b005b34801561036b57600080fd5b5061038660048036038101906103819190614d87565b610dcd565b60405161039391906151ee565b60405180910390f35b3480156103a857600080fd5b506103b1610deb565b6040516103be9190615492565b60405180910390f35b3480156103d357600080fd5b506103dc610df5565b6040516103e99190615209565b60405180910390f35b3480156103fe57600080fd5b50610407610e19565b6040516104149190615492565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f9190614d34565b610e23565b60405161045191906151ee565b60405180910390f35b34801561046657600080fd5b5061046f610efc565b60405161047c91906151b8565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a79190614dc7565b610f20565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190614df4565b611009565b6040516104e29190615492565b60405180910390f35b3480156104f757600080fd5b50610500611077565b60405161050d9190615537565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190614c9a565b61108e565b005b34801561054b57600080fd5b5061056660048036038101906105619190614d87565b6113dd565b60405161057391906151ee565b60405180910390f35b34801561058857600080fd5b50610591611490565b60405161059e9190615492565b60405180910390f35b3480156105b357600080fd5b506105ce60048036038101906105c99190614df4565b611496565b005b3480156105dc57600080fd5b506105f760048036038101906105f29190614c9a565b611611565b005b34801561060557600080fd5b50610620600480360381019061061b9190614e21565b611701565b60405161062d9190615492565b60405180910390f35b34801561064257600080fd5b5061064b611785565b60405161065891906151b8565b60405180910390f35b34801561066d57600080fd5b506106766117a9565b60405161068391906151ee565b60405180910390f35b34801561069857600080fd5b506106a16117bc565b005b3480156106af57600080fd5b506106ca60048036038101906106c59190614c9a565b61187e565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190614c9a565b611b32565b60405161070091906151ee565b60405180910390f35b34801561071557600080fd5b5061071e611b88565b60405161072b9190615492565b60405180910390f35b34801561074057600080fd5b50610749611b90565b6040516107569190615492565b60405180910390f35b34801561076b57600080fd5b50610774611b9a565b60405161078191906151ee565b60405180910390f35b34801561079657600080fd5b5061079f611bad565b6040516107ac9190615492565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d79190614c9a565b611bb3565b6040516107e99190615492565b60405180910390f35b3480156107fe57600080fd5b50610807611c9e565b005b34801561081557600080fd5b5061081e611df1565b60405161082b9190615492565b60405180910390f35b34801561084057600080fd5b5061085b60048036038101906108569190614df4565b611df7565b005b34801561086957600080fd5b50610884600480360381019061087f9190614c9a565b611ea9565b60405161089191906151ee565b60405180910390f35b3480156108a657600080fd5b506108af611eff565b6040516108bc91906151b8565b60405180910390f35b3480156108d157600080fd5b506108ec60048036038101906108e79190614df4565b611f28565b005b3480156108fa57600080fd5b5061091560048036038101906109109190614c9a565b611fc7565b005b34801561092357600080fd5b5061092c6120a0565b6040516109399190615270565b60405180910390f35b34801561094e57600080fd5b50610957612132565b6040516109649190615492565b60405180910390f35b34801561097957600080fd5b50610994600480360381019061098f9190614d87565b61213c565b6040516109a191906151ee565b60405180910390f35b3480156109b657600080fd5b506109bf612209565b6040516109cc91906151d3565b60405180910390f35b3480156109e157600080fd5b506109ea61222f565b005b3480156109f857600080fd5b50610a136004803603810190610a0e9190614d87565b612403565b604051610a2091906151ee565b60405180910390f35b348015610a3557600080fd5b50610a506004803603810190610a4b9190614df4565b612421565b005b348015610a5e57600080fd5b50610a676124c0565b604051610a749190615492565b60405180910390f35b348015610a8957600080fd5b50610aa46004803603810190610a9f9190614dc7565b6124ca565b005b348015610ab257600080fd5b50610abb6125b3565b604051610ac89190615492565b60405180910390f35b348015610add57600080fd5b50610af86004803603810190610af39190614df4565b6125b9565b005b348015610b0657600080fd5b50610b216004803603810190610b1c9190614cf4565b612780565b604051610b2e9190615492565b60405180910390f35b348015610b4357600080fd5b50610b5e6004803603810190610b599190614c9a565b612807565b005b348015610b6c57600080fd5b50610b876004803603810190610b829190614df4565b6128f7565b005b348015610b9557600080fd5b50610bb06004803603810190610bab9190614df4565b612996565b005b348015610bbe57600080fd5b50610bd96004803603810190610bd49190614c9a565b612a35565b005b610be3612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c67906153b2565b60405180910390fd5b8060108190555050565b6060600d8054610c899061578c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb59061578c565b8015610d025780601f10610cd757610100808354040283529160200191610d02565b820191906000526020600020905b815481529060010190602001808311610ce557829003601f168201915b5050505050905090565b610d14612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d98906153b2565b60405180910390fd5b610dab60016124ca565b6002601081905550600660128190555068a2a15d09519be00000601581905550565b6000610de1610dda612bf7565b8484612bff565b6001905092915050565b6000600c54905090565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600a54905090565b6000610e30848484612dca565b610ef184610e3c612bf7565b610eec85604051806060016040528060288152602001615daf60289139600660008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610ea2612bf7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131299092919063ffffffff16565b612bff565b600190509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b610f28612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fac906153b2565b60405180910390fd5b80601860026101000a81548160ff0219169083151502179055507f3794234fa370c9f3b948dda3e3040530785b2ef1eb27dda3ffde478f4e2643c081604051610ffe91906151ee565b60405180910390a150565b6000600b54821115611050576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611047906152b2565b60405180910390fd5b600061105a61318d565b905061106f81846131b890919063ffffffff16565b915050919050565b6000600f60009054906101000a900460ff16905090565b611096612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111a906153b2565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a690615332565b60405180910390fd5b60005b6009805490508110156113d9578173ffffffffffffffffffffffffffffffffffffffff16600982815481106111ea576111e96158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156113c657600960016009805490506112459190615688565b81548110611256576112556158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660098281548110611295576112946158c3565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600980548061138c5761138b615894565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590556113d9565b80806113d1906157be565b9150506111b2565b5050565b60006114866113ea612bf7565b8461148185600660006113fb612bf7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b612bff565b6001905092915050565b60105481565b60006114a0612bf7565b9050600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561152f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152690615452565b60405180910390fd5b600061153a83613260565b5050505050905061159381600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115eb81600b546132bc90919063ffffffff16565b600b8190555061160683600c5461320290919063ffffffff16565b600c81905550505050565b611619612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169d906153b2565b60405180910390fd5b6001600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600a54831115611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f90615352565b60405180910390fd5b8161176857600061175884613260565b505050505090508091505061177f565b600061177384613260565b50505050915050809150505b92915050565b7f000000000000000000000000e571b939062474bfeb593a3f80fee9d2265b3b1881565b601860019054906101000a900460ff1681565b6117c4612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611851576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611848906153b2565b60405180910390fd5b61185b60006124ca565b6000601081905550600060128190555069d3c21bcecceda1000000601581905550565b611886612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190a906153b2565b60405180910390fd5b600860008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156119a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199790615332565b60405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611a7457611a30600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611009565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506009819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600042905090565b6000600254905090565b601860029054906101000a900460ff1681565b60125481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611c4e57600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611c99565b611c96600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611009565b90505b919050565b611ca6612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a906153b2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60155481565b611dff612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e83906153b2565b60405180910390fd5b670de0b6b3a764000081611ea0919061562e565b60178190555050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f30612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb4906153b2565b60405180910390fd5b8060128190555050565b611fcf612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461205c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612053906153b2565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600e80546120af9061578c565b80601f01602080910402602001604051908101604052809291908181526020018280546120db9061578c565b80156121285780601f106120fd57610100808354040283529160200191612128565b820191906000526020600020905b81548152906001019060200180831161210b57829003601f168201915b5050505050905090565b6000601654905090565b60006121ff612149612bf7565b846121fa85604051806060016040528060258152602001615dd76025913960066000612173612bf7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546131299092919063ffffffff16565b612bff565b6001905092915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690615472565b60405180910390fd5b6002544211612303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fa90615432565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000612417612410612bf7565b8484612dca565b6001905092915050565b612429612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ad906153b2565b60405180910390fd5b8060148190555050565b6000601754905090565b6124d2612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461255f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612556906153b2565b60405180910390fd5b80601860016101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159816040516125a891906151ee565b60405180910390a150565b60145481565b6125c1612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461264e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612645906153b2565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080426126fc91906155a7565b600281905550600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61280f612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461289c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612893906153b2565b60405180910390fd5b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6128ff612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461298c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612983906153b2565b60405180910390fd5b8060158190555050565b61299e612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a22906153b2565b60405180910390fd5b8060168190555050565b612a3d612bf7565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac1906153b2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b31906152d2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6690615412565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd6906152f2565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612dbd9190615492565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e31906153f2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea190615292565b60405180910390fd5b60008111612eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee4906153d2565b60405180910390fd5b612ef5611eff565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612f635750612f33611eff565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612fae57601554811115612fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa490615372565b60405180910390fd5b5b6000612fb930611bb3565b905060006016548210159050601860009054906101000a900460ff16158015612fee5750601860019054906101000a900460ff165b1561306457801561300857601654915061300782613306565b5b6000479050601860029054906101000a900460ff1680156130305750670de0b6b3a764000081115b15613062576017548111156130455760175490505b61306161305c6064836131b890919063ffffffff16565b6133ba565b5b505b600060019050600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061310b5750600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561311557600090505b61312186868684613406565b505050505050565b6000838311158290613171576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131689190615270565b60405180910390fd5b50600083856131809190615688565b9050809150509392505050565b600080600061319a61365d565b915091506131b181836131b890919063ffffffff16565b9250505090565b60006131fa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613910565b905092915050565b600080828461321191906155a7565b905083811015613256576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324d90615312565b60405180910390fd5b8091505092915050565b60008060008060008060008060006132778a613973565b92509250925060008060006132958d868661329061318d565b6139cd565b9250925092508282828888889b509b509b509b509b509b5050505050505091939550919395565b60006132fe83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613129565b905092915050565b6001601860006101000a81548160ff021916908315150217905550600047905061332f82613a56565b600061334482476132bc90919063ffffffff16565b905061339a600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613395601454613387601254866131b890919063ffffffff16565b613cdb90919063ffffffff16565b613d56565b50506000601860006101000a81548160ff02191690831515021790555050565b6001601860006101000a81548160ff02191690831515021790555060008111156133e8576133e781613da1565b5b6000601860006101000a81548160ff02191690831515021790555050565b806134145761341361402e565b5b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156134b75750600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156134cc576134c7848484614071565b613649565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561356f5750600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156135845761357f8484846142d1565b613648565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156136265750600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561363b57613636848484614531565b613647565b613646848484614826565b5b5b5b80613657576136566149f1565b5b50505050565b6000806000600b5490506000600a54905060005b6009805490508110156138d357826004600060098481548110613697576136966158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541180613785575081600560006009848154811061371d5761371c6158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b1561379c57600b54600a549450945050505061390c565b61382c60046000600984815481106137b7576137b66158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054846132bc90919063ffffffff16565b92506138be6005600060098481548110613849576138486158c3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836132bc90919063ffffffff16565b915080806138cb906157be565b915050613671565b506138eb600a54600b546131b890919063ffffffff16565b82101561390357600b54600a5493509350505061390c565b81819350935050505b9091565b60008083118290613957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394e9190615270565b60405180910390fd5b506000838561396691906155fd565b9050809150509392505050565b60008060008061398285614a05565b9050600061398f86614a36565b905060006139b8826139aa858a6132bc90919063ffffffff16565b6132bc90919063ffffffff16565b90508083839550955095505050509193909250565b6000806000806139e68589613cdb90919063ffffffff16565b905060006139fd8689613cdb90919063ffffffff16565b90506000613a148789613cdb90919063ffffffff16565b90506000613a3d82613a2f85876132bc90919063ffffffff16565b6132bc90919063ffffffff16565b9050838184965096509650505050509450945094915050565b6000600267ffffffffffffffff811115613a7357613a726158f2565b5b604051908082528060200260200182016040528015613aa15781602001602082028036833780820191505090505b5090503081600081518110613ab957613ab86158c3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015613b5957600080fd5b505afa158015613b6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b919190614cc7565b81600181518110613ba557613ba46158c3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613c0a307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612bff565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613c6c9594939291906154dd565b600060405180830381600087803b158015613c8657600080fd5b505af1158015613c9a573d6000803e3d6000fd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051613ccf9291906154ad565b60405180910390a15050565b600080831415613cee5760009050613d50565b60008284613cfc919061562e565b9050828482613d0b91906155fd565b14613d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d4290615392565b60405180910390fd5b809150505b92915050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015613d9c573d6000803e3d6000fd5b505050565b6000600267ffffffffffffffff811115613dbe57613dbd6158f2565b5b604051908082528060200260200182016040528015613dec5781602001602082028036833780820191505090505b5090507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015613e5557600080fd5b505afa158015613e69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e8d9190614cc7565b81600081518110613ea157613ea06158c3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250503081600181518110613ef057613eef6158c3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663b6f9de95836000847f000000000000000000000000000000000000000000000000000000000000dead613fa061012c4261320290919063ffffffff16565b6040518663ffffffff1660e01b8152600401613fbf9493929190615224565b6000604051808303818588803b158015613fd857600080fd5b505af1158015613fec573d6000803e3d6000fd5b50505050507f6fd378a9d8b7345c2e5b18229aaf1e39d32b177b501d0a0d26a0a858a23a962482826040516140229291906154ad565b60405180910390a15050565b600060105414801561404257506000601254145b1561404c5761406f565b601054601181905550601254601381905550600060108190555060006012819055505b565b60008060008060008061408387613260565b9550955095509550955095506140e187600560008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061417686600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061420b85600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061425781614a67565b6142618483614c0c565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516142be9190615492565b60405180910390a3505050505050505050565b6000806000806000806142e387613260565b95509550955095509550955061434186600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506143d683600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600560008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061446b85600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506144b781614a67565b6144c18483614c0c565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161451e9190615492565b60405180910390a3505050505050505050565b60008060008060008061454387613260565b9550955095509550955095506145a187600560008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061463686600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506146cb83600560008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600560008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061476085600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506147ac81614a67565b6147b68483614c0c565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516148139190615492565b60405180910390a3505050505050505050565b60008060008060008061483887613260565b95509550955095509550955061489686600460008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546132bc90919063ffffffff16565b600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061492b85600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061497781614a67565b6149818483614c0c565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516149de9190615492565b60405180910390a3505050505050505050565b601154601081905550601354601281905550565b6000614a2f6064614a2160105485613cdb90919063ffffffff16565b6131b890919063ffffffff16565b9050919050565b6000614a606064614a5260125485613cdb90919063ffffffff16565b6131b890919063ffffffff16565b9050919050565b6000614a7161318d565b90506000614a888284613cdb90919063ffffffff16565b9050614adc81600460003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600460003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600860003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615614c0757614bc383600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461320290919063ffffffff16565b600560003073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505050565b614c2182600b546132bc90919063ffffffff16565b600b81905550614c3c81600c5461320290919063ffffffff16565b600c819055505050565b600081359050614c5581615d69565b92915050565b600081519050614c6a81615d69565b92915050565b600081359050614c7f81615d80565b92915050565b600081359050614c9481615d97565b92915050565b600060208284031215614cb057614caf615921565b5b6000614cbe84828501614c46565b91505092915050565b600060208284031215614cdd57614cdc615921565b5b6000614ceb84828501614c5b565b91505092915050565b60008060408385031215614d0b57614d0a615921565b5b6000614d1985828601614c46565b9250506020614d2a85828601614c46565b9150509250929050565b600080600060608486031215614d4d57614d4c615921565b5b6000614d5b86828701614c46565b9350506020614d6c86828701614c46565b9250506040614d7d86828701614c85565b9150509250925092565b60008060408385031215614d9e57614d9d615921565b5b6000614dac85828601614c46565b9250506020614dbd85828601614c85565b9150509250929050565b600060208284031215614ddd57614ddc615921565b5b6000614deb84828501614c70565b91505092915050565b600060208284031215614e0a57614e09615921565b5b6000614e1884828501614c85565b91505092915050565b60008060408385031215614e3857614e37615921565b5b6000614e4685828601614c85565b9250506020614e5785828601614c70565b9150509250929050565b6000614e6d8383614e88565b60208301905092915050565b614e82816156ce565b82525050565b614e91816156bc565b82525050565b614ea0816156bc565b82525050565b6000614eb182615562565b614ebb8185615585565b9350614ec683615552565b8060005b83811015614ef7578151614ede8882614e61565b9750614ee983615578565b925050600181019050614eca565b5085935050505092915050565b614f0d816156e0565b82525050565b614f1c81615723565b82525050565b614f2b81615747565b82525050565b6000614f3c8261556d565b614f468185615596565b9350614f56818560208601615759565b614f5f81615926565b840191505092915050565b6000614f77602383615596565b9150614f8282615937565b604082019050919050565b6000614f9a602a83615596565b9150614fa582615986565b604082019050919050565b6000614fbd602683615596565b9150614fc8826159d5565b604082019050919050565b6000614fe0602283615596565b9150614feb82615a24565b604082019050919050565b6000615003601b83615596565b915061500e82615a73565b602082019050919050565b6000615026601b83615596565b915061503182615a9c565b602082019050919050565b6000615049601f83615596565b915061505482615ac5565b602082019050919050565b600061506c602883615596565b915061507782615aee565b604082019050919050565b600061508f602183615596565b915061509a82615b3d565b604082019050919050565b60006150b2602083615596565b91506150bd82615b8c565b602082019050919050565b60006150d5602983615596565b91506150e082615bb5565b604082019050919050565b60006150f8602583615596565b915061510382615c04565b604082019050919050565b600061511b602483615596565b915061512682615c53565b604082019050919050565b600061513e601f83615596565b915061514982615ca2565b602082019050919050565b6000615161602c83615596565b915061516c82615ccb565b604082019050919050565b6000615184602383615596565b915061518f82615d1a565b604082019050919050565b6151a38161570c565b82525050565b6151b281615716565b82525050565b60006020820190506151cd6000830184614e97565b92915050565b60006020820190506151e86000830184614e79565b92915050565b60006020820190506152036000830184614f04565b92915050565b600060208201905061521e6000830184614f13565b92915050565b60006080820190506152396000830187614f22565b818103602083015261524b8186614ea6565b905061525a6040830185614e97565b615267606083018461519a565b95945050505050565b6000602082019050818103600083015261528a8184614f31565b905092915050565b600060208201905081810360008301526152ab81614f6a565b9050919050565b600060208201905081810360008301526152cb81614f8d565b9050919050565b600060208201905081810360008301526152eb81614fb0565b9050919050565b6000602082019050818103600083015261530b81614fd3565b9050919050565b6000602082019050818103600083015261532b81614ff6565b9050919050565b6000602082019050818103600083015261534b81615019565b9050919050565b6000602082019050818103600083015261536b8161503c565b9050919050565b6000602082019050818103600083015261538b8161505f565b9050919050565b600060208201905081810360008301526153ab81615082565b9050919050565b600060208201905081810360008301526153cb816150a5565b9050919050565b600060208201905081810360008301526153eb816150c8565b9050919050565b6000602082019050818103600083015261540b816150eb565b9050919050565b6000602082019050818103600083015261542b8161510e565b9050919050565b6000602082019050818103600083015261544b81615131565b9050919050565b6000602082019050818103600083015261546b81615154565b9050919050565b6000602082019050818103600083015261548b81615177565b9050919050565b60006020820190506154a7600083018461519a565b92915050565b60006040820190506154c2600083018561519a565b81810360208301526154d48184614ea6565b90509392505050565b600060a0820190506154f2600083018861519a565b6154ff6020830187614f22565b81810360408301526155118186614ea6565b90506155206060830185614e97565b61552d608083018461519a565b9695505050505050565b600060208201905061554c60008301846151a9565b92915050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006155b28261570c565b91506155bd8361570c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155f2576155f1615807565b5b828201905092915050565b60006156088261570c565b91506156138361570c565b92508261562357615622615836565b5b828204905092915050565b60006156398261570c565b91506156448361570c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561567d5761567c615807565b5b828202905092915050565b60006156938261570c565b915061569e8361570c565b9250828210156156b1576156b0615807565b5b828203905092915050565b60006156c7826156ec565b9050919050565b60006156d9826156ec565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061572e82615735565b9050919050565b6000615740826156ec565b9050919050565b60006157528261570c565b9050919050565b60005b8381101561577757808201518184015260208101905061575c565b83811115615786576000848401525b50505050565b600060028204905060018216806157a457607f821691505b602082108114156157b8576157b7615865565b5b50919050565b60006157c98261570c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157fc576157fb615807565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260008201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b7f4163636f756e7420697320616c7265616479206578636c756465640000000000600082015250565b7f416d6f756e74206d757374206265206c657373207468616e20737570706c7900600082015250565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61785460008201527f78416d6f756e742e000000000000000000000000000000000000000000000000602082015250565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f436f6e7472616374206973206c6f636b656420756e74696c2037206461797300600082015250565b7f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460008201527f6869732066756e6374696f6e0000000000000000000000000000000000000000602082015250565b7f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c60008201527f6f636b0000000000000000000000000000000000000000000000000000000000602082015250565b615d72816156bc565b8114615d7d57600080fd5b50565b615d89816156e0565b8114615d9457600080fd5b50565b615da08161570c565b8114615dab57600080fd5b5056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212208cbd457e09a5167ab6028a4717ebdeace3a124a335bac2bc275325619292b31264736f6c63430008060033
Verified Source Code Full Match
Compiler: v0.8.6+commit.11564f7e
EVM: berlin
Optimization: No
FLOKI.sol 954 lines
/**
*Submitted for verification at BscScan.com on 2021-06-12
*/
/*
FLOKI is built upon the fundamentals of Buyback and increasing the investor's value
Main features are
1) 2% tax is collected and distributed to holders for HODLing
2) 6% buyback and marketing tax is collected and 3% of it is sent for marketing fund and other 3% is used to buyback the tokens
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
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);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
library Address {
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
function getUnlockTime() public view returns (uint256) {
return _lockTime;
}
function getTime() public view returns (uint256) {
return block.timestamp;
}
function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = block.timestamp + time;
emit OwnershipTransferred(_owner, address(0));
}
function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(block.timestamp > _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
}
// pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
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(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
// pragma solidity >=0.5.0;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint 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 (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint 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 (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
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 (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
// pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
// pragma solidity >=0.6.2;
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract FLOKI is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
address payable public marketingAddress = payable(0x2b9d5c7f2EAD1A221d771Fb6bb5E35Df04D60AB0); // Marketing Address
address public immutable deadAddress = 0x000000000000000000000000000000000000dEaD;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isExcluded;
address[] private _excluded;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 10000000000 * 10**3 * 10**9;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;
string private _name = "FLOKI";
string private _symbol = "FLOKI";
uint8 private _decimals = 9;
uint256 public _taxFee = 2;
uint256 private _previousTaxFee = _taxFee;
uint256 public _liquidityFee = 6;
uint256 private _previousLiquidityFee = _liquidityFee;
uint256 public marketingDivisor = 3;
uint256 public _maxTxAmount = 3000000 * 10**6 * 10**9;
uint256 private minimumTokensBeforeSwap = 1 * 10**9;
uint256 private buyBackUpperLimit = 1000000000 * 10**9;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
bool public buyBackEnabled = true;
event RewardLiquidityProviders(uint256 tokenAmount);
event BuyBackEnabledUpdated(bool enabled);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
event SwapETHForTokens(
uint256 amountIn,
address[] path
);
event SwapTokensForETH(
uint256 amountIn,
address[] path
);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor () {
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
if (_isExcluded[account]) return _tOwned[account];
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function isExcludedFromReward(address account) public view returns (bool) {
return _isExcluded[account];
}
function totalFees() public view returns (uint256) {
return _tFeeTotal;
}
function minimumTokensBeforeSwapAmount() public view returns (uint256) {
return minimumTokensBeforeSwap;
}
function buyBackUpperLimitAmount() public view returns (uint256) {
return buyBackUpperLimit;
}
function deliver(uint256 tAmount) public {
address sender = _msgSender();
require(!_isExcluded[sender], "Excluded addresses cannot call this function");
(uint256 rAmount,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rTotal = _rTotal.sub(rAmount);
_tFeeTotal = _tFeeTotal.add(tAmount);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount,,,,,) = _getValues(tAmount);
return rAmount;
} else {
(,uint256 rTransferAmount,,,,) = _getValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function excludeFromReward(address account) public onlyOwner() {
require(!_isExcluded[account], "Account is already excluded");
if(_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
}
function includeInReward(address account) external onlyOwner() {
require(_isExcluded[account], "Account is already excluded");
for (uint256 i = 0; i < _excluded.length; i++) {
if (_excluded[i] == account) {
_excluded[i] = _excluded[_excluded.length - 1];
_tOwned[account] = 0;
_isExcluded[account] = false;
_excluded.pop();
break;
}
}
}
function _approve(address owner, address spender, uint256 amount) private {
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 _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if(from != owner() && to != owner()) {
require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
}
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinimumTokenBalance = contractTokenBalance >= minimumTokensBeforeSwap;
if (!inSwapAndLiquify && swapAndLiquifyEnabled) {
if (overMinimumTokenBalance) {
contractTokenBalance = minimumTokensBeforeSwap;
swapTokens(contractTokenBalance);
}
uint256 balance = address(this).balance;
if (buyBackEnabled && balance > uint256(1 * 10**18)) {
if (balance > buyBackUpperLimit)
balance = buyBackUpperLimit;
buyBackTokens(balance.div(100));
}
}
bool takeFee = true;
//if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
takeFee = false;
}
_tokenTransfer(from,to,amount,takeFee);
}
function swapTokens(uint256 contractTokenBalance) private lockTheSwap {
uint256 initialBalance = address(this).balance;
swapTokensForEth(contractTokenBalance);
uint256 transferredBalance = address(this).balance.sub(initialBalance);
//Send to Marketing address
transferToAddressETH(marketingAddress, transferredBalance.div(_liquidityFee).mul(marketingDivisor));
}
function buyBackTokens(uint256 amount) private lockTheSwap {
if (amount > 0) {
swapETHForTokens(amount);
}
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this), // The contract
block.timestamp
);
emit SwapTokensForETH(tokenAmount, path);
}
function swapETHForTokens(uint256 amount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = address(this);
// make the swap
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(
0, // accept any amount of Tokens
path,
deadAddress, // Burn address
block.timestamp.add(300)
);
emit SwapETHForTokens(amount, path);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
owner(),
block.timestamp
);
}
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private {
if(!takeFee)
removeAllFee();
if (_isExcluded[sender] && !_isExcluded[recipient]) {
_transferFromExcluded(sender, recipient, amount);
} else if (!_isExcluded[sender] && _isExcluded[recipient]) {
_transferToExcluded(sender, recipient, amount);
} else if (_isExcluded[sender] && _isExcluded[recipient]) {
_transferBothExcluded(sender, recipient, amount);
} else {
_transferStandard(sender, recipient, amount);
}
if(!takeFee)
restoreAllFee();
}
function _transferStandard(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_tOwned[sender] = _tOwned[sender].sub(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate());
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
uint256 tFee = calculateTaxFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity);
return (tTransferAmount, tFee, tLiquidity);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
for (uint256 i = 0; i < _excluded.length; i++) {
if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
rSupply = rSupply.sub(_rOwned[_excluded[i]]);
tSupply = tSupply.sub(_tOwned[_excluded[i]]);
}
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
function _takeLiquidity(uint256 tLiquidity) private {
uint256 currentRate = _getRate();
uint256 rLiquidity = tLiquidity.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
if(_isExcluded[address(this)])
_tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
}
function calculateTaxFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_taxFee).div(
10**2
);
}
function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
return _amount.mul(_liquidityFee).div(
10**2
);
}
function removeAllFee() private {
if(_taxFee == 0 && _liquidityFee == 0) return;
_previousTaxFee = _taxFee;
_previousLiquidityFee = _liquidityFee;
_taxFee = 0;
_liquidityFee = 0;
}
function restoreAllFee() private {
_taxFee = _previousTaxFee;
_liquidityFee = _previousLiquidityFee;
}
function isExcludedFromFee(address account) public view returns(bool) {
return _isExcludedFromFee[account];
}
function excludeFromFee(address account) public onlyOwner {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyOwner {
_isExcludedFromFee[account] = false;
}
function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
_taxFee = taxFee;
}
function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
_liquidityFee = liquidityFee;
}
function setMaxTxAmount(uint256 maxTxAmount) external onlyOwner() {
_maxTxAmount = maxTxAmount;
}
function setMarketingDivisor(uint256 divisor) external onlyOwner() {
marketingDivisor = divisor;
}
function setNumTokensSellToAddToLiquidity(uint256 _minimumTokensBeforeSwap) external onlyOwner() {
minimumTokensBeforeSwap = _minimumTokensBeforeSwap;
}
function setBuybackUpperLimit(uint256 buyBackLimit) external onlyOwner() {
buyBackUpperLimit = buyBackLimit * 10**18;
}
function setMarketingAddress(address _marketingAddress) external onlyOwner() {
marketingAddress = payable(_marketingAddress);
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function setBuyBackEnabled(bool _enabled) public onlyOwner {
buyBackEnabled = _enabled;
emit BuyBackEnabledUpdated(_enabled);
}
function prepareForPreSale() external onlyOwner {
setSwapAndLiquifyEnabled(false);
_taxFee = 0;
_liquidityFee = 0;
_maxTxAmount = 1000000000 * 10**6 * 10**9;
}
function afterPreSale() external onlyOwner {
setSwapAndLiquifyEnabled(true);
_taxFee = 2;
_liquidityFee = 6;
_maxTxAmount = 3000000 * 10**6 * 10**9;
}
function transferToAddressETH(address payable recipient, uint256 amount) private {
recipient.transfer(amount);
}
//to recieve ETH from uniswapV2Router when swaping
receive() external payable {}
}
Read Contract
_liquidityFee 0x6bc87c3a → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_taxFee 0x3b124fe7 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyBackEnabled 0x6053a0e3 → bool
buyBackUpperLimitAmount 0xbdc653ef → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
getTime 0x557ed1ba → uint256
getUnlockTime 0x602bc62b → uint256
isExcludedFromFee 0x5342acb4 → bool
isExcludedFromReward 0x88f82020 → bool
marketingAddress 0xa5ece941 → address
marketingDivisor 0xd6b513cf → uint256
minimumTokensBeforeSwapAmount 0xa073d37f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 25 functions
These functions modify contract state and require a wallet transaction to execute.
afterPreSale 0x07efbfdc
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
deliver 0x3bd5d173
uint256 tAmount
excludeFromFee 0x437823ec
address account
excludeFromReward 0x52390c02
address account
includeInFee 0xea2f0b37
address account
includeInReward 0x3685d419
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
lock 0xdd467064
uint256 time
prepareForPreSale 0x5134f6ab
No parameters
renounceOwnership 0x715018a6
No parameters
setBuyBackEnabled 0x29370cc6
bool _enabled
setBuybackUpperLimit 0x82d2a4bb
uint256 buyBackLimit
setLiquidityFeePercent 0x8ee88c53
uint256 liquidityFee
setMarketingAddress 0x906e9dd0
address _marketingAddress
setMarketingDivisor 0xb0cb81f1
uint256 divisor
setMaxTxAmount 0xec28438a
uint256 maxTxAmount
setNumTokensSellToAddToLiquidity 0xf0f165af
uint256 _minimumTokensBeforeSwap
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setTaxFeePercent 0x061c82d0
uint256 taxFee
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unlock 0xa69df4b5
No parameters
Recent Transactions
Transaction index is loading. Only unfinalized transactions are shown while the index starts up.