Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS-BOLD-033 Informational 7.16: Upfront Fee Is Zero for Small Borrows #492

Open
bingen opened this issue Oct 9, 2024 · 1 comment
Open
Assignees
Labels
ChainSecurity wontfix This will not be worked on

Comments

@bingen
Copy link
Collaborator

bingen commented Oct 9, 2024

Note that the period is currently 1 week, and the weighted debt is equal to the trove debt times the average interest rate in the system.

Hence, the upfront fee is rounded to zero when

debt * averageinterestrate/52e18 < 0

When the average the interest rate is 0.5% (5e15), then anyone borrowing less than 10400 (52e18 / 5e15) wei pays no fees.

Similarily, the interest rate charged on small troves can be rounded to zero. For a trove with 1e8 debt and an interest rate of 5e15, updating the interest rate every 12 seconds would not result in any interest owed:

1e8 * 5e15 * 12 < 31536000 * 1e18
@bingen bingen self-assigned this Oct 22, 2024
@bingen bingen added the wontfix This will not be worked on label Oct 22, 2024
@bingen
Copy link
Collaborator Author

bingen commented Oct 22, 2024

This is only possible for zombie troves. 10k wei (1e-14 BOLD) seems a negligible amount, both in at user and system wide level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChainSecurity wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant