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