Skip to content

[Certora] SumOfCredits equals TotalUnits plus Fees.#1063

Open
jhoenicke wants to merge 4 commits into
mainfrom
certora/sumofcredits
Open

[Certora] SumOfCredits equals TotalUnits plus Fees.#1063
jhoenicke wants to merge 4 commits into
mainfrom
certora/sumofcredits

Conversation

@jhoenicke

Copy link
Copy Markdown
Collaborator

This is the main solvency invariant: the totalUnits equals the correctly scaled sums of all position credit plus fee. Together with the invariant from Midnight.spec that totalUnits equals the sum of all debts plus the withdrawable amount, this shows that all credits are backed by debt.

This pull-request superseeds #534.

This is the main solvency invariant: the totalUnits equals the
correctly scaled sums of all position credit plus fee.  Together
with the invariant from Midnight.spec that totalUnits equals
the sum of all debts plus the withdrawable amount, this shows that
all credits are backed by debt.
@jhoenicke
jhoenicke force-pushed the certora/sumofcredits branch from a68c5b0 to dd5df1d Compare July 13, 2026 16:03
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.

1 participant