Skip to content

fix: accrue interest with bps denominator - #1443

Open
silentgeckoaudit3801 wants to merge 2 commits into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-interest-accrual-bps-denominator-1307
Open

fix: accrue interest with bps denominator#1443
silentgeckoaudit3801 wants to merge 2 commits into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-interest-accrual-bps-denominator-1307

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown

Closes #1307

Summary:

  • Use the standard 10,000 basis-point denominator for interest accrual instead of 100,000.
  • Add a regression test for a 10,000 principal loan at 1,200 bps over one full default term, expecting 1,200 accrued interest.

Validation:

  • Static GitHub API/source inspection only; local Soroban/Rust toolchain commands were not run to avoid installing or executing project dependencies in this environment.

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.

[Contracts] accrue_interest computes interest ten times too low

1 participant