[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC20InvalidSpender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "OpenTrade", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "WETH", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_approvalERC20", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pair", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
6080604052600880546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790915560098054909116731f98431c8ad98523631ae4a59f267346ea31f98417905564e8990a4600600a55348015610060575f80fd5b50336040518060400160405280601f81526020017f4869676820617065206168656164206f6620616e7920657261206d656d652000815250604051806040016040528060048152602001634841504560e01b81525081600390816100c49190610493565b5060046100d18282610493565b5050506001600160a01b03811661010257604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61010b81610155565b50335f818152600660205260409020805460ff1916600117905561015090610131601290565b61013c90600a610648565b61014b9064174876e80061065d565b6101a6565b610687565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166101cf5760405163ec442f0560e01b81525f60048201526024016100f9565b6101da5f83836101de565b5050565b325f9081526006602052604090205460ff1615610205576102008383836102d6565b505050565b60075460ff166102465760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b60448201526064016100f9565b6007545f906001600160a01b038481166101009092041614610268575f61026b565b60015b905080156102845761027e8484846102d6565b50505050565b806102945761027e8484846102d6565b6007546001600160a01b0385811661010090920416148015906102ca57506007546001600160a01b038481166101009092041614155b1561027e5761027e8484845b6001600160a01b038316610300578060025f8282546102f59190610674565b909155506103709050565b6001600160a01b0383165f90815260208190526040902054818110156103525760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100f9565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661038c576002805482900390556103aa565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516103ef91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061042457607f821691505b60208210810361044257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561020057805f5260205f20601f840160051c8101602085101561046d5750805b601f840160051c820191505b8181101561048c575f8155600101610479565b5050505050565b81516001600160401b038111156104ac576104ac6103fc565b6104c0816104ba8454610410565b84610448565b602080601f8311600181146104f3575f84156104dc5750858301515b5f19600386901b1c1916600185901b17855561054a565b5f85815260208120601f198616915b8281101561052157888601518255948401946001909101908401610502565b508582101561053e57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156105a057815f190482111561058657610586610552565b8085161561059357918102915b93841c939080029061056b565b509250929050565b5f826105b657506001610642565b816105c257505f610642565b81600181146105d857600281146105e2576105fe565b6001915050610642565b60ff8411156105f3576105f3610552565b50506001821b610642565b5060208310610133831016604e8410600b8410161715610621575081810a610642565b61062b8383610566565b805f190482111561063e5761063e610552565b0290505b92915050565b5f61065660ff8416836105a8565b9392505050565b808202811582820484141761064257610642610552565b8082018082111561064257610642610552565b610a60806106945f395ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c8063715018a611610093578063a9059cbb11610063578063a9059cbb146101fc578063ad5c46481461020f578063dd62ed3e14610222578063f2fde38b1461025a575f80fd5b8063715018a6146101af5780638da5cb5b146101b757806395d89b41146101dc578063a8aa1b31146101e4575f80fd5b806323b872dd116100ce57806323b872dd1461015c578063313ce5671461016f5780636c9e49901461017e57806370a0823114610187575f80fd5b806306fdde03146100ff578063095ea7b31461011d5780630f8540e41461014057806318160ddd1461014a575b5f80fd5b61010761026d565b60405161011491906108ae565b60405180910390f35b61013061012b3660046108f7565b6102fd565b6040519015158152602001610114565b610148610316565b005b6002545b604051908152602001610114565b61013061016a366004610921565b6103cd565b60405160128152602001610114565b61014e600a5481565b61014e61019536600461095f565b6001600160a01b03165f9081526020819052604090205490565b6101486103f0565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610114565b610107610403565b6007546101c49061010090046001600160a01b031681565b61013061020a3660046108f7565b610412565b6008546101c4906001600160a01b031681565b61014e610230366004610981565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61014861026836600461095f565b61041f565b60606003805461027c906109b8565b80601f01602080910402602001604051908101604052809291908181526020018280546102a8906109b8565b80156102f35780601f106102ca576101008083540402835291602001916102f3565b820191905f5260205f20905b8154815290600101906020018083116102d657829003601f168201915b5050505050905090565b5f3361030a818585610461565b60019150505b92915050565b61031e610473565b600954600854604051630b4c774160e11b81523060048201526001600160a01b0391821660248201526064604482018190529190921691631698ee829101602060405180830381865afa158015610377573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039b91906109f0565b6007805460ff196001600160a01b039390931661010002929092166001600160a81b0319909216919091176001179055565b5f336103da8582856104a0565b6103e585858561051b565b506001949350505050565b6103f8610473565b6104015f610578565b565b60606004805461027c906109b8565b5f3361030a81858561051b565b610427610473565b6001600160a01b03811661045557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61045e81610578565b50565b61046e83838360016105c9565b505050565b6005546001600160a01b031633146104015760405163118cdaa760e01b815233600482015260240161044c565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610515578181101561050757604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161044c565b61051584848484035f6105c9565b50505050565b6001600160a01b03831661054457604051634b637e8f60e11b81525f600482015260240161044c565b6001600160a01b03821661056d5760405163ec442f0560e01b81525f600482015260240161044c565b61046e83838361069b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166105f25760405163e602df0560e01b81525f600482015260240161044c565b6001600160a01b03831661061b57604051634a1406b160e11b81525f600482015260240161044c565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561051557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161068d91815260200190565b60405180910390a350505050565b325f9081526006602052604090205460ff16156106bd5761046e838383610788565b60075460ff166106fe5760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b604482015260640161044c565b6007545f906001600160a01b038481166101009092041614610720575f610723565b60015b9050801561073657610515848484610788565b8061074657610515848484610788565b6007546001600160a01b03858116610100909204161480159061077c57506007546001600160a01b038481166101009092041614155b15610515576105158484845b6001600160a01b0383166107b2578060025f8282546107a79190610a0b565b909155506108229050565b6001600160a01b0383165f90815260208190526040902054818110156108045760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161044c565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661083e5760028054829003905561085c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516108a191815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461045e575f80fd5b5f8060408385031215610908575f80fd5b8235610913816108e3565b946020939093013593505050565b5f805f60608486031215610933575f80fd5b833561093e816108e3565b9250602084013561094e816108e3565b929592945050506040919091013590565b5f6020828403121561096f575f80fd5b813561097a816108e3565b9392505050565b5f8060408385031215610992575f80fd5b823561099d816108e3565b915060208301356109ad816108e3565b809150509250929050565b600181811c908216806109cc57607f821691505b6020821081036109ea57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610a00575f80fd5b815161097a816108e3565b8082018082111561031057634e487b7160e01b5f52601160045260245ffdfea2646970667358221220c8eaf894e5d6b8706d5e47c616f96265435290d20ed301320af1af74a90fe92d64736f6c63430008190033