Skip to content

ADR: Revise interest curve utilization rate definition#303

Open
jordanschalm wants to merge 2 commits intomainfrom
jord/adr-interest-curve-utilization
Open

ADR: Revise interest curve utilization rate definition#303
jordanschalm wants to merge 2 commits intomainfrom
jord/adr-interest-curve-utilization

Conversation

@jordanschalm
Copy link
Copy Markdown
Member

No description provided.

Comment on lines +24 to +25
- User B deposits 105 units of X -> totalDebit(X) = 0
- User B still owes 5 units of X, but totalDebit(X) = 0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why B depositing 105 units would make totalDebit(X) to 0? Could you add more details in the comments.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they are unsigned and clamp to zero. From the paragraph above:

They are stored as absolute (not interest-adjusted) unsigned values, which can cause updates to the values to clamp to zero

Also added a ceil function in the equation to represent the "unsigned-ness"

Co-authored-by: Leo Zhang <zhangchiqing@gmail.com>
Co-authored-by: Jordan Schalm <jordan.schalm@gmail.com>
@jordanschalm jordanschalm requested review from a team and zhangchiqing April 8, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants