[
    {
        "inputs": [],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "blockCycleNumerator",
                "type": "uint256"
            }
        ],
        "name": "InvalidBlockRate",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "exchangeRate",
                "type": "int256"
            }
        ],
        "name": "MarketExchangeRateBelowOne",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "MarketExpired",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "MarketProportionMustNotEqualOne",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "rateScalar",
                "type": "int256"
            }
        ],
        "name": "MarketRateScalarBelowZero",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "int256",
                "name": "totalPt",
                "type": "int256"
            },
            {
                "internalType": "int256",
                "name": "totalAsset",
                "type": "int256"
            }
        ],
        "name": "MarketZeroTotalPtOrTotalAsset",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            },
            {
                "internalType": "uint32",
                "name": "cardinalityRequired",
                "type": "uint32"
            }
        ],
        "name": "TwapDurationTooLarge",
        "type": "error"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "uint8",
                "name": "version",
                "type": "uint8"
            }
        ],
        "name": "Initialized",
        "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": false,
                "internalType": "uint16",
                "name": "newBlockCycleNumerator",
                "type": "uint16"
            }
        ],
        "name": "SetBlockCycleNumerator",
        "type": "event"
    },
    {
        "inputs": [],
        "name": "BLOCK_CYCLE_DENOMINATOR",
        "outputs": [
            {
                "internalType": "uint16",
                "name": "",
                "type": "uint16"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "blockCycleNumerator",
        "outputs": [
            {
                "internalType": "uint16",
                "name": "",
                "type": "uint16"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "claimOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getLpToAssetRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getLpToSyRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getOracleState",
        "outputs": [
            {
                "internalType": "bool",
                "name": "increaseCardinalityRequired",
                "type": "bool"
            },
            {
                "internalType": "uint16",
                "name": "cardinalityRequired",
                "type": "uint16"
            },
            {
                "internalType": "bool",
                "name": "oldestObservationSatisfied",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getPtToAssetRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getPtToSyRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getYtToAssetRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "market",
                "type": "address"
            },
            {
                "internalType": "uint32",
                "name": "duration",
                "type": "uint32"
            }
        ],
        "name": "getYtToSyRate",
        "outputs": [
            {
                "internalType": "uint256",
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint16",
                "name": "_blockCycleNumerator",
                "type": "uint16"
            }
        ],
        "name": "initialize",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "owner",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "pendingOwner",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint16",
                "name": "newBlockCycleNumerator",
                "type": "uint16"
            }
        ],
        "name": "setBlockCycleNumerator",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            },
            {
                "internalType": "bool",
                "name": "direct",
                "type": "bool"
            },
            {
                "internalType": "bool",
                "name": "renounce",
                "type": "bool"
            }
        ],
        "name": "transferOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    }
]
