Skip to main content

locking-snapshots-examples

Examples demonstrating rules for locking snapshots

A snapshot is locked if...

  • A previous snapshot's cumulativeInterestOwed is less than totalInterestPaid
  • A previous snapshot's cumulativePrincipalOwed is less than totalPrincipalPaid

Another way of thinking about is a snapshot is locked if... Paid amounts have exceeded the preceding snapshot's requirements (meaning this snapshot has been allocated toward)

Example 1 - All snapshots locked

totalInterestPaid = 30 totalPrincipalPaid = 40

SnapshotcumulativeInterestOwedcumulativePrincipalOwedtotalInterestPaidtotalPrincipalPaidLocked
100< 30 🔒⬇️< 40 🔒⬇️YES 🔒
21020< 30 🔒⬇️< 40 🔒⬇️YES 🔒
34030> 30 🔒< 40 🔒⬇️YES 🔒

Example 2 - Last snapshot is locked due to previous snapshot interestOwed < totalInterestPaid

totalInterestPaid = 30 totalPrincipalPaid = 20

SnapshotcumulativeInterestOwedcumulativePrincipalOwedtotalInterestPaidtotalPrincipalPaidLocked
100< 30 🔒⬇️< 20 🔒⬇️YES 🔒
21030< 30 🔒⬇️> 20 🔒YES 🔒
34050> 30 🔒> 20 🕊️YES 🔒

Example 3 - Last snapshot is locked due to previous snapshot principalOwed < totalPrincipalPaid

totalInterestPaid = 20 totalPrincipalPaid = 40

SnapshotcumulativeInterestOwedcumulativePrincipalOwedtotalInterestPaidtotalPrincipalPaidLocked
100< 20 🔒⬇️< 40 🔒⬇️YES 🔒
23030> 20 🔒< 40 🔒⬇️YES 🔒
34050> 20 🕊️> 40 🔒YES 🔒

Example 4 - Last snapshot is not locked

totalInterestPaid = 30 totalPrincipalPaid = 40

SnapshotcumulativeInterestOwedcumulativePrincipalOwedtotalInterestPaidtotalPrincipalPaidLocked
100< 30 🔒⬇️< 40 🔒⬇️YES 🔒
24050> 30 🔒> 40 🔒YES 🔒
35060> 30 🕊️> 40 🕊️NO 🕊️