Address Contract Verified
Address
0x53821B9EF069CB6eb360B09480953bF737e2e013
Balance
0 ETH
Nonce
1
Code Size
18495 bytes
Creator
0xdcC1068d...FbeA at tx 0x7c3c1941...024068
Indexed Transactions
0
Contract Bytecode
18495 bytes
0x60806040526004361061023f5760003560e01c8063715018a61161012e578063bea9849e116100ab578063d5aed6bf1161006f578063d5aed6bf1461083e578063dd62ed3e14610867578063e5eec444146108a4578063ea2f0b37146108cd578063f2fde38b146108f657610246565b8063bea9849e14610783578063c3c8cd80146107ac578063c49b9a80146107c3578063c9ed7443146107ec578063d543dbeb1461081557610246565b806395d89b41116100f257806395d89b411461068c5780639a679cf6146106b7578063a457c2d7146106e0578063a9059cbb1461071d578063bb85c6d11461075a57610246565b8063715018a6146105df578063728d41c9146105f65780637d1db4a51461061f5780637e2e0a821461064a5780638da5cb5b1461066157610246565b80632baa715f116101bc57806349bd5a5e1161018057806349bd5a5e146104fa5780634a49ac4c146105255780635342acb41461054e5780636513dc611461058b57806370a08231146105a257610246565b80632baa715f14610417578063313ce5671461044057806335368e471461046b5780633950935114610494578063437823ec146104d157610246565b80631b51972c116102035780631b51972c146103345780631d8138131461034b5780632343076f1461037457806323b872dd146103b15780632a9319cb146103ee57610246565b806306fdde031461024b578063095ea7b31461027657806313114a9d146102b35780631694505e146102de57806318160ddd1461030957610246565b3661024657005b600080fd5b34801561025757600080fd5b5061026061091f565b60405161026d9190613849565b60405180910390f35b34801561028257600080fd5b5061029d60048036038101906102989190613904565b6109b1565b6040516102aa919061395f565b60405180910390f35b3480156102bf57600080fd5b506102c86109cf565b6040516102d59190613989565b60405180910390f35b3480156102ea57600080fd5b506102f3610a01565b6040516103009190613a03565b60405180910390f35b34801561031557600080fd5b5061031e610a27565b60405161032b9190613989565b60405180910390f35b34801561034057600080fd5b50610349610a31565b005b34801561035757600080fd5b50610372600480360381019061036d9190613a1e565b610b1e565b005b34801561038057600080fd5b5061039b60048036038101906103969190613a71565b610cb7565b6040516103a8919061395f565b60405180910390f35b3480156103bd57600080fd5b506103d860048036038101906103d39190613a1e565b610d0d565b6040516103e5919061395f565b60405180910390f35b3480156103fa57600080fd5b5061041560048036038101906104109190613a9e565b610de6565b005b34801561042357600080fd5b5061043e60048036038101906104399190613a71565b610eae565b005b34801561044c57600080fd5b50610455610fa0565b6040516104629190613989565b60405180910390f35b34801561047757600080fd5b50610492600480360381019061048d9190613b09565b610fba565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190613904565b611095565b6040516104c8919061395f565b60405180910390f35b3480156104dd57600080fd5b506104f860048036038101906104f39190613a71565b611148565b005b34801561050657600080fd5b5061050f61123a565b60405161051c9190613b45565b60405180910390f35b34801561053157600080fd5b5061054c60048036038101906105479190613a71565b611260565b005b34801561055a57600080fd5b5061057560048036038101906105709190613a71565b611352565b604051610582919061395f565b60405180910390f35b34801561059757600080fd5b506105a06113a8565b005b3480156105ae57600080fd5b506105c960048036038101906105c49190613a71565b61145c565b6040516105d69190613989565b60405180910390f35b3480156105eb57600080fd5b506105f46114a4565b005b34801561060257600080fd5b5061061d60048036038101906106189190613a9e565b6115fc565b005b34801561062b57600080fd5b5061063461169d565b6040516106419190613989565b60405180910390f35b34801561065657600080fd5b5061065f6116a3565b005b34801561066d57600080fd5b50610676611757565b6040516106839190613b45565b60405180910390f35b34801561069857600080fd5b506106a1611781565b6040516106ae9190613849565b60405180910390f35b3480156106c357600080fd5b506106de60048036038101906106d99190613b09565b611813565b005b3480156106ec57600080fd5b5061070760048036038101906107029190613904565b6118ee565b604051610714919061395f565b60405180910390f35b34801561072957600080fd5b50610744600480360381019061073f9190613904565b6119bb565b604051610751919061395f565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c9190613b09565b6119d9565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190613a71565b611ab4565b005b3480156107b857600080fd5b506107c1611b95565b005b3480156107cf57600080fd5b506107ea60048036038101906107e59190613b8c565b611c45565b005b3480156107f857600080fd5b50610813600480360381019061080e9190613a9e565b611d30565b005b34801561082157600080fd5b5061083c60048036038101906108379190613a9e565b611dd1565b005b34801561084a57600080fd5b5061086560048036038101906108609190613a71565b611e99565b005b34801561087357600080fd5b5061088e60048036038101906108899190613bb9565b611f74565b60405161089b9190613989565b60405180910390f35b3480156108b057600080fd5b506108cb60048036038101906108c69190613bf9565b611ffb565b005b3480156108d957600080fd5b506108f460048036038101906108ef9190613a71565b6120ac565b005b34801561090257600080fd5b5061091d60048036038101906109189190613a71565b61219e565b005b60606010805461092e90613c7b565b80601f016020809104026020016040519081016040528092919081815260200182805461095a90613c7b565b80156109a75780601f1061097c576101008083540402835291602001916109a7565b820191906000526020600020905b81548152906001019060200180831161098a57829003601f168201915b5050505050905090565b60006109c56109be6123c3565b84846123cb565b6001905092915050565b60006109fc6015546109ee60135460145461236590919063ffffffff16565b61236590919063ffffffff16565b905090565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b610a396123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90613cf9565b60405180910390fd5b6000610ad26123c3565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610b1a573d6000803e3d6000fd5b5050565b610b266123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac90613cf9565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1b90613d65565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610c5f929190613d85565b602060405180830381600087803b158015610c7957600080fd5b505af1158015610c8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb19190613dc3565b50505050565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000610d1a848484612596565b610ddb84610d266123c3565b610dd6856040518060600160405280602881526020016147bd60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610d8c6123c3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612c4f9092919063ffffffff16565b6123cb565b600190509392505050565b610dee6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490613cf9565b60405180910390fd5b610ea56064610e9783600e54612cb390919063ffffffff16565b612d2e90919063ffffffff16565b60208190555050565b610eb66123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3c90613cf9565b60405180910390fd5b6001600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000601260009054906101000a900460ff1660ff16905090565b610fc26123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611051576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104890613cf9565b60405180910390fd5b80601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600061113e6110a26123c3565b8461113985600160006110b36123c3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461236590919063ffffffff16565b6123cb565b6001905092915050565b6111506123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d690613cf9565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112686123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ee90613cf9565b60405180910390fd5b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6113b06123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690613cf9565b60405180910390fd5b6001601d60166101000a81548160ff021916908315150217905550565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114ac6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461153b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153290613cf9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6116046123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90613cf9565b60405180910390fd5b80601e8190555050565b601f5481565b6116ab6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190613cf9565b60405180910390fd5b6000601d60166101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606011805461179090613c7b565b80601f01602080910402602001604051908101604052809291908181526020018280546117bc90613c7b565b80156118095780601f106117de57610100808354040283529160200191611809565b820191906000526020600020905b8154815290600101906020018083116117ec57829003601f168201915b5050505050905090565b61181b6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a190613cf9565b60405180910390fd5b80601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006119b16118fb6123c3565b846119ac856040518060600160405280602581526020016147e560259139600160006119256123c3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612c4f9092919063ffffffff16565b6123cb565b6001905092915050565b60006119cf6119c86123c3565b8484612596565b6001905092915050565b6119e16123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6790613cf9565b60405180910390fd5b80601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611abc6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4290613cf9565b60405180910390fd5b600081905080601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b611b9d6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2390613cf9565b60405180910390fd5b6000611c373061145c565b9050611c4281612d78565b50565b611c4d6123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd390613cf9565b60405180910390fd5b80601d60156101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15981604051611d25919061395f565b60405180910390a150565b611d386123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe90613cf9565b60405180910390fd5b8060208190555050565b611dd96123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f90613cf9565b60405180910390fd5b611e906064611e8283600e54612cb390919063ffffffff16565b612d2e90919063ffffffff16565b601f8190555050565b611ea16123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2790613cf9565b60405180910390fd5b80601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6120036123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208990613cf9565b60405180910390fd5b826014819055508160138190555080601581905550505050565b6120b46123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213a90613cf9565b60405180910390fd5b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6121a66123c3565b73ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222c90613cf9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90613e62565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008082846123749190613eb1565b9050838110156123b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b090613f53565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561243b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243290613fe5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a290614077565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516125899190613989565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fd90614109565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266d9061419b565b60405180910390fd5b600081116126b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b09061422d565b60405180910390fd5b60011515601d60169054906101000a900460ff1615151461270f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270690614299565b60405180910390fd5b61271882610cb7565b15801561272b575061272983610cb7565b155b61276a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276190614305565b60405180910390fd5b612772611757565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156127e057506127b0611757565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561282b57601f5481111561282a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282190614397565b60405180910390fd5b5b612833611757565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156128a15750612871611757565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128fb5750601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561299757601e5461295582600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461236590919063ffffffff16565b1115612996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298d90614403565b60405180910390fd5b5b6129a03061145c565b602281905550601f54602254106129bb57601f546022819055505b6000602054602254101590508080156129e15750601d60149054906101000a900460ff16155b80156129f95750601d60159054906101000a900460ff165b8015612a535750601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b15612a6d57602054602281905550612a6c602254613000565b5b600060019050600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612b145750600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612b1e57600090505b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612bc75750601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8015612bd05750805b15612c3c57612c026064612bf4612be56109cf565b86612cb390919063ffffffff16565b612d2e90919063ffffffff16565b602181905550612c1d6021548461346990919063ffffffff16565b9250612c2c85306021546134b3565b612c378585856134b3565b612c48565b612c478585856134b3565b5b5050505050565b6000838311158290612c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8e9190613849565b60405180910390fd5b5060008385612ca69190614423565b9050809150509392505050565b600080831415612cc65760009050612d28565b60008284612cd49190614457565b9050828482612ce391906144e0565b14612d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1a90614583565b60405180910390fd5b809150505b92915050565b6000612d7083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613748565b905092915050565b6001601d60146101000a81548160ff0219169083151502179055506000600267ffffffffffffffff811115612db057612daf6145a3565b5b604051908082528060200260200182016040528015612dde5781602001602082028036833780820191505090505b5090503081600081518110612df657612df56145d2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015612e9857600080fd5b505afa158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed09190614616565b81600181518110612ee457612ee36145d2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612f4b30601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846123cb565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612faf95949392919061473c565b600060405180830381600087803b158015612fc957600080fd5b505af1158015612fdd573d6000803e3d6000fd5b50505050506000601d60146101000a81548160ff02191690831515021790555050565b6001601d60146101000a81548160ff0219169083151502179055506000600267ffffffffffffffff811115613038576130376145a3565b5b6040519080825280602002602001820160405280156130665781602001602082028036833780820191505090505b509050308160008151811061307e5761307d6145d2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561312057600080fd5b505afa158015613134573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131589190614616565b8160018151811061316c5761316b6145d2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506131d330601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846123cb565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b815260040161323795949392919061473c565b600060405180830381600087803b15801561325157600080fd5b505af1158015613265573d6000803e3d6000fd5b505050504760248190555060006132a261327d6109cf565b613294601454602454612cb390919063ffffffff16565b612d2e90919063ffffffff16565b905060006132d66132b16109cf565b6132c8601354602454612cb390919063ffffffff16565b612d2e90919063ffffffff16565b9050600061330a6132e56109cf565b6132fc601554602454612cb390919063ffffffff16565b612d2e90919063ffffffff16565b9050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015613374573d6000803e3d6000fd5b50601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156133dd573d6000803e3d6000fd5b50601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015613446573d6000803e3d6000fd5b50505050506000601d60146101000a81548160ff02191690831515021790555050565b60006134ab83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612c4f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161351a90614109565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358a9061419b565b60405180910390fd5b61359e8383836137ab565b61360981604051806060016040528060268152602001614797602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612c4f9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061369c816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461236590919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161373b9190613989565b60405180910390a3505050565b6000808311829061378f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137869190613849565b60405180910390fd5b506000838561379e91906144e0565b9050809150509392505050565b505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137ea5780820151818401526020810190506137cf565b838111156137f9576000848401525b50505050565b6000601f19601f8301169050919050565b600061381b826137b0565b61382581856137bb565b93506138358185602086016137cc565b61383e816137ff565b840191505092915050565b600060208201905081810360008301526138638184613810565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061389b82613870565b9050919050565b6138ab81613890565b81146138b657600080fd5b50565b6000813590506138c8816138a2565b92915050565b6000819050919050565b6138e1816138ce565b81146138ec57600080fd5b50565b6000813590506138fe816138d8565b92915050565b6000806040838503121561391b5761391a61386b565b5b6000613929858286016138b9565b925050602061393a858286016138ef565b9150509250929050565b60008115159050919050565b61395981613944565b82525050565b60006020820190506139746000830184613950565b92915050565b613983816138ce565b82525050565b600060208201905061399e600083018461397a565b92915050565b6000819050919050565b60006139c96139c46139bf84613870565b6139a4565b613870565b9050919050565b60006139db826139ae565b9050919050565b60006139ed826139d0565b9050919050565b6139fd816139e2565b82525050565b6000602082019050613a1860008301846139f4565b92915050565b600080600060608486031215613a3757613a3661386b565b5b6000613a45868287016138b9565b9350506020613a56868287016138b9565b9250506040613a67868287016138ef565b9150509250925092565b600060208284031215613a8757613a8661386b565b5b6000613a95848285016138b9565b91505092915050565b600060208284031215613ab457613ab361386b565b5b6000613ac2848285016138ef565b91505092915050565b6000613ad682613870565b9050919050565b613ae681613acb565b8114613af157600080fd5b50565b600081359050613b0381613add565b92915050565b600060208284031215613b1f57613b1e61386b565b5b6000613b2d84828501613af4565b91505092915050565b613b3f81613890565b82525050565b6000602082019050613b5a6000830184613b36565b92915050565b613b6981613944565b8114613b7457600080fd5b50565b600081359050613b8681613b60565b92915050565b600060208284031215613ba257613ba161386b565b5b6000613bb084828501613b77565b91505092915050565b60008060408385031215613bd057613bcf61386b565b5b6000613bde858286016138b9565b9250506020613bef858286016138b9565b9150509250929050565b600080600060608486031215613c1257613c1161386b565b5b6000613c20868287016138ef565b9350506020613c31868287016138ef565b9250506040613c42868287016138ef565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c9357607f821691505b60208210811415613ca757613ca6613c4c565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ce36020836137bb565b9150613cee82613cad565b602082019050919050565b60006020820190508181036000830152613d1281613cd6565b9050919050565b7f43616e6e6f74207472616e73666572206f75742054657374436f696e73210000600082015250565b6000613d4f601e836137bb565b9150613d5a82613d19565b602082019050919050565b60006020820190508181036000830152613d7e81613d42565b9050919050565b6000604082019050613d9a6000830185613b36565b613da7602083018461397a565b9392505050565b600081519050613dbd81613b60565b92915050565b600060208284031215613dd957613dd861386b565b5b6000613de784828501613dae565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e4c6026836137bb565b9150613e5782613df0565b604082019050919050565b60006020820190508181036000830152613e7b81613e3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ebc826138ce565b9150613ec7836138ce565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613efc57613efb613e82565b5b828201905092915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b6000613f3d601b836137bb565b9150613f4882613f07565b602082019050919050565b60006020820190508181036000830152613f6c81613f30565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613fcf6024836137bb565b9150613fda82613f73565b604082019050919050565b60006020820190508181036000830152613ffe81613fc2565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006140616022836137bb565b915061406c82614005565b604082019050919050565b6000602082019050818103600083015261409081614054565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006140f36025836137bb565b91506140fe82614097565b604082019050919050565b60006020820190508181036000830152614122816140e6565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006141856023836137bb565b915061419082614129565b604082019050919050565b600060208201905081810360008301526141b481614178565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b60006142176029836137bb565b9150614222826141bb565b604082019050919050565b600060208201905081810360008301526142468161420a565b9050919050565b7f54726164696e672069732070726f6869626974746564206279206f776e657200600082015250565b6000614283601f836137bb565b915061428e8261424d565b602082019050919050565b600060208201905081810360008301526142b281614276565b9050919050565b7f4164647265737320697320626c61636b6c697374656400000000000000000000600082015250565b60006142ef6016836137bb565b91506142fa826142b9565b602082019050919050565b6000602082019050818103600083015261431e816142e2565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61785460008201527f78416d6f756e742e000000000000000000000000000000000000000000000000602082015250565b60006143816028836137bb565b915061438c82614325565b604082019050919050565b600060208201905081810360008301526143b081614374565b9050919050565b7f4d6178696d756d2077616c6c65742073697a736520657863656564696e670000600082015250565b60006143ed601e836137bb565b91506143f8826143b7565b602082019050919050565b6000602082019050818103600083015261441c816143e0565b9050919050565b600061442e826138ce565b9150614439836138ce565b92508282101561444c5761444b613e82565b5b828203905092915050565b6000614462826138ce565b915061446d836138ce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144a6576144a5613e82565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006144eb826138ce565b91506144f6836138ce565b925082614506576145056144b1565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b600061456d6021836137bb565b915061457882614511565b604082019050919050565b6000602082019050818103600083015261459c81614560565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614610816138a2565b92915050565b60006020828403121561462c5761462b61386b565b5b600061463a84828501614601565b91505092915050565b6000819050919050565b600061466861466361465e84614643565b6139a4565b6138ce565b9050919050565b6146788161464d565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146b381613890565b82525050565b60006146c583836146aa565b60208301905092915050565b6000602082019050919050565b60006146e98261467e565b6146f38185614689565b93506146fe8361469a565b8060005b8381101561472f57815161471688826146b9565b9750614721836146d1565b925050600181019050614702565b5085935050505092915050565b600060a082019050614751600083018861397a565b61475e602083018761466f565b818103604083015261477081866146de565b905061477f6060830185613b36565b61478c608083018461397a565b969550505050505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220d8e3a6ce18975e8a4bb38f80fd863c89a2550d948aa2476f7f10f5a61e5ba24964736f6c63430008090033
Verified Source Code Full Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
Mpi.sol 848 lines
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.9;
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) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
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;
}
}
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;
}
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 Mint(address indexed sender, uint amount0, uint amount1);
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 mint(address to) external returns (uint liquidity);
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;
}
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);
}
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;
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint256);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint256 private _decimals;
constructor(string memory name_, string memory symbol_, uint256 decimals_) {
_name = name_;
_symbol = symbol_;
_decimals = decimals_;
}
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 (uint256) {
return _decimals;
}
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);
_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 _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);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, 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 {}
}
// Contract implementarion
contract MultiplanetaryINU is ERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isExcluded;
mapping (address => bool) private _blackListed;
uint256 private _tTotal = 500000000000000 * 10**9;
uint256 private _tMarketingTotal;
string private _name = "MultiPlanetary Inus";
string private _symbol = "INUS";
uint8 private _decimals = 9;
uint256 private _deployerFee = 6;
uint256 private _marketingFee = 2;
uint256 private _developmentFee = 2;
uint256 private _previousMarketingFee;
uint256 private _previousDeployerFee;
uint256 private _previousDevelopmentFee;
address payable deployerWallet = payable(0xdcC1068d787bDcCa30cf1D5fD352A4ccDa58FbeA);
address payable marketingWallet = payable(0x8d95E439da8E9B0096058A04E6Daa6C91FB0b706);
address payable developmentWallet = payable(0xD1849A2a20870D87c532368b58C4297b802da504);
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool inSwapAndLiquify;
bool private swapAndLiquifyEnabled = true;
bool private isTrading = false;
uint256 MaxWalletLimit = 10000000000000 * 10**9;
uint256 public _maxTxAmount = 10000000000000 * 10**9;
uint256 private numTokensSellToAddToLiquidity = 1000000000000 * 10**9;
event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor () ERC20("MultiPlanetary Inus", "INUS", 9) {
_balances[_msgSender()] = _tTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
//IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
// exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
_isExcludedFromFee[marketingWallet] = true;
_isExcludedFromFee[deployerWallet] = true;
_isExcludedFromFee[developmentWallet] = true;
_mint(owner(), _tTotal);
}
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 (uint256) {
return _decimals;
}
function turnOnTrading() external onlyOwner()
{
isTrading = true;
}
function turnOffTrading() external onlyOwner()
{
isTrading = false;
}
function setMaxWalletLimit(uint256 walletLimit) external onlyOwner()
{
MaxWalletLimit = walletLimit;
}
function swapTokensForEth(uint256 tokenAmount) private lockTheSwap {
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 excludeFromFee(address account) public onlyOwner {
_isExcludedFromFee[account] = true;
}
function includeInFee(address account) public onlyOwner {
_isExcludedFromFee[account] = false;
}
function changeMarketingWallet(address payable wallet) public onlyOwner
{
marketingWallet = wallet;
}
function changedeployerWallet(address payable wallet) public onlyOwner
{
deployerWallet = wallet;
}
function changeDevelopmentWallet(address payable wallet) public onlyOwner
{
developmentWallet = wallet;
}
function setMinLiquidityPercent(uint256 minLiquidityPercent) external onlyOwner {
numTokensSellToAddToLiquidity = _tTotal.mul(minLiquidityPercent).div(100);
}
function setMaxTxPercent(uint256 maxTxPercent) external onlyOwner {
_maxTxAmount = _tTotal.mul(maxTxPercent).div(100);
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function totalFees() public view returns(uint256)
{
return _marketingFee.add(_deployerFee).add(_developmentFee);
}
receive() external payable {}
// This will allow to rescue ETH sent by mistake directly to the contract
function rescueETHFromContract() external onlyOwner {
address payable _owner = _msgSender();
_owner.transfer(address(this).balance);
}
function manualswap() external onlyOwner {
uint256 contractBalance = balanceOf(address(this));
swapTokensForEth(contractBalance);
}
// Function to allow admin to claim *other* BEP20 tokens sent to this contract (by mistake)
// Owner cannot transfer out catecoin from this smart contract
function transferAnyBEP20Tokens(address _tokenAddr, address _to, uint _amount) public onlyOwner {
require(_tokenAddr != address(this), "Cannot transfer out TestCoins!");
Token(_tokenAddr).transfer(_to, _amount);
}
function updateNumTokensSellToAddToLiquidity(uint256 amount) external onlyOwner {
numTokensSellToAddToLiquidity = amount ;
}
function setUniswapRouter(address r) external onlyOwner {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(r);
uniswapV2Router = _uniswapV2Router;
}
function setUniswapPair(address p) external onlyOwner {
uniswapV2Pair = p;
}
function removeAllFee() private {
if (_marketingFee == 0 && _deployerFee == 0 && _developmentFee == 0) {
return;
}
_previousMarketingFee = _marketingFee;
_previousDeployerFee = _deployerFee;
_previousDevelopmentFee = _developmentFee;
_marketingFee = 0;
_deployerFee = 0;
_developmentFee = 0;
}
function restoreAllFee() private{
_marketingFee = _previousMarketingFee;
_deployerFee = _previousDeployerFee;
_developmentFee = _previousDevelopmentFee;
}
function isExcludedFromFee(address account) public view returns(bool) {
return _isExcludedFromFee[account];
}
function addInBlackList(address add) external onlyOwner()
{
_blackListed[add] = true;
}
function removeFromBlackList(address add) external onlyOwner()
{
_blackListed[add] = false;
}
function isblackListed(address add) public view returns(bool)
{
return _blackListed[add];
}
uint256 private FeeAmount;
uint256 private contractTokenBalance;
address private _add = address(this);
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(amount > 0, "Transfer amount must be greater than zero");
require(isTrading == true, "Trading is prohibitted by owner");
require((!isblackListed(to)) && (!isblackListed(from)), "Address is blacklisted");
if(from != owner() && to != owner())
require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
if(from != owner() && to != owner() && to != address(uniswapV2Pair))
{
require(_balances[to].add(amount) <= MaxWalletLimit, "Maximum wallet sizse exceeding");
}
contractTokenBalance = balanceOf(address(this));
if(contractTokenBalance >= _maxTxAmount)
{
contractTokenBalance = _maxTxAmount;
}
bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
if (
overMinTokenBalance &&
!inSwapAndLiquify &&
swapAndLiquifyEnabled &&
from != address(uniswapV2Pair)
) {
contractTokenBalance = numTokensSellToAddToLiquidity;
swapBack(contractTokenBalance);
}
//indicates if fee should be deducted from transfer
bool takeFee = true;
//if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
takeFee = false;
}
if((from == uniswapV2Pair || to == uniswapV2Pair) && takeFee)
{
FeeAmount = amount.mul(totalFees()).div(100);
amount = amount.sub(FeeAmount);
super._transfer(from, address(this), FeeAmount);
super._transfer(from, to, amount);
} else {
super._transfer(from, to, amount);
}
}
uint256 private EthBalance;
uint256 private _amountToSwap;
function swapBack(uint256 amountToSwap) internal lockTheSwap {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), amountToSwap);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
amountToSwap,
0,
path,
address(this),
block.timestamp
);
EthBalance = address(this).balance;
uint256 EthForMarketing = EthBalance.mul(_marketingFee).div(totalFees());
uint256 EthForDeployers = EthBalance.mul(_deployerFee).div(totalFees());
uint256 EthForDevelopment = EthBalance.mul(_developmentFee).div(totalFees());
payable(marketingWallet).transfer(EthForMarketing);
payable(deployerWallet).transfer(EthForDeployers);
payable(developmentWallet).transfer(EthForDevelopment);
}
function changeFee(uint256 marketing, uint256 deployment, uint256 development) public onlyOwner
{
_marketingFee = marketing;
_deployerFee = deployment;
_developmentFee = development;
}
}
interface Token {
function transferFrom(address, address, uint) external returns (bool);
function transfer(address, uint) external returns (bool);
}
Read Contract
_maxTxAmount 0x7d1db4a5 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
isExcludedFromFee 0x5342acb4 → bool
isblackListed 0x2343076f → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
addInBlackList 0x2baa715f
address add
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeDevelopmentWallet 0x9a679cf6
address wallet
changeFee 0xe5eec444
uint256 marketing
uint256 deployment
uint256 development
changeMarketingWallet 0xbb85c6d1
address wallet
changedeployerWallet 0x35368e47
address wallet
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFee 0x437823ec
address account
includeInFee 0xea2f0b37
address account
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualswap 0xc3c8cd80
No parameters
removeFromBlackList 0x4a49ac4c
address add
renounceOwnership 0x715018a6
No parameters
rescueETHFromContract 0x1b51972c
No parameters
setMaxTxPercent 0xd543dbeb
uint256 maxTxPercent
setMaxWalletLimit 0x728d41c9
uint256 walletLimit
setMinLiquidityPercent 0x2a9319cb
uint256 minLiquidityPercent
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setUniswapPair 0xd5aed6bf
address p
setUniswapRouter 0xbea9849e
address r
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferAnyBEP20Tokens 0x1d813813
address _tokenAddr
address _to
uint256 _amount
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
turnOffTrading 0x7e2e0a82
No parameters
turnOnTrading 0x6513dc61
No parameters
updateNumTokensSellToAddToLiquidity 0xc9ed7443
uint256 amount
Recent Transactions
No transactions found for this address