- Published on
Daily Interest Calculation
- Authors
- Name
- Clynto Inc.
- @helloClynto
Daily Interest Calculation
Overview
This guide provides a detailed explanation of how to calculate daily interest on the protocol for each lender in a given borrower pool. The goal is to determine the total amount owed and the total interest accrued over time.
Definitions
- Annual Percentage Rate (APR): The yearly interest rate expressed as a percentage.
- Daily Rate: The daily interest rate calculated from the APR.
- Investment Amount: The amount of money each lender contributes to the loan.
- Total Loan Amount: The sum of the initial loan amount and the accrued interest over time.
- Total Amount Owed to Date: Sum of the initial loan amount and all accrued daily interest.
- Total Interest Accrued to Date: Sum of daily interests accrued over the period.
- Liquidation Point: Governance-driven % that represents the maximum allowed LTV at any given point
- Investment APR: Investment Amount / Requested Amount * Max Tier Interest Rate
- Loan-to-Value (LTV) Ratio: The ratio of the loan amount to the collateral value.
Formulas
Convert APR to Daily Rate: Daily Rate=365APR
Calculate Daily Interest: Daily Interest = Investment Amount × Daily Rate
Accumulate Daily Interest:Total Daily Interest=∑(Daily Interest for each Lender)
Update Total Loan
Recalculate LTV
Example Calculations
Initial Loan Details
- Collateral Value: $10,000
- Requested Amount: $5,000
- Initial LTV: 50%
- Total Pool APR: 70%
Lender Contributions and APRs
Lender X:
- Investment Amount: $2,000
- APR: 28% (Max → )
- Daily Rate:
- Daily Interest: \text {2000×0.000767}≈\1.5342000$
Lender Y:
- Investment Amount: $1,500
- APR: 21%
- Daily Rate:
- Daily Interest: \text {1500×0.000575}≈\0.8625$
Lender Z:
- Investment Amount: $1,500
- APR: 21%
- Daily Rate:
- Daily Interest: \text {1500×0.000575}≈\0.8625$
Total Daily Interest
\text{Total Daily Interest} = \1.534 + $0.8625 + $0.8625 = $3.259$
Daily Calculation Process
- Day 1:
Previous Loan Amount: $5,000
Total Daily Interest: $3.259
New Total Loan Amount: 3.259 = $5,003.26
New LTV:
- Day 2:
- Previous Loan Amount: $5,003.26
- Total Daily Interest: $3.259
- New Total Loan Amount: 3.259 = $5,006.52
- New LTV:
- Continue Daily Calculation:
- Adding the total daily interest to the previous loan amount and recalculating the LTV until it reaches 100% (Or liquidation point defined by the Governance)