[ { "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": "AMM", "type": "address" } ], "name": "InvalidAMM", "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": "AMM", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "isAMM", "type": "bool" } ], "name": "AMMUpdated", "type": "event" }, { "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": "OwnershipTransferStarted", "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": "routerV2", "type": "address" } ], "name": "RouterV2Updated", "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": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "AMMs", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_router", "type": "address" } ], "name": "afterConstructor", "outputs": [], "stateMutability": "nonpayable", "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": [ { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "burnFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "pure", "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": "pairV2", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "routerV2", "outputs": [ { "internalType": "contract IUniswapV2Router02", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "AMM", "type": "address" }, { "internalType": "bool", "name": "isAMM", "type": "bool" } ], "name": "setAMM", "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" } ]
608060405234801561000f575f80fd5b50336040518060400160405280600d81526020016c11dbdb190814dd185b99185c99609a1b815250604051806040016040528060038152602001622120a960e91b81525081600390816100629190610393565b50600461006f8282610393565b5050506001600160a01b0381166100a057604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100a98161010f565b5073e3847379fc091e7886308018479af5945c7657d46100ec81600a6100d0601282610548565b6100dd906298967661055d565b6100e79190610574565b61012b565b61010973e3847379fc091e7886308018479af5945c7657d461010f565b506105a6565b600680546001600160a01b031916905561012881610163565b50565b6001600160a01b0382166101545760405163ec442f0560e01b81525f6004820152602401610097565b61015f5f83836101b4565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6101bf8383836101d6565b6101d18383836001600160e01b038416565b505050565b6001600160a01b038316610200578060025f8282546101f59190610593565b909155506102709050565b6001600160a01b0383165f90815260208190526040902054818110156102525760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610097565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661028c576002805482900390556102aa565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516102ef91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061032457607f821691505b60208210810361034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156101d157805f5260205f20601f840160051c8101602085101561036d5750805b601f840160051c820191505b8181101561038c575f8155600101610379565b5050505050565b81516001600160401b038111156103ac576103ac6102fc565b6103c0816103ba8454610310565b84610348565b602080601f8311600181146103f3575f84156103dc5750858301515b5f19600386901b1c1916600185901b17855561044a565b5f85815260208120601f198616915b8281101561042157888601518255948401946001909101908401610402565b508582101561043e57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156104a057815f190482111561048657610486610452565b8085161561049357918102915b93841c939080029061046b565b509250929050565b5f826104b657506001610542565b816104c257505f610542565b81600181146104d857600281146104e2576104fe565b6001915050610542565b60ff8411156104f3576104f3610452565b50506001821b610542565b5060208310610133831016604e8410600b8410161715610521575081810a610542565b61052b8383610466565b805f190482111561053e5761053e610452565b0290505b92915050565b5f61055660ff8416836104a8565b9392505050565b808202811582820484141761054257610542610452565b5f8261058e57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561054257610542610452565b610e14806105b35f395ff3fe608060405234801561000f575f80fd5b5060043610610132575f3560e01c8063715018a6116100b457806395d89b411161007957806395d89b411461028f578063a9059cbb14610297578063a9d3cd8a146102aa578063dd62ed3e146102bd578063e30c3978146102f5578063f2fde38b14610306575f80fd5b8063715018a61461024857806379ba50971461025057806379cc6790146102585780638da5cb5b1461026b5780638fffabed1461027c575f80fd5b806323b872dd116100fa57806323b872dd146101c0578063313ce567146101d357806342966c68146101e2578063502f7446146101f557806370a0823114610220575f80fd5b806306fdde0314610136578063095ea7b31461015457806318160ddd1461017757806318533a0d146101895780631e9fe6c61461019e575b5f80fd5b61013e610319565b60405161014b9190610c1b565b60405180910390f35b610167610162366004610c64565b6103a9565b604051901515815260200161014b565b6002545b60405190815260200161014b565b61019c610197366004610c8e565b6103c2565b005b6101676101ac366004610c8e565b60096020525f908152604090205460ff1681565b6101676101ce366004610cb0565b610497565b6040516012815260200161014b565b61019c6101f0366004610cee565b6104ba565b600754610208906001600160a01b031681565b6040516001600160a01b03909116815260200161014b565b61017b61022e366004610c8e565b6001600160a01b03165f9081526020819052604090205490565b61019c6104c7565b61019c6104da565b61019c610266366004610c64565b61051b565b6005546001600160a01b0316610208565b600854610208906001600160a01b031681565b61013e610530565b6101676102a5366004610c64565b61053f565b61019c6102b8366004610d05565b61054c565b61017b6102cb366004610d40565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6006546001600160a01b0316610208565b61019c610314366004610c8e565b6105b0565b60606003805461032890610d6c565b80601f016020809104026020016040519081016040528092919081815260200182805461035490610d6c565b801561039f5780601f106103765761010080835404028352916020019161039f565b820191905f5260205f20905b81548152906001019060200180831161038257829003601f168201915b5050505050905090565b5f336103b6818585610621565b60019150505b92915050565b600654600160a81b900460ff16806103e45750600654600160a01b900460ff16155b61044c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600654600160a81b900460ff16158015610476576006805461ffff60a01b191661010160a01b1790555b61047f82610633565b8015610493576006805460ff60a81b191690555b5050565b5f336104a4858285610817565b6104af858585610892565b506001949350505050565b6104c433826108ef565b50565b6104cf610923565b6104d85f610950565b565b60065433906001600160a01b031681146105125760405163118cdaa760e01b81526001600160a01b0382166004820152602401610443565b6104c481610950565b610526823383610817565b61049382826108ef565b60606004805461032890610d6c565b5f336103b6818585610892565b610554610923565b6008546001600160a01b038381169116148061057d57506007546001600160a01b038381169116145b156105a65760405163435eaf7b60e11b81526001600160a01b0383166004820152602401610443565b6104938282610969565b6105b8610923565b600680546001600160a01b0383166001600160a01b031990911681179091556105e96005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61062e83838360016109c7565b505050565b600780546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801561068a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ae9190610da4565b6001600160a01b031663c9c653963060075f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561070d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107319190610da4565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801561077b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061079f9190610da4565b600880546001600160a01b0319166001600160a01b03929092169190911790556107ca816001610969565b6008546107e1906001600160a01b03166001610969565b6040516001600160a01b038216907fbc052db65df144ad4f71f02da93cae3d4401104c30ac374d7cc10d87ee07b602905f90a250565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811461088c578181101561087e57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610443565b61088c84848484035f6109c7565b50505050565b6001600160a01b0383166108bb57604051634b637e8f60e11b81525f6004820152602401610443565b6001600160a01b0382166108e45760405163ec442f0560e01b81525f6004820152602401610443565b61062e838383610a99565b6001600160a01b03821661091857604051634b637e8f60e11b81525f6004820152602401610443565b610493825f83610a99565b6005546001600160a01b031633146104d85760405163118cdaa760e01b8152336004820152602401610443565b600680546001600160a01b03191690556104c481610aa4565b6001600160a01b0382165f81815260096020908152604091829020805460ff191685151590811790915591519182527f2cc8631dda80fe178488d3174721fafacf84b0f194a7eddae85c9bcc599ac78b910160405180910390a25050565b6001600160a01b0384166109f05760405163e602df0560e01b81525f6004820152602401610443565b6001600160a01b038316610a1957604051634a1406b160e11b81525f6004820152602401610443565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561088c57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a8b91815260200190565b60405180910390a350505050565b61062e838383610af5565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038316610b1f578060025f828254610b149190610dbf565b90915550610b8f9050565b6001600160a01b0383165f9081526020819052604090205481811015610b715760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610443565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610bab57600280548290039055610bc9565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c0e91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146104c4575f80fd5b5f8060408385031215610c75575f80fd5b8235610c8081610c50565b946020939093013593505050565b5f60208284031215610c9e575f80fd5b8135610ca981610c50565b9392505050565b5f805f60608486031215610cc2575f80fd5b8335610ccd81610c50565b92506020840135610cdd81610c50565b929592945050506040919091013590565b5f60208284031215610cfe575f80fd5b5035919050565b5f8060408385031215610d16575f80fd5b8235610d2181610c50565b915060208301358015158114610d35575f80fd5b809150509250929050565b5f8060408385031215610d51575f80fd5b8235610d5c81610c50565b91506020830135610d3581610c50565b600181811c90821680610d8057607f821691505b602082108103610d9e57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610db4575f80fd5b8151610ca981610c50565b808201808211156103bc57634e487b7160e01b5f52601160045260245ffdfea264697066735822122025be908790b6c091f7bda29b258c01ce2722296aafaefe568709bd9b43d5bbf464736f6c63430008190033