[{"inputs":[],"name":"FP_SCALING_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTEREST_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_PER_YEAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"interestOwed","type":"uint256"},{"internalType":"uint256","name":"principalOwed","type":"uint256"}],"name":"allocatePayment","outputs":[{"components":[{"internalType":"uint256","name":"interestPayment","type":"uint256"},{"internalType":"uint256","name":"principalPayment","type":"uint256"},{"internalType":"uint256","name":"additionalBalancePayment","type":"uint256"}],"internalType":"struct Accountant.PaymentAllocation","name":"","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract ICreditLine","name":"cl","type":"ICreditLine"}],"name":"calculateAmountOwedForOneDay","outputs":[{"components":[{"internalType":"uint256","name":"rawValue","type":"uint256"}],"internalType":"struct FixedPoint.Unsigned","name":"interestOwed","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract CreditLine","name":"cl","type":"CreditLine"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"lateFeeGracePeriodInDays","type":"uint256"}],"name":"calculateInterestAccrued","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract CreditLine","name":"cl","type":"CreditLine"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"lateFeeGracePeriodInDays","type":"uint256"}],"name":"calculateInterestAccruedOverPeriod","outputs":[{"internalType":"uint256","name":"interestOwed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract CreditLine","name":"cl","type":"CreditLine"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"lateFeeGracePeriod","type":"uint256"}],"name":"calculateInterestAndPrincipalAccrued","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract CreditLine","name":"cl","type":"CreditLine"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"lateFeeGracePeriod","type":"uint256"}],"name":"calculateInterestAndPrincipalAccruedOverPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICreditLine","name":"cl","type":"ICreditLine"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"calculatePrincipalAccrued","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICreditLine","name":"cl","type":"ICreditLine"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"gracePeriodInDays","type":"uint256"},{"internalType":"uint256","name":"maxDaysLate","type":"uint256"}],"name":"calculateWritedownFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ICreditLine","name":"cl","type":"ICreditLine"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"gracePeriodInDays","type":"uint256"},{"internalType":"uint256","name":"maxDaysLate","type":"uint256"}],"name":"calculateWritedownForPrincipal","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract CreditLine","name":"cl","type":"CreditLine"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"gracePeriodInDays","type":"uint256"}],"name":"lateFeeApplicable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]