Skip to main content

StaleCallableCreditLine

StaleCallableCreditLine

struct StaleCallableCreditLine {
struct CallableCreditLine _cl;
}

StaleCallableCreditLineLogic

Simple wrapper around CallableCreditLine which returns a checkpointed CallableCreditLine after checkpoint() is called.

initialize

function initialize(struct StaleCallableCreditLine cl, contract IGoldfinchConfig _config, uint256 _fundableAt, uint256 _numLockupPeriods, contract ISchedule _schedule, uint256 _interestApr, uint256 _lateAdditionalApr, uint256 _limit) internal

checkpoint

function checkpoint(struct StaleCallableCreditLine cl) internal returns (struct CallableCreditLine)

schedule

function schedule(struct StaleCallableCreditLine cl) internal view returns (contract ISchedule)

termStartTime

function termStartTime(struct StaleCallableCreditLine cl) internal view returns (uint256)

lastFullPaymentTime

function lastFullPaymentTime(struct StaleCallableCreditLine cl) internal view returns (uint256)

fundableAt

function fundableAt(struct StaleCallableCreditLine cl) internal view returns (uint256)

limit

function limit(struct StaleCallableCreditLine cl) internal view returns (uint256)

interestApr

function interestApr(struct StaleCallableCreditLine cl) internal view returns (uint256)

lateAdditionalApr

function lateAdditionalApr(struct StaleCallableCreditLine cl) internal view returns (uint256)

isLate

function isLate(struct StaleCallableCreditLine cl) internal view returns (bool)

loanPhase

function loanPhase(struct StaleCallableCreditLine cl) internal view returns (enum LoanPhase)

checkpointedAsOf

function checkpointedAsOf(struct StaleCallableCreditLine cl) internal view returns (uint256)

numLockupPeriods

function numLockupPeriods(struct StaleCallableCreditLine cl) internal view returns (uint256)

inLockupPeriod

function inLockupPeriod(struct StaleCallableCreditLine cl) internal view returns (bool)

interestOwed

function interestOwed(struct StaleCallableCreditLine cl) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

principalOwed

function principalOwed(struct StaleCallableCreditLine cl) internal view returns (uint256)

interestOwedAt

function interestOwedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

principalOwedAt

function principalOwedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

totalInterestOwedAt

function totalInterestOwedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

totalPrincipalOwedAt

function totalPrincipalOwedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

totalInterestOwed

function totalInterestOwed(struct StaleCallableCreditLine cl) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

totalPrincipalDeposited

function totalPrincipalDeposited(struct StaleCallableCreditLine cl) internal view returns (uint256)

totalPrincipalOwed

function totalPrincipalOwed(struct StaleCallableCreditLine cl) internal view returns (uint256)

totalPrincipalOutstanding

function totalPrincipalOutstanding(struct StaleCallableCreditLine cl) internal view returns (uint256)

nextInterestDueTimeAt

function nextInterestDueTimeAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

nextPrincipalDueTime

function nextPrincipalDueTime(struct StaleCallableCreditLine cl) internal view returns (uint256)

nextDueTimeAt

function nextDueTimeAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

nextDueTime

function nextDueTime(struct StaleCallableCreditLine cl) internal view returns (uint256)

termEndTime

function termEndTime(struct StaleCallableCreditLine cl) internal view returns (uint256)

proportionalCallablePrincipal

function proportionalCallablePrincipal(struct StaleCallableCreditLine cl, uint256 trancheId, uint256 principalDeposited) internal view returns (uint256)

proportionalInterestAndPrincipalAvailable

function proportionalInterestAndPrincipalAvailable(struct StaleCallableCreditLine cl, uint256 trancheId, uint256 principal, uint256 feePercent) internal view returns (uint256, uint256)

totalInterestAccrued

function totalInterestAccrued(struct StaleCallableCreditLine cl) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

totalInterestAccruedAt

function totalInterestAccruedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

interestAccrued

function interestAccrued(struct StaleCallableCreditLine cl) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

interestAccruedAt

function interestAccruedAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

If a checkpoint has not occurred, late fees may be overestimated beyond the next due time.

totalInterestPaid

function totalInterestPaid(struct StaleCallableCreditLine cl) internal view returns (uint256)

totalPrincipalPaidAt

function totalPrincipalPaidAt(struct StaleCallableCreditLine cl, uint256 timestamp) internal view returns (uint256)

totalPrincipalPaid

function totalPrincipalPaid(struct StaleCallableCreditLine cl) internal view returns (uint256)

withinPrincipalGracePeriod

function withinPrincipalGracePeriod(struct StaleCallableCreditLine cl) internal view returns (bool)

uncalledCapitalTrancheIndex

function uncalledCapitalTrancheIndex(struct StaleCallableCreditLine cl) internal view returns (uint256)

getSettledTrancheInfo

function getSettledTrancheInfo(struct StaleCallableCreditLine cl, uint256 trancheId) internal view returns (struct SettledTrancheInfo)