Interest Fees
How Interest Fees Work
Interest in Baker DAO works differently from traditional loans. Here's a comprehensive explanation of how the interest fee mechanism functions:
Basic Interest Calculation
The standard interest calculation follows this formula:
Where:
INTEREST_APR_BPS
is the annual interest rate in basis points (690 BPS = 6.9%)BPS_DENOMINATOR
is 10,000 (standard basis point denominator)Loan Duration in Days
is your selected loan term
For example, if you borrow 100 BERA for 30 days:
The Minimum Interest Fee Mechanism
Baker DAO implements a minimum interest fee to ensure that the borrowing system cannot be exploited to bypass the burn fee. This is based on the smart contract function:
Let's break down what this means:
The function first calculates a standard interest fee based on APR and duration
It then calculates the over-collateralization amount (the 1% buffer between the loan and collateral)
It determines what the burn fee would be if the user burned both the borrowed amount and the over-collateralization
Finally, it compares these values to determine the appropriate interest fee
How the Minimum Fee Works in Practice
The protocol ensures that taking a short-term loan and defaulting isn't cheaper than simply burning BREAD tokens. Here's how:
Standard Case: If the regular interest calculation (6.9% APR pro-rated for your loan duration) results in an interest fee higher than the minimum threshold, this standard interest is applied.
Minimum Fee Case: If the regular interest calculation would result in a fee lower than the minimum threshold, the fee is increased to the minimum.
The minimum fee is calculated as:
Where:
Burn Fee
is the cost of burning the equivalent amount of BREAD (2.69% of value)Over-collateralization Amount
is the 1% buffer between borrowed amount and collateral
Fee Comparison Examples
Example 1: 1-Day Loan
Borrow Amount: 100 BERA
Duration: 1 day
Standard Interest Calculation: 0.019 BERA (0.019%)
Minimum Fee Check: Applies
Actual Fee: Minimum fee of 1.69% (1.69 BERA)
Example 2: 365-Day Loan
Borrow Amount: 100 BERA
Duration: 365 days
Standard Interest Calculation: 6.9 BERA
Minimum Fee Check: Standard interest exceeds minimum
Actual Fee: 6.9 BERA
Last updated