[ { "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" } ]
6080604052600880546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790915560098054909116731f98431c8ad98523631ae4a59f267346ea31f98417905564e8990a4600600a55348015610060575f80fd5b50336040518060600160405280602381526020016110d660239139604080518082019091526008815267486f6c6479446f6760c01b602082015260036100a68382610475565b5060046100b38282610475565b5050506001600160a01b0381166100e457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100ed81610137565b50335f818152600660205260409020805460ff1916600117905561013290610113601290565b61011e90600a61062a565b61012d9064174876e80061063f565b610188565b610669565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166101b15760405163ec442f0560e01b81525f60048201526024016100db565b6101bc5f83836101c0565b5050565b325f9081526006602052604090205460ff16156101e7576101e28383836102b8565b505050565b60075460ff166102285760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b60448201526064016100db565b6007545f906001600160a01b03848116610100909204161461024a575f61024d565b60015b90508015610266576102608484846102b8565b50505050565b80610276576102608484846102b8565b6007546001600160a01b0385811661010090920416148015906102ac57506007546001600160a01b038481166101009092041614155b15610260576102608484845b6001600160a01b0383166102e2578060025f8282546102d79190610656565b909155506103529050565b6001600160a01b0383165f90815260208190526040902054818110156103345760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100db565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661036e5760028054829003905561038c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516103d191815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061040657607f821691505b60208210810361042457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156101e257805f5260205f20601f840160051c8101602085101561044f5750805b601f840160051c820191505b8181101561046e575f815560010161045b565b5050505050565b81516001600160401b0381111561048e5761048e6103de565b6104a28161049c84546103f2565b8461042a565b602080601f8311600181146104d5575f84156104be5750858301515b5f19600386901b1c1916600185901b17855561052c565b5f85815260208120601f198616915b82811015610503578886015182559484019460019091019084016104e4565b508582101561052057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561058257815f190482111561056857610568610534565b8085161561057557918102915b93841c939080029061054d565b509250929050565b5f8261059857506001610624565b816105a457505f610624565b81600181146105ba57600281146105c4576105e0565b6001915050610624565b60ff8411156105d5576105d5610534565b50506001821b610624565b5060208310610133831016604e8410600b8410161715610603575081810a610624565b61060d8383610548565b805f190482111561062057610620610534565b0290505b92915050565b5f61063860ff84168361058a565b9392505050565b808202811582820484141761062457610624610534565b8082018082111561062457610624610534565b610a60806106765f395ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c8063715018a611610093578063a9059cbb11610063578063a9059cbb146101fc578063ad5c46481461020f578063dd62ed3e14610222578063f2fde38b1461025a575f80fd5b8063715018a6146101af5780638da5cb5b146101b757806395d89b41146101dc578063a8aa1b31146101e4575f80fd5b806323b872dd116100ce57806323b872dd1461015c578063313ce5671461016f5780636c9e49901461017e57806370a0823114610187575f80fd5b806306fdde03146100ff578063095ea7b31461011d5780630f8540e41461014057806318160ddd1461014a575b5f80fd5b61010761026d565b60405161011491906108ae565b60405180910390f35b61013061012b3660046108f7565b6102fd565b6040519015158152602001610114565b610148610316565b005b6002545b604051908152602001610114565b61013061016a366004610921565b6103cd565b60405160128152602001610114565b61014e600a5481565b61014e61019536600461095f565b6001600160a01b03165f9081526020819052604090205490565b6101486103f0565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610114565b610107610403565b6007546101c49061010090046001600160a01b031681565b61013061020a3660046108f7565b610412565b6008546101c4906001600160a01b031681565b61014e610230366004610981565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61014861026836600461095f565b61041f565b60606003805461027c906109b8565b80601f01602080910402602001604051908101604052809291908181526020018280546102a8906109b8565b80156102f35780601f106102ca576101008083540402835291602001916102f3565b820191905f5260205f20905b8154815290600101906020018083116102d657829003601f168201915b5050505050905090565b5f3361030a818585610461565b60019150505b92915050565b61031e610473565b600954600854604051630b4c774160e11b81523060048201526001600160a01b0391821660248201526064604482018190529190921691631698ee829101602060405180830381865afa158015610377573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039b91906109f0565b6007805460ff196001600160a01b039390931661010002929092166001600160a81b0319909216919091176001179055565b5f336103da8582856104a0565b6103e585858561051b565b506001949350505050565b6103f8610473565b6104015f610578565b565b60606004805461027c906109b8565b5f3361030a81858561051b565b610427610473565b6001600160a01b03811661045557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61045e81610578565b50565b61046e83838360016105c9565b505050565b6005546001600160a01b031633146104015760405163118cdaa760e01b815233600482015260240161044c565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610515578181101561050757604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161044c565b61051584848484035f6105c9565b50505050565b6001600160a01b03831661054457604051634b637e8f60e11b81525f600482015260240161044c565b6001600160a01b03821661056d5760405163ec442f0560e01b81525f600482015260240161044c565b61046e83838361069b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166105f25760405163e602df0560e01b81525f600482015260240161044c565b6001600160a01b03831661061b57604051634a1406b160e11b81525f600482015260240161044c565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561051557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161068d91815260200190565b60405180910390a350505050565b325f9081526006602052604090205460ff16156106bd5761046e838383610788565b60075460ff166106fe5760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b604482015260640161044c565b6007545f906001600160a01b038481166101009092041614610720575f610723565b60015b9050801561073657610515848484610788565b8061074657610515848484610788565b6007546001600160a01b03858116610100909204161480159061077c57506007546001600160a01b038481166101009092041614155b15610515576105158484845b6001600160a01b0383166107b2578060025f8282546107a79190610a0b565b909155506108229050565b6001600160a01b0383165f90815260208190526040902054818110156108045760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161044c565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661083e5760028054829003905561085c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516108a191815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461045e575f80fd5b5f8060408385031215610908575f80fd5b8235610913816108e3565b946020939093013593505050565b5f805f60608486031215610933575f80fd5b833561093e816108e3565b9250602084013561094e816108e3565b929592945050506040919091013590565b5f6020828403121561096f575f80fd5b813561097a816108e3565b9392505050565b5f8060408385031215610992575f80fd5b823561099d816108e3565b915060208301356109ad816108e3565b809150509250929050565b600181811c908216806109cc57607f821691505b6020821081036109ea57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610a00575f80fd5b815161097a816108e3565b8082018082111561031057634e487b7160e01b5f52601160045260245ffdfea264697066735822122007e777f3164fcb589840a1befae697aec18454675fc15f567648bcc5d6b5226b64736f6c63430008190033486f6c6479446f6720616e20656d6f6a692066617374206465706c6f79657220626f74