[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"lender","type":"address"},{"indexed":true,"internalType":"address","name":"replacedLoanOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"replacedAmount","type":"uint256"}],"name":"BuyoutLender","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Close","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralTokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"collateralContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxInterestRate","type":"uint256"},{"indexed":false,"internalType":"address","name":"loanAssetContract","type":"address"},{"indexed":false,"internalType":"bool","name":"allowLoanAmountIncrease","type":"bool"},{"indexed":false,"internalType":"uint256","name":"minLoanAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minDurationSeconds","type":"uint256"}],"name":"CreateLoan","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"lender","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loanAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"durationSeconds","type":"uint256"}],"name":"Lend","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":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"repayer","type":"address"},{"indexed":true,"internalType":"address","name":"loanOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loanAmount","type":"uint256"}],"name":"Repay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"SeizeCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"feeRate","type":"uint32"}],"name":"UpdateOriginationFeeRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"improvementRate","type":"uint256"}],"name":"UpdateRequiredImprovementRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"WithdrawOriginationFees","type":"event"},{"inputs":[],"name":"INTEREST_RATE_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCALAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowTicketContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"},{"internalType":"address","name":"sendCollateralTo","type":"address"}],"name":"closeLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collateralTokenId","type":"uint256"},{"internalType":"address","name":"collateralContractAddress","type":"address"},{"internalType":"uint16","name":"maxPerAnnumInterest","type":"uint16"},{"internalType":"bool","name":"allowLoanAmountIncrease","type":"bool"},{"internalType":"uint128","name":"minLoanAmount","type":"uint128"},{"internalType":"address","name":"loanAssetContractAddress","type":"address"},{"internalType":"uint32","name":"minDurationSeconds","type":"uint32"},{"internalType":"address","name":"mintBorrowTicketTo","type":"address"}],"name":"createLoan","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"}],"name":"interestOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"},{"internalType":"uint16","name":"interestRate","type":"uint16"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint32","name":"durationSeconds","type":"uint32"},{"internalType":"address","name":"sendLendTicketTo","type":"address"}],"name":"lend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lendTicketContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"}],"name":"loanEndSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"loanInfo","outputs":[{"internalType":"bool","name":"closed","type":"bool"},{"internalType":"uint16","name":"perAnnumInterestRate","type":"uint16"},{"internalType":"uint32","name":"durationSeconds","type":"uint32"},{"internalType":"uint40","name":"lastAccumulatedTimestamp","type":"uint40"},{"internalType":"address","name":"collateralContractAddress","type":"address"},{"internalType":"bool","name":"allowLoanAmountIncrease","type":"bool"},{"internalType":"uint88","name":"originationFeeRate","type":"uint88"},{"internalType":"address","name":"loanAssetContractAddress","type":"address"},{"internalType":"uint128","name":"accumulatedInterest","type":"uint128"},{"internalType":"uint128","name":"loanAmount","type":"uint128"},{"internalType":"uint256","name":"collateralTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"}],"name":"loanInfoStruct","outputs":[{"components":[{"internalType":"bool","name":"closed","type":"bool"},{"internalType":"uint16","name":"perAnnumInterestRate","type":"uint16"},{"internalType":"uint32","name":"durationSeconds","type":"uint32"},{"internalType":"uint40","name":"lastAccumulatedTimestamp","type":"uint40"},{"internalType":"address","name":"collateralContractAddress","type":"address"},{"internalType":"bool","name":"allowLoanAmountIncrease","type":"bool"},{"internalType":"uint88","name":"originationFeeRate","type":"uint88"},{"internalType":"address","name":"loanAssetContractAddress","type":"address"},{"internalType":"uint128","name":"accumulatedInterest","type":"uint128"},{"internalType":"uint128","name":"loanAmount","type":"uint128"},{"internalType":"uint256","name":"collateralTokenId","type":"uint256"}],"internalType":"struct INFTLoanFacilitator.Loan","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"originationFeeRate","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"}],"name":"repayAndCloseLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requiredImprovementRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"},{"internalType":"address","name":"sendCollateralTo","type":"address"}],"name":"seizeCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setBorrowTicketContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setLendTicketContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"loanId","type":"uint256"}],"name":"totalOwed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_originationFeeRate","type":"uint32"}],"name":"updateOriginationFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_improvementRate","type":"uint256"}],"name":"updateRequiredImprovementRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawOriginationFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]