[{"inputs":[{"internalType":"address","name":"_ytCreationCodeContractA","type":"address"},{"internalType":"uint256","name":"_ytCreationCodeSizeA","type":"uint256"},{"internalType":"address","name":"_ytCreationCodeContractB","type":"address"},{"internalType":"uint256","name":"_ytCreationCodeSizeB","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"interestFeeRate","type":"uint256"},{"internalType":"uint256","name":"maxInterestFeeRate","type":"uint256"}],"name":"YCFactoryInterestFeeRateTooHigh","type":"error"},{"inputs":[],"name":"YCFactoryInvalidExpiry","type":"error"},{"inputs":[{"internalType":"uint256","name":"newRewardFeeRate","type":"uint256"},{"internalType":"uint256","name":"maxRewardFeeRate","type":"uint256"}],"name":"YCFactoryRewardFeeRateTooHigh","type":"error"},{"inputs":[],"name":"YCFactoryYieldContractExisted","type":"error"},{"inputs":[],"name":"YCFactoryZeroExpiryDivisor","type":"error"},{"inputs":[],"name":"YCFactoryZeroTreasury","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"SY","type":"address"},{"indexed":true,"internalType":"uint256","name":"expiry","type":"uint256"},{"indexed":false,"internalType":"address","name":"PT","type":"address"},{"indexed":false,"internalType":"address","name":"YT","type":"address"}],"name":"CreateYieldContract","type":"event"},{"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":"uint256","name":"newExpiryDivisor","type":"uint256"}],"name":"SetExpiryDivisor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newInterestFeeRate","type":"uint256"}],"name":"SetInterestFeeRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRewardFeeRate","type":"uint256"}],"name":"SetRewardFeeRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"treasury","type":"address"}],"name":"SetTreasury","type":"event"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"SY","type":"address"},{"internalType":"uint32","name":"expiry","type":"uint32"},{"internalType":"bool","name":"doCacheIndexSameBlock","type":"bool"}],"name":"createYieldContract","outputs":[{"internalType":"address","name":"PT","type":"address"},{"internalType":"address","name":"YT","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"expiryDivisor","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"getPT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"getYT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"_expiryDivisor","type":"uint96"},{"internalType":"uint128","name":"_interestFeeRate","type":"uint128"},{"internalType":"uint128","name":"_rewardFeeRate","type":"uint128"},{"internalType":"address","name":"_treasury","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"interestFeeRate","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isYT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxInterestFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRewardFeeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"rewardFeeRate","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"newExpiryDivisor","type":"uint96"}],"name":"setExpiryDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newInterestFeeRate","type":"uint128"}],"name":"setInterestFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"newRewardFeeRate","type":"uint128"}],"name":"setRewardFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"setTreasury","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"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ytCreationCodeContractA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ytCreationCodeContractB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ytCreationCodeSizeA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ytCreationCodeSizeB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]