[ { "inputs": [ { "internalType": "address", "name": "discountAuthority_", "type": "address" }, { "internalType": "address", "name": "liquidityHub_", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pairAddress", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "isAMM", "type": "bool" } ], "name": "AMMSet", "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": [], "name": "DiscountAuthorityFrozen", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "discountAuthority", "type": "address" } ], "name": "DiscountAuthoritySet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "feeNumerator", "type": "uint256" } ], "name": "FeeNumeratorSet", "type": "event" }, { "anonymous": false, "inputs": [], "name": "LiquidityHubFrozen", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "liquidityHub", "type": "address" } ], "name": "LiquidityHubSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "offRampPair", "type": "address" } ], "name": "OffRampPairSet", "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": [ { "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": "", "type": "address" } ], "name": "ammPair", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "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": "circulatingSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "discountAuthority", "outputs": [ { "internalType": "contract IDiscountAuthority", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "enableTrading", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "feeDenominator", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeNumerator", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "freezeDiscountAuthority", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "freezeLiquidityHub", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "liquidityHub", "outputs": [ { "internalType": "contract ILiquidityHub", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxFeeNumerator", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "offRampPair", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "rescueETH", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "tokenAddress", "type": "address" } ], "name": "rescueTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "ammAddress", "type": "address" }, { "internalType": "bool", "name": "isAMM", "type": "bool" } ], "name": "setAMM", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "discountAuthority_", "type": "address" } ], "name": "setDiscountAuthority", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "feeNumerator_", "type": "uint256" } ], "name": "setFeeNumerator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "liquidityHub_", "type": "address" } ], "name": "setLiquidityHub", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "ammAddress", "type": "address" } ], "name": "setOffRampPair", "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": "amount", "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": "amount", "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" } ]
60806040526102bc600a55610258600b55612710600c553480156200002357600080fd5b506040516200187c3803806200187c833981016040819052620000469162000272565b6040805180820182526003808252622c1ba960e91b60208084018290528451808601909552828552840152737000a09c425abf5173ff458df1370c25d1c5810592906200009483826200034f565b506004620000a382826200034f565b505050620000b7816200011b60201b60201c565b50600680546001600160a01b038085166001600160a01b031992831617909255600780549284169290911691909117905562000113737000a09c425abf5173ff458df1370c25d1c581056a52b7d2dcc80cd2e40000006200016d565b505062000442565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001c85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001dc91906200041b565b90915550506001600160a01b038216600090815260208190526040812080548392906200020b9084906200041b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80516001600160a01b03811681146200026d57600080fd5b919050565b600080604083850312156200028657600080fd5b620002918362000255565b9150620002a16020840162000255565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002d557607f821691505b602082108103620002f657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034a57600081815260208120601f850160051c81016020861015620003255750805b601f850160051c820191505b81811015620003465782815560010162000331565b5050505b505050565b81516001600160401b038111156200036b576200036b620002aa565b62000383816200037c8454620002c0565b84620002fc565b602080601f831160018114620003bb5760008415620003a25750858301515b600019600386901b1c1916600185901b17855562000346565b600085815260208120601f198616915b82811015620003ec57888601518255948401946001909101908401620003cb565b50858210156200040b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082198211156200043d57634e487b7160e01b600052601160045260246000fd5b500190565b61142a80620004526000396000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c80638a8c523c1161010f578063a9d3cd8a116100a2578063dd62ed3e11610071578063dd62ed3e14610409578063e86dea4a1461041c578063f2fde38b14610425578063fbabba221461043857600080fd5b8063a9d3cd8a146103bd578063ab04a6bb146103d0578063abd6aa41146103e3578063be1c7142146103f657600080fd5b806398e2ebbf116100de57806398e2ebbf14610361578063a457c2d714610384578063a45db91114610397578063a9059cbb146103aa57600080fd5b80638a8c523c146103385780638da5cb5b146103405780639358928b1461035157806395d89b411461035957600080fd5b80632559882d116101875780634639139d116101565780634639139d146102e157806370a08231146102f4578063715018a61461031d5780637b31bd781461032557600080fd5b80632559882d1461028c578063313ce5671461029457806334091a43146102a357806339509351146102ce57600080fd5b806318160ddd116101c357806318160ddd1461026157806320331cfc1461026957806320800a001461027157806323b872dd1461027957600080fd5b8062ae3bf8146101f457806306fdde0314610209578063095ea7b314610227578063180b0d7e1461024a575b600080fd5b61020761020236600461116c565b610441565b005b61021161052b565b60405161021e919061118e565b60405180910390f35b61023a6102353660046111e3565b6105bd565b604051901515815260200161021e565b610253600c5481565b60405190815260200161021e565b600254610253565b6102076105d5565b61020761062c565b61023a61028736600461120d565b61068f565b6102076106b3565b6040516012815260200161021e565b6006546102b6906001600160a01b031681565b6040516001600160a01b03909116815260200161021e565b61023a6102dc3660046111e3565b610703565b6007546102b6906001600160a01b031681565b61025361030236600461116c565b6001600160a01b031660009081526020819052604090205490565b610207610725565b6009546102b6906001600160a01b031681565b610207610739565b6005546001600160a01b03166102b6565b61025361076a565b6102116107d4565b61023a61036f36600461116c565b60086020526000908152604090205460ff1681565b61023a6103923660046111e3565b6107e3565b6102076103a5366004611249565b610863565b61023a6103b83660046111e3565b6108b5565b6102076103cb366004611270565b6108c3565b6102076103de36600461116c565b61092a565b6102076103f136600461116c565b610991565b61020761040436600461116c565b6109f3565b6102536104173660046112a7565b610a45565b610253600b5481565b61020761043336600461116c565b610a70565b610253600a5481565b6007546040516370a0823160e01b81523060048201526001600160a01b038381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015610494573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b891906112da565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610503573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052791906112f3565b5050565b60606003805461053a90611310565b80601f016020809104026020016040519081016040528092919081815260200182805461056690611310565b80156105b35780601f10610588576101008083540402835291602001916105b3565b820191906000526020600020905b81548152906001019060200180831161059657829003601f168201915b5050505050905090565b6000336105cb818585610ae6565b5060019392505050565b6105dd610c0a565b600d54610100900460ff16156105f257600080fd5b600d805461ff0019166101001790556040517f4d344c8b0016d5807caec92f09a154f1cfc026110a8106ccbe2dceff0317355d90600090a1565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610679576040519150601f19603f3d011682016040523d82523d6000602084013e61067e565b606091505b505090508061068c57600080fd5b50565b60003361069d858285610c73565b6106a8858585610ced565b506001949350505050565b6106bb610c0a565b600d5460ff16156106cb57600080fd5b600d805460ff191660011790556040517f527064e85a8453752e55610dd634b6ee8cd80307b0ea3f0eed8c1f7ca2696f8e90600090a1565b6000336105cb8185856107168383610a45565b6107209190611360565b610ae6565b61072d610c0a565b6107376000610f2f565b565b610741610c0a565b600d5462010000900460ff161561075757600080fd5b600d805462ff0000191662010000179055565b600060208190527f44ad89ba62b98ff34f51403ac22759b55759460c0bb5521eb4b6ee3cff49cf83548180527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5546002546107c59190611378565b6107cf9190611378565b905090565b60606004805461053a90611310565b600033816107f18286610a45565b9050838110156108565760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106a88286868403610ae6565b61086b610c0a565b600a5481111561087a57600080fd5b600b8190556040518181527fc1bcceddd77fdc95a8da9bec5802d2e0bb564dd02c0730222d8e12030bd910439060200160405180910390a150565b6000336105cb818585610ced565b6108cb610c0a565b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915591519182527f52f7750de642e169ff687a199cc8453a96d938130a797c0a11ea42a4d1659d87910160405180910390a25050565b610932610c0a565b600d54610100900460ff161561094757600080fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517fd3c93458b0ffb1a51466cc4b7fcda74d245ef1c6bdfe9e111609eea5afcae4c990600090a250565b610999610c0a565b600d5460ff16156109a957600080fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040517f03694a956320a0c277498a931248855f5ef47143cabe91ec33fc0a4393bb774e90600090a250565b6109fb610c0a565b600980546001600160a01b0319166001600160a01b0383169081179091556040517f205890426c74334fba9f3d65990e94e55dac01584e054394ab50173c4a01da2d90600090a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a78610c0a565b6001600160a01b038116610add5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084d565b61068c81610f2f565b6001600160a01b038316610b485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b6001600160a01b038216610ba95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161084d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b33610c1d6005546001600160a01b031690565b6001600160a01b0316146107375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084d565b6000610c7f8484610a45565b90506000198114610ce75781811015610cda5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161084d565b610ce78484848403610ae6565b50505050565b600d5462010000900460ff1680610d1157506005546001600160a01b038481169116145b610d1a57600080fd5b60075481906001600160a01b0385811691161480610d4557506007546001600160a01b038481169116145b15610d5557610ce7848484610f81565b6001600160a01b03831660009081526008602052604090205460ff1680610d9457506001600160a01b03841660009081526008602052604090205460ff165b15610eb0576001600160a01b03831660009081526008602052604081205460ff1615610dc1575083610dc4565b50825b6006546040516305666bad60e11b81526001600160a01b0383811660048301526000928392911690630accd75a906024016040805180830381865afa158015610e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e35919061138f565b9150915080821180610e45575080155b15610e51575060019050805b600081600c5484600b5489610e6691906113b3565b610e7091906113b3565b610e7a91906113d2565b610e8491906113d2565b600754909150610e9f9089906001600160a01b031683610f81565b610ea98187611378565b9450505050505b6009546001600160a01b0390811690841603610f24576007546040516330ac175560e11b81523060048201526001600160a01b03909116906361582eaa90602401600060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b505050505b610ce7848483610f81565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610fe55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161084d565b6001600160a01b0382166110475760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161084d565b6001600160a01b038316600090815260208190526040902054818110156110bf5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161084d565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110f6908490611360565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161114291815260200190565b60405180910390a350505050565b80356001600160a01b038116811461116757600080fd5b919050565b60006020828403121561117e57600080fd5b61118782611150565b9392505050565b600060208083528351808285015260005b818110156111bb5785810183015185820160400152820161119f565b818111156111cd576000604083870101525b50601f01601f1916929092016040019392505050565b600080604083850312156111f657600080fd5b6111ff83611150565b946020939093013593505050565b60008060006060848603121561122257600080fd5b61122b84611150565b925061123960208501611150565b9150604084013590509250925092565b60006020828403121561125b57600080fd5b5035919050565b801515811461068c57600080fd5b6000806040838503121561128357600080fd5b61128c83611150565b9150602083013561129c81611262565b809150509250929050565b600080604083850312156112ba57600080fd5b6112c383611150565b91506112d160208401611150565b90509250929050565b6000602082840312156112ec57600080fd5b5051919050565b60006020828403121561130557600080fd5b815161118781611262565b600181811c9082168061132457607f821691505b60208210810361134457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113735761137361134a565b500190565b60008282101561138a5761138a61134a565b500390565b600080604083850312156113a257600080fd5b505080516020909101519092909150565b60008160001904831182151516156113cd576113cd61134a565b500290565b6000826113ef57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220e5c8b25d8454e1066c848f3918bc2474045640a58ce94b165ff2ec055239498664736f6c634300080f0033000000000000000000000000712bc6ddcd97a776b2482531058c629456b93eda000000000000000000000000712a166e741405fcb9815aa5c3442f2cd3328ebb
Loading