Skip to content

Implement stability fee accrual #97

@0x-r4bbit

Description

@0x-r4bbit
  • Store a per-position fee_accumulator index and global stability_fee_accumulator
  • On each debt-modifying operation, accrue fees since the last update using continuous compounding: debt *= e^(rate * Δt) approximated with sufficient fixed-point precision
  • Ensure fee growth is reflected in collateralization ratio checks

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions